blob: 9d1589cb5187c01c3af7b8f0e55e43a52a52c809 (
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
60
61
62
63
64
|
# New ports collection makefile for: latex-acm
# Date created: Jan 25 2011
# Whom: Eygene Ryabinkin <rea@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= latex-acm
PORTVERSION= 1.1
CATEGORIES= print
MASTER_SITES= http://www.acm.org/publications/latex_style/ \
http://dist.codelabs.ru/fbsd/latex-acm/
DISTFILES= acm-small-v1-1.zip \
acm-large-v1-1.zip
MAINTAINER= rea@FreeBSD.org
COMMENT= LaTeX styles for ACM journals
BUILD_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX-base \
${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal
RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX-base \
${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal
USE_ZIP= yes
NO_BUILD= yes
TEXMFLOCAL= share/texmf-local
TEXMFLOCAL_LSR= ${LOCALBASE}/${TEXMFLOCAL}/ls-R
MKTEXLSR= ${LOCALBASE}/bin/mktexlsr
LATEXDIR= ${TEXMFLOCAL}/tex/latex/${PORTNAME:S/^latex-//}
BIBTEXDIR= ${TEXMFLOCAL}/bibtex/bst/${PORTNAME:S/^latex-//}
WRKSRC= ${WRKDIR}
CLASS_FILES= acmlarge.cls acmsmall.cls
STYLE_FILES= algorithm2e.sty
BIB_FILES= acmlarge.bst acmsmall.bst
PORTEXAMPLES= acmlarge-sample.tex acmlarge-sample.pdf acmlarge-sample.bbl \
acmlarge-mouse.eps acmlarge-mouse.pdf acmlarge-sam.bib \
acmsmall-sample.tex acmsmall-sample.pdf acmsmall-sample.bbl \
acmsmall-mouse.eps acmsmall-mouse.pdf acmsmall-sam.bib
PORTDOCS= acmlarge-guide.pdf acmsmall-guide.pdf
PLIST_FILES= ${CLASS_FILES:S@^@${LATEXDIR}/@} \
${STYLE_FILES:S@^@${LATEXDIR}/@} \
${BIB_FILES:S@^@${BIBTEXDIR}/@}
PLIST_DIRS= ${LATEXDIR} ${BIBTEXDIR}
PLIST_SUB= MKTEXLSR=${MKTEXLSR} \
TEXMFLOCAL=${TEXMFLOCAL}
do-install:
${MKDIR} ${PREFIX}/${LATEXDIR}
${INSTALL_DATA} ${CLASS_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${LATEXDIR}
${INSTALL_DATA} ${STYLE_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${LATEXDIR}
${MKDIR} ${PREFIX}/${BIBTEXDIR}
${INSTALL_DATA} ${BIB_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${BIBTEXDIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S@^@${WRKSRC}/@} ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${PORTEXAMPLES:S@^@${WRKSRC}/@} ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>
|