aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/platex-jsclasses/Makefile
blob: 89cf31ec55ea4586eb7e3e76b6e7c10e04e3e001 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# New ports collection makefile for:    platex-jsclasses
# Date created:     24 Jan 2004
# Whom:         hrs@FreeBSD.org
#
# $FreeBSD$

PORTNAME=   platex-jsclasses
PORTVERSION=    1.0.20060212
PORTREVISION=   3
CATEGORIES= japanese print
MASTER_SITES=   http://oku.edu.mie-u.ac.jp/~okumura/jsclasses/:0 \
        http://oku.edu.mie-u.ac.jp/~okumura/texfaq/:1
PKGNAMEPREFIX=  ja-
DISTFILES=  ${PORTNAME:S/^platex-//}-${PORTVERSION:S/^1.0.20//}${EXTRACT_SUFX}:0 \
        jis-tfm${EXTRACT_SUFX}:1 \
        jis-pl${EXTRACT_SUFX}:1

MAINTAINER= hrs@FreeBSD.org
COMMENT=    New document class files for pLaTeX

RUN_DEPENDS=    mktexlsr:${PORTSDIR}/print/teTeX-base \
        ptex:${PORTSDIR}/japanese/ptex

USE_ZIP=    YES
NO_BUILD=   YES
PLIST_SUB=  CLASSDIR=${CLASSDIR} TFMDIR=${TFMDIR} \
        PLDIR=${PLDIR} MKTEXLSR=${MKTEXLSR} \
        TEXMFDIR=${TEXMFDIR}
WRKSRC=     ${WRKDIR}

TEXMFDIR=   share/texmf
MKTEXLSR=   ${LOCALBASE}/bin/mktexlsr

CLASSDIR=   ${TEXMFDIR}/ptex/platex/js
CLASS_FILES=    jsarticle.cls jsbook.cls \
        jsclasses.dtx jsclasses.ins jspf.cls \
        morisawa.dtx morisawa.ins morisawa.sty \
        okumacro.dtx okumacro.ins okumacro.sty \
        okuverb.dtx okuverb.ins okuverb.sty \

TFMDIR=     ${TEXMFDIR}/fonts/tfm/jis
TFM_FILES=  jis-v.tfm jis.tfm jisg-v.tfm jisg.tfm \
        jisgn-v.tfm jisgn.tfm jisn-v.tfm jisn.tfm

PLDIR=      ${TEXMFDIR}/fonts/source/jis
PL_FILES=   jis-v.pl jis.pl jisn-v.pl jisn.pl

do-install:
    ${MKDIR} ${PREFIX}/${CLASSDIR}
    ${INSTALL_DATA} ${CLASS_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${CLASSDIR}
    ${MKDIR} ${PREFIX}/${TFMDIR}
    ${INSTALL_DATA} ${TFM_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${TFMDIR}
    ${MKDIR} ${PREFIX}/${PLDIR}
    ${INSTALL_DATA} ${PL_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${PLDIR}

post-install:
    ${MKTEXLSR} ${PREFIX}/${TEXMFDIR}

.include <bsd.port.mk>