aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorbarner <barner@FreeBSD.org>2005-11-17 21:43:42 +0800
committerbarner <barner@FreeBSD.org>2005-11-17 21:43:42 +0800
commitcf7e4b99e824434df6b5ff79e4de9dfda0a012b5 (patch)
treed2aa149872462a56e9c66fb9c2ececfe754f5de0 /print
parent386a021698d57182fbac376843154e12adb22b21 (diff)
downloadfreebsd-ports-gnome-cf7e4b99e824434df6b5ff79e4de9dfda0a012b5.tar.gz
freebsd-ports-gnome-cf7e4b99e824434df6b5ff79e4de9dfda0a012b5.tar.zst
freebsd-ports-gnome-cf7e4b99e824434df6b5ff79e4de9dfda0a012b5.zip
Add latex-circ 1.0f,
a LaTeX package for typesetting circuit diagrams. PR: 83838 Submitted by: Nicola Vitale <nivit@email.it>
Diffstat (limited to 'print')
-rw-r--r--print/Makefile1
-rw-r--r--print/latex-circ/Makefile85
-rw-r--r--print/latex-circ/distinfo2
-rw-r--r--print/latex-circ/pkg-descr5
-rw-r--r--print/latex-circ/pkg-plist43
5 files changed, 136 insertions, 0 deletions
diff --git a/print/Makefile b/print/Makefile
index 78946b947df6..e83bac6d52e3 100644
--- a/print/Makefile
+++ b/print/Makefile
@@ -123,6 +123,7 @@
SUBDIR += latex-booktabs
SUBDIR += latex-bytefield
SUBDIR += latex-caption
+ SUBDIR += latex-circ
SUBDIR += latex-feynmf
SUBDIR += latex-index
SUBDIR += latex-keystroke
diff --git a/print/latex-circ/Makefile b/print/latex-circ/Makefile
new file mode 100644
index 000000000000..e5bf9067ab30
--- /dev/null
+++ b/print/latex-circ/Makefile
@@ -0,0 +1,85 @@
+# New ports collection makefile for: latex-circ
+# Date created: 2005-07-20
+# Whom: Nicola Vitale <nivit@email.it>
+#
+# $FreeBSD$
+#
+
+PORTNAME= circ
+PORTVERSION= 1.0f
+CATEGORIES= print
+MASTER_SITES= ftp://cam.ctan.org/tex-archive/macros/generic/diagrams/ \
+ http://theory.uwinnipeg.ca/scripts/CTAN/macros/generic/diagrams/
+PKGNAMEPREFIX= latex-
+DISTNAME= ${PORTNAME}
+
+MAINTAINER= nivit@email.it
+COMMENT= A LaTeX package for typesetting circuit diagrams
+
+BUILD_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX-base \
+ ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal
+RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX-base \
+ ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal
+
+USE_ZIP= yes
+
+# We need to install in the global texmf-local directory
+PREFIX= ${LOCALBASE}
+TEXMFLOCAL= ${LOCALBASE}/share/texmf-local
+TEXMFLOCAL_DOC= ${TEXMFLOCAL}/doc
+TEXMFLOCAL_LSR= ${TEXMFLOCAL}/ls-R
+MKTEXLSR= ${LOCALBASE}/bin/mktexlsr
+TEX_CMD= ${LOCALBASE}/bin/latex
+
+PLIST_SUB= MKTEXLSR=${MKTEXLSR}
+
+CIRC_INS= circ.ins
+CIRC_DRV= circ.drv
+CIRC_DOC= circ.dvi
+
+FIND_CLASS= -type f \( -name "*.sty" -or -name "*.def" \)
+FIND_FONTS_PK= -type f -name "*.*pk"
+FIND_FONTS_MF= -type f -name "*.mf"
+FIND_FONTS_TFM= -type f -name "*.tfm"
+CLASS_DIR= ${TEXMFLOCAL}/tex/latex/${PORTNAME}
+FONTS_PK_DIR= ${TEXMFLOCAL}/fonts/pk/${PORTNAME}
+FONTS_MF_DIR= ${TEXMFLOCAL}/fonts/source/${PORTNAME}
+FONTS_TFM_DIR= ${TEXMFLOCAL}/fonts/tfm/${PORTNAME}
+
+.include <bsd.port.pre.mk>
+
+do-build:
+ @cd ${WRKSRC}; \
+ ${TEX_CMD} ${CIRC_INS};
+
+do-install:
+ @cd ${WRKSRC}; \
+ ${MKDIR} ${CLASS_DIR}; \
+ CLASSES=$$(${FIND} . ${FIND_CLASS} ); \
+ for CLASS in $${CLASSES}; do \
+ ${INSTALL_DATA} $${CLASS} ${CLASS_DIR}/$${CLASS}; \
+ done; \
+ ${TEX_CMD} ${CIRC_DRV} && ${TEX_CMD} ${CIRC_DRV} && ${TEX_CMD} ${CIRC_DRV}; \
+ ${MKDIR} ${FONTS_PK_DIR} ${FONTS_MF_DIR} ${FONTS_TFM_DIR}; \
+ FONTS_PK=$$(${FIND} . ${FIND_FONTS_PK} ); \
+ for PK in $${FONTS_PK}; do \
+ ${INSTALL_DATA} $${PK} ${FONTS_PK_DIR}/$${PK}; \
+ done; \
+ FONTS_MF=$$(${FIND} . ${FIND_FONTS_MF} ); \
+ for MF in $${FONTS_MF}; do \
+ ${INSTALL_DATA} $${MF} ${FONTS_MF_DIR}/$${MF}; \
+ done; \
+ FONTS_TFM=$$(${FIND} . ${FIND_FONTS_TFM} ); \
+ for TFM in $${FONTS_TFM}; do \
+ ${INSTALL_DATA} $${TFM} ${FONTS_TFM_DIR}/$${TFM}; \
+ done;
+.if !defined(NOPORTDOCS)
+ @cd ${WRKSRC}; \
+ ${MKDIR} ${TEXMFLOCAL_DOC}/${PORTNAME}; \
+ ${INSTALL_DATA} ${CIRC_DOC} ${TEXMFLOCAL_DOC}/${PORTNAME}/${CIRC_DOC}
+.endif
+
+post-install:
+ @${MKTEXLSR}
+
+.include <bsd.port.post.mk>
diff --git a/print/latex-circ/distinfo b/print/latex-circ/distinfo
new file mode 100644
index 000000000000..a3e73ebc3b62
--- /dev/null
+++ b/print/latex-circ/distinfo
@@ -0,0 +1,2 @@
+MD5 (circ.zip) = 664bafcb6743376c6bdc992c5b3438c9
+SIZE (circ.zip) = 52082
diff --git a/print/latex-circ/pkg-descr b/print/latex-circ/pkg-descr
new file mode 100644
index 000000000000..c126d94f50dd
--- /dev/null
+++ b/print/latex-circ/pkg-descr
@@ -0,0 +1,5 @@
+This Latex package contains macros for typesetting circuit diagrams.
+Several electrical symbols like resistor, capacitor, transistors etc.,
+are defined. The symbols can be connected with wires.
+
+Author: Simon Law, Andreas Tille and Tanner
diff --git a/print/latex-circ/pkg-plist b/print/latex-circ/pkg-plist
new file mode 100644
index 000000000000..f818d95bb679
--- /dev/null
+++ b/print/latex-circ/pkg-plist
@@ -0,0 +1,43 @@
+@comment $FreeBSD$
+%%PORTDOCS%%share/texmf-local/doc/circ/circ.dvi
+share/texmf-local/fonts/pk/circ/cibimos.600pk
+share/texmf-local/fonts/pk/circ/cicirc.600pk
+share/texmf-local/fonts/pk/circ/cidiod.600pk
+share/texmf-local/fonts/pk/circ/cioptic.600pk
+share/texmf-local/fonts/pk/circ/ciphysic.600pk
+share/texmf-local/fonts/pk/circ/cirest.600pk
+share/texmf-local/fonts/pk/circ/cisym.600pk
+share/texmf-local/fonts/pk/circ/ciwidko.600pk
+share/texmf-local/fonts/source/circ/cibimos.mf
+share/texmf-local/fonts/source/circ/cicirc.mf
+share/texmf-local/fonts/source/circ/cidiod.mf
+share/texmf-local/fonts/source/circ/cioptic.mf
+share/texmf-local/fonts/source/circ/ciphysic.mf
+share/texmf-local/fonts/source/circ/cirest.mf
+share/texmf-local/fonts/source/circ/cisym.mf
+share/texmf-local/fonts/source/circ/ciwidko.mf
+share/texmf-local/fonts/source/circ/csym.mf
+share/texmf-local/fonts/source/circ/defcirc.mf
+share/texmf-local/fonts/tfm/circ/cibimos.tfm
+share/texmf-local/fonts/tfm/circ/cicirc.tfm
+share/texmf-local/fonts/tfm/circ/cidiod.tfm
+share/texmf-local/fonts/tfm/circ/cioptic.tfm
+share/texmf-local/fonts/tfm/circ/ciphysic.tfm
+share/texmf-local/fonts/tfm/circ/cirest.tfm
+share/texmf-local/fonts/tfm/circ/cisym.tfm
+share/texmf-local/fonts/tfm/circ/ciwidko.tfm
+share/texmf-local/tex/latex/circ/circ.sty
+share/texmf-local/tex/latex/circ/ic.def
+share/texmf-local/tex/latex/circ/gate.def
+share/texmf-local/tex/latex/circ/oldgate.def
+share/texmf-local/tex/latex/circ/box.def
+share/texmf-local/tex/latex/circ/basic.def
+share/texmf-local/tex/latex/circ/optics.def
+share/texmf-local/tex/latex/circ/physics.def
+%%PORTDOCS%%@dirrm share/texmf-local/doc/circ
+@dirrm share/texmf-local/fonts/pk/circ
+@dirrm share/texmf-local/fonts/source/circ
+@dirrm share/texmf-local/fonts/tfm/circ
+@dirrm share/texmf-local/tex/latex/circ
+@exec %%MKTEXLSR%%
+@unexec %%MKTEXLSR%%