aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/s5
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-11-19 15:42:41 +0800
committerbapt <bapt@FreeBSD.org>2013-11-19 15:42:41 +0800
commitde9200bc01cd9ef17feb7767e7d37d75fab80f84 (patch)
treebc51861eca74afe2aa615c07a66f7c51f3b3f8cc /textproc/s5
parentf08079d3dd06953166a1808bde1ce483da32c485 (diff)
downloadfreebsd-ports-gnome-de9200bc01cd9ef17feb7767e7d37d75fab80f84.tar.gz
freebsd-ports-gnome-de9200bc01cd9ef17feb7767e7d37d75fab80f84.tar.zst
freebsd-ports-gnome-de9200bc01cd9ef17feb7767e7d37d75fab80f84.zip
Convert from USE_DOS2UNIX to USES=dos2unix
While here: - support stage, - use bsdtar to extract when supported. - Cleanup
Diffstat (limited to 'textproc/s5')
-rw-r--r--textproc/s5/Makefile20
-rw-r--r--textproc/s5/pkg-plist1
2 files changed, 9 insertions, 12 deletions
diff --git a/textproc/s5/Makefile b/textproc/s5/Makefile
index 7f7a951aa6ff..9a3389cfc533 100644
--- a/textproc/s5/Makefile
+++ b/textproc/s5/Makefile
@@ -7,36 +7,32 @@ PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= http://meyerweb.com/eric/tools/s5/v/${PORTVERSION}/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}
+EXTRACT_SUFX= .zip
MAINTAINER= ports@FreeBSD.org
-COMMENT= A simple HTML-based presentation system
+COMMENT= Simple HTML-based presentation system
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
-USE_DOS2UNIX= yes
+USES= dos2unix
DOS2UNIX_REGEX= .*\.(css|htc|html|js|txt)
-USE_ZIP= yes
WRKSRC= ${WRKDIR}
NO_BUILD= yes
-MAN1= s5.1
-MANCOMPRESSED= no
-
S5_DIR= ${PREFIX}/share/${PORTNAME}
S5_SUBDIRS= pix primer s5-blank ui
-NO_STAGE= yes
post-extract:
- cd ${WRKSRC} && ${UNZIP_CMD} s5-blank.zip
+ cd ${WRKSRC} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} s5-blank.zip ${EXTRACT_AFTER_ARGS}
${SED} -e "s,/usr/local,${PREFIX}," ${FILESDIR}/s5.sh > ${WRKDIR}/s5
${SED} -e "s,/usr/local,${PREFIX}," ${FILESDIR}/s5.1 > ${WRKDIR}/s5.1
${FIND} ${WRKDIR} -type f -name .DS_Store -delete
do-install:
- ${MKDIR} ${S5_DIR}
+ ${MKDIR} ${STAGEDIR}${S5_DIR}
(cd ${WRKDIR} && \
- ${COPYTREE_SHARE} "*.html ${S5_SUBDIRS}" ${S5_DIR})
- ${INSTALL_SCRIPT} ${WRKDIR}/s5 ${PREFIX}/bin/s5
- ${INSTALL_DATA} ${WRKDIR}/s5.1 ${PREFIX}/man/man1/s5.1
+ ${COPYTREE_SHARE} "*.html ${S5_SUBDIRS}" ${STAGEDIR}${S5_DIR})
+ ${INSTALL_SCRIPT} ${WRKDIR}/s5 ${STAGEDIR}${PREFIX}/bin/s5
+ ${INSTALL_DATA} ${WRKDIR}/s5.1 ${STAGEDIR}${PREFIX}/man/man1/s5.1
.include <bsd.port.mk>
diff --git a/textproc/s5/pkg-plist b/textproc/s5/pkg-plist
index 71daf8b41129..a83aea61b01c 100644
--- a/textproc/s5/pkg-plist
+++ b/textproc/s5/pkg-plist
@@ -58,6 +58,7 @@ bin/s5
%%DATADIR%%/s5-blank/ui/default/s5-core.css
%%DATADIR%%/s5-blank/ui/default/slides.css
%%DATADIR%%/s5-blank/ui/default/slides.js
+man/man1/s5.1.gz
@dirrm %%DATADIR%%/pix
@dirrm %%DATADIR%%/primer
@dirrm %%DATADIR%%/s5-blank/ui/default