Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 May 2013 08:02:48 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r318654 - in head/print/passivetex: . files
Message-ID:  <201305210802.r4L82mB0082667@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hrs
Date: Tue May 21 08:02:48 2013
New Revision: 318654
URL: http://svnweb.freebsd.org/changeset/ports/318654

Log:
  - Trim old-style header.
  - Update MASTER_SITES.
  - Set USE_TEX.
  - Use OPTIONS_DEFINE.

Added:
  head/print/passivetex/files/
  head/print/passivetex/files/pkg-message.in
     - copied unchanged from r317144, head/print/passivetex/pkg-message
Deleted:
  head/print/passivetex/pkg-message
Modified:
  head/print/passivetex/Makefile
  head/print/passivetex/pkg-descr
  head/print/passivetex/pkg-plist

Modified: head/print/passivetex/Makefile
==============================================================================
--- head/print/passivetex/Makefile	Tue May 21 07:52:14 2013	(r318653)
+++ head/print/passivetex/Makefile	Tue May 21 08:02:48 2013	(r318654)
@@ -1,50 +1,31 @@
-# New ports collection makefile for:    passivetex
-# Date created:         9 May 2002
-# Whom:                 Nik Clayton <nik@FreeBSD.org>
-#
+# Created by: Nik Clayton <nik@FreeBSD.org>
 # $FreeBSD$
-#
 
 PORTNAME=	passivetex
 PORTVERSION=	1.24
-PORTREVISION=	6
+PORTREVISION=	7
 CATEGORIES=	print
-MASTER_SITES=	http://www.tei-c.org/Software/passivetex/
+MASTER_SITES=	http://projects.oucs.ox.ac.uk/passivetex/
 DISTNAME=	${PORTNAME}
 DIST_SUBDIR=	${PORTNAME}
 
 MAINTAINER=	hrs@FreeBSD.org
 COMMENT=	XSL FO processor, written in TeX
 
-BUILD_DEPENDS=	${LOCALBASE}/${TEXMFLOCAL}/web2c/xmltex.fmt:${PORTSDIR}/print/xmltex \
-		${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal
-RUN_DEPENDS:=	${BUILD_DEPENDS}
-
 NO_BUILD=	yes
 USE_ZIP=	yes
+USE_TEX=	tetex xmltex texhash
+TEXHASHDIRS=	${TEXMFDIR}
 WRKSRC=		${WRKDIR}/passivetex
-MAKE_ENV=	TEXMFCNF=${FILESDIR}:${LOCALBASE}/share/texmf/web2c
-
-MESSAGE=	${PKGDIR}/pkg-message
+MAKE_ENV=	TEXMFCNF=${FILESDIR}:${LOCALBASE}/${TEXMFDIR}/web2c
+SUB_FILES=	pkg-message
+SUB_LIST=	TEXMFDIR=${TEXMFDIR}
+PLIST_SUB=	CLASSDIR=${CLASSDIR}
 PKGMESSAGE=	${WRKDIR}/pkg-message
 
-.include <bsd.port.pre.mk>
-
-PLIST_SUB=	MKTEXLSR=${MKTEXLSR} CLASSDIR=${CLASSDIR}
-
-TEXMFLOCAL=	share/texmf-local
-TEXMFLOCAL_LSR=	${LOCALBASE}/${TEXMFLOCAL}/ls-R
-MKTEXLSR=	${LOCALBASE}/bin/mktexlsr
-
-CLASSDIR=	${TEXMFLOCAL}/tex/passivetex
-CLASS_FILES=	dummyels.sty fotex.xmt fotex.sty \
-		mlnames.sty ucharacters.sty unicode.sty \
-		dummyels.sty nomulticol.sty
-
-DOC_FILES=	LICENSE README.passivetex index.html index.xml
+PORTDOCS=	LICENSE README.passivetex index.html index.xml
 
-TESTDIR=	${DOCSDIR}/test
-TEST_FILES=	Makefile chap01.xml chap02.xml chap03.xml chap04.xml \
+EXAMPLES=	Makefile chap01.xml chap02.xml chap03.xml chap04.xml \
 		check.xsl darkness.fo darkness.pdf darkness.xml darkness.xsl \
 		exercise-print.xsl exercise.fo exercise.pdf exercise.xml \
 		fezziPic.png fotex.cfg.eg hyperref.cfg \
@@ -55,22 +36,26 @@ TEST_FILES=	Makefile chap01.xml chap02.x
 		teimath2.xml teiu5-print.xsl teiu5.fo teiu5.pdf teiu5.xml \
 		teixlite.dtd teixml.cfg test1.fot test2.fot
 
-post-patch:
-	@${SED} -e 's,%%TEXMFDIR%%,${LOCALBASE}/share/texmf,' \
-		${MESSAGE} > ${PKGMESSAGE}
+CLASSDIR=	${TEXMFDIR}/tex/passivetex
+CLASS_FILES=	dummyels.sty fotex.xmt fotex.sty \
+		mlnames.sty ucharacters.sty unicode.sty \
+		dummyels.sty nomulticol.sty
+
+.include <bsd.port.options.mk>
 
 do-install:
-	${MKDIR} -m 555 ${PREFIX}/${CLASSDIR}
-	${INSTALL_DATA} ${CLASS_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${CLASSDIR}
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${DOC_FILES:S@^@${WRKSRC}/@} ${DOCSDIR}
-	${MKDIR} ${TESTDIR}
-	${INSTALL_DATA} ${TEST_FILES:S@^@${WRKSRC}/test/@} ${TESTDIR}
+	@${MKDIR} -m 555 ${PREFIX}/${CLASSDIR}
+	cd ${WRKSRC} && ${INSTALL_DATA} ${CLASS_FILES} ${PREFIX}/${CLASSDIR}
+.if ${PORT_OPTIONS:MEXAMPLES}
+	@${MKDIR} ${EXAMPLESDIR}
+	cd ${WRKSRC}/test && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}
+.endif
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
 .endif
 
 post-install:
-	${MKTEXLSR}
 	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Copied: head/print/passivetex/files/pkg-message.in (from r317144, head/print/passivetex/pkg-message)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/print/passivetex/files/pkg-message.in	Tue May 21 08:02:48 2013	(r318654, copy of r317144, head/print/passivetex/pkg-message)
@@ -0,0 +1,8 @@
+PassiveTeX uses quite a lot of TeX's resources.  You may find it
+necessary to increase the size of some of TeX's resource pools by
+editing the file %%TEXMFDIR%%/web2c/texmf.cnf with any text
+editor.
+
+If you change %%TEXMFDIR%%/web2c/texmf.cnf, delete the word
+"original" on line 1 of the file.  This will prevent future
+installations of TeX from overwriting changes you've made.

Modified: head/print/passivetex/pkg-descr
==============================================================================
--- head/print/passivetex/pkg-descr	Tue May 21 07:52:14 2013	(r318653)
+++ head/print/passivetex/pkg-descr	Tue May 21 08:02:48 2013	(r318654)
@@ -7,4 +7,4 @@ For example, to generate a PDF file from
 
     pdftex --interaction nonstopmode "&pdfxmltex" file.fo
 
-WWW: http://www.tei-c.org.uk/Software/passivetex/
+WWW: http://projects.oucs.ox.ac.uk/passivetex/

Modified: head/print/passivetex/pkg-plist
==============================================================================
--- head/print/passivetex/pkg-plist	Tue May 21 07:52:14 2013	(r318653)
+++ head/print/passivetex/pkg-plist	Tue May 21 08:02:48 2013	(r318654)
@@ -1,54 +1,4 @@
 @comment $FreeBSD$
-%%PORTDOCS%%%%DOCSDIR%%/test/Makefile
-%%PORTDOCS%%%%DOCSDIR%%/test/chap01.xml
-%%PORTDOCS%%%%DOCSDIR%%/test/chap02.xml
-%%PORTDOCS%%%%DOCSDIR%%/test/chap03.xml
-%%PORTDOCS%%%%DOCSDIR%%/test/chap04.xml
-%%PORTDOCS%%%%DOCSDIR%%/test/check.xsl
-%%PORTDOCS%%%%DOCSDIR%%/test/darkness.fo
-%%PORTDOCS%%%%DOCSDIR%%/test/darkness.pdf
-%%PORTDOCS%%%%DOCSDIR%%/test/darkness.xml
-%%PORTDOCS%%%%DOCSDIR%%/test/darkness.xsl
-%%PORTDOCS%%%%DOCSDIR%%/test/exercise-print.xsl
-%%PORTDOCS%%%%DOCSDIR%%/test/exercise.fo
-%%PORTDOCS%%%%DOCSDIR%%/test/exercise.pdf
-%%PORTDOCS%%%%DOCSDIR%%/test/exercise.xml
-%%PORTDOCS%%%%DOCSDIR%%/test/fezziPic.png
-%%PORTDOCS%%%%DOCSDIR%%/test/fotex.cfg.eg
-%%PORTDOCS%%%%DOCSDIR%%/test/hyperref.cfg
-%%PORTDOCS%%%%DOCSDIR%%/test/mathex.xml
-%%PORTDOCS%%%%DOCSDIR%%/test/mathex.xsl
-%%PORTDOCS%%%%DOCSDIR%%/test/mathml.xsl
-%%PORTDOCS%%%%DOCSDIR%%/test/mathtei.dtd
-%%PORTDOCS%%%%DOCSDIR%%/test/novel.dtd
-%%PORTDOCS%%%%DOCSDIR%%/test/phys332-1.jpg
-%%PORTDOCS%%%%DOCSDIR%%/test/phys332-2.jpg
-%%PORTDOCS%%%%DOCSDIR%%/test/rmsd.xml
-%%PORTDOCS%%%%DOCSDIR%%/test/tei-oucs.dtd
-%%PORTDOCS%%%%DOCSDIR%%/test/tei.sty
-%%PORTDOCS%%%%DOCSDIR%%/test/teimath-print.xsl
-%%PORTDOCS%%%%DOCSDIR%%/test/teimath.aux
-%%PORTDOCS%%%%DOCSDIR%%/test/teimath.fo
-%%PORTDOCS%%%%DOCSDIR%%/test/teimath.log
-%%PORTDOCS%%%%DOCSDIR%%/test/teimath.out
-%%PORTDOCS%%%%DOCSDIR%%/test/teimath.pdf
-%%PORTDOCS%%%%DOCSDIR%%/test/teimath.xml
-%%PORTDOCS%%%%DOCSDIR%%/test/teimath.xsl
-%%PORTDOCS%%%%DOCSDIR%%/test/teimath2.xml
-%%PORTDOCS%%%%DOCSDIR%%/test/teiu5-print.xsl
-%%PORTDOCS%%%%DOCSDIR%%/test/teiu5.fo
-%%PORTDOCS%%%%DOCSDIR%%/test/teiu5.pdf
-%%PORTDOCS%%%%DOCSDIR%%/test/teiu5.xml
-%%PORTDOCS%%%%DOCSDIR%%/test/teixlite.dtd
-%%PORTDOCS%%%%DOCSDIR%%/test/teixml.cfg
-%%PORTDOCS%%%%DOCSDIR%%/test/test1.fot
-%%PORTDOCS%%%%DOCSDIR%%/test/test2.fot
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/test
-%%PORTDOCS%%%%DOCSDIR%%/LICENSE
-%%PORTDOCS%%%%DOCSDIR%%/README.passivetex
-%%PORTDOCS%%%%DOCSDIR%%/index.html
-%%PORTDOCS%%%%DOCSDIR%%/index.xml
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
 %%CLASSDIR%%/dummyels.sty
 %%CLASSDIR%%/fotex.xmt
 %%CLASSDIR%%/fotex.sty
@@ -57,5 +7,3 @@
 %%CLASSDIR%%/unicode.sty
 %%CLASSDIR%%/nomulticol.sty
 @dirrm %%CLASSDIR%%
-@exec %%MKTEXLSR%%
-@unexec %%MKTEXLSR%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305210802.r4L82mB0082667>