circuit_macros-8.4.ebuild 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit texlive-common
  5. DESCRIPTION="M4 Macros for Electric circuit diagrams in TeX or LaTeX"
  6. HOMEPAGE="https://ece.uwaterloo.ca/~aplevich/Circuit_macros/"
  7. SRC_URI="https://ece.uwaterloo.ca/~aplevich/Circuit_macros/Circuit_macros.tar.gz -> circuit_macros-${PV}.tar.gz"
  8. LICENSE="LPPL-1.3c"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86"
  11. IUSE="doc examples +script"
  12. DEPEND=""
  13. RDEPEND="|| ( app-text/texlive[graphics] app-text/texlive[pstricks] )
  14. media-gfx/dpic
  15. sys-devel/m4
  16. script? ( app-text/texlive[graphics]
  17. dev-texlive/texlive-latexextra )"
  18. S="${WORKDIR}/Circuit_macros${PV}"
  19. src_install() {
  20. insinto /usr/share/${PN}
  21. doins *.m4
  22. insinto /usr/share/texmf-site/tex/latex/${PN}
  23. doins boxdims.sty
  24. dodoc README CHANGES Makefile doc/CMman.pdf
  25. rm -f doc/CMman.pdf
  26. use doc && dodoc -r doc
  27. use examples && dodoc -r examples
  28. use script && dobin "${FILESDIR}/cm2pdf"
  29. docompress -x \
  30. /usr/share/doc/${PF}/Makefile \
  31. /usr/share/doc/${PF}/doc \
  32. /usr/share/doc/${PF}/examples
  33. }
  34. pkg_postinst() {
  35. etexmf-update
  36. use script && einfo "cm2pdf was installed to automatically create PDFs. Run cm2pdf --help for usage help."
  37. }
  38. pkg_postrm() {
  39. etexmf-update
  40. }