diff options
author | hrs <hrs@FreeBSD.org> | 2004-06-19 00:02:47 +0800 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2004-06-19 00:02:47 +0800 |
commit | bbfb2a9f88ed08a67e6655df7cc96dd164dda330 (patch) | |
tree | 1988fa0aa0c940f26f51b0b9f8760be8c83503c0 /japanese/teTeX | |
parent | 0771db2063415da6a19c0985e5a25cb619742a5b (diff) | |
download | freebsd-ports-gnome-bbfb2a9f88ed08a67e6655df7cc96dd164dda330.tar.gz freebsd-ports-gnome-bbfb2a9f88ed08a67e6655df7cc96dd164dda330.tar.zst freebsd-ports-gnome-bbfb2a9f88ed08a67e6655df7cc96dd164dda330.zip |
Add japanese/teTeX, which is a meta-port to install Japanese
TeX related packages.
Approved by: linimon (mentor)
Diffstat (limited to 'japanese/teTeX')
-rw-r--r-- | japanese/teTeX/Makefile | 72 | ||||
-rw-r--r-- | japanese/teTeX/files/pkg-install.in | 18 | ||||
-rw-r--r-- | japanese/teTeX/pkg-descr | 5 | ||||
-rw-r--r-- | japanese/teTeX/pkg-plist | 2 |
4 files changed, 97 insertions, 0 deletions
diff --git a/japanese/teTeX/Makefile b/japanese/teTeX/Makefile new file mode 100644 index 000000000000..6d49ffe4a931 --- /dev/null +++ b/japanese/teTeX/Makefile @@ -0,0 +1,72 @@ +# New ports collection makefile for: teTeX +# Date created: 3 June 2004 +# Whom: hrs +# +# $FreeBSD$ + +PORTNAME= teTeX +PORTVERSION= 1.0 +CATEGORIES= japanese print +MASTER_SITES= # empty +PKGNAMEPREFIX= ja- +DISTFILES= # empty +EXTRACT_ONLY= # empty + +MAINTAINER= hrs@FreeBSD.org +COMMENT= A meta port for teTeX suite for Japanese (including pTeX and JTeX) + +RUN_DEPENDS= ${TETEX_MODESW}:${PORTSDIR}/print/tex-texmflocal \ + ${LOCALBASE}/share/texmf/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \ + tex:${PORTSDIR}/print/teTeX-base \ + ptex:${PORTSDIR}/japanese/ptex-tetex \ + dvips:${PORTSDIR}/japanese/dvipsk \ + xdvi:${PORTSDIR}/japanese/xdvik-vflib \ + jtex:${PORTSDIR}/japanese/texfamily \ + #${JTEXVF}:${PORTSDIR}/japanese/texfamily-vfn2a + +CONFLICTS= dvips* xdvi* ptex-base* + +TETEX_MODESW= ${LOCALBASE}/bin/tetex-modesw +JTEXVF= ${LOCALBASE}/share/texmf-local/fonts/vf/n2a/dmjsy5.vf + +PKGINSTALL= ${WRKDIR}/pkg-install.sh +PKGDEINSTALL= ${WRKDIR}/pkg-install.sh +PKGINSTALL_SUB= TETEX_MODESW=${TETEX_MODESW} \ + MODE=${DEFAULT_MODE} + +# XXX: We always build in batch mode to disable OPTIONS +# in print/teTeX-base. +DEPENDS_ARGS+= BATCH=yes + +#OPTIONS= LETTERSIZE "Use letter size by default" off + +.include <bsd.port.pre.mk> + +#.if defined(WITH_LETTERSIZE) +#FLAVOR+= letter +#DEPENDS_ARGS+= WITH_LETTERSIZE=true +#DEFAULT_MODE= tetex-letter +#.else +DEFAULT_MODE= ptex-tetex +#.endif + +# XXX: this does not work +#.if defined(FLAVOR) +#PKGNAMESUFFIX= ${FLAVOR:S,^,-,:Q:S,\\ ,,g:S,\\-,-,g} +#.endif + +do-configure: + ${SED} ${PKGINSTALL_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ + < ${FILESDIR}/pkg-install.in > ${PKGINSTALL} + ${CHMOD} 0755 ${PKGINSTALL} + +do-build: + @${DO_NADA} + +do-install: #emtpy + @${DO_NADA} + +post-install: + @${PKGINSTALL} ${PKGNAME} POST-INSTALL + +.include <bsd.port.post.mk> diff --git a/japanese/teTeX/files/pkg-install.in b/japanese/teTeX/files/pkg-install.in new file mode 100644 index 000000000000..2645be9eae7f --- /dev/null +++ b/japanese/teTeX/files/pkg-install.in @@ -0,0 +1,18 @@ +#!/bin/sh +# $FreeBSD$ + +MODE=%%MODE%% +TETEX_MODESW=%%TETEX_MODESW%% + +case $2 in +POST-INSTALL) + ${TETEX_MODESW} ${MODE} dvips forceinstall + ${TETEX_MODESW} default dvipdfm forceinstall + ${TETEX_MODESW} ${MODE} xdvi forceinstall + ;; +DEINSTALL) + ${TETEX_MODESW} default dvips forceinstall + ${TETEX_MODESW} default dvipdfm forceinstall + ${TETEX_MODESW} default xdvi forceinstall + ;; +esac diff --git a/japanese/teTeX/pkg-descr b/japanese/teTeX/pkg-descr new file mode 100644 index 000000000000..4d6ffd5f1628 --- /dev/null +++ b/japanese/teTeX/pkg-descr @@ -0,0 +1,5 @@ +This package does not contain anything by itself. It is a +"meta-port" that depends on other teTeX related packages. +Its sole purpose is to require dependencies so users can install +this package only and have teTeX + dvipsk + xdvik pulled in +by the port/package dependency mechanism. diff --git a/japanese/teTeX/pkg-plist b/japanese/teTeX/pkg-plist new file mode 100644 index 000000000000..fd04948e0a9b --- /dev/null +++ b/japanese/teTeX/pkg-plist @@ -0,0 +1,2 @@ +@comment $FreeBSD$ +@comment this plist intentionally left empty |