summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Dupeyron <calchan@gentoo.org>2016-05-19 12:23:30 -0600
committerDenis Dupeyron <calchan@gentoo.org>2016-05-19 12:24:03 -0600
commit7fd66aaa2abc36c84ec890a9d83f39be62a08c2a (patch)
tree2323d02c7f82b385678b32714bc385e2baf6c3b9 /dev-tex/circuit_macros/circuit_macros-8.4.ebuild
parentjava-vm-2.eclass: Bump everyone up to eselect-java-0.2.0 (diff)
downloadgentoo-7fd66aaa2abc36c84ec890a9d83f39be62a08c2a.tar.gz
gentoo-7fd66aaa2abc36c84ec890a9d83f39be62a08c2a.tar.bz2
gentoo-7fd66aaa2abc36c84ec890a9d83f39be62a08c2a.zip
dev-tex/circuit_macros: bump to 8.4
Diffstat (limited to 'dev-tex/circuit_macros/circuit_macros-8.4.ebuild')
-rw-r--r--dev-tex/circuit_macros/circuit_macros-8.4.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-tex/circuit_macros/circuit_macros-8.4.ebuild b/dev-tex/circuit_macros/circuit_macros-8.4.ebuild
new file mode 100644
index 000000000000..a4619f9dcf75
--- /dev/null
+++ b/dev-tex/circuit_macros/circuit_macros-8.4.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+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
+}