summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/bacon/Makefile20
-rw-r--r--www/bacon/pkg-message2
-rw-r--r--www/bacon/pkg-plist6
3 files changed, 15 insertions, 13 deletions
diff --git a/www/bacon/Makefile b/www/bacon/Makefile
index 9bea708fdae5..18d73a92dd3c 100644
--- a/www/bacon/Makefile
+++ b/www/bacon/Makefile
@@ -12,22 +12,22 @@ MASTER_SITES= ftp://samurai.ruin.org/pub/All/
MAINTAINER= jmrobins@samurai.ruin.org
-USE_PERL5= YES
+USE_PERL5= yes
+NO_BUILD= yes
-DIST= bacon.pl
-
-do-build:
- @cd ${WRKSRC}; ${MV} ${DIST} ${DIST}.orig; \
- ${SED} -e 's;^#! */usr/local/bin/perl *;#!${PERL5};' \
- ${DIST}.orig > ${DIST}
+pre-patch:
+ @${PERL} -pi.orig -e 's|${LOCALBASE}/bin/perl|${PERL}|' \
+ ${WRKSRC}/bacon.pl
do-install:
${MKDIR} ${PREFIX}/www/cgi-bin
${INSTALL_SCRIPT} ${WRKSRC}/bacon.pl ${PREFIX}/www/cgi-bin/bacon.pl
post-install:
- ${MKDIR} ${PREFIX}/share/doc/bacon/
- ${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/bacon/INSTALL
- @${CAT} ${PKGMESSAGE}
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
+.endif
+ @${SED} -e "s|INSTALL|${DOCSDIR}/INSTALL|" ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/www/bacon/pkg-message b/www/bacon/pkg-message
index a70497e1ef83..9250a9888e9c 100644
--- a/www/bacon/pkg-message
+++ b/www/bacon/pkg-message
@@ -1,6 +1,6 @@
---------------------------------------------------------------------
-Please read the ${PREFIX}/share/doc/bacon/INSTALL file for info on
+Please read the INSTALL file for info on
configuring this program."
---------------------------------------------------------------------
diff --git a/www/bacon/pkg-plist b/www/bacon/pkg-plist
index 74eddef3a63e..684e67c3a29a 100644
--- a/www/bacon/pkg-plist
+++ b/www/bacon/pkg-plist
@@ -1,3 +1,5 @@
www/cgi-bin/bacon.pl
-share/doc/bacon/INSTALL
-@dirrm share/doc/bacon
+%%PORTDOCS%%share/doc/bacon/INSTALL
+%%PORTDOCS%%@dirrm share/doc/bacon
+@unexec rmdir %D/www/cgi-bin 2>/dev/null || true
+@unexec rmdir %D/www 2>/dev/null || true