dvipng-1.15.ebuild 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit flag-o-matic toolchain-funcs
  5. DESCRIPTION="Translate DVI files into PNG or GIF graphics"
  6. HOMEPAGE="http://dvipng.sourceforge.net/"
  7. SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
  8. LICENSE="LGPL-3+ Texinfo-manual"
  9. SLOT="0"
  10. KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
  11. IUSE="truetype test"
  12. RDEPEND="
  13. dev-libs/kpathsea:=
  14. media-libs/gd:2=[jpeg,png]
  15. media-libs/libpng:0=
  16. virtual/latex-base
  17. sys-libs/zlib
  18. truetype? ( >=media-libs/freetype-2.1.5 )"
  19. DEPEND="${RDEPEND}
  20. virtual/texi2dvi
  21. virtual/pkgconfig
  22. test? ( dev-texlive/texlive-fontsrecommended )"
  23. DOCS="ChangeLog README RELEASE"
  24. src_configure() {
  25. has_version '>=dev-libs/kpathsea-6.2.1' && append-cppflags "$($(tc-getPKG_CONFIG) --cflags kpathsea)"
  26. if ! use truetype; then
  27. sed -i -e 's/FT_Init_FreeType/dIsAbLe&/' configure || die "sed failed"
  28. fi
  29. export VARTEXFONTS="${T}/fonts"
  30. econf
  31. }