aboutsummaryrefslogtreecommitdiff
path: root/textproc/confget
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2013-11-04 17:01:15 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2013-11-04 17:01:15 +0000
commit2b452d96636f34163dab3123b636bda25d287d91 (patch)
treec92d3c26047384fb9535df85d5698162719bc66f /textproc/confget
parente413afabc2dbbde3810f12683c7f1a4acf65bd9a (diff)
downloadports-2b452d96636f34163dab3123b636bda25d287d91.tar.gz
ports-2b452d96636f34163dab3123b636bda25d287d91.zip
Notes
Diffstat (limited to 'textproc/confget')
-rw-r--r--textproc/confget/Makefile25
-rw-r--r--textproc/confget/distinfo4
2 files changed, 14 insertions, 15 deletions
diff --git a/textproc/confget/Makefile b/textproc/confget/Makefile
index cd818e883dbd..4db215e28b7b 100644
--- a/textproc/confget/Makefile
+++ b/textproc/confget/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= confget
-PORTVERSION= 1.04
-PORTREVISION= 1
+PORTVERSION= 1.05
CATEGORIES= textproc
MASTER_SITES= http://devel.ringlet.net/textproc/confget/ \
LOCAL/sunpoet
@@ -11,27 +10,24 @@ MASTER_SITES= http://devel.ringlet.net/textproc/confget/ \
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Read variables from INI-style configuration files
+LICENSE= BSD
+
OPTIONS_DEFINE= EXAMPLES PCRE
OPTIONS_DEFAULT=PCRE
MAKE_ENV= CFLAGS_CONF=-DHAVE_FGETLN
USES= gmake
-MAN1= confget.1
-MANCOMPRESSED= yes
-PLIST_FILES= bin/confget
+PLIST_FILES= bin/confget \
+ man/man1/confget.1.gz
PORTEXAMPLES= t1.ini t2.ini
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+EXAMPLES_MAKE_ENV= EXAMPLESDIR=${EXAMPLESDIR}
+PCRE_LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre
-.if ${PORT_OPTIONS:MEXAMPLES}
-MAKE_ENV+= EXAMPLESDIR=${EXAMPLESDIR}
-.endif
+.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MPCRE}
-LIB_DEPENDS+= pcre.3:${PORTSDIR}/devel/pcre
-.else
+.if !${PORT_OPTIONS:MPCRE}
MAKE_ENV+= PCRE_CFLAGS="" PCRE_LIBS=""
.endif
@@ -40,6 +36,9 @@ post-patch:
@${REINPLACE_CMD} -e '/^install:/ s| install-examples||' ${WRKSRC}/Makefile
.endif
+post-build:
+ @${STRIP_CMD} ${WRKSRC}/confget
+
regression-test test: build
cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test
diff --git a/textproc/confget/distinfo b/textproc/confget/distinfo
index 9383875cebd1..10d541879344 100644
--- a/textproc/confget/distinfo
+++ b/textproc/confget/distinfo
@@ -1,2 +1,2 @@
-SHA256 (confget-1.04.tar.gz) = 8c34f33bf83ea1b0f37cb524d20627a1abcc1eb6234e3a9e4cef8aaf9a9a38cd
-SIZE (confget-1.04.tar.gz) = 16770
+SHA256 (confget-1.05.tar.gz) = 988c225ff9ed950a926c4229099e6dda437bfc0837239649716973c179adc8e4
+SIZE (confget-1.05.tar.gz) = 17057