summaryrefslogtreecommitdiff
path: root/print/latex-ucs/Makefile
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2004-05-24 16:40:40 +0000
committerThierry Thomas <thierry@FreeBSD.org>2004-05-24 16:40:40 +0000
commit098684c9fc670abbaa3496460a5ebbca0878a0e2 (patch)
tree702f527ad954ec95bb72edc3540b51c832688422 /print/latex-ucs/Makefile
parentUpdate to 0.44 (diff)
Add latex-ucs 20040307, a LaTeX package for using UTF-8 as input
encoding.
Notes
Notes: svn path=/head/; revision=109876
Diffstat (limited to 'print/latex-ucs/Makefile')
-rw-r--r--print/latex-ucs/Makefile62
1 files changed, 62 insertions, 0 deletions
diff --git a/print/latex-ucs/Makefile b/print/latex-ucs/Makefile
new file mode 100644
index 000000000000..586d2987ee0b
--- /dev/null
+++ b/print/latex-ucs/Makefile
@@ -0,0 +1,62 @@
+# New ports collection makefile for: latex-ucs
+# Date created: 23 May 2004
+# Whom: thierry@FreeBSD.org
+#
+# $FreeBSD$
+
+PORTNAME= latex-ucs
+PORTVERSION= 20040307
+CATEGORIES= print
+MASTER_SITES= http://www.unruh.de/DniQ/latex/unicode/
+DISTNAME= unicode
+EXTRACT_SUFX= .tgz
+DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= A LaTeX package for using UTF-8 as input encoding
+
+BUILD_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX
+RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX
+
+NO_BUILD= yes
+USE_PERL5_RUN= yes
+
+PLIST_SUB= MKTEXLSR=${MKTEXLSR} CLASSDIR=${CLASSDIR}
+.if !defined(WITHOUT_CJK)
+PLIST_SUB+= CJK=""
+.else
+PLIST_SUB+= CJK="@comment "
+.endif
+
+TEXMF?= share/texmf
+MKTEXLSR= ${LOCALBASE}/bin/mktexlsr
+CLASSDIR= ${TEXMF}/tex/latex/${PORTNAME:S/^latex-//}
+WRKSRC= ${WRKDIR}/${PORTNAME:S/^latex-//}
+
+CLASS_FILES= ucs.sty utf8.def ucsencs.def
+CJK_FILES= c00enc.def c10enc.def c40enc.def c42enc.def c61enc.def
+PLSCRIPTS= discovermacro.pl latexout.pl makeunidef.pl
+PORTDOCS= FAQ INSTALL LICENSE README VERSION
+
+pre-everything::
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "If you don't need CJK characters, please define WITHOUT_CJK."
+ @${ECHO_MSG} ""
+
+do-install:
+ ${INSTALL_SCRIPT} ${PLSCRIPTS:S@^@${WRKSRC}/@} ${PREFIX}/bin
+ ${MKDIR} ${PREFIX}/${CLASSDIR}
+ ${INSTALL_DATA} ${CLASS_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${CLASSDIR}
+.if !defined(WITHOUT_CJK)
+ ${INSTALL_DATA} ${CJK_FILES:S@^@${WRKSRC}/contrib/@} ${PREFIX}/${CLASSDIR}
+.endif
+ ${CP} -R ${WRKSRC}/data ${PREFIX}/${CLASSDIR}
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S@^@${WRKSRC}/@} ${DOCSDIR}
+.endif
+
+post-install:
+ ${MKTEXLSR}
+
+.include <bsd.port.mk>