ports/54335: new port: PPower4 - Post processor for PDF presentations made with (La)TeX

Stefan Walter sw at gegenunendlich.de
Thu Nov 6 16:29:10 UTC 2003


Greg Lewis suggested a few changes, so I made a new one.
Changes:
- use %%VARIABLES%% in pkg-plist
- run mktexlsr in post-install instead of telling the user to do so; it
  still has to be done manually when installing via pkg_add, thus the
  pkg-message
- install the JAR file in $JAVAJARDIR

--- beginning of ppower4.shar ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	ppower4/
#	ppower4/files
#	ppower4/files/ppower4
#	ppower4/distinfo
#	ppower4/Makefile
#	ppower4/pkg-plist
#	ppower4/pkg-descr
#	ppower4/pkg-message
#
echo c - ppower4/
mkdir -p ppower4/ > /dev/null 2>&1
echo c - ppower4/files
mkdir -p ppower4/files > /dev/null 2>&1
echo x - ppower4/files/ppower4
sed 's/^X//' >ppower4/files/ppower4 << 'END-of-ppower4/files/ppower4'
X#!/bin/sh
XJAVAVM_CALL="%%JAVAVM%%"
XJARFILE="%%JARFILE%%"
X${JAVAVM_CALL} -jar ${JARFILE} "$@"
END-of-ppower4/files/ppower4
echo x - ppower4/distinfo
sed 's/^X//' >ppower4/distinfo << 'END-of-ppower4/distinfo'
XMD5 (ppower4/leveldemo.zip) = 4e38e76e4b8a1c09e1231178a54601e4
XMD5 (ppower4/manual.pdf) = 602490b84e0bbd4ee2cda14f2c6f17c0
XMD5 (ppower4/pp4p.jar) = 19e6256c2c89a029859a89c91684e098
XMD5 (ppower4/pp4sty.zip) = 593e5d058fe9e3c77548dc7c5b0a37f6
END-of-ppower4/distinfo
echo x - ppower4/Makefile
sed 's/^X//' >ppower4/Makefile << 'END-of-ppower4/Makefile'
X# New ports collection makefile for:	ppower4
X# Date created:		10 July 2003
X# Whom:			Stefan Walter <sw at gegenunendlich.de>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	ppower4
XPORTVERSION=	0.9.4
XCATEGORIES=	textproc java
XMASTER_SITES=	http://www-sp.iti.informatik.tu-darmstadt.de/software/ppower4/
XDISTFILES=	pp4sty.zip pp4p.jar manual.pdf leveldemo.zip
XDIST_SUBDIR=	${PORTNAME}
XEXTRACT_ONLY=	pp4sty.zip leveldemo.zip
X
XMAINTAINER=	sw at gegenunendlich.de
XCOMMENT=	Post processor for PDF presentations made with (La)TeX
X
XRUN_DEPENDS=	latex:${PORTSDIR}/print/teTeX
X
XUSE_ZIP=	yes
XUSE_JAVA=	1.3+
XNO_BUILD=	yes
XNO_BUILD_DEPENDS_JAVA=	yes
XNO_WRKSUBDIR=	yes
X
XJAR_DIR=	${JAVAJARDIR}/${PORTNAME}
XSTY_DIR=	${PREFIX}/share/texmf/tex/latex/${PORTNAME}
XSTY_FILES=	${WRKDIR}/pause.sty ${WRKDIR}/background.sty \
X		${WRKDIR}/pp4link.sty ${WRKDIR}/mpmulti.sty
XEXAMPLE_FILES=	${WRKDIR}/leveldemo.tex
X.for i in 1 2 3 4 5 6 7
XEXAMPLE_FILES+=	${WRKDIR}/example.${i}
X.endfor
XPLIST_SUB=	STY_DIR="${STY_DIR:S,^${PREFIX}/,,}" \
X		JAR_DIR="${JAR_DIR:S,^${PREFIX}/,,}"
X
Xpost-patch:
X# prepare wrapper script
X	@${SED} -e "s,%%JAVAVM%%,${LOCALBASE}/bin/javavm,; \
X		s,%%JARFILE%%,${JAR_DIR}/pp4p.jar," \
X		${FILESDIR}/ppower4 > ${WRKDIR}/ppower4
X
Xdo-install:
X# install docs?
X.if !defined(NOPORTDOCS)
X# install docs...
X	@${MKDIR} ${DOCSDIR}
X	@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/manual.pdf ${DOCSDIR}
X# ...and the examples, too!
X	@${MKDIR} ${EXAMPLESDIR}
X	@${INSTALL_DATA} ${EXAMPLE_FILES} ${EXAMPLESDIR}
X.endif
X# install data files
X	@${MKDIR} ${STY_DIR}
X	@${INSTALL_DATA} ${STY_FILES} ${STY_DIR}
X	@${MKDIR} ${JAR_DIR}
X	@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/pp4p.jar ${JAR_DIR}
X# install wrapper script
X	@${INSTALL_SCRIPT} ${WRKDIR}/ppower4 ${PREFIX}/bin/ppower4
X
Xpost-install:
X	@${LOCALBASE}/bin/mktexlsr
X
X.include <bsd.port.mk>
END-of-ppower4/Makefile
echo x - ppower4/pkg-plist
sed 's/^X//' >ppower4/pkg-plist << 'END-of-ppower4/pkg-plist'
Xbin/ppower4
X%%PORTDOCS%%%%DOCSDIR%%/manual.pdf
X%%PORTDOCS%%%%EXAMPLESDIR%%/leveldemo.tex
X%%PORTDOCS%%%%EXAMPLESDIR%%/example.1
X%%PORTDOCS%%%%EXAMPLESDIR%%/example.2
X%%PORTDOCS%%%%EXAMPLESDIR%%/example.3
X%%PORTDOCS%%%%EXAMPLESDIR%%/example.4
X%%PORTDOCS%%%%EXAMPLESDIR%%/example.5
X%%PORTDOCS%%%%EXAMPLESDIR%%/example.6
X%%PORTDOCS%%%%EXAMPLESDIR%%/example.7
X%%JAR_DIR%%/pp4p.jar
X%%STY_DIR%%/pause.sty
X%%STY_DIR%%/background.sty
X%%STY_DIR%%/pp4link.sty
X%%STY_DIR%%/mpmulti.sty
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
X at dirrm %%JAR_DIR%%
X at dirrm %%STY_DIR%%
END-of-ppower4/pkg-plist
echo x - ppower4/pkg-descr
sed 's/^X//' >ppower4/pkg-descr << 'END-of-ppower4/pkg-descr'
X"PPower4 is used to post process presentations in PDF format which were
Xprepared using (La)TeX  to add dynamic effects. The PDF files can be
Xcreated with pdf(la)tex, v(la)tex or with standard LaTeX and then
Xconverted to PDF with dvipdfm."
X
XWWW: http://www-sp.iti.informatik.tu-darmstadt.de/software/ppower4/
END-of-ppower4/pkg-descr
echo x - ppower4/pkg-message
sed 's/^X//' >ppower4/pkg-message << 'END-of-ppower4/pkg-message'
X*********************************************
XYou will probably need to update the content
Xcache (e.g. by running 'mktexlsr') before you
Xcan use the style files of this package.
X*********************************************
END-of-ppower4/pkg-message
exit
--- end of ppower4.shar ---



More information about the freebsd-ports-bugs mailing list