nvtv-0.4.7-r3.ebuild 819 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit autotools
  5. IUSE="X gtk"
  6. DESCRIPTION="TV-Out for NVidia cards"
  7. HOMEPAGE="https://sourceforge.net/projects/nv-tv-out/"
  8. SRC_URI="mirror://sourceforge/nv-tv-out/${P}.tar.gz"
  9. SLOT="0"
  10. LICENSE="GPL-2"
  11. KEYWORDS="~x86 ~amd64"
  12. RDEPEND="sys-apps/pciutils[-zlib]
  13. gtk? ( x11-libs/gtk+:2 )
  14. X? ( x11-libs/libXi
  15. x11-libs/libXmu
  16. x11-libs/libXxf86vm )"
  17. DEPEND="${RDEPEND}
  18. X? ( x11-proto/xf86vidmodeproto )"
  19. PATCHES=( "${FILESDIR}/respect-cflags.patch" )
  20. src_prepare() {
  21. default
  22. eautoreconf
  23. }
  24. src_configure() {
  25. econf $(use_with gtk) $(use_with X x)
  26. }
  27. src_install() {
  28. dobin src/nvtv
  29. dosbin src/nvtvd
  30. dodoc ANNOUNCE BUGS FAQ README doc/*.txt doc/USAGE
  31. newinitd "${FILESDIR}"/nvtv.start nvtv
  32. }