gv-3.7.3.90.ebuild 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils
  5. DESCRIPTION="Viewer for PostScript and PDF documents using Ghostscript"
  6. HOMEPAGE="https://www.gnu.org/software/gv/"
  7. # Change 'gnu-alpha' to 'gnu' for final release, like 3.7.4
  8. SRC_URI="mirror://gnu-alpha/gv/${P}.tar.gz"
  9. LICENSE="GPL-3"
  10. SLOT="0"
  11. KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
  12. IUSE="xinerama"
  13. RDEPEND="app-text/ghostscript-gpl
  14. x11-libs/libICE
  15. x11-libs/libSM
  16. x11-libs/libX11
  17. >=x11-libs/libXaw3d-1.6-r1[unicode]
  18. x11-libs/libXext
  19. x11-libs/libXmu
  20. x11-libs/libXpm
  21. x11-libs/libXt
  22. xinerama? ( x11-libs/libXinerama )"
  23. DEPEND="${RDEPEND}
  24. virtual/pkgconfig
  25. x11-proto/xproto"
  26. DOCS="AUTHORS ChangeLog NEWS README"
  27. src_configure() {
  28. export ac_cv_lib_Xinerama_main=$(usex xinerama)
  29. econf --enable-scrollbar-code
  30. }
  31. src_install() {
  32. default
  33. doicon "${FILESDIR}"/gv_icon.xpm
  34. make_desktop_entry gv GhostView gv_icon 'Graphics;Viewer'
  35. }