diff options
author | Conrad Kostecki <conrad@kostecki.com> | 2018-10-27 12:57:56 +0200 |
---|---|---|
committer | Virgil Dupras <vdupras@gentoo.org> | 2018-11-14 10:01:19 -0500 |
commit | a9ab67985422f41b6c81ff1e62cbdfb3a2420ac6 (patch) | |
tree | 4673528581930673dbe479834d308ccbac90b818 /x11-libs/libdlo | |
parent | sys-kernel/gentoo-sources: Linux patch 4.9.137 (diff) | |
download | gentoo-a9ab67985422f41b6c81ff1e62cbdfb3a2420ac6.tar.gz gentoo-a9ab67985422f41b6c81ff1e62cbdfb3a2420ac6.tar.bz2 gentoo-a9ab67985422f41b6c81ff1e62cbdfb3a2420ac6.zip |
x11-libs/libdlo: bump to EAPI=7
Closes: https://bugs.gentoo.org/669768
Signed-off-by: Conrad Kostecki <conrad@kostecki.com>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Closes: https://github.com/gentoo/gentoo/pull/10253
Signed-off-by: Virgil Dupras <vdupras@gentoo.org>
Diffstat (limited to 'x11-libs/libdlo')
-rw-r--r-- | x11-libs/libdlo/libdlo-0.1.2-r1.ebuild | 50 | ||||
-rw-r--r-- | x11-libs/libdlo/metadata.xml | 2 |
2 files changed, 51 insertions, 1 deletions
diff --git a/x11-libs/libdlo/libdlo-0.1.2-r1.ebuild b/x11-libs/libdlo/libdlo-0.1.2-r1.ebuild new file mode 100644 index 000000000000..c193c73cc440 --- /dev/null +++ b/x11-libs/libdlo/libdlo-0.1.2-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 ~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 +} diff --git a/x11-libs/libdlo/metadata.xml b/x11-libs/libdlo/metadata.xml index c0175f30bba8..0dae7351b410 100644 --- a/x11-libs/libdlo/metadata.xml +++ b/x11-libs/libdlo/metadata.xml @@ -16,6 +16,6 @@ And it's also possible to configure X and standard X applications to run on udlfb. </longdescription> <use> - <flag name="test-program">Build the program for testing Displaylink devices</flag> + <flag name="test-program">Build the program for testing Displaylink devices.</flag> </use> </pkgmetadata> |