svn commit: r355079 - head/sysutils/stow

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Sat May 24 20:53:28 UTC 2014


Author: sunpoet
Date: Sat May 24 20:53:27 2014
New Revision: 355079
URL: http://svnweb.freebsd.org/changeset/ports/355079
QAT: https://qat.redports.org/buildarchive/r355079/

Log:
  - Convert to new options framework
  - Use USES=gmake and USES=tar:bzip2
  - Support STAGEDIR
  - While I'm here, simplify Makefile
  
  PR:		ports/190165
  Submitted by:	Muhammad Moinur Rahman <5u623l20 at gmail.com> (maintainer)

Added:
  head/sysutils/stow/pkg-plist   (contents, props changed)
Modified:
  head/sysutils/stow/Makefile

Modified: head/sysutils/stow/Makefile
==============================================================================
--- head/sysutils/stow/Makefile	Sat May 24 20:53:22 2014	(r355078)
+++ head/sysutils/stow/Makefile	Sat May 24 20:53:27 2014	(r355079)
@@ -3,6 +3,7 @@
 
 PORTNAME=	stow
 PORTVERSION=	2.2.0
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	GNU
 
@@ -14,34 +15,25 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 TEST_DEPENDS=	p5-Test-Output>0:${PORTSDIR}/devel/p5-Test-Output
 
-USE_BZIP2=	yes
-USES=		perl5
-USE_GMAKE=	yes
+USES=		gmake perl5 tar:bzip2
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	ac_cv_path_PERL=${PERL}
 INSTALL_TARGET=	install-exec-am install-dist_pmstowDATA install-info-am \
 		install-man install-pmDATA
 
-MAN8=		stow.8
+OPTIONS=	DOCS
+
 INFO=		stow
 PORTDOCS=	*
-PLIST_FILES=	bin/chkstow \
-		bin/stow \
-		%%SITE_PERL%%/Stow.pm \
-		%%SITE_PERL%%/Stow/Util.pm
-PLIST_DIRS=	%%SITE_PERL%%/Stow
 
-NO_STAGE=	yes
 post-install:
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for FILE in ChangeLog README
-	${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
 .endfor
 .for FILE in ChangeLog.OLD manual-single.html manual.pdf version.texi
-	${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${STAGEDIR}${DOCSDIR}
 .endfor
-	@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} manual-split ${DOCSDIR})
-.endif
+	@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} manual-split ${STAGEDIR}${DOCSDIR})
 
 .include <bsd.port.mk>

Added: head/sysutils/stow/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/stow/pkg-plist	Sat May 24 20:53:27 2014	(r355079)
@@ -0,0 +1,6 @@
+bin/chkstow
+bin/stow
+%%SITE_PERL%%/Stow.pm
+%%SITE_PERL%%/Stow/Util.pm
+man/man8/stow.8.gz
+ at dirrm %%SITE_PERL%%/Stow


More information about the svn-ports-all mailing list