zathura-ps-0.2.4.ebuild 967 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils toolchain-funcs
  5. [[ ${PV} == 9999* ]] && inherit git-2
  6. DESCRIPTION="PostScript plug-in for zathura"
  7. HOMEPAGE="http://pwmt.org/projects/zathura/"
  8. if ! [[ ${PV} == 9999* ]]; then
  9. SRC_URI="http://pwmt.org/projects/zathura/plugins/download/${P}.tar.gz"
  10. fi
  11. EGIT_REPO_URI="https://git.pwmt.org/pwmt/${PN}.git"
  12. EGIT_BRANCH="develop"
  13. LICENSE="ZLIB"
  14. SLOT="0"
  15. if ! [[ ${PV} == 9999* ]]; then
  16. KEYWORDS="~amd64 arm ~x86 ~amd64-linux ~x86-linux"
  17. fi
  18. IUSE=""
  19. RDEPEND=">=app-text/libspectre-0.2.6:=
  20. >=app-text/zathura-0.2.7
  21. dev-libs/glib:2=
  22. x11-libs/cairo:="
  23. DEPEND="${RDEPEND}
  24. virtual/pkgconfig"
  25. pkg_setup() {
  26. myzathuraconf=(
  27. CC="$(tc-getCC)"
  28. LD="$(tc-getLD)"
  29. VERBOSE=1
  30. DESTDIR="${D}"
  31. PREFIX="${EPREFIX}/usr"
  32. )
  33. }
  34. src_compile() {
  35. emake "${myzathuraconf[@]}"
  36. }
  37. src_install() {
  38. emake "${myzathuraconf[@]}" install
  39. dodoc AUTHORS
  40. }