aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2011-07-17 02:08:00 +0800
committerhrs <hrs@FreeBSD.org>2011-07-17 02:08:00 +0800
commit73bd019c5b6d7db80684ea4cdd974e7e8dd3ad4c (patch)
tree63522f41680dfeec2e83825b268e1a9aeb8d05ac /print
parentafa3004dacbd4fb4835c7b82e67de97a3dc369a3 (diff)
downloadfreebsd-ports-graphics-73bd019c5b6d7db80684ea4cdd974e7e8dd3ad4c.tar.gz
freebsd-ports-graphics-73bd019c5b6d7db80684ea4cdd974e7e8dd3ad4c.tar.zst
freebsd-ports-graphics-73bd019c5b6d7db80684ea4cdd974e7e8dd3ad4c.zip
Add print/latex-chapterfolder, a LaTeX package that simplifies working with
folder structures that match the chapter/section/subsection structure.
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 69b1ad78428..1db24aca840 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 00000000000..dab1572c7e0
--- /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 00000000000..3703011b1a8
--- /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 00000000000..8727f98515f
--- /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 00000000000..3d716edd0b0
--- /dev/null
+++ b/print/latex-chapterfolder/pkg-plist
@@ -0,0 +1,3 @@
+@comment $FreeBSD$
+@exec %%MKTEXLSR%% %D/%%TEXMFDIR%%
+@unexec %%MKTEXLSR%% %D/%%TEXMFDIR%%