joystick-1.6.0.ebuild 892 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit eutils toolchain-funcs
  5. MY_P="linuxconsoletools-${PV}"
  6. DESCRIPTION="joystick testing utilities"
  7. HOMEPAGE="https://sourceforge.net/projects/linuxconsole/ http://atrey.karlin.mff.cuni.cz/~vojtech/input/"
  8. SRC_URI="mirror://sourceforge/linuxconsole/files/${MY_P}.tar.bz2"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~arm ~ppc ~x86"
  12. IUSE="sdl udev"
  13. DEPEND="sdl? ( media-libs/libsdl:0[video] )
  14. !<x11-libs/tslib-1.0-r2"
  15. RDEPEND="${DEPEND}
  16. udev? ( virtual/udev )"
  17. S=${WORKDIR}/${MY_P}
  18. PATCHES=(
  19. "${FILESDIR}"/${PN}-1.6.0-build.patch
  20. "${FILESDIR}"/${PN}-1.4.8-udev.patch
  21. )
  22. src_prepare() {
  23. default
  24. export PREFIX=/usr
  25. tc-export CC PKG_CONFIG
  26. export USE_SDL=$(usex sdl)
  27. }
  28. src_install() {
  29. default
  30. if use !udev ; then
  31. rm "${D}"/usr/bin/jscal-{re,}store || die
  32. fi
  33. }