diff options
author | Jeroen Roovers <jer@gentoo.org> | 2017-12-02 21:31:46 +0100 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2017-12-02 21:32:01 +0100 |
commit | ef4b282b7f6609cd68aa9ce7b6e89333f0096b95 (patch) | |
tree | 4ae3024492bcfdf7e049fb7a6bd175bb39fb7932 /x11-misc/easystroke/easystroke-0.6.0-r3.ebuild | |
parent | dev-python/clang-python: Enable python3* for all 5.0* versions (diff) | |
download | gentoo-ef4b282b7f6609cd68aa9ce7b6e89333f0096b95.tar.gz gentoo-ef4b282b7f6609cd68aa9ce7b6e89333f0096b95.tar.bz2 gentoo-ef4b282b7f6609cd68aa9ce7b6e89333f0096b95.zip |
x11-misc/easystroke: Rename internal function abs() (bug #638922).
Package-Manager: Portage-2.3.16, Repoman-2.3.6
Diffstat (limited to 'x11-misc/easystroke/easystroke-0.6.0-r3.ebuild')
-rw-r--r-- | x11-misc/easystroke/easystroke-0.6.0-r3.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/x11-misc/easystroke/easystroke-0.6.0-r3.ebuild b/x11-misc/easystroke/easystroke-0.6.0-r3.ebuild new file mode 100644 index 000000000000..74b40179af2b --- /dev/null +++ b/x11-misc/easystroke/easystroke-0.6.0-r3.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="a gesture-recognition application for X11" +HOMEPAGE="https://sourceforge.net/apps/trac/easystroke/" +SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.gz" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-cpp/gtkmm:3.0 + dev-libs/boost:= + dev-libs/dbus-glib + dev-libs/glib:2 + x11-base/xorg-server + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXtst +" +DEPEND=" + ${RDEPEND} + dev-util/intltool + sys-devel/gettext +" +PATCHES=( + "${FILESDIR}"/${P}-cellrendertextish.patch + "${FILESDIR}"/${P}-desktop.patch + "${FILESDIR}"/${P}-gentoo.patch + "${FILESDIR}"/${P}-reinstate-signal-handlers.patch + "${FILESDIR}"/${P}-buttons-scroll-send.patch + "${FILESDIR}"/${P}-cxx11.patch + "${FILESDIR}"/${P}-abs.patch +) + +src_prepare() { + default + + tc-export CC CXX PKG_CONFIG + + if ! [[ -z ${LINGUAS} ]]; then + strip-linguas -i po/ + + local es_lingua lang + for es_lingua in $( printf "%s\n" po/*.po ); do + lang=${es_lingua/po\/} + has ${lang/.po/} ${LINGUAS} || rm ${es_lingua} + done + fi +} + +src_compile() { + append-cxxflags -std=c++11 + emake \ + AOFLAGS='' \ + LDFLAGS="${LDFLAGS}" \ + PREFIX=/usr +} + +src_install() { + emake DESTDIR="${D}" PREFIX=/usr install +} |