aboutsummaryrefslogtreecommitdiffstats
path: root/print/latex-ucs/Makefile
blob: 884fc6ed5b68f826c749b1e4c463462fa4929a01 (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:    latex-ucs
# Date created:     23 May 2004
# Whom:         thierry@FreeBSD.org
#
# $FreeBSD$

PORTNAME=   latex-ucs
PORTVERSION=    20041017
PORTREVISION=   5
CATEGORIES= print
MASTER_SITES=   http://www.unruh.de/DniQ/latex/unicode/
DISTNAME=   unicode
EXTRACT_SUFX=   .tgz
DIST_SUBDIR=    ${PORTNAME}-${PORTVERSION}

MAINTAINER= hrs@FreeBSD.org
COMMENT=    A LaTeX package for using UTF-8 as input encoding

NO_BUILD=   yes
USE_PERL5_RUN=  yes
USE_TEX=    latex
PLIST_SUB=  MKTEXLSR="${MKTEXLSR}" CLASSDIR=${CLASSDIR}

TEXMFDIR=   share/texmf
TEXMFDIR_LSR=   ${LOCALBASE}/${TEXMFDIR}/ls-R
MKTEXLSR=   ${LOCALBASE}/bin/mktexlsr ${PREFIX}/${TEXMFDIR}
CLASSDIR=   ${TEXMFDIR}/tex/latex/${PORTNAME:S/^latex-//}
WRKSRC=     ${WRKDIR}/${PORTNAME:S/^latex-//}

CLASS_FILES=    ucs.sty utf8x.def ucsencs.def ucsutils.sty ucshyper.sty
PLSCRIPTS=  discovermacro.pl latexout.pl makeunidef.pl
PORTDOCS=   FAQ INSTALL LICENSE README VERSION
CONTRIB_FILES= UnicodeT.sfd autofe.sty c00enc.def c10enc.def        \
    c40enc.def c42enc.def c61enc.def cenccmn.tex cp1252.enc     \
    ldvarial.fd ldvc2000.fd ldvenc.def letc2000.fd letenc.def   \
    letgfzem.fd letjiret.fd lklenc.def lklkli.fd ltaarial.fd    \
    ltac2000.fd ltaenc.def ltgc2000.fd ltgenc.def ltlcmr.fd     \
    ltlenc.def ltwdsnol.fd ltwdsque.fd ltwdssin.fd ltwenc.def   \
    lucarial.fd lucc2000.fd lucenc.def mkrenc.def mkrezra.fd    \
    mkrhadas.fd mkromega.fd mkrrashi.fd t2dcmr.fd t2denc.def    \
    tengwarDS.enc xscmr.fd xsenc.def

do-install:
    ${INSTALL_SCRIPT} ${PLSCRIPTS:S@^@${WRKSRC}/@} ${PREFIX}/bin
    ${MKDIR} ${PREFIX}/${CLASSDIR}
    ${INSTALL_DATA} \
        ${CLASS_FILES:S@^@${WRKSRC}/@} \
        ${CONTRIB_FILES:S@^@${WRKSRC}/contrib/@} \
        ${PREFIX}/${CLASSDIR}
    ${CP} -R ${WRKSRC}/data ${PREFIX}/${CLASSDIR}
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S@^@${WRKSRC}/@} ${DOCSDIR}
.endif

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

.include <bsd.port.mk>