aboutsummaryrefslogtreecommitdiff
path: root/sysutils/stow
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2012-02-20 00:06:54 +0000
committerMartin Wilke <miwi@FreeBSD.org>2012-02-20 00:06:54 +0000
commit3b0c987220ef5fe049f964013a235fd442324c90 (patch)
treead9ec8212dab88544d7398412760f95bf14a94da /sysutils/stow
parent007ecbefd4280fe5dbfe1cb064d41a786be3ad6a (diff)
downloadports-3b0c987220ef5fe049f964013a235fd442324c90.tar.gz
ports-3b0c987220ef5fe049f964013a235fd442324c90.zip
- Fix LICENSE
- Support PORTDOCS/PLIST_FILES PR: 165000 Submitted by: Port Fury
Notes
Notes: svn path=/head/; revision=291891
Diffstat (limited to 'sysutils/stow')
-rw-r--r--sysutils/stow/Makefile34
-rw-r--r--sysutils/stow/pkg-plist39
2 files changed, 28 insertions, 45 deletions
diff --git a/sysutils/stow/Makefile b/sysutils/stow/Makefile
index 49780d186ee5..054970042556 100644
--- a/sysutils/stow/Makefile
+++ b/sysutils/stow/Makefile
@@ -8,23 +8,45 @@
PORTNAME= stow
PORTVERSION= 2.1.3
+PORTREVISION= 1
CATEGORIES= sysutils
-MASTER_SITES= ${MASTER_SITE_GNU}
-MASTER_SITE_SUBDIR= ${PORTNAME}
+MASTER_SITES= GNU
MAINTAINER= ports@FreeBSD.org
COMMENT= GNU version of Carnegie Mellon's "Depot" program
-LICENSE= GPLv3
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
TEST_DEPENDS= p5-Test-Output>0:${PORTSDIR}/devel/p5-Test-Output
-GNU_CONFIGURE= yes
USE_BZIP2= yes
-USE_GMAKE= yes
USE_PERL5= yes
+USE_GMAKE= yes
+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
-INFO= stow
MAN8= stow.8
+INFO= stow
+PORTDOCS= *
+PLIST_FILES= bin/chkstow \
+ bin/stow \
+ %%SITE_PERL%%/Stow.pm \
+ %%SITE_PERL%%/Stow/Util.pm
+PLIST_DIRS= %%SITE_PERL%%/Stow
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for FILE in ChangeLog README
+ ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+.endfor
+.for FILE in ChangeLog.OLD manual-single.html manual.pdf version.texi
+ ${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${DOCSDIR}
+.endfor
+ @(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} manual-split ${DOCSDIR})
+.endif
.include <bsd.port.mk>
diff --git a/sysutils/stow/pkg-plist b/sysutils/stow/pkg-plist
deleted file mode 100644
index 37e06da3deb9..000000000000
--- a/sysutils/stow/pkg-plist
+++ /dev/null
@@ -1,39 +0,0 @@
-bin/chkstow
-bin/stow
-%%DOCSDIR%%/ChangeLog
-%%DOCSDIR%%/ChangeLog.OLD
-%%DOCSDIR%%/README
-%%DOCSDIR%%/manual-single.html
-%%DOCSDIR%%/manual-split/Bootstrapping.html
-%%DOCSDIR%%/manual-split/Compile_002dtime-vs-Install_002dtime.html
-%%DOCSDIR%%/manual-split/Conflicts.html
-%%DOCSDIR%%/manual-split/Cygnus-Software.html
-%%DOCSDIR%%/manual-split/Deferred-Operation.html
-%%DOCSDIR%%/manual-split/Deleting-Packages.html
-%%DOCSDIR%%/manual-split/GNU-Emacs.html
-%%DOCSDIR%%/manual-split/GNU-General-Public-License.html
-%%DOCSDIR%%/manual-split/Ignore-Lists.html
-%%DOCSDIR%%/manual-split/Index.html
-%%DOCSDIR%%/manual-split/Installing-Packages.html
-%%DOCSDIR%%/manual-split/Introduction.html
-%%DOCSDIR%%/manual-split/Invoking-Stow.html
-%%DOCSDIR%%/manual-split/Justification-For-Yet-Another-Set-Of-Ignore-Files.html
-%%DOCSDIR%%/manual-split/Known-Bugs.html
-%%DOCSDIR%%/manual-split/Mixing-Operations.html
-%%DOCSDIR%%/manual-split/Motivation-For-Ignore-Lists.html
-%%DOCSDIR%%/manual-split/Multiple-Stow-Directories.html
-%%DOCSDIR%%/manual-split/Other-FSF-Software.html
-%%DOCSDIR%%/manual-split/Perl-and-Perl-5-Modules.html
-%%DOCSDIR%%/manual-split/Reporting-Bugs.html
-%%DOCSDIR%%/manual-split/Resource-Files.html
-%%DOCSDIR%%/manual-split/Target-Maintenance.html
-%%DOCSDIR%%/manual-split/Terminology.html
-%%DOCSDIR%%/manual-split/Types-And-Syntax-Of-Ignore-Lists.html
-%%DOCSDIR%%/manual-split/index.html
-%%DOCSDIR%%/manual.pdf
-%%DOCSDIR%%/version.texi
-%%SITE_PERL%%/Stow.pm
-%%SITE_PERL%%/Stow/Util.pm
-@dirrm %%DOCSDIR%%/manual-split
-@dirrm %%DOCSDIR%%
-@dirrm %%SITE_PERL%%/Stow