x11-libs/libfakekey: EAPI 6, homepage, src_uri, drop eutils
authorAndreas Sturmlechner <asturm@gentoo.org>
Mon, 26 Feb 2018 22:41:08 +0000 (23:41 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Mon, 26 Feb 2018 22:46:14 +0000 (23:46 +0100)
Package-Manager: Portage-2.3.24, Repoman-2.3.6

x11-libs/libfakekey/files/libfakekey-0.1-ac.patch
x11-libs/libfakekey/libfakekey-0.1-r3.ebuild [new file with mode: 0644]

index 65c0b083aa72599b23d75f0644d59820f4afb78a..7158ad220efd53776458cca712f9b8676c07c9eb 100644 (file)
@@ -1,5 +1,5 @@
---- configure.ac.old   2011-05-22 14:59:45.801746472 +0100
-+++ configure.ac       2011-05-22 15:02:59.437159981 +0100
+--- a/configure.ac     2011-05-22 14:59:45.801746472 +0100
++++ b/configure.ac     2011-05-22 15:02:59.437159981 +0100
 @@ -14,16 +14,14 @@ AC_HEADER_STDC
  
  dnl ------ libtool versioning -----------------------------------------------
diff --git a/x11-libs/libfakekey/libfakekey-0.1-r3.ebuild b/x11-libs/libfakekey/libfakekey-0.1-r3.ebuild
new file mode 100644 (file)
index 0000000..ac34a6d
--- /dev/null
@@ -0,0 +1,48 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="Helper library for the x11-misc/matchbox-keyboard package"
+HOMEPAGE="https://www.yoctoproject.org/tools-resources/projects/matchbox"
+SRC_URI="http://downloads.yoctoproject.org/releases/matchbox/${PN}/${PV}/${P}.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+IUSE="debug doc"
+
+RDEPEND="x11-libs/libXtst"
+
+DEPEND="${RDEPEND}
+       doc? ( app-doc/doxygen )"
+
+PATCHES=(
+       # Allow configure to use libtool-2
+       "${FILESDIR}/${P}-ac.patch"
+)
+
+src_prepare() {
+       default
+
+       # Fix underlinking bug #367595
+       sed -i -e 's/^fakekey_test_LDADD=/fakekey_test_LDADD=-lX11 /' \
+               tests/Makefile.am || die 'Cannot sed Makefile.am'
+       sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
+       eautoreconf
+}
+
+src_configure() {
+       # --with/without-x is ignored by configure script and X is used.
+       econf --with-x \
+               $(use_enable debug) \
+               $(use_enable doc doxygen-docs)
+}
+
+src_install() {
+       emake DESTDIR="${D}" install
+       use doc && local HTML_DOCS=( doc/html/. )
+       einstalldocs
+}