diff options
-rw-r--r-- | textproc/p5-SGMLSpm/Makefile | 19 | ||||
-rw-r--r-- | textproc/p5-SGMLSpm/files/noportexamples-patch-Makefile | 12 | ||||
-rw-r--r-- | textproc/p5-SGMLSpm/pkg-plist | 4 |
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%% |