diff options
author | glewis <glewis@FreeBSD.org> | 2003-11-11 03:40:17 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2003-11-11 03:40:17 +0800 |
commit | fc5448206b0263ffed71d672864d33c5cc7c7e8b (patch) | |
tree | 4cd73b4206c50afb6feda77476f914bb30637845 /textproc/ppower4 | |
parent | 455cb55cd4a643d067f03e4e93053b7fd3bef480 (diff) | |
download | freebsd-ports-gnome-fc5448206b0263ffed71d672864d33c5cc7c7e8b.tar.gz freebsd-ports-gnome-fc5448206b0263ffed71d672864d33c5cc7c7e8b.tar.zst freebsd-ports-gnome-fc5448206b0263ffed71d672864d33c5cc7c7e8b.zip |
. Add port of PPower4:
PPower4 is used to post process presentations in PDF format which were
prepared using (La)TeX to add dynamic effects. The PDF files can be
created with pdf(la)tex, v(la)tex or with standard LaTeX and then
converted to PDF with dvipdfm.
WWW: http://www-sp.iti.informatik.tu-darmstadt.de/software/ppower4/
PR: 54335
Submitted by: Stefan Walter <sw@gegenunendlich.de>
Diffstat (limited to 'textproc/ppower4')
-rw-r--r-- | textproc/ppower4/Makefile | 66 | ||||
-rw-r--r-- | textproc/ppower4/distinfo | 4 | ||||
-rw-r--r-- | textproc/ppower4/files/ppower4 | 4 | ||||
-rw-r--r-- | textproc/ppower4/pkg-descr | 6 | ||||
-rw-r--r-- | textproc/ppower4/pkg-install | 14 | ||||
-rw-r--r-- | textproc/ppower4/pkg-plist | 19 |
6 files changed, 113 insertions, 0 deletions
diff --git a/textproc/ppower4/Makefile b/textproc/ppower4/Makefile new file mode 100644 index 000000000000..c50c82c0b9e4 --- /dev/null +++ b/textproc/ppower4/Makefile @@ -0,0 +1,66 @@ +# New ports collection makefile for: ppower4 +# Date created: 07 November 2003 +# Whom: Stefan Walter <sw@gegenunendlich.de> +# +# $FreeBSD$ +# + +PORTNAME= ppower4 +PORTVERSION= 0.9.4 +CATEGORIES= textproc java +MASTER_SITES= http://www-sp.iti.informatik.tu-darmstadt.de/software/ppower4/ +DISTFILES= pp4sty.zip pp4p.jar manual.pdf leveldemo.zip +DIST_SUBDIR= ${PORTNAME} +EXTRACT_ONLY= pp4sty.zip leveldemo.zip + +MAINTAINER= sw@gegenunendlich.de +COMMENT= Post processor for PDF presentations made with (La)TeX + +RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX + +USE_ZIP= yes +USE_JAVA= 1.3+ +NO_BUILD= yes +NO_BUILD_DEPENDS_JAVA= yes +NO_WRKSUBDIR= yes + +JAR_DIR= ${JAVAJARDIR}/${PORTNAME} +STY_DIR= ${PREFIX}/share/texmf/tex/latex/${PORTNAME} +STY_FILES= ${WRKDIR}/pause.sty ${WRKDIR}/background.sty \ + ${WRKDIR}/pp4link.sty ${WRKDIR}/mpmulti.sty +EXAMPLE_FILES= ${WRKDIR}/leveldemo.tex +.for i in 1 2 3 4 5 6 7 +EXAMPLE_FILES+= ${WRKDIR}/example.${i} +.endfor +PLIST_SUB= STY_DIR="${STY_DIR:S,^${PREFIX}/,,}" \ + JAR_DIR="${JAR_DIR:S,^${PREFIX}/,,}" + +post-patch: +# prepare wrapper script + @${SED} -e "s,%%JAVAVM%%,${LOCALBASE}/bin/javavm,; \ + s,%%JARFILE%%,${JAR_DIR}/pp4p.jar," \ + ${FILESDIR}/ppower4 > ${WRKDIR}/ppower4 + +do-install: +# install docs? +.if !defined(NOPORTDOCS) +# install docs... + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/manual.pdf ${DOCSDIR} +# ...and the examples, too! + @${MKDIR} ${EXAMPLESDIR} + @${INSTALL_DATA} ${EXAMPLE_FILES} ${EXAMPLESDIR} +.endif +# install data files + @${MKDIR} ${STY_DIR} + @${INSTALL_DATA} ${STY_FILES} ${STY_DIR} + @${MKDIR} ${JAR_DIR} + @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/pp4p.jar ${JAR_DIR} +# install wrapper script + @${INSTALL_SCRIPT} ${WRKDIR}/ppower4 ${PREFIX}/bin/ppower4 + +post-install: + ${SETENV} LOCALBASE=${LOCALBASE} ${SH} ${PKGDIR}/pkg-install \ + ${PKGNAME} POST-INSTALL + +.include <bsd.port.mk> diff --git a/textproc/ppower4/distinfo b/textproc/ppower4/distinfo new file mode 100644 index 000000000000..4c4ae7644922 --- /dev/null +++ b/textproc/ppower4/distinfo @@ -0,0 +1,4 @@ +MD5 (ppower4/leveldemo.zip) = 4e38e76e4b8a1c09e1231178a54601e4 +MD5 (ppower4/manual.pdf) = 602490b84e0bbd4ee2cda14f2c6f17c0 +MD5 (ppower4/pp4p.jar) = 19e6256c2c89a029859a89c91684e098 +MD5 (ppower4/pp4sty.zip) = 593e5d058fe9e3c77548dc7c5b0a37f6 diff --git a/textproc/ppower4/files/ppower4 b/textproc/ppower4/files/ppower4 new file mode 100644 index 000000000000..9ea832a64f41 --- /dev/null +++ b/textproc/ppower4/files/ppower4 @@ -0,0 +1,4 @@ +#!/bin/sh +JAVAVM_CALL="%%JAVAVM%%" +JARFILE="%%JARFILE%%" +${JAVAVM_CALL} -jar ${JARFILE} "$@" diff --git a/textproc/ppower4/pkg-descr b/textproc/ppower4/pkg-descr new file mode 100644 index 000000000000..313940270701 --- /dev/null +++ b/textproc/ppower4/pkg-descr @@ -0,0 +1,6 @@ +PPower4 is used to post process presentations in PDF format which were +prepared using (La)TeX to add dynamic effects. The PDF files can be +created with pdf(la)tex, v(la)tex or with standard LaTeX and then +converted to PDF with dvipdfm. + +WWW: http://www-sp.iti.informatik.tu-darmstadt.de/software/ppower4/ diff --git a/textproc/ppower4/pkg-install b/textproc/ppower4/pkg-install new file mode 100644 index 000000000000..a97a81c62211 --- /dev/null +++ b/textproc/ppower4/pkg-install @@ -0,0 +1,14 @@ +#!/bin/sh + +[ -z "${LOCALBASE}" ] && LOCALBASE=/usr/local + +if [ "$2" = "POST-INSTALL" ]; then + echo "Updating content cache to let LaTeX know about the new style files:" + if [ -x ${LOCALBASE}/bin/mktexlsr ]; then + ${LOCALBASE}/bin/mktexlsr + else + echo "Could not find mktexlsr. Please run it manually to update" + echo "LaTeX's content cache, or you won't be able to use the" + echo "new style files." + fi +fi diff --git a/textproc/ppower4/pkg-plist b/textproc/ppower4/pkg-plist new file mode 100644 index 000000000000..361bb081a4e9 --- /dev/null +++ b/textproc/ppower4/pkg-plist @@ -0,0 +1,19 @@ +bin/ppower4 +%%PORTDOCS%%%%DOCSDIR%%/manual.pdf +%%PORTDOCS%%%%EXAMPLESDIR%%/leveldemo.tex +%%PORTDOCS%%%%EXAMPLESDIR%%/example.1 +%%PORTDOCS%%%%EXAMPLESDIR%%/example.2 +%%PORTDOCS%%%%EXAMPLESDIR%%/example.3 +%%PORTDOCS%%%%EXAMPLESDIR%%/example.4 +%%PORTDOCS%%%%EXAMPLESDIR%%/example.5 +%%PORTDOCS%%%%EXAMPLESDIR%%/example.6 +%%PORTDOCS%%%%EXAMPLESDIR%%/example.7 +%%JAR_DIR%%/pp4p.jar +%%STY_DIR%%/pause.sty +%%STY_DIR%%/background.sty +%%STY_DIR%%/pp4link.sty +%%STY_DIR%%/mpmulti.sty +%%PORTDOCS%%@dirrm %%DOCSDIR%% +%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% +@dirrm %%JAR_DIR%% +@dirrm %%STY_DIR%% |