1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

Add latex-circ 1.0f,

a LaTeX package for typesetting circuit
diagrams.

PR:		83838
Submitted by:	Nicola Vitale <nivit@email.it>
This commit is contained in:
Simon Barner 2005-11-17 13:43:42 +00:00
parent 9c1e572f88
commit 48d8453441
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=148609
5 changed files with 136 additions and 0 deletions

View File

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

85
print/latex-circ/Makefile Normal file
View File

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

View File

@ -0,0 +1,2 @@
MD5 (circ.zip) = 664bafcb6743376c6bdc992c5b3438c9
SIZE (circ.zip) = 52082

View File

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

View File

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