summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2022-02-09 22:43:20 +0100
committerConrad Kostecki <conikost@gentoo.org>2022-02-09 23:56:49 +0100
commitc18659463c35d228b895eb236ae73872d6130912 (patch)
tree40a42ef0b9881913533044bf0d4a19f74ca9a3e0
parentwww-apps/cgp: drop 1_p20190510-r1 (diff)
downloadgentoo-c18659463c35d228b895eb236ae73872d6130912.tar.gz
gentoo-c18659463c35d228b895eb236ae73872d6130912.tar.bz2
gentoo-c18659463c35d228b895eb236ae73872d6130912.zip
x11-libs/libdlo: update EAPI 7 -> 8
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
-rw-r--r--x11-libs/libdlo/libdlo-0.1.2-r2.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/x11-libs/libdlo/libdlo-0.1.2-r2.ebuild b/x11-libs/libdlo/libdlo-0.1.2-r2.ebuild
new file mode 100644
index 000000000000..5854396239bc
--- /dev/null
+++ b/x11-libs/libdlo/libdlo-0.1.2-r2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="A fully open source driver which supports all DisplayLink devices"
+HOMEPAGE="https://libdlo.freedesktop.org/wiki/"
+SRC_URI="https://people.freedesktop.org/~berniet/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE="static-libs test-program"
+
+RDEPEND="virtual/libusb:0="
+DEPEND="${RDEPEND}"
+
+DOCS=( "AUTHORS" "ChangeLog" "Guide-v104.pdf" "README" )
+
+src_prepare() {
+ default
+
+ # AM_PROG_AR must be defined or automake will fail with:
+ # archiver requires 'AM_PROG_AR' in 'configure.ac'.
+ sed -i -e '/AC_PROG_CC/a AM_PROG_AR' configure.ac || die
+
+ # Only build the Displaylink test program, if a user wants it.
+ if ! use test-program; then
+ eapply "${FILESDIR}"/disable-testprogram.patch
+ fi
+
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+
+ # Rename the Displaylink test program to an useful name
+ if use test-program; then
+ mv "${D}"/usr/bin/test1 "${D}"/usr/bin/displaylink-test || die
+ fi
+
+ find "${D}" -name '*.la' -delete || die
+}