Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Feb 2014 19:01:26 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r343139 - head/net/urlendec
Message-ID:  <201402061901.s16J1QBd078795@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Thu Feb  6 19:01:25 2014
New Revision: 343139
URL: http://svnweb.freebsd.org/changeset/ports/343139
QAT: https://qat.redports.org/buildarchive/r343139/

Log:
  Stage support

Modified:
  head/net/urlendec/Makefile
  head/net/urlendec/pkg-plist

Modified: head/net/urlendec/Makefile
==============================================================================
--- head/net/urlendec/Makefile	Thu Feb  6 18:51:52 2014	(r343138)
+++ head/net/urlendec/Makefile	Thu Feb  6 19:01:25 2014	(r343139)
@@ -16,24 +16,11 @@ ONLY_FOR_ARCHS=	i386
 BINARIES=	urlencode urldecode
 DOCFILES=	index.html rfc1738.txt
 
-NO_STAGE=	yes
-do-install:
-.for f in ${BINARIES}
-	${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
-.endfor
+OPTIONS_DEFINE=	DOCS
 
-post-install:
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${PREFIX}/share/doc/urlendec
-.for f in ${DOCFILES}
-	${INSTALL_MAN} ${WRKSRC}/${f} ${PREFIX}/share/doc/urlendec
-.endfor
-	@echo ""
-	@echo "	----------------------------------------------------"
-	@echo "	Please read ${PREFIX}/share/doc/urlendec/index.html"
-	@echo "	for detailed instructions how to use this port."
-	@echo "	----------------------------------------------------"
-	@echo ""
-.endif
+do-install:
+	${INSTALL_PROGRAM} ${BINARIES:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/urlendec
+	${INSTALL_DATA} ${DOCFILES:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/share/doc/urlendec
 
 .include <bsd.port.mk>

Modified: head/net/urlendec/pkg-plist
==============================================================================
--- head/net/urlendec/pkg-plist	Thu Feb  6 18:51:52 2014	(r343138)
+++ head/net/urlendec/pkg-plist	Thu Feb  6 19:01:25 2014	(r343139)
@@ -1,5 +1,5 @@
 bin/urlencode
 bin/urldecode
-share/doc/urlendec/index.html
-share/doc/urlendec/rfc1738.txt
-@dirrm share/doc/urlendec
+%%PORTDOCS%%share/doc/urlendec/index.html
+%%PORTDOCS%%share/doc/urlendec/rfc1738.txt
+%%PORTDOCS%%@dirrm share/doc/urlendec



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402061901.s16J1QBd078795>