aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2012-12-18 01:09:59 +0800
committerpawel <pawel@FreeBSD.org>2012-12-18 01:09:59 +0800
commit5e33e194199d0c84a5f6e0f60b9bd34e32018c6e (patch)
treeb6436083f86608820a6c5cb968a2492746af36f2 /devel
parente09069b89fd5668caeec7df40ce3b0f7285a49f2 (diff)
downloadfreebsd-ports-gnome-5e33e194199d0c84a5f6e0f60b9bd34e32018c6e.tar.gz
freebsd-ports-gnome-5e33e194199d0c84a5f6e0f60b9bd34e32018c6e.tar.zst
freebsd-ports-gnome-5e33e194199d0c84a5f6e0f60b9bd34e32018c6e.zip
- Update to 2.22.6
- Take maintainership PR: ports/173518 Submitted by: nemysis <nemysis@gmx.ch>
Diffstat (limited to 'devel')
-rw-r--r--devel/gengetopt/Makefile68
-rw-r--r--devel/gengetopt/distinfo4
2 files changed, 37 insertions, 35 deletions
diff --git a/devel/gengetopt/Makefile b/devel/gengetopt/Makefile
index 71e52eb7a85c..eb0d23784eae 100644
--- a/devel/gengetopt/Makefile
+++ b/devel/gengetopt/Makefile
@@ -1,18 +1,13 @@
-# ex:ts=8
-# New ports collection makefile for: gengetopt
-# Date created: 12 October 2000
-# Whom: Cyrille Lefevre <clefevre@citeweb.net>
-#
+# Created by: Cyrille Lefevre <clefevre@citeweb.net>
# $FreeBSD$
-#
PORTNAME= gengetopt
-PORTVERSION= 2.22.5
+PORTVERSION= 2.22.6
CATEGORIES= devel
MASTER_SITES= GNU
-MAINTAINER= ports@FreeBSD.org
-COMMENT= A tool for generating a C function which parses command line arguments
+MAINTAINER= nemysis@gmx.ch
+COMMENT= Tool for generating a C function which parses command line arguments
LICENSE= GPLv3
@@ -22,45 +17,52 @@ USE_GMAKE= yes
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE=yes
-CFLAGS= -D_GL_SYSTEM_GETOPT
+CFLAGS+= -D_GL_SYSTEM_GETOPT
MAN1= gengetopt.1
INFO= gengetopt
-PORTDOCS= ${ROOT_DOCS} ${DOC_DOCS}
-PORTEXAMPLES= ${DOC_EXAMPLES} ${TESTS_EXAMPLES}
+
PLIST_FILES= bin/gengetopt %%DATADIR%%/getopt.c %%DATADIR%%/getopt1.c \
%%DATADIR%%/gnugetopt.h
+
PLIST_DIRS= %%DATADIR%%
-ROOT_DOCS= AUTHORS ChangeLog LICENSE NEWS README THANKS TODO
-DOC_DOCS= index.html gengetopt.html
+PORTDOCS= *
+PORTEXAMPLES= *
+
+DOCSRCDIR1= ${WRKSRC}
+DOC_FILES1= AUTHORS ChangeLog NEWS README THANKS TODO
+
+DOCSRCDIR2= ${WRKSRC}/doc
+DOCSDIR2= ${DOCSDIR}/doc
+DOC_FILES2= index.html gengetopt.html
+
DOC_EXAMPLES= README.example cmdline1.c cmdline1.h cmdline2.c cmdline2.h \
- main1.cc main2.c sample1.ggo sample2.ggo
+ main1.cc main2.c multiple_example.c sample1.ggo sample2.ggo
TESTS_EXAMPLES= test_manual_help.c test_manual_help_cmd.c \
test_manual_help_cmd.ggo test_manual_help_cmd.h
-pre-install:
- @${CHMOD} +x ${WRKSRC}/build-aux/install-sh
+.include <bsd.port.options.mk>
post-install:
- ${INSTALL_MAN} ${WRKSRC}/doc/gengetopt.1 ${MANPREFIX}/man/man1
- ${INSTALL_DATA} ${WRKSRC}/doc/gengetopt.info ${PREFIX}/${INFO_PATH}
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for file in ${ROOT_DOCS}
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
-.for file in ${DOC_DOCS}
- ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
-.endfor
+ ${INSTALL_MAN} ${WRKSRC}/doc/${MAN1} ${MAN1PREFIX}/man/man1
+ ${MKDIR} ${PREFIX}/${INFO_PATH}
+ ${INSTALL_DATA} ${WRKSRC}/doc/${INFO}.info ${PREFIX}/${INFO_PATH}
+
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
+ ${MKDIR} ${DOCSDIR2}
+ ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
.endif
-.if !defined(NOPORTEXAMPLES)
- @${MKDIR} ${EXAMPLESDIR}
-.for file in ${DOC_EXAMPLES}
- ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${EXAMPLESDIR}
+
+.if ${PORT_OPTIONS:MEXAMPLES}
+ ${MKDIR} ${EXAMPLESDIR}
+.for e in ${DOC_EXAMPLES}
+ ${INSTALL_DATA} ${WRKSRC}/doc/${e} ${EXAMPLESDIR}
.endfor
-.for file in ${TESTS_EXAMPLES}
- ${INSTALL_DATA} ${WRKSRC}/tests/${file} ${EXAMPLESDIR}
+.for e in ${TESTS_EXAMPLES}
+ ${INSTALL_DATA} ${WRKSRC}/tests/${e} ${EXAMPLESDIR}
.endfor
.endif
diff --git a/devel/gengetopt/distinfo b/devel/gengetopt/distinfo
index 6c9e437a1e07..e7e24614bf19 100644
--- a/devel/gengetopt/distinfo
+++ b/devel/gengetopt/distinfo
@@ -1,2 +1,2 @@
-SHA256 (gengetopt-2.22.5.tar.gz) = 3b6fb3240352b0eb0c5b8583b58b62cbba58167cef5a7e82fa08a7f968ed2137
-SIZE (gengetopt-2.22.5.tar.gz) = 1030950
+SHA256 (gengetopt-2.22.6.tar.gz) = 30b05a88604d71ef2a42a2ef26cd26df242b41f5b011ad03083143a31d9b01f7
+SIZE (gengetopt-2.22.6.tar.gz) = 1056293