aboutsummaryrefslogtreecommitdiffstats
path: root/www/html2wml
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2014-09-03 09:47:18 +0800
committervanilla <vanilla@FreeBSD.org>2014-09-03 09:47:18 +0800
commit8830e62bb885914a7bdf1dd75fedcf920ea18ba2 (patch)
tree4f41b8c5600f847f3862caee1bf69ad7852e208a /www/html2wml
parent5d887abf601c0667fb828c43340405ab51b7356d (diff)
downloadfreebsd-ports-gnome-8830e62bb885914a7bdf1dd75fedcf920ea18ba2.tar.gz
freebsd-ports-gnome-8830e62bb885914a7bdf1dd75fedcf920ea18ba2.tar.zst
freebsd-ports-gnome-8830e62bb885914a7bdf1dd75fedcf920ea18ba2.zip
Support STAGEDIR.
PR: ports/193168 Submitted by: Ports Fury.
Diffstat (limited to 'www/html2wml')
-rw-r--r--www/html2wml/Makefile53
1 files changed, 30 insertions, 23 deletions
diff --git a/www/html2wml/Makefile b/www/html2wml/Makefile
index 7c09199b1af0..03c33c9080ea 100644
--- a/www/html2wml/Makefile
+++ b/www/html2wml/Makefile
@@ -4,25 +4,26 @@
PORTNAME= html2wml
PORTVERSION= 0.4.11
CATEGORIES= www
-MASTER_SITES= SF/htmlwml/Html2Wml/${PORTVERSION} http://maddingue.free.fr/softwares/download/Html2Wml/
+MASTER_SITES= SF/htmlwml/Html2Wml/${PORTVERSION} \
+ http://maddingue.free.fr/softwares/download/Html2Wml/
MAINTAINER= ports@FreeBSD.org
COMMENT= CGI that can do on-the-fly HTML to WML conversion
-RUN_DEPENDS= p5-libwww>=0:${PORTSDIR}/www/p5-libwww \
- p5-Text-Template>=0:${PORTSDIR}/textproc/p5-Text-Template \
- p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser
+LICENSE= GPLv2
-USES= perl5
-MAKE_ARGS= PREFIX=${PREFIX} DOCDIR=${DOCDIR}
+RUN_DEPENDS= p5-Text-Template>0:${PORTSDIR}/textproc/p5-Text-Template \
+ p5-XML-Parser>0:${PORTSDIR}/textproc/p5-XML-Parser \
+ p5-libwww>0:${PORTSDIR}/www/p5-libwww
+
+USES= perl5 shebangfix
+SHEBANG_FILES= html2wml.cgi
-PLIST_FILES= bin/html2wml
-MAN1= html2wml.1
-.if !defined(NOPORTDOCS)
PORTDOCS= *
-.endif
+PLIST_FILES= bin/html2wml man/man1/html2wml.1.gz
+
+OPTIONS_DEFINE= DOCS
-NO_STAGE= yes
do-build:
cd ${BUILD_WRKSRC}/doc; \
${LN} -sf readme.pod html2wml.pod; \
@@ -30,26 +31,32 @@ do-build:
--release=0.4.0 html2wml.pod > html2wml.man
checkconfig:
- @cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} default
-
-post-install:
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/html2wml/t/samples
+ @cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} default
+
+do-install:
+ (cd ${WRKSRC} && ${INSTALL_SCRIPT} html2wml.cgi \
+ ${STAGEDIR}${PREFIX}/bin/html2wml)
+ (cd ${WRKSRC}/doc && ${INSTALL_DATA} html2wml.man \
+ ${STAGEDIR}${MANPREFIX}/man/man1/html2wml.1)
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for D in INSTALL NEWS NOTES README TODO ChangeLog
- ${INSTALL_DATA} ${WRKSRC}/$D ${PREFIX}/share/doc/html2wml
+ (cd ${WRKSRC} && ${INSTALL_DATA} ${D} \
+ ${STAGEDIR}${DOCSDIR})
.endfor
.for D in html pdf pod txt
- ${INSTALL_DATA} ${WRKSRC}/doc/readme.$D ${PREFIX}/share/doc/html2wml
+ (cd ${WRKSRC}/doc && ${INSTALL_DATA} readme.${D} \
+ ${STAGEDIR}${DOCSDIR})
.endfor
- ${INSTALL_DATA} ${WRKSRC}/t/form.html \
- ${PREFIX}/share/doc/html2wml/t
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}/t
+ (cd ${WRKSRC}/t && ${INSTALL_DATA} form.html \
+ ${STAGEDIR}${DOCSDIR}/t)
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}/t/samples
.for D in inc_para.wml inc_prev.wml mix1.html mix2.html struct.html \
t-a.html t-anchor.html t-br.html t-double-tags.html t-extcharset.html \
t-frames.html t-img.html t-include.html t-nest.html t-no-tag.html \
t-special-chars.html t-urls.html
- ${INSTALL_DATA} ${WRKSRC}/t/samples/$D \
- ${PREFIX}/share/doc/html2wml/t/samples
+ (cd ${WRKSRC}/t/samples && ${INSTALL_DATA} ${D} \
+ ${STAGEDIR}${DOCSDIR}/t/samples)
.endfor
-.endif
.include <bsd.port.mk>