x11-1.6.1.2.ebuild 1012 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. # ebuild generated by hackport 0.4.9999
  5. CABAL_FEATURES="lib profile haddock hoogle hscolour"
  6. inherit haskell-cabal
  7. MY_PN="X11"
  8. MY_P="${MY_PN}-${PV}"
  9. DESCRIPTION="A binding to the X11 graphics library"
  10. HOMEPAGE="https://github.com/haskell-pkg-janitors/X11"
  11. SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
  12. LICENSE="BSD"
  13. SLOT="0/${PV}"
  14. KEYWORDS="~amd64 ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
  15. IUSE="+screensaver +xinerama"
  16. RDEPEND="dev-haskell/data-default:=[profile?]
  17. >=dev-lang/ghc-7.4.1:=
  18. x11-libs/libX11
  19. x11-libs/libXext
  20. x11-libs/libXrandr
  21. screensaver? ( x11-libs/libXScrnSaver )
  22. xinerama? ( x11-libs/libXinerama )
  23. "
  24. DEPEND="${RDEPEND}
  25. >=dev-haskell/cabal-1.2
  26. "
  27. S="${WORKDIR}/${MY_P}"
  28. src_configure() {
  29. haskell-cabal_src_configure \
  30. --configure-option=$(use_with xinerama) \
  31. --configure-option=$(use_with screensaver xscreensaver)
  32. }