summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2011-07-16 18:08:00 +0000
committerHiroki Sato <hrs@FreeBSD.org>2011-07-16 18:08:00 +0000
commite207a4d215744e17c8575ff51464f1708f2cdca6 (patch)
treef1460e422756befd5f54471ad075572c1e0ecd24 /print
parent- Change RUN_DEPENDS: replace XML::XSLT and XML::Sablotron with XML::LibXSLT (diff)
Add print/latex-chapterfolder, a LaTeX package that simplifies working with
folder structures that match the chapter/section/subsection structure.
Notes
Notes: svn path=/head/; revision=277811
Diffstat (limited to 'print')
-rw-r--r--print/Makefile1
-rw-r--r--print/latex-chapterfolder/Makefile64
-rw-r--r--print/latex-chapterfolder/distinfo6
-rw-r--r--print/latex-chapterfolder/pkg-descr7
-rw-r--r--print/latex-chapterfolder/pkg-plist3
5 files changed, 81 insertions, 0 deletions
diff --git a/print/Makefile b/print/Makefile
index 69b1ad784281..1db24aca8403 100644
--- a/print/Makefile
+++ b/print/Makefile
@@ -137,6 +137,7 @@
SUBDIR += latex-biblist
SUBDIR += latex-bytefield
SUBDIR += latex-caption
+ SUBDIR += latex-chapterfolder
SUBDIR += latex-circ
SUBDIR += latex-cjk
SUBDIR += latex-csquotes
diff --git a/print/latex-chapterfolder/Makefile b/print/latex-chapterfolder/Makefile
new file mode 100644
index 000000000000..dab1572c7e0f
--- /dev/null
+++ b/print/latex-chapterfolder/Makefile
@@ -0,0 +1,64 @@
+# New ports collection makefile for: latex-chapterfolder
+# Date created: 16 July 2011
+# Whom: hrs
+#
+# $FreeBSD$
+
+PORTNAME= chapterfolder
+PORTVERSION= 2.0.20051124
+CATEGORIES= print
+MASTER_SITES= ftp://ftp.ctan.org/tex-archive/%SUBDIR%/ \
+ ${MASTER_SITE_TEX_CTAN}
+MASTER_SITE_SUBDIR= macros/latex/contrib/${PORTNAME}
+PKGNAMEPREFIX= latex-
+DISTFILES= ${SRC_FILES} ${PORTDOCS}
+DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= hrs@FreeBSD.org
+COMMENT= A LaTeX package that ties section structures and folders
+
+BUILD_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX-base \
+ ${TEXMF_LSR}:${PORTSDIR}/print/tex-texmflocal
+RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX-base \
+ ${TEXMF_LSR}:${PORTSDIR}/print/tex-texmflocal
+
+PLIST_SUB= MKTEXLSR=${MKTEXLSR} \
+ TEXMFDIR=${TEXMFDIR}
+
+TEXMFDIR= share/texmf
+TEXMF_LSR= ${LOCALBASE}/${TEXMFDIR}/ls-R
+MKTEXLSR= ${LOCALBASE}/bin/mktexlsr
+TEX_BIN= ${LOCALBASE}/bin/etex
+YES_CMD= /usr/bin/yes
+CLASSDIR= ${TEXMFDIR}/tex/latex/${PORTNAME}
+WRKSRC= ${WRKDIR}/${PORTNAME}
+PLIST_FILES= ${SRC_FILES:S,^,${CLASSDIR}/,} \
+ ${CLASS_FILES:S,^,${CLASSDIR}/,}
+PLIST_DIRS= ${CLASSDIR}
+
+SRC_FILES= chapterfolder.dtx chapterfolder.ins
+CLASS_FILES= chapterfolder.sty
+PORTDOCS= chapterfolder.pdf
+
+do-extract:
+ ${MKDIR} ${WRKSRC}
+ cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${DISTFILES} ${WRKSRC}
+
+do-build:
+ cd ${WRKSRC} && ${YES_CMD} | ${TEX_BIN} chapterfolder.ins
+
+do-install:
+ ${MKDIR} ${PREFIX}/${CLASSDIR}
+ cd ${WRKSRC} && \
+ ${INSTALL_DATA} ${SRC_FILES} ${CLASS_FILES} \
+ ${PREFIX}/${CLASSDIR}
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ cd ${WRKSRC} && \
+ ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+.endif
+
+post-install:
+ @${MKTEXLSR} ${LOCALBASE}/${TEXMFDIR}
+
+.include <bsd.port.mk>
diff --git a/print/latex-chapterfolder/distinfo b/print/latex-chapterfolder/distinfo
new file mode 100644
index 000000000000..3703011b1a87
--- /dev/null
+++ b/print/latex-chapterfolder/distinfo
@@ -0,0 +1,6 @@
+SHA256 (chapterfolder-2.0.20051124/chapterfolder.dtx) = 18e7550c8f9901085859dad920943eea4795d064cc5b42e3cf8ce912006716c5
+SIZE (chapterfolder-2.0.20051124/chapterfolder.dtx) = 12333
+SHA256 (chapterfolder-2.0.20051124/chapterfolder.ins) = 9eb107f2fecff889cfb155985160c4f98002b2df0eb62c49bb3819f9171f9c00
+SIZE (chapterfolder-2.0.20051124/chapterfolder.ins) = 2064
+SHA256 (chapterfolder-2.0.20051124/chapterfolder.pdf) = 63ea3691d51e5be7763f39c9ef1032863339647a948a57cb2dc4c20ce76279d6
+SIZE (chapterfolder-2.0.20051124/chapterfolder.pdf) = 199404
diff --git a/print/latex-chapterfolder/pkg-descr b/print/latex-chapterfolder/pkg-descr
new file mode 100644
index 000000000000..8727f98515fd
--- /dev/null
+++ b/print/latex-chapterfolder/pkg-descr
@@ -0,0 +1,7 @@
+This package simplifies working with folder structures that match the
+chapter/section/subsection structure. It provides macros to define a
+folder that contains the file for a chapter/section/subsection, and
+provides macros that allow inclusion without using the full path,
+rather the path relative to the current folder of the
+chapter/section/subsection. It makes easy changing the name of a
+folder, for example.
diff --git a/print/latex-chapterfolder/pkg-plist b/print/latex-chapterfolder/pkg-plist
new file mode 100644
index 000000000000..3d716edd0b07
--- /dev/null
+++ b/print/latex-chapterfolder/pkg-plist
@@ -0,0 +1,3 @@
+@comment $FreeBSD$
+@exec %%MKTEXLSR%% %D/%%TEXMFDIR%%
+@unexec %%MKTEXLSR%% %D/%%TEXMFDIR%%