diff options
author | Peter Pentchev <roam@FreeBSD.org> | 2009-03-24 16:37:43 +0000 |
---|---|---|
committer | Peter Pentchev <roam@FreeBSD.org> | 2009-03-24 16:37:43 +0000 |
commit | 82ea670e5b53c816377a9c52263e03bb648c073a (patch) | |
tree | bbef00135413d745a0f56f1e3433baae078a784a /textproc | |
parent | 99310fa8d96bb98774f72d54690a17e70f48ef5b (diff) | |
download | ports-82ea670e5b53c816377a9c52263e03bb648c073a.tar.gz ports-82ea670e5b53c816377a9c52263e03bb648c073a.zip |
Notes
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/confget/Makefile | 10 | ||||
-rw-r--r-- | textproc/confget/distinfo | 6 | ||||
-rw-r--r-- | textproc/confget/files/patch-t--09-regexp.t | 20 | ||||
-rw-r--r-- | textproc/confget/pkg-plist | 4 |
4 files changed, 15 insertions, 25 deletions
diff --git a/textproc/confget/Makefile b/textproc/confget/Makefile index 7770f13bae65..7bdf75b085fe 100644 --- a/textproc/confget/Makefile +++ b/textproc/confget/Makefile @@ -6,7 +6,7 @@ # PORTNAME= confget -PORTVERSION= 1.01 +PORTVERSION= 1.02 CATEGORIES= textproc MASTER_SITES= http://devel.ringlet.net/textproc/confget/ @@ -30,7 +30,13 @@ MAKE_ENV+= CFLAGS_CONF=-DHAVE_FGETLN MAN1= confget.1 MANCOMPRESSED= yes -PLIST_FILES= bin/confget +.if defined(NOPORTEXAMPLES) +post-patch: + ${REINPLACE_CMD} -E -e 's/([^n])install-examples/\1/' \ + ${WRKSRC}/Makefile +.else +MAKE_ENV+= EXAMPLESDIR=${EXAMPLESDIR} +.endif 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 f0413db6e1a1..efa762d4235d 100644 --- a/textproc/confget/distinfo +++ b/textproc/confget/distinfo @@ -1,3 +1,3 @@ -MD5 (confget-1.01.tar.gz) = a9ade693ef1a8a9d781fca4aebd86fee -SHA256 (confget-1.01.tar.gz) = e3bb7f836cc07dd377f197dcd4e808cb8bfb5382a9e9b2e48f83e6afde0888c7 -SIZE (confget-1.01.tar.gz) = 14211 +MD5 (confget-1.02.tar.gz) = b62059810543ed47570d147bd739a9c3 +SHA256 (confget-1.02.tar.gz) = 15b5d97a97beff4daf5cbe6346b64c67bdcec36e64f163754c4657a66cc5f68b +SIZE (confget-1.02.tar.gz) = 15310 diff --git a/textproc/confget/files/patch-t--09-regexp.t b/textproc/confget/files/patch-t--09-regexp.t deleted file mode 100644 index 13b9f69cc4da..000000000000 --- a/textproc/confget/files/patch-t--09-regexp.t +++ /dev/null @@ -1,20 +0,0 @@ -Do not fail the regexp tests if confget was compiled without regexp support. -This patch has already been applied to the confget upstream Subversion repo. - ---- t/09-regexp.t.orig -+++ t/09-regexp.t -@@ -38,6 +38,14 @@ - exit 255 - fi - -+v=`$CONFGET -f "$T1" -s a -x key1 2>&1` -+if [ "$v" = 'confget: No regular expression support in this confget build' ]; then -+ for i in 1 2 3 4 5 6 7 8; do -+ echo "ok $i # skip No regular expression support in confget" -+ done -+ exit 0 -+fi -+ - unset cfg_key1 cfg_key2 cfg_key3 cfg_key6 - eval `$CONFGET -f "$T1" -S -p cfg_ -s a -L -x 'key[23]'` - if [ "$cfg_key1" = '' ]; then echo 'ok 1'; else echo "not ok 1 cfg_key1 is '$cfg_key1'"; fi diff --git a/textproc/confget/pkg-plist b/textproc/confget/pkg-plist new file mode 100644 index 000000000000..b8dcce86b2d2 --- /dev/null +++ b/textproc/confget/pkg-plist @@ -0,0 +1,4 @@ +bin/confget +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/t1.ini +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/t2.ini +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% |