From ebb3dd1acc0c8f5ffd1e50e0e335dbe3a08cf26a Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Tue, 25 Mar 2014 15:20:34 +0000 Subject: [PATCH] Support staging. Poked by: bapt Sponsored by: Absolight --- textproc/p5-SGMLSpm/Makefile | 34 ++++++------------- .../files/noportexamples-patch-Makefile | 12 ------- textproc/p5-SGMLSpm/files/patch-Makefile | 13 +++++-- 3 files changed, 22 insertions(+), 37 deletions(-) delete mode 100644 textproc/p5-SGMLSpm/files/noportexamples-patch-Makefile diff --git a/textproc/p5-SGMLSpm/Makefile b/textproc/p5-SGMLSpm/Makefile index 2b2cae237d74..eca2b723eac9 100644 --- a/textproc/p5-SGMLSpm/Makefile +++ b/textproc/p5-SGMLSpm/Makefile @@ -3,16 +3,18 @@ PORTNAME= SGMLSpm PORTVERSION= 1.03 +DISTVERSIONSUFFIX= ii PORTREVISION= 1 CATEGORIES= textproc perl5 -MASTER_SITES= CPAN -MASTER_SITE_SUBDIR= SGMLS +MASTER_SITES= CPAN/SGMLS PKGNAMEPREFIX= p5- -DISTNAME= ${PORTNAME}-${PORTVERSION}ii MAINTAINER= perl@FreeBSD.org COMMENT= Perl module for postprocessing the output from sgmls and nsgmls +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + USE_PERL5= run USES= shebangfix perl5 NO_BUILD= yes @@ -22,30 +24,16 @@ SHEBANG_FILES= sgmlspl.pl \ DOC/HTML/SGMLSpm/sample.pl \ DOC/HTML/SGMLSpm/example.html -INSTALL_TARGET= install BINDIR=${PREFIX}/bin \ - PERL5DIR=${SITE_PERL} SPECDIR=${EXAMPLESDIR} - -NO_STAGE= yes +INSTALL_TARGET= install BINDIR=${STAGEDIR}${PREFIX}/bin \ + PERL5DIR=${STAGEDIR}${SITE_PERL} SPECDIR=${STAGEDIR}${EXAMPLESDIR} OPTIONS_DEFINE= DOCS EXAMPLES -.include +PORTDOCS= * -.if ${PORT_OPTIONS:MDOCS} -PORTDOCS= * -INSTALL_TARGET+=docs install_html HTMLDIR=${DOCSDIR} -.endif +DOCS_INSTALL_TARGET= docs install_html HTMLDIR=${STAGEDIR}${DOCSDIR} -.if ! ${PORT_OPTIONS:MEXAMPLES} -EXTRA_PATCHES= ${PATCHDIR}/noportexamples-patch-Makefile -.endif - -pre-su-install: -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} -.endif -.if ${PORT_OPTIONS:MEXAMPLES} - @${MKDIR} ${EXAMPLESDIR} -.endif +pre-install: + @${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${EXAMPLESDIR} .include diff --git a/textproc/p5-SGMLSpm/files/noportexamples-patch-Makefile b/textproc/p5-SGMLSpm/files/noportexamples-patch-Makefile deleted file mode 100644 index d287e721cd8c..000000000000 --- a/textproc/p5-SGMLSpm/files/noportexamples-patch-Makefile +++ /dev/null @@ -1,12 +0,0 @@ ---- ./Makefile.orig 2008-06-13 18:15:13.832720857 +0300 -+++ ./Makefile 2008-06-13 18:15:23.574652218 +0300 -@@ -41,8 +41,7 @@ - FILES = ${BINDIR}/sgmlspl \ - ${PERL5DIR}/SGMLS.pm \ - ${MODULEDIR}/Output.pm \ -- ${MODULEDIR}/Refs.pm \ -- ${SPECDIR}/skel.pl -+ ${MODULEDIR}/Refs.pm - - all: install docs - diff --git a/textproc/p5-SGMLSpm/files/patch-Makefile b/textproc/p5-SGMLSpm/files/patch-Makefile index b99cb2a033a4..cd7c98a5fd9d 100644 --- a/textproc/p5-SGMLSpm/files/patch-Makefile +++ b/textproc/p5-SGMLSpm/files/patch-Makefile @@ -1,5 +1,5 @@ ---- Makefile.orig Tue May 4 10:39:40 2004 -+++ Makefile Tue May 4 10:39:57 2004 +--- ./Makefile.orig 1995-12-05 13:26:11.000000000 +0100 ++++ ./Makefile 2014-03-25 15:52:27.000000000 +0100 @@ -36,7 +36,7 @@ # End of user options. # @@ -9,3 +9,12 @@ FILES = ${BINDIR}/sgmlspl \ ${PERL5DIR}/SGMLS.pm \ +@@ -62,7 +62,7 @@ + + ${MODULEDIR}: + if [ ! -d ${MODULEDIR} ]; then\ +- mkdir ${MODULEDIR}; \ ++ mkdir -p ${MODULEDIR}; \ + chmod a+x ${MODULEDIR}; \ + fi +