svn commit: r460967 - head/textproc/unrtf
Dmitry Marakasov
amdmi3 at FreeBSD.org
Mon Feb 5 09:02:18 UTC 2018
Author: amdmi3
Date: Mon Feb 5 09:02:17 2018
New Revision: 460967
URL: https://svnweb.freebsd.org/changeset/ports/460967
Log:
- Switch to USES=localbase
- Switch to new test framework
- Fix portlint by switching to static plist
Approved by: portmgr blanket
Added:
head/textproc/unrtf/pkg-plist (contents, props changed)
Modified:
head/textproc/unrtf/Makefile
Modified: head/textproc/unrtf/Makefile
==============================================================================
--- head/textproc/unrtf/Makefile Mon Feb 5 09:02:15 2018 (r460966)
+++ head/textproc/unrtf/Makefile Mon Feb 5 09:02:17 2018 (r460967)
@@ -12,32 +12,19 @@ COMMENT= Converter from RTF to several formats, includ
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
-USES= autoreconf cpe gmake iconv
+USES= autoreconf cpe gmake iconv localbase:ldflags
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --libdir=${PREFIX}/share
CPE_VENDOR= unrtf_project
+TEST_TARGET= check
-PLIST_FILES= bin/unrtf \
- %%DATADIR%%/SYMBOL.charmap \
- %%DATADIR%%/html.conf \
- %%DATADIR%%/latex.conf \
- %%DATADIR%%/rtf.conf \
- %%DATADIR%%/text.conf \
- %%DATADIR%%/troff_mm.conf \
- %%DATADIR%%/vt.conf \
- man/man1/unrtf.1.gz
+LDFLAGS+= ${ICONV_LIB}
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB}
-
post-patch:
@${FIND} -X ${WRKSRC} -type f -and -name "*.[1h]" | ${XARGS} \
${REINPLACE_CMD} -e \
's|/usr/local/lib/unrtf/|${DATADIR}/|g'
@${REINPLACE_CMD} -e '/^attr_get_param/,/^}/s/return;/return NULL;/' \
${WRKSRC}/src/attr.c
-
-check regression-test test: build
- @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} check)
.include <bsd.port.mk>
Added: head/textproc/unrtf/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/unrtf/pkg-plist Mon Feb 5 09:02:17 2018 (r460967)
@@ -0,0 +1,9 @@
+bin/unrtf
+man/man1/unrtf.1.gz
+%%DATADIR%%/SYMBOL.charmap
+%%DATADIR%%/html.conf
+%%DATADIR%%/latex.conf
+%%DATADIR%%/rtf.conf
+%%DATADIR%%/text.conf
+%%DATADIR%%/troff_mm.conf
+%%DATADIR%%/vt.conf
More information about the svn-ports-all
mailing list