epspdf-0.6.0.ebuild 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit texlive-common eutils
  5. DESCRIPTION="GUI and command-line converter for [e]ps and pdf"
  6. HOMEPAGE="http://tex.aanhet.net/epspdf/"
  7. SRC_URI="http://tex.aanhet.net/epspdf/${PN}.${PV}.tgz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
  11. IUSE="doc tk"
  12. DEPEND=""
  13. RDEPEND="!<dev-texlive/texlive-pictures-2011-r1
  14. >=dev-texlive/texlive-basic-2011
  15. app-text/ghostscript-gpl
  16. tk? ( dev-lang/tk )"
  17. S=${WORKDIR}/${PN}
  18. INSTALLDIR=/usr/share/${PN}
  19. FILES="epspdf.tlu"
  20. TKFILES="epspdf.help epspdf.ico epspdftk.tcl"
  21. src_install() {
  22. dodir ${INSTALLDIR}
  23. cp -p ${FILES} "${ED}/${INSTALLDIR}" || die
  24. if use tk ; then
  25. cp -p ${TKFILES} "${ED}/${INSTALLDIR}" || die
  26. fi
  27. dobin_texmf_scripts "${PN}/epspdf.tlu"
  28. use tk && dobin_texmf_scripts "${PN}/epspdftk.tcl"
  29. doinfo doc/epspdf.info
  30. dodoc doc/Changelog
  31. if use doc ; then
  32. dodoc doc/epspdf.pdf
  33. dohtml -r doc
  34. fi
  35. # give it a .desktop
  36. if use tk; then
  37. make_desktop_entry epspdftk epspdftk "${INSTALLDIR}/epspdf.ico" "Graphics;ImageProcessing"
  38. fi
  39. }