aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2012-03-01 00:14:06 +0800
committersunpoet <sunpoet@FreeBSD.org>2012-03-01 00:14:06 +0800
commit566e3157693ead3f0cd422a8e71af13adec8fea6 (patch)
tree74d06706d70bf703f2096b7872122524ec21b928 /textproc
parent6d4c176834e5fb392c3ba0e61afab140b2366c59 (diff)
downloadfreebsd-ports-gnome-566e3157693ead3f0cd422a8e71af13adec8fea6.tar.gz
freebsd-ports-gnome-566e3157693ead3f0cd422a8e71af13adec8fea6.tar.zst
freebsd-ports-gnome-566e3157693ead3f0cd422a8e71af13adec8fea6.zip
- Update to 1.03
- Add my LOCAL to MASTER_SITES - Use PLIST_FILES and PORTEXAMPLES instead of PLIST - Cosmetic change Changes: http://devel.ringlet.net/textproc/confget/CHANGES
Diffstat (limited to 'textproc')
-rw-r--r--textproc/confget/Makefile44
-rw-r--r--textproc/confget/distinfo4
-rw-r--r--textproc/confget/pkg-plist4
3 files changed, 25 insertions, 27 deletions
diff --git a/textproc/confget/Makefile b/textproc/confget/Makefile
index 789023cf5813..ed1d0a672472 100644
--- a/textproc/confget/Makefile
+++ b/textproc/confget/Makefile
@@ -6,40 +6,42 @@
#
PORTNAME= confget
-PORTVERSION= 1.02
-PORTREVISION= 1
+PORTVERSION= 1.03
CATEGORIES= textproc
-MASTER_SITES= http://devel.ringlet.net/textproc/confget/
+MASTER_SITES= http://devel.ringlet.net/textproc/confget/ \
+ LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Read variables from INI-style configuration files
OPTIONS= PCRE "Regular expression support" on
-.include <bsd.port.pre.mk>
-
-.if defined(WITH_PCRE)
-LIB_DEPENDS= pcre.1:${PORTSDIR}/devel/pcre
-.else
-MAKE_ENV+= PCRE_CFLAGS= PCRE_LIBS=
-.endif
-
+MAKE_ENV= CFLAGS_CONF=-DHAVE_FGETLN
USE_GMAKE= yes
-MAKE_ENV+= CFLAGS_CONF=-DHAVE_FGETLN
-
MAN1= confget.1
MANCOMPRESSED= yes
+PLIST_FILES= bin/confget
+PORTEXAMPLES= t1.ini t2.ini
-.if defined(NOPORTEXAMPLES)
-post-patch:
- ${REINPLACE_CMD} -E -e 's/([^n])install-examples/\1/' \
- ${WRKSRC}/Makefile
-.else
+.if !defined(NOPORTEXAMPLES)
MAKE_ENV+= EXAMPLESDIR=${EXAMPLESDIR}
.endif
-test: build
- cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test
+.include <bsd.port.options.mk>
+
+.if !defined(WITHOUT_PCRE)
+LIB_DEPENDS+= pcre.1:${PORTSDIR}/devel/pcre
+.else
+MAKE_ENV+= PCRE_CFLAGS="" PCRE_LIBS=""
+.endif
+
+post-patch:
+.if defined(NOPORTEXAMPLES)
+ @${REINPLACE_CMD} -e '/^install:/ s| install-examples||' ${WRKSRC}/Makefile
+.endif
+
+regression-test test: build
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/textproc/confget/distinfo b/textproc/confget/distinfo
index 8205ac663cb8..f398d448865d 100644
--- a/textproc/confget/distinfo
+++ b/textproc/confget/distinfo
@@ -1,2 +1,2 @@
-SHA256 (confget-1.02.tar.gz) = 15b5d97a97beff4daf5cbe6346b64c67bdcec36e64f163754c4657a66cc5f68b
-SIZE (confget-1.02.tar.gz) = 15310
+SHA256 (confget-1.03.tar.gz) = ae0c83e5eb25a3b74ea8cd9929e45f0ab238c2b187d6caad482750861ddf45a6
+SIZE (confget-1.03.tar.gz) = 15796
diff --git a/textproc/confget/pkg-plist b/textproc/confget/pkg-plist
deleted file mode 100644
index b8dcce86b2d2..000000000000
--- a/textproc/confget/pkg-plist
+++ /dev/null
@@ -1,4 +0,0 @@
-bin/confget
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/t1.ini
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/t2.ini
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%