Add print/latex-chapterfolder, a LaTeX package that simplifies working with

folder structures that match the chapter/section/subsection structure.
This commit is contained in:
Hiroki Sato 2011-07-16 18:08:00 +00:00
parent 70c504f7a7
commit e207a4d215
5 changed files with 81 additions and 0 deletions

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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.

View File

@ -0,0 +1,3 @@
@comment $FreeBSD$
@exec %%MKTEXLSR%% %D/%%TEXMFDIR%%
@unexec %%MKTEXLSR%% %D/%%TEXMFDIR%%