xboxdrv-0.8.5-r1.ebuild 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Copyright 1999-2013 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit base linux-info scons-utils toolchain-funcs
  5. MY_P=${PN}-linux-${PV}
  6. DESCRIPTION="Userspace Xbox 360 Controller driver"
  7. HOMEPAGE="http://pingus.seul.org/~grumbel/xboxdrv/"
  8. SRC_URI="http://pingus.seul.org/~grumbel/xboxdrv/${MY_P}.tar.bz2"
  9. LICENSE="GPL-3"
  10. SLOT="0"
  11. KEYWORDS="amd64 x86"
  12. IUSE=""
  13. RDEPEND="dev-libs/boost
  14. virtual/udev
  15. sys-apps/dbus
  16. dev-libs/glib:2
  17. virtual/libusb:1
  18. x11-libs/libX11"
  19. DEPEND="${RDEPEND}
  20. virtual/pkgconfig"
  21. S=${WORKDIR}/${MY_P}
  22. CONFIG_CHECK="~INPUT_EVDEV ~INPUT_JOYDEV ~INPUT_UINPUT ~!JOYSTICK_XPAD"
  23. PATCHES=( "${FILESDIR}"/${P}-scons.patch )
  24. src_compile() {
  25. escons \
  26. BUILD=custom \
  27. CXX="$(tc-getCXX)" \
  28. AR="$(tc-getAR)" \
  29. RANLIB="$(tc-getRANLIB)" \
  30. CXXFLAGS="-Wall ${CXXFLAGS}" \
  31. LINKFLAGS="${LDFLAGS}"
  32. }
  33. src_install() {
  34. dobin xboxdrv
  35. doman doc/xboxdrv.1
  36. dodoc AUTHORS NEWS PROTOCOL README TODO
  37. newinitd "${FILESDIR}"/xboxdrv.initd xboxdrv
  38. newconfd "${FILESDIR}"/xboxdrv.confd xboxdrv
  39. }