diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-tex/circuit_macros | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-tex/circuit_macros')
-rw-r--r-- | dev-tex/circuit_macros/Manifest | 4 | ||||
-rw-r--r-- | dev-tex/circuit_macros/circuit_macros-7.9.6.ebuild | 54 | ||||
-rw-r--r-- | dev-tex/circuit_macros/circuit_macros-8.0.ebuild | 50 | ||||
-rw-r--r-- | dev-tex/circuit_macros/circuit_macros-8.02.ebuild | 50 | ||||
-rw-r--r-- | dev-tex/circuit_macros/circuit_macros-8.04.ebuild | 50 | ||||
-rwxr-xr-x | dev-tex/circuit_macros/files/cm2pdf | 72 | ||||
-rw-r--r-- | dev-tex/circuit_macros/metadata.xml | 19 |
7 files changed, 299 insertions, 0 deletions
diff --git a/dev-tex/circuit_macros/Manifest b/dev-tex/circuit_macros/Manifest new file mode 100644 index 000000000000..b30b5148195b --- /dev/null +++ b/dev-tex/circuit_macros/Manifest @@ -0,0 +1,4 @@ +DIST circuit_macros-7.9.6.tar.gz 1693833 SHA256 b1fb52cad0952cdbbca2bbb6bbfa9fe880ab6e16592ed732669a120f47dae5f0 SHA512 302ff2e68e231cbdf94922e8e2960e43fc049d80961a646a308246080c401c1de18a72002969d31ca92f9a461c2ae0626993eb39aec28fc622aca4d5f6931efa WHIRLPOOL 6fa5d0170e75b262ac20cd3cd29ad6aeea325abc041fa1fcff7288963773ee893946c1863aa821024bb8406f7d0b60f049b30f9ad0201b17a84c09d18aab3805 +DIST circuit_macros-8.0.tar.gz 1742055 SHA256 6678ff194ba1181d73b69f78003753f0bb9816a801d7f44530293517b7852b73 SHA512 5b2b93c8f3092fe0785472d759ca05fba3b06795352f30e0cff71a72fcaecc66a6e2b49663522dc4816cdc88a4b00f6f8c76c19f3b08f5027dbcb492625d0daf WHIRLPOOL 3d1dfd05175cc529b8271fb0b86e11702ea44f3d00ae8fcaa2832f12c264633d9e374c64f6fac3de9dfe4d8cbc5e81e3df3152bb89780e08a65283b949a9872d +DIST circuit_macros-8.02.tar.gz 1833829 SHA256 c025a72c24bd0c54edbb6debcaeded8e6c7a8aad30570b51d266fad3af064674 SHA512 1b20deb4c1dcc3d464c1318b39e87a932da3daa863aa01dbc8e5ca2d4a25e7b79fb4950a6dc2d413dc4202e1cdf1968497c3e737631858e0364b1b3c043e250b WHIRLPOOL d6f3d315532401e2cc11fc2f424ebc57a8fd8e2f40d4897dd8f5e54339744fdb77fb49aef556281cd1dd698c508ed7482fd524c8378b5d2ae9a133a8e78df747 +DIST circuit_macros-8.04.tar.gz 1833571 SHA256 36a8be40f8751364c92de823b6e8a66dd864cb306d6b45db117dab95b9bc79cc SHA512 e52353e6a87fb76dc7b8452059a0bf26f23a7778c76b3e02000139807f5ed70071dffd75c40ee0afb6b99087b5b28e3d2af7fa5dd2e0740f8103b4203193fc74 WHIRLPOOL 3737abef0314122443a218134d879114660a84e9dc82a1fbc5d22e019e988a715d620a200dd998eaefe89f5d33e9fb9ae089bdd4edd2662d90c9575c8bf144d7 diff --git a/dev-tex/circuit_macros/circuit_macros-7.9.6.ebuild b/dev-tex/circuit_macros/circuit_macros-7.9.6.ebuild new file mode 100644 index 000000000000..cda8f2aae493 --- /dev/null +++ b/dev-tex/circuit_macros/circuit_macros-7.9.6.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit texlive-common + +DESCRIPTION="M4 Macros for Electric circuit diagrams in TeX or LaTeX" +HOMEPAGE="https://ece.uwaterloo.ca/~aplevich/Circuit_macros/" +SRC_URI="https://ece.uwaterloo.ca/~aplevich/Circuit_macros/Circuit_macros.tar.gz -> circuit_macros-${PV}.tar.gz" + +LICENSE="LPPL-1.3c" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples +script" + +DEPEND="" +RDEPEND="|| ( app-text/texlive[graphics] app-text/texlive[pstricks] ) + media-gfx/dpic + sys-devel/m4 + script? ( app-text/texlive[graphics] + dev-texlive/texlive-latexextra )" + +S="${WORKDIR}/Circuit_macros${PV}" + +src_compile() { + : +} + +src_install() { + insinto /usr/share/${PN} + doins *.m4 + insinto /usr/share/texmf-site/tex/latex/${PN} + doins boxdims.sty + dodoc README CHANGES Makefile doc/CMman.pdf + rm -f doc/CMman.pdf + use doc && dodoc -r doc + use examples && dodoc -r examples + use script && dobin "${FILESDIR}/cm2pdf" + docompress -x \ + /usr/share/doc/${PF}/Makefile \ + /usr/share/doc/${PF}/doc \ + /usr/share/doc/${PF}/examples +} + +pkg_postinst() { + etexmf-update + use script && einfo "cm2pdf was installed to automatically create PDFs. Run cm2pdf --help for usage help." +} + +pkg_postrm() { + etexmf-update +} diff --git a/dev-tex/circuit_macros/circuit_macros-8.0.ebuild b/dev-tex/circuit_macros/circuit_macros-8.0.ebuild new file mode 100644 index 000000000000..64e34807ddf9 --- /dev/null +++ b/dev-tex/circuit_macros/circuit_macros-8.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit texlive-common + +DESCRIPTION="M4 Macros for Electric circuit diagrams in TeX or LaTeX" +HOMEPAGE="https://ece.uwaterloo.ca/~aplevich/Circuit_macros/" +SRC_URI="https://ece.uwaterloo.ca/~aplevich/Circuit_macros/Circuit_macros.tar.gz -> circuit_macros-${PV}.tar.gz" + +LICENSE="LPPL-1.3c" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples +script" + +DEPEND="" +RDEPEND="|| ( app-text/texlive[graphics] app-text/texlive[pstricks] ) + media-gfx/dpic + sys-devel/m4 + script? ( app-text/texlive[graphics] + dev-texlive/texlive-latexextra )" + +S="${WORKDIR}/Circuit_macros${PV}" + +src_install() { + insinto /usr/share/${PN} + doins *.m4 + insinto /usr/share/texmf-site/tex/latex/${PN} + doins boxdims.sty + dodoc README CHANGES Makefile doc/CMman.pdf + rm -f doc/CMman.pdf + use doc && dodoc -r doc + use examples && dodoc -r examples + use script && dobin "${FILESDIR}/cm2pdf" + docompress -x \ + /usr/share/doc/${PF}/Makefile \ + /usr/share/doc/${PF}/doc \ + /usr/share/doc/${PF}/examples +} + +pkg_postinst() { + etexmf-update + use script && einfo "cm2pdf was installed to automatically create PDFs. Run cm2pdf --help for usage help." +} + +pkg_postrm() { + etexmf-update +} diff --git a/dev-tex/circuit_macros/circuit_macros-8.02.ebuild b/dev-tex/circuit_macros/circuit_macros-8.02.ebuild new file mode 100644 index 000000000000..64e34807ddf9 --- /dev/null +++ b/dev-tex/circuit_macros/circuit_macros-8.02.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit texlive-common + +DESCRIPTION="M4 Macros for Electric circuit diagrams in TeX or LaTeX" +HOMEPAGE="https://ece.uwaterloo.ca/~aplevich/Circuit_macros/" +SRC_URI="https://ece.uwaterloo.ca/~aplevich/Circuit_macros/Circuit_macros.tar.gz -> circuit_macros-${PV}.tar.gz" + +LICENSE="LPPL-1.3c" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples +script" + +DEPEND="" +RDEPEND="|| ( app-text/texlive[graphics] app-text/texlive[pstricks] ) + media-gfx/dpic + sys-devel/m4 + script? ( app-text/texlive[graphics] + dev-texlive/texlive-latexextra )" + +S="${WORKDIR}/Circuit_macros${PV}" + +src_install() { + insinto /usr/share/${PN} + doins *.m4 + insinto /usr/share/texmf-site/tex/latex/${PN} + doins boxdims.sty + dodoc README CHANGES Makefile doc/CMman.pdf + rm -f doc/CMman.pdf + use doc && dodoc -r doc + use examples && dodoc -r examples + use script && dobin "${FILESDIR}/cm2pdf" + docompress -x \ + /usr/share/doc/${PF}/Makefile \ + /usr/share/doc/${PF}/doc \ + /usr/share/doc/${PF}/examples +} + +pkg_postinst() { + etexmf-update + use script && einfo "cm2pdf was installed to automatically create PDFs. Run cm2pdf --help for usage help." +} + +pkg_postrm() { + etexmf-update +} diff --git a/dev-tex/circuit_macros/circuit_macros-8.04.ebuild b/dev-tex/circuit_macros/circuit_macros-8.04.ebuild new file mode 100644 index 000000000000..64e34807ddf9 --- /dev/null +++ b/dev-tex/circuit_macros/circuit_macros-8.04.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit texlive-common + +DESCRIPTION="M4 Macros for Electric circuit diagrams in TeX or LaTeX" +HOMEPAGE="https://ece.uwaterloo.ca/~aplevich/Circuit_macros/" +SRC_URI="https://ece.uwaterloo.ca/~aplevich/Circuit_macros/Circuit_macros.tar.gz -> circuit_macros-${PV}.tar.gz" + +LICENSE="LPPL-1.3c" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples +script" + +DEPEND="" +RDEPEND="|| ( app-text/texlive[graphics] app-text/texlive[pstricks] ) + media-gfx/dpic + sys-devel/m4 + script? ( app-text/texlive[graphics] + dev-texlive/texlive-latexextra )" + +S="${WORKDIR}/Circuit_macros${PV}" + +src_install() { + insinto /usr/share/${PN} + doins *.m4 + insinto /usr/share/texmf-site/tex/latex/${PN} + doins boxdims.sty + dodoc README CHANGES Makefile doc/CMman.pdf + rm -f doc/CMman.pdf + use doc && dodoc -r doc + use examples && dodoc -r examples + use script && dobin "${FILESDIR}/cm2pdf" + docompress -x \ + /usr/share/doc/${PF}/Makefile \ + /usr/share/doc/${PF}/doc \ + /usr/share/doc/${PF}/examples +} + +pkg_postinst() { + etexmf-update + use script && einfo "cm2pdf was installed to automatically create PDFs. Run cm2pdf --help for usage help." +} + +pkg_postrm() { + etexmf-update +} diff --git a/dev-tex/circuit_macros/files/cm2pdf b/dev-tex/circuit_macros/files/cm2pdf new file mode 100755 index 000000000000..893c59fe97b6 --- /dev/null +++ b/dev-tex/circuit_macros/files/cm2pdf @@ -0,0 +1,72 @@ +#! /bin/bash + +m4file="" +fontsize=10 + +usage() { + echo "Usage:" + echo "${0##*/} --help" + echo "${0##*/} [options] path/to/file.m4" + echo + echo "--help" + echo " Show this help message." + echo + echo "-f, --fontsize" + echo " Set size of base font, in points." + echo " Supported font sizes are 8, 9, 10, 11, 12, 14, 17 and 20." + exit +} + +if [[ "$#" == 0 ]]; then usage; fi + +while [[ "$#" != 0 ]]; do + case "${1}" in + -h|--help) + usage;; + -f|--fontsize) + case "${2}" in + 8) + fontsize=8;; + 9) + fontsize=9;; + 10) + fontsize=10;; + 11) + fontsize=11;; + 12) + fontsize=12;; + 14) + fontsize=14;; + 17) + fontsize=17;; + 20) + fontsize=20;; + *) + echo "Unsupported font size: ${2}" + exit;; + esac + shift; shift;; + *.m4) + m4file="${1}" + shift;; + *) + echo "Unknown option: ${1}" + exit + esac +done + +if [[ "${m4file}" == "" ]]; then + echo "No m4 input file" + exit +fi + +tempdir=$(mktemp -d) +cp -f "${m4file}" "${tempdir}/source.m4" +pushd "${tempdir}" > /dev/null + +m4 -I /usr/share/circuit_macros pgf.m4 source.m4 | dpic -g > source.tex +pdflatex "\documentclass[preview=true]{standalone}\usepackage{tikz,boxdims}\usepackage[${fontsize}pt]{extsizes}\begin{document}\input source.tex\end{document}" + +popd > /dev/null +cp "${tempdir}/standalone.pdf" "${m4file%.m4}.pdf" +rm -rf "${tempdir}" diff --git a/dev-tex/circuit_macros/metadata.xml b/dev-tex/circuit_macros/metadata.xml new file mode 100644 index 000000000000..239ba2086e69 --- /dev/null +++ b/dev-tex/circuit_macros/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>tex</herd> +<herd>sci-electronics</herd> +<maintainer> + <email>calchan@gentoo.org</email> +</maintainer> +<longdescription>Set of macros for drawing high-quality line diagrams to include + in TeX, LaTeX, or similar documents. Fundamental electric circuit + elements and basic logic gates are included with several tools and + examples of other types of diagrams. +</longdescription> +<use> + <flag name="script">Install cm2pdf to automatically create a correctly + sized PDF from a circuit_macro m4 source + </flag> +</use> +</pkgmetadata> |