aboutsummaryrefslogtreecommitdiffstats
path: root/print/teTeX-texmf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'print/teTeX-texmf/Makefile')
-rw-r--r--print/teTeX-texmf/Makefile48
1 files changed, 9 insertions, 39 deletions
diff --git a/print/teTeX-texmf/Makefile b/print/teTeX-texmf/Makefile
index 897745a68f4c..f4bcd778010a 100644
--- a/print/teTeX-texmf/Makefile
+++ b/print/teTeX-texmf/Makefile
@@ -6,7 +6,7 @@
PORTNAME= teTeX-texmf
PORTVERSION= 2.0.2
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= print
MASTER_SITES= ftp://sunsite.informatik.rwth-aachen.de/pub/comp/tex/teTeX/2.0/distrib/ \
${MASTER_SITE_TEX_CTAN} \
@@ -19,35 +19,19 @@ EXTRACT_ONLY= dvipsk-jpatch-p1.6a${EXTRACT_SUFX}
MAINTAINER= hrs@FreeBSD.org
COMMENT= Thomas Esser's distribution of TeX & friends (texmf tree)
-BUILD_DEPENDS= tetex-modesw:${PORTSDIR}/print/tex-texmflocal
-RUN_DEPENDS= tetex-modesw:${PORTSDIR}/print/tex-texmflocal
-
-OPTIONS= LETTERSIZE "Use letter size by default" off
+BUILD_DEPENDS= ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal
+RUN_DEPENDS= ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal
CONFLICTS= latex2e-[0-9]* tex-[0-9]* dvips-[0-9]* xdvi-[0-9]*
.include <bsd.port.pre.mk>
-.if defined(WITH_LETTERSIZE)
-FLAVOR+= letter
-DEFAULT_MODE= tetex-letter
-.else
-DEFAULT_MODE= tetex
-.endif
-
-# XXX: this does not work
-#.if defined(FLAVOR)
-#PKGNAMESUFFIX= ${FLAVOR:S,^,-,:Q:S,\\ ,,g:S,\\-,-,g}
-#.endif
-
NO_WRKSUBDIR= YES
NO_BUILD= YES
PLIST_SUB= TEXMF=${TEXMF} \
MKTEXLSR=${MKTEXLSR} \
TEXMF_LSR=${TEXMF_LSR}
-PKGINSTALL= ${WRKDIR}/pkg-install.sh
-PKGDEINSTALL= ${WRKDIR}/pkg-install.sh
-CONFLICTS= ja-ptex-base*
+CONFLICTS= ja-ptex-base-[0-9]*
TETEX_TEXMF= tetex-texmf-${PORTVERSION}.tar.gz
TEXMF= share/texmf
@@ -58,26 +42,13 @@ TEXMFVAR= share/texmf-var
TEXMFVAR_LSR= ${LOCALBASE}/${TEXMFVAR}/ls-R
MKTEXLSR= ${LOCALBASE}/bin/mktexlsr
-TETEX_MODESW= ${LOCALBASE}/bin/tetex-modesw
-PKGINSTALL_SUB= TETEX_MODESW=${TETEX_MODESW} \
- DEFAULT_MODE=${DEFAULT_MODE}
-TETEX_MODES= tetex tetex-letter
-
CNFFILES= DVIPSKCNF XDVIKCNF DVIPDFMCNF
DVIPSKCNF= dvips/config/config.ps
-DVIPSKCNF_IN= dvips.config.ps
XDVIKCNF= xdvi/XDvi
-XDVIKCNF_IN= XDvi
DVIPDFMCNF= dvipdfm/config/config
-DVIPDFMCNF_IN= dvipdfm.config
TEXMF_IN_SUB= TEXMF=${TEXMF} PREFIX=${PREFIX}
-post-configure:
- ${SED} ${PKGINSTALL_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
- < ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
- ${CHMOD} 0755 ${PKGINSTALL}
-
# XXX: when OPTIONS is set NO_BUILD does not work
do-build:
@${DO_NADA}
@@ -85,7 +56,10 @@ do-build:
do-install:
${MKDIR} ${PREFIX}/${TEXMF}
cd ${PREFIX}/${TEXMF} && \
- ${TAR} xzUf ${DISTDIR}/${DIST_SUBDIR}/${TETEX_TEXMF} --exclude "*/texmf.cnf"
+ ${TAR} xzUf ${DISTDIR}/${DIST_SUBDIR}/${TETEX_TEXMF} \
+ --exclude "*/texmf.cnf"
+ ${MV} ${PREFIX}/${TEXMF}/omega/lambda/omegabook/ltpatch.ltx \
+ ${PREFIX}/${TEXMF}/omega/lambda/omegabook/NOUSE_ltpatch.ltx_
${INSTALL_DATA} \
${FILESDIR}/listings.sty \
${PREFIX}/${TEXMF}/tex/latex/listings/
@@ -93,11 +67,7 @@ do-install:
${PATCH} --quiet < ${WRKDIR}/PSTricks.patch && \
${RM} -f pst-text.pro.orig
.for F in ${CNFFILES}
- ${RM} -f ${PREFIX}/${TEXMF}/${${F}}
-.for M in ${TETEX_MODES}
- ${INSTALL_DATA} ${FILESDIR}/${${F}_IN}.${M} ${PREFIX}/${TEXMF}/${${F}}.${M}
-.endfor
+ ${CP} ${PREFIX}/${TEXMF}/${${F}} ${PREFIX}/${TEXMF}/${${F}}.tetex
.endfor
- @${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>