qjoypad-4.1.0.ebuild 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils qt4-r2
  5. DESCRIPTION="Translate gamepad/joystick input into key strokes/mouse actions in X"
  6. HOMEPAGE="http://qjoypad.sourceforge.net/"
  7. SRC_URI="mirror://sourceforge/qjoypad/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ppc x86"
  11. IUSE=""
  12. RDEPEND="
  13. x11-libs/libXtst
  14. dev-qt/qtgui:4"
  15. DEPEND="${RDEPEND}
  16. x11-proto/inputproto
  17. x11-proto/xextproto
  18. x11-proto/xproto"
  19. S=${WORKDIR}/${P}/src
  20. src_prepare() {
  21. epatch "${FILESDIR}"/${P}-underlink.patch
  22. # fixup the icon tray support (bug #436426)
  23. sed -i \
  24. -e '/^icons.extra/d' \
  25. -e '/^icons/s:/qjoypad::' \
  26. -e 's/icon24.png/qjoypad4-24x24.png/' \
  27. -e 's/icon64.png/qjoypad4-64x64.png/' \
  28. qjoypad.pro || die
  29. }
  30. src_configure() {
  31. eqmake4 qjoypad.pro PREFIX=/usr DEVDIR=/dev/input
  32. }
  33. src_install() {
  34. local i
  35. dobin qjoypad
  36. dodoc ../README.txt
  37. cd ../icons
  38. for i in *; do
  39. newicon ${i} ${i/gamepad/qjoypad}
  40. done
  41. make_desktop_entry qjoypad QJoypad ${PN}4-64x64
  42. }