1 |
commit: e49994467ae77f9d7158ee98cc6af612b83d61f1 |
2 |
Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com> |
3 |
AuthorDate: Mon Apr 23 21:32:41 2018 +0000 |
4 |
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 26 15:30:07 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4999446 |
7 |
|
8 |
x11-libs/libdlo: New package |
9 |
|
10 |
Closes: https://bugs.gentoo.org/652702 |
11 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
12 |
Closes: https://github.com/gentoo/gentoo/pull/7844 |
13 |
|
14 |
x11-libs/libdlo/Manifest | 1 + |
15 |
x11-libs/libdlo/files/disable-testprogram.patch | 33 ++++++++++++++++ |
16 |
x11-libs/libdlo/libdlo-0.1.2.ebuild | 51 +++++++++++++++++++++++++ |
17 |
x11-libs/libdlo/metadata.xml | 21 ++++++++++ |
18 |
4 files changed, 106 insertions(+) |
19 |
|
20 |
diff --git a/x11-libs/libdlo/Manifest b/x11-libs/libdlo/Manifest |
21 |
new file mode 100644 |
22 |
index 00000000000..53df82c59ce |
23 |
--- /dev/null |
24 |
+++ b/x11-libs/libdlo/Manifest |
25 |
@@ -0,0 +1 @@ |
26 |
+DIST libdlo-0.1.2.tar.gz 476865 BLAKE2B b2391b58046e1f403b7e0d1eb915a46aa17c47e8ad804246f12f3b94f9ffb4dbc811e5d08aac29c2f4196b5d384e7244bddad3193adff5d5e890a7463a503fbb SHA512 6df69bebcf3142e0a87f66bb9d690fd78b96e08c2ae5d46fe0f3d91bc135364d5f5dd0c3a481705c3cd90c78a0a076757220fbcc3b0ad4343cdddb54501e3f2f |
27 |
|
28 |
diff --git a/x11-libs/libdlo/files/disable-testprogram.patch b/x11-libs/libdlo/files/disable-testprogram.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..a8f2bba40bf |
31 |
--- /dev/null |
32 |
+++ b/x11-libs/libdlo/files/disable-testprogram.patch |
33 |
@@ -0,0 +1,33 @@ |
34 |
+--- a/configure.ac 2009-10-19 04:41:33.000000000 +0200 |
35 |
++++ b/configure.ac 2018-04-23 23:18:48.867807771 +0200 |
36 |
+@@ -48,7 +48,6 @@ |
37 |
+ |
38 |
+ AC_CONFIG_FILES([Makefile |
39 |
+ src/Makefile |
40 |
+- test/Makefile |
41 |
+ ]) |
42 |
+ AC_OUTPUT |
43 |
+ AC_MSG_RESULT([ |
44 |
+--- a/Makefile.am 2009-10-09 02:20:55.000000000 +0200 |
45 |
++++ b/Makefile.am 2018-04-23 23:19:27.036807625 +0200 |
46 |
+@@ -1,19 +1,13 @@ |
47 |
+-SUBDIRS=src \ |
48 |
+- test |
49 |
++SUBDIRS=src |
50 |
+ dist_doc_DATA = README |
51 |
+ ACLOCAL_AMFLAGS = -I m4 |
52 |
+ AUTOMAKE_OPTIONS = foreign |
53 |
+ EXTRA_DIST = \ |
54 |
+ autogen.sh \ |
55 |
+- test/images/test08.bmp \ |
56 |
+- test/images/test16.bmp \ |
57 |
+- test/images/test24.bmp \ |
58 |
+- test/images/test32.bmp \ |
59 |
+ Guide-v104.pdf \ |
60 |
+ mkdox.sh |
61 |
+ |
62 |
+ TESTS_ENVIRONMENT = sudo |
63 |
+-TESTS = test/test1 |
64 |
+ |
65 |
+ MAINTAINERCLEANFILES = depcomp INSTALL install-sh missing aclocal.m4 config.guess config.sub configure |
66 |
+ |
67 |
|
68 |
diff --git a/x11-libs/libdlo/libdlo-0.1.2.ebuild b/x11-libs/libdlo/libdlo-0.1.2.ebuild |
69 |
new file mode 100644 |
70 |
index 00000000000..d461b4dee5b |
71 |
--- /dev/null |
72 |
+++ b/x11-libs/libdlo/libdlo-0.1.2.ebuild |
73 |
@@ -0,0 +1,51 @@ |
74 |
+# Copyright 1999-2018 Gentoo Foundation |
75 |
+# Distributed under the terms of the GNU General Public License v2 |
76 |
+ |
77 |
+EAPI=6 |
78 |
+ |
79 |
+inherit autotools |
80 |
+ |
81 |
+DESCRIPTION="A fully open source driver which supports all DisplayLink devices" |
82 |
+HOMEPAGE="https://libdlo.freedesktop.org/wiki/" |
83 |
+SRC_URI="https://people.freedesktop.org/~berniet/${P}.tar.gz" |
84 |
+ |
85 |
+LICENSE="GPL-2" |
86 |
+SLOT="0" |
87 |
+KEYWORDS="~amd64 ~x86" |
88 |
+IUSE="static-libs test-program" |
89 |
+ |
90 |
+RDEPEND="virtual/libusb:0=" |
91 |
+ |
92 |
+DEPEND="${RDEPEND}" |
93 |
+ |
94 |
+DOCS=( "AUTHORS" "ChangeLog" "Guide-v104.pdf" "README" ) |
95 |
+ |
96 |
+src_prepare() { |
97 |
+ default |
98 |
+ |
99 |
+ # AM_PROG_AR must be defined or automake will fail with: |
100 |
+ # archiver requires 'AM_PROG_AR' in 'configure.ac'. |
101 |
+ sed -i -e '/AC_PROG_CC/a AM_PROG_AR' configure.ac || die |
102 |
+ |
103 |
+ # Only build the Displaylink test program, if a user wants it. |
104 |
+ if ! use test-program; then |
105 |
+ eapply "${FILESDIR}"/disable-testprogram.patch |
106 |
+ fi |
107 |
+ |
108 |
+ eautoreconf |
109 |
+} |
110 |
+ |
111 |
+src_configure() { |
112 |
+ econf $(use_enable static-libs static) |
113 |
+} |
114 |
+ |
115 |
+src_install() { |
116 |
+ default |
117 |
+ |
118 |
+ # Rename the Displaylink test program to an useful name |
119 |
+ if use test-program; then |
120 |
+ mv "${D}"/usr/bin/test1 "${D}"/usr/bin/displaylink-test || die |
121 |
+ fi |
122 |
+ |
123 |
+ find "${D}" -name '*.la' -delete || die |
124 |
+} |
125 |
|
126 |
diff --git a/x11-libs/libdlo/metadata.xml b/x11-libs/libdlo/metadata.xml |
127 |
new file mode 100644 |
128 |
index 00000000000..c0175f30bba |
129 |
--- /dev/null |
130 |
+++ b/x11-libs/libdlo/metadata.xml |
131 |
@@ -0,0 +1,21 @@ |
132 |
+<?xml version="1.0" encoding="UTF-8"?> |
133 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
134 |
+<pkgmetadata> |
135 |
+ <maintainer type="person"> |
136 |
+ <email>ck+gentoo@××××××××.de</email> |
137 |
+ <name>Conrad Kostecki</name> |
138 |
+ </maintainer> |
139 |
+ <maintainer type="project"> |
140 |
+ <email>proxy-maint@g.o</email> |
141 |
+ <name>Proxy Maintainers</name> |
142 |
+ </maintainer> |
143 |
+ <longdescription> |
144 |
+ A fully open source GPL driver which supports all DisplayLink devices |
145 |
+ in the mainline Linux kernel, called udlfb. It's possible to write |
146 |
+ custom applications for it or to the libdlo user mode library itself. |
147 |
+ And it's also possible to configure X and standard X applications to run on udlfb. |
148 |
+ </longdescription> |
149 |
+ <use> |
150 |
+ <flag name="test-program">Build the program for testing Displaylink devices</flag> |
151 |
+ </use> |
152 |
+</pkgmetadata> |