summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarri Nieminen <moikkis@gmail.com>2017-02-15 18:57:46 +0200
committerDavid Seifert <soap@gentoo.org>2017-02-17 21:14:37 +0100
commit541c185ef17a2c99fb14e131e80d5f473b07f264 (patch)
treeea89f8ad5ebbdab89dc917c328e4e366b425b6c7 /x11-misc/accessx
parentnet-misc/youtube-dl: Old. (diff)
downloadgentoo-541c185ef17a2c99fb14e131e80d5f473b07f264.tar.gz
gentoo-541c185ef17a2c99fb14e131e80d5f473b07f264.tar.bz2
gentoo-541c185ef17a2c99fb14e131e80d5f473b07f264.zip
x11-misc/accessx: EAPI bump 2 -> 6
Package-Manager: Portage-2.3.3, Repoman-2.3.1 Closes: https://github.com/gentoo/gentoo/pull/3987
Diffstat (limited to 'x11-misc/accessx')
-rw-r--r--x11-misc/accessx/accessx-0951-r2.ebuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/x11-misc/accessx/accessx-0951-r2.ebuild b/x11-misc/accessx/accessx-0951-r2.ebuild
new file mode 100644
index 000000000000..71bc9ad7bec9
--- /dev/null
+++ b/x11-misc/accessx/accessx-0951-r2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit toolchain-funcs
+
+DESCRIPTION="Interface to the XKEYBOARD extension in X11"
+HOMEPAGE="http://cita.disability.uiuc.edu/software/accessx/freewareaccessx.php"
+SRC_URI="http://cmos-eng.rehab.uiuc.edu/${PN}/software/${PN}${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/libX11
+ x11-libs/libXext
+ dev-lang/tk:0="
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${PN}
+PATCHES=( "${FILESDIR}"/${P}-build.patch )
+
+src_prepare() {
+ default
+ sed -i \
+ -e 's:$(CC) $(OPTS) ax.C:$(CC) $(LDFLAGS) $(OPTS) ax.C:' \
+ Makefile || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCXX)" OPTS="${CXXFLAGS}" XLIBDIR="-L/usr/$(get_libdir)" \
+ LLIBS="$($(tc-getPKG_CONFIG) --libs xext) $($(tc-getPKG_CONFIG) --libs x11)"
+}
+
+src_install() {
+ dobin accessx ax
+ einstalldocs
+}