svn commit: r365423 - head/misc/getopt

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Tue Aug 19 19:51:02 UTC 2014


Author: sunpoet
Date: Tue Aug 19 19:51:01 2014
New Revision: 365423
URL: http://svnweb.freebsd.org/changeset/ports/365423
QAT: https://qat.redports.org/buildarchive/r365423/

Log:
  - Add my LOCAL to MASTER_SITES
  - Use PORTDOCS
  - Sort PLIST
  - Take maintainership

Modified:
  head/misc/getopt/Makefile
  head/misc/getopt/pkg-plist

Modified: head/misc/getopt/Makefile
==============================================================================
--- head/misc/getopt/Makefile	Tue Aug 19 19:31:35 2014	(r365422)
+++ head/misc/getopt/Makefile	Tue Aug 19 19:51:01 2014	(r365423)
@@ -4,26 +4,25 @@
 PORTNAME=	getopt
 PORTVERSION=	1.1.5
 CATEGORIES=	misc
-MASTER_SITES=	http://software.frodo.looijaard.name/getopt/files/
+MASTER_SITES=	http://software.frodo.looijaard.name/getopt/files/ \
+		LOCAL/sunpoet
 
-MAINTAINER=	ports at FreeBSD.org
+MAINTAINER=	sunpoetFreeBSD.org
 COMMENT=	Replacement for getopt(1) that supports GNU-style long options
 
-USES=		gettext gmake
+OPTIONS_DEFINE=	DOCS
 
 CFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib -lintl
-MAKE_ENV+=	LIBCGETOPT=0
-
-DOCS=		Changelog README
-
-OPTIONS_DEFINE=	DOCS
+MAKE_ARGS=	CC=${CC}
+MAKE_ENV=	LIBCGETOPT=0
+USES=		gettext gmake
 
-post-patch:
-	${REINPLACE_CMD} -e 's|CC=gcc|CC=${CC}|' ${WRKSRC}/Makefile
+PORTDOCS=	Changelog README
 
 post-install:
-	${MKDIR} ${STAGEDIR}${DOCSDIR}
-	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}/
+	cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/getopt
 
 .include <bsd.port.mk>

Modified: head/misc/getopt/pkg-plist
==============================================================================
--- head/misc/getopt/pkg-plist	Tue Aug 19 19:31:35 2014	(r365422)
+++ head/misc/getopt/pkg-plist	Tue Aug 19 19:51:01 2014	(r365423)
@@ -1,7 +1,5 @@
 bin/getopt
-%%PORTDOCS%%%%DOCSDIR%%/Changelog
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
+man/man1/getopt.1.gz
 share/locale/ca/LC_MESSAGES/getopt.mo
 share/locale/cs/LC_MESSAGES/getopt.mo
 share/locale/da/LC_MESSAGES/getopt.mo
@@ -27,4 +25,3 @@ share/locale/uk/LC_MESSAGES/getopt.mo
 share/locale/vi/LC_MESSAGES/getopt.mo
 share/locale/zh_CN/LC_MESSAGES/getopt.mo
 share/locale/zh_TW/LC_MESSAGES/getopt.mo
-man/man1/getopt.1.gz


More information about the svn-ports-head mailing list