blob: a2c0f109ba4f5df7f7b1c544d4fc3f4e45cd827c (
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
|
# Created by: hrs@FreeBSD.org
# $FreeBSD$
PORTNAME= latex-bytefield
PORTVERSION= 1.2.20050731
PORTREVISION= 6
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_TEX_CTAN}
MASTER_SITE_SUBDIR= macros/latex/contrib/bytefield
DISTFILES= bytefield.dtx bytefield.ins ${PORTDOCS}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= hrs@FreeBSD.org
COMMENT= LaTeX package that utilization diagram of data fields
USE_TEX= latex
PLIST_SUB= TEXMFDIR=${TEXMFDIR} MKTEXLSR=${MKTEXLSR} \
CLASSDIR=${CLASSDIR}
TEXMFDIR= share/texmf
TEXMFDIR_LSR= ${LOCALBASE}/${TEXMFDIR}/ls-R
MKTEXLSR= ${LOCALBASE}/bin/mktexlsr
TEX_BIN= ${LOCALBASE}/bin/etex
CLASSDIR= ${TEXMFDIR}/tex/latex/${PORTNAME:S/^latex-//}
WRKSRC= ${WRKDIR}/${PORTNAME:S/^latex-//}
CLASS_FILES= bytefield.dtx bytefield.sty bytefield.ins
PORTDOCS= README bytefield.pdf example.pdf example.tex
NO_STAGE= yes
do-extract:
${MKDIR} ${WRKSRC}
cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${DISTFILES} ${WRKSRC}
do-build:
cd ${WRKSRC} && ${TEX_BIN} bytefield.ins
do-install:
${MKDIR} ${PREFIX}/${CLASSDIR}
${INSTALL_DATA} ${CLASS_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${CLASSDIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S@^@${WRKSRC}/@} ${DOCSDIR}
.endif
post-install:
@${MKTEXLSR} ${TEXMFDIR}
.include <bsd.port.mk>
|