Bug 54335 - new port: PPower4 - Post processor for PDF presentations made with (La)TeX
Summary: new port: PPower4 - Post processor for PDF presentations made with (La)TeX
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Greg Lewis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-10 20:40 UTC by Stefan Walter
Modified: 2003-11-10 19:44 UTC (History)
0 users

See Also:


Attachments
file.shar (4.85 KB, text/plain)
2003-07-10 20:40 UTC, Stefan Walter
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Walter 2003-07-10 20:40:17 UTC
	This is a port for PPower4, a post processor for PDF presentations
	made with LaTeX, used to add dynamic effects.
	It's written in Java and comes with some style files.

How-To-Repeat: 	Install the port.
Comment 1 Stefan Walter 2003-11-06 16:29:05 UTC
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@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@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@dirrm %%JAR_DIR%%
X@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 ---
Comment 2 Stefan Walter 2003-11-07 10:07:14 UTC
As with the foiltex port - I hope this is the final version. Changes:
- Add a pkg-install script for automatic execution of mktexlsr when
  installing via pkg_add
- Call that script from post-install
- Remove the obsolete pkg-message

--- beginning of ppower4-final.patch ---
diff -urN ppower4.alt/Makefile ppower4/Makefile
--- ppower4.alt/Makefile	Fri Nov  7 10:48:58 2003
+++ ppower4/Makefile	Fri Nov  7 10:52:40 2003
@@ -1,5 +1,5 @@
 # New ports collection makefile for:	ppower4
-# Date created:		10 July 2003
+# Date created:		07 November 2003
 # Whom:			Stefan Walter <sw@gegenunendlich.de>
 #
 # $FreeBSD$
@@ -60,6 +60,7 @@
 	@${INSTALL_SCRIPT} ${WRKDIR}/ppower4 ${PREFIX}/bin/ppower4
 
 post-install:
-	@${LOCALBASE}/bin/mktexlsr
+	${SETENV} LOCALBASE=${LOCALBASE} ${SH} ${PKGDIR}/pkg-install \
+		${PKGNAME} POST-INSTALL
 
 .include <bsd.port.mk>
diff -urN ppower4.alt/pkg-install ppower4/pkg-install
--- ppower4.alt/pkg-install	Thu Jan  1 01:00:00 1970
+++ ppower4/pkg-install	Fri Nov  7 10:49:11 2003
@@ -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 -urN ppower4.alt/pkg-message ppower4/pkg-message
--- ppower4.alt/pkg-message	Fri Nov  7 10:48:58 2003
+++ ppower4/pkg-message	Thu Jan  1 01:00:00 1970
@@ -1,5 +0,0 @@
-*********************************************
-You will probably need to update the content
-cache (e.g. by running 'mktexlsr') before you
-can use the style files of this package.
-*********************************************
--- end of ppower4-final.patch ---
Comment 3 Greg Lewis freebsd_committer freebsd_triage 2003-11-07 22:06:30 UTC
Responsible Changed
From-To: freebsd-ports-bugs->glewis

I'll take this.
Comment 4 Greg Lewis freebsd_committer freebsd_triage 2003-11-10 19:44:30 UTC
State Changed
From-To: open->closed

Committed, thanks!