easystroke-0.6.0-r1.ebuild 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils toolchain-funcs
  5. DESCRIPTION="a gesture-recognition application for X11"
  6. HOMEPAGE="https://sourceforge.net/apps/trac/easystroke/"
  7. SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.gz"
  8. LICENSE="ISC"
  9. SLOT="0"
  10. KEYWORDS="~amd64"
  11. RDEPEND="
  12. dev-cpp/gtkmm:3.0
  13. dev-libs/boost
  14. dev-libs/dbus-glib
  15. dev-libs/glib:2
  16. x11-base/xorg-server
  17. x11-libs/libX11
  18. x11-libs/libXext
  19. x11-libs/libXfixes
  20. x11-libs/libXi
  21. x11-libs/libXtst
  22. "
  23. DEPEND="
  24. ${RDEPEND}
  25. dev-util/intltool
  26. sys-devel/gettext
  27. "
  28. src_prepare() {
  29. epatch "${FILESDIR}"/${P}-cellrendertextish.patch
  30. epatch "${FILESDIR}"/${P}-desktop.patch
  31. epatch "${FILESDIR}"/${P}-gentoo.patch
  32. epatch "${FILESDIR}"/${P}-reinstate-signal-handlers.patch
  33. epatch "${FILESDIR}"/${P}-buttons-scroll-send.patch
  34. tc-export CC CXX PKG_CONFIG
  35. if ! [[ -z ${LINGUAS} ]]; then
  36. strip-linguas -i po/
  37. local es_lingua lang
  38. for es_lingua in $( printf "%s\n" po/*.po ); do
  39. lang=${es_lingua/po\/}
  40. has ${lang/.po/} ${LINGUAS} || rm ${es_lingua}
  41. done
  42. fi
  43. }
  44. src_compile() {
  45. emake \
  46. AOFLAGS='' \
  47. LDFLAGS="${LDFLAGS}" \
  48. PREFIX=/usr
  49. }
  50. src_install() {
  51. emake DESTDIR="${D}" PREFIX=/usr install
  52. }