aboutsummaryrefslogtreecommitdiff
path: root/textproc/p5-SGMLSpm
diff options
context:
space:
mode:
authorIon-Mihai Tetcu <itetcu@FreeBSD.org>2008-06-13 15:30:08 +0000
committerIon-Mihai Tetcu <itetcu@FreeBSD.org>2008-06-13 15:30:08 +0000
commit11b03e21dc1f07039127847573595e2acd2d93c6 (patch)
tree0d7b786b4070a096d42b80f542f26a8934d4cc53 /textproc/p5-SGMLSpm
parent37bcd0d237d22eb060608ec07183ffb7ff7a4eb5 (diff)
downloadports-11b03e21dc1f07039127847573595e2acd2d93c6.tar.gz
ports-11b03e21dc1f07039127847573595e2acd2d93c6.zip
- use PORTDOCS and PORTEXAMPLES as it should
- bump PORTREVISION Submitted by: my QA Tindy run
Notes
Notes: svn path=/head/; revision=214785
Diffstat (limited to 'textproc/p5-SGMLSpm')
-rw-r--r--textproc/p5-SGMLSpm/Makefile19
-rw-r--r--textproc/p5-SGMLSpm/files/noportexamples-patch-Makefile12
-rw-r--r--textproc/p5-SGMLSpm/pkg-plist4
3 files changed, 31 insertions, 4 deletions
diff --git a/textproc/p5-SGMLSpm/Makefile b/textproc/p5-SGMLSpm/Makefile
index 9d311d8293c3..ac118e336f1e 100644
--- a/textproc/p5-SGMLSpm/Makefile
+++ b/textproc/p5-SGMLSpm/Makefile
@@ -7,6 +7,7 @@
PORTNAME= SGMLSpm
PORTVERSION= 1.03
+PORTREVISION= 1
CATEGORIES= textproc perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= SGMLS
@@ -20,10 +21,24 @@ USE_PERL5_RUN= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
+INSTALL_TARGET= install PERL5DIR=${SITE_PERL} SPECDIR=${EXAMPLESDIR}
+
+.ifndef(NOPORTDOCS)
+PORTDOCS= *
+INSTALL_TARGET+=docs install_html HTMLDIR=${DOCSDIR}
+.endif
+.ifdef(NOPORTEXAMPLES)
+EXTRA_PATCHES= ${PATCHDIR}/noportexamples-patch-Makefile
+.endif
+
pre-su-install:
- ${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
+.ifndef(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+.endif
+.ifndef(NOPORTEXAMPLES)
+ ${MKDIR} ${EXAMPLESDIR}
+.endif
-INSTALL_TARGET= install PERL5DIR=${SITE_PERL} SPECDIR=${EXAMPLESDIR}
.ifndef(NOPORTDOCS)
PORTDOCS= *
INSTALL_TARGET+=docs install_html HTMLDIR=${DOCSDIR}
diff --git a/textproc/p5-SGMLSpm/files/noportexamples-patch-Makefile b/textproc/p5-SGMLSpm/files/noportexamples-patch-Makefile
new file mode 100644
index 000000000000..d287e721cd8c
--- /dev/null
+++ b/textproc/p5-SGMLSpm/files/noportexamples-patch-Makefile
@@ -0,0 +1,12 @@
+--- ./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/pkg-plist b/textproc/p5-SGMLSpm/pkg-plist
index 04c32289b2a7..726aba12d80d 100644
--- a/textproc/p5-SGMLSpm/pkg-plist
+++ b/textproc/p5-SGMLSpm/pkg-plist
@@ -2,6 +2,6 @@ bin/sgmlspl
%%SITE_PERL%%/SGMLS.pm
%%SITE_PERL%%/SGMLS/Output.pm
%%SITE_PERL%%/SGMLS/Refs.pm
-%%EXAMPLESDIR%%/skel.pl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/skel.pl
@dirrm %%SITE_PERL%%/SGMLS
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%