Summary: | new port: FoilTeX - a collection of LaTeX files for making foils/slides | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Stefan Walter <sw> | ||||
Component: | Individual Port(s) | Assignee: | Greg Lewis <glewis> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | ||||||
Priority: | Normal | ||||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Stefan Walter
2003-07-11 14:10:15 UTC
Correction of the pkg-plist included in the shell archive: ***** --- pkg-plist~ Fri Jul 11 14:24:15 2003 +++ pkg-plist Fri Jul 11 18:04:21 2003 @@ -9,3 +9,6 @@ share/texmf/tex/latex/foiltex/foils.sty share/texmf/tex/latex/foiltex/foilshrt.clo share/texmf/tex/latex/foiltex/fltfonts.def +@dirrm share/doc/foiltex +@dirrm share/examples/foiltex +@dirrm share/texmf/tex/latex/foiltex ***** The distfiles seem to have moved in the meantime. To reduce work for the committer, I made a new shar file that includes the previously sent patch for pkg-plist, too. --- beginning of shar file --- # 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: # # foiltex # foiltex/Makefile # foiltex/pkg-plist # foiltex/pkg-descr # foiltex/pkg-message # foiltex/distinfo # echo c - foiltex mkdir -p foiltex > /dev/null 2>&1 echo x - foiltex/Makefile sed 's/^X//' >foiltex/Makefile << 'END-of-foiltex/Makefile' X# New ports collection makefile for: foiltex X# Date created: 11 July 2003 X# Whom: Stefan Walter <sw@gegenunendlich.de> X# X# $FreeBSD$ X# X XPORTNAME= foiltex XPORTVERSION= 2.1.4a XCATEGORIES= textproc XMASTER_SITES= ${MASTER_SITE_TEX_CTAN} XMASTER_SITE_SUBDIR= nonfree/macros/latex/contrib/${PORTNAME} XDISTFILES= foiltex.dtx foiltex.ins X XMAINTAINER= sw@gegenunendlich.de XCOMMENT= A collection of LaTeX files for making foils X XEXTRACT_DEPENDS=latex:${PORTSDIR}/print/teTeX XRUN_DEPENDS= latex:${PORTSDIR}/print/teTeX X XNO_CDROM= redistribution on a not-for-profit basis only X XNO_BUILD= yes XNO_WRKSUBDIR= yes X XEXTRACT_CMD= latex XEXTRACT_BEFORE_ARGS= #empty XEXTRACT_AFTER_ARGS= #empty X XFOIL_DIR= ${PREFIX}/share/texmf/tex/latex/${PORTNAME} XDOC_FILES= ${WRKDIR}/foiltex.dtx ${WRKDIR}/foiltex.dvi XEXAMPLE_FILES= ${WRKDIR}/sampfoil.tex XFOIL_FILES= ${WRKDIR}/foil17.clo ${WRKDIR}/foil20.clo \ X ${WRKDIR}/foil25.clo ${WRKDIR}/foil30.clo \ X ${WRKDIR}/foils.cls ${WRKDIR}/foils.sty \ X ${WRKDIR}/foilshrt.clo ${WRKDIR}/fltfonts.def X Xdo-extract: X @${MKDIR} ${WRKDIR} X @${CP} ${DISTDIR}/foiltex.ins ${WRKDIR}/foiltex.ins X @${CP} ${DISTDIR}/foiltex.dtx ${WRKDIR}/foiltex.dtx X @cd ${WRKDIR} && ${EXTRACT_CMD} foiltex.ins && \ X ${EXTRACT_CMD} foiltex.dtx && \ X ${EXTRACT_CMD} foiltex.dtx && \ X ${EXTRACT_CMD} foiltex.dtx X Xdo-install: X# install docs and example file? X.if !defined(NOPORTDOCS) X#install docs X @${MKDIR} ${DOCSDIR} X @${INSTALL_DATA} ${DOC_FILES} ${DOCSDIR} X# install example file X @${MKDIR} ${EXAMPLESDIR} X @${INSTALL_DATA} ${EXAMPLE_FILES} ${EXAMPLESDIR} X.endif X# install data files X @${MKDIR} ${FOIL_DIR} X @${INSTALL_DATA} ${FOIL_FILES} ${FOIL_DIR} X Xpost-install: X @${CAT} ${PKGMESSAGE} | ${SED} -e "s,%%PREFIX%%,${PREFIX},g" X X.include <bsd.port.mk> END-of-foiltex/Makefile echo x - foiltex/pkg-plist sed 's/^X//' >foiltex/pkg-plist << 'END-of-foiltex/pkg-plist' Xshare/doc/foiltex/foiltex.dtx Xshare/doc/foiltex/foiltex.dvi Xshare/examples/foiltex/sampfoil.tex Xshare/texmf/tex/latex/foiltex/foil17.clo Xshare/texmf/tex/latex/foiltex/foil20.clo Xshare/texmf/tex/latex/foiltex/foil25.clo Xshare/texmf/tex/latex/foiltex/foil30.clo Xshare/texmf/tex/latex/foiltex/foils.cls Xshare/texmf/tex/latex/foiltex/foils.sty Xshare/texmf/tex/latex/foiltex/foilshrt.clo Xshare/texmf/tex/latex/foiltex/fltfonts.def X@dirrm share/doc/foiltex X@dirrm share/examples/foiltex X@dirrm share/texmf/tex/latex/foiltex END-of-foiltex/pkg-plist echo x - foiltex/pkg-descr sed 's/^X//' >foiltex/pkg-descr << 'END-of-foiltex/pkg-descr' X"The FoilTeX is a collection of LaTeX files for making foils. A number Xof features are built-in including large sans serif font as normal font, Xoptions for setting normalsize at 20pt (default), 17pt, 25pt or 30pt, Xnew macros for starting new foils, for special environments like Theorem Xand Proof, simple macros to control the headline and footline." X XWWW: http://www.ctan.org/tex-archive/nonfree/macros/latex/contrib/foiltex/ END-of-foiltex/pkg-descr echo x - foiltex/pkg-message sed 's/^X//' >foiltex/pkg-message << 'END-of-foiltex/pkg-message' X********************************************* XStyle files have been installed to X%%PREFIX%%/share/texmf/tex/latex/foiltex. XYou will probably need to update the content Xcache (e.g. by running 'mktexlsr') before you Xcan use these files. X********************************************* END-of-foiltex/pkg-message echo x - foiltex/distinfo sed 's/^X//' >foiltex/distinfo << 'END-of-foiltex/distinfo' XMD5 (foiltex.dtx) = 52be74b74f9bd3a7c14b64abe013ff0b XMD5 (foiltex.ins) = a3a0a5fd301af99b54289db83a881982 END-of-foiltex/distinfo exit --- end of shar file --- Greg Lewis suggested a few changes, so I made another one. Changes: - use a do-build target instead of do-extract - 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 --- beginning of foiltex.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: # # foiltex/ # foiltex/pkg-message # foiltex/Makefile # foiltex/pkg-plist # foiltex/pkg-descr # foiltex/distinfo # echo c - foiltex/ mkdir -p foiltex/ > /dev/null 2>&1 echo x - foiltex/pkg-message sed 's/^X//' >foiltex/pkg-message << 'END-of-foiltex/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-foiltex/pkg-message echo x - foiltex/Makefile sed 's/^X//' >foiltex/Makefile << 'END-of-foiltex/Makefile' X# New ports collection makefile for: foiltex X# Date created: 05 November 2003 X# Whom: Stefan Walter <sw@gegenunendlich.de> X# X# $FreeBSD$ X# X XPORTNAME= foiltex XPORTVERSION= 2.1.4a XCATEGORIES= textproc XMASTER_SITES= ${MASTER_SITE_TEX_CTAN} XMASTER_SITE_SUBDIR= nonfree/macros/latex/contrib/${PORTNAME} XDISTFILES= foiltex.dtx foiltex.ins XEXTRACT_ONLY= # empty X XMAINTAINER= sw@gegenunendlich.de XCOMMENT= A collection of LaTeX files for making foils X XEXTRACT_DEPENDS=latex:${PORTSDIR}/print/teTeX XRUN_DEPENDS= latex:${PORTSDIR}/print/teTeX X XNO_CDROM= redistribution on a not-for-profit basis only X XNO_WRKSUBDIR= yes X XLATEX_CMD= ${LOCALBASE}/bin/latex X XFOIL_DIR= ${PREFIX}/share/texmf/tex/latex/${PORTNAME} XDOC_FILES= ${WRKDIR}/foiltex.dtx ${WRKDIR}/foiltex.dvi XEXAMPLE_FILES= ${WRKDIR}/sampfoil.tex XFOIL_FILES= ${WRKDIR}/foil17.clo ${WRKDIR}/foil20.clo \ X ${WRKDIR}/foil25.clo ${WRKDIR}/foil30.clo \ X ${WRKDIR}/foils.cls ${WRKDIR}/foils.sty \ X ${WRKDIR}/foilshrt.clo ${WRKDIR}/fltfonts.def XPLIST_SUB= FOIL_DIR="${FOIL_DIR:S,^${PREFIX}/,,}" X Xdo-build: X @${CP} ${DISTDIR}/foiltex.ins ${WRKDIR}/foiltex.ins X @${CP} ${DISTDIR}/foiltex.dtx ${WRKDIR}/foiltex.dtx X @cd ${WRKDIR} && ${LATEX_CMD} foiltex.ins && \ X ${LATEX_CMD} foiltex.dtx && \ X ${LATEX_CMD} foiltex.dtx && \ X ${LATEX_CMD} foiltex.dtx X Xdo-install: X# install docs and example file? X.if !defined(NOPORTDOCS) X# install docs... X @${MKDIR} ${DOCSDIR} X @${INSTALL_DATA} ${DOC_FILES} ${DOCSDIR} X# ...and examples X @${MKDIR} ${EXAMPLESDIR} X @${INSTALL_DATA} ${EXAMPLE_FILES} ${EXAMPLESDIR} X.endif X# install data files X @${MKDIR} ${FOIL_DIR} X @${INSTALL_DATA} ${FOIL_FILES} ${FOIL_DIR} X Xpost-install: X @${LOCALBASE}/bin/mktexlsr X X.include <bsd.port.mk> END-of-foiltex/Makefile echo x - foiltex/pkg-plist sed 's/^X//' >foiltex/pkg-plist << 'END-of-foiltex/pkg-plist' X%%PORTDOCS%%%%DOCSDIR%%/foiltex.dtx X%%PORTDOCS%%%%DOCSDIR%%/foiltex.dvi X%%PORTDOCS%%%%EXAMPLESDIR%%/sampfoil.tex X%%FOIL_DIR%%/foil17.clo X%%FOIL_DIR%%/foil20.clo X%%FOIL_DIR%%/foil25.clo X%%FOIL_DIR%%/foil30.clo X%%FOIL_DIR%%/foils.cls X%%FOIL_DIR%%/foils.sty X%%FOIL_DIR%%/foilshrt.clo X%%FOIL_DIR%%/fltfonts.def X%%PORTDOCS%%@dirrm %%DOCSDIR%% X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% X@dirrm %%FOIL_DIR%% END-of-foiltex/pkg-plist echo x - foiltex/pkg-descr sed 's/^X//' >foiltex/pkg-descr << 'END-of-foiltex/pkg-descr' X"The FoilTeX is a collection of LaTeX files for making foils. A number Xof features are built-in including large sans serif font as normal font, Xoptions for setting normalsize at 20pt (default), 17pt, 25pt or 30pt, Xnew macros for starting new foils, for special environments like Theorem Xand Proof, simple macros to control the headline and footline." X XWWW: http://www.ctan.org/tex-archive/nonfree/macros/latex/contrib/foiltex/ END-of-foiltex/pkg-descr echo x - foiltex/distinfo sed 's/^X//' >foiltex/distinfo << 'END-of-foiltex/distinfo' XMD5 (foiltex.dtx) = 52be74b74f9bd3a7c14b64abe013ff0b XMD5 (foiltex.ins) = a3a0a5fd301af99b54289db83a881982 END-of-foiltex/distinfo exit --- end of foiltex.shar --- I hope these are the last changes. This patch is against the last shar I sent. Changes: - Create a pkg-install script for automatic execution of mktexlsr when installing via pkg_add - Call that script from the post-install target - Remove the obsolete pkg-message --- beginning of foiltex-final.patch --- diff -urN foiltex.alt/Makefile foiltex/Makefile --- foiltex.alt/Makefile Fri Nov 7 10:46:20 2003 +++ foiltex/Makefile Fri Nov 7 10:44:34 2003 @@ -1,5 +1,5 @@ # New ports collection makefile for: foiltex -# Date created: 05 November 2003 +# Date created: 07 November 2003 # Whom: Stefan Walter <sw@gegenunendlich.de> # # $FreeBSD$ @@ -57,6 +57,7 @@ @${INSTALL_DATA} ${FOIL_FILES} ${FOIL_DIR} post-install: - @${LOCALBASE}/bin/mktexlsr + ${SETENV} LOCALBASE=${LOCALBASE} ${SH} ${PKGDIR}/pkg-install \ + ${PKGNAME} POST-INSTALL .include <bsd.port.mk> diff -urN foiltex.alt/pkg-install foiltex/pkg-install --- foiltex.alt/pkg-install Thu Jan 1 01:00:00 1970 +++ foiltex/pkg-install Fri Nov 7 10:39:46 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 foiltex.alt/pkg-message foiltex/pkg-message --- foiltex.alt/pkg-message Fri Nov 7 10:46:20 2003 +++ foiltex/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 foiltex-final.patch --- Responsible Changed From-To: freebsd-ports-bugs->glewis I'll take this. State Changed From-To: open->closed Committed, thanks! |