1 |
commit: 4590ec2b93440bd8915ec61d156ca14fb96d00a0 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 24 17:40:10 2019 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 24 17:40:10 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4590ec2b |
7 |
|
8 |
x11-misc/i855crt: Port to EAPI 7 |
9 |
|
10 |
Package-Manager: Portage-2.3.82, Repoman-2.3.20 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
x11-misc/i855crt/files/i855crt-0.4-makefile.patch | 16 +++++++++++ |
14 |
x11-misc/i855crt/i855crt-0.4-r1.ebuild | 33 ++++++++++++----------- |
15 |
2 files changed, 33 insertions(+), 16 deletions(-) |
16 |
|
17 |
diff --git a/x11-misc/i855crt/files/i855crt-0.4-makefile.patch b/x11-misc/i855crt/files/i855crt-0.4-makefile.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..e7deffb4d30 |
20 |
--- /dev/null |
21 |
+++ b/x11-misc/i855crt/files/i855crt-0.4-makefile.patch |
22 |
@@ -0,0 +1,16 @@ |
23 |
+--- a/Makefile |
24 |
++++ b/Makefile |
25 |
+@@ -1,11 +1,6 @@ |
26 |
+-i855crt: i855crt.o vmodes.o |
27 |
+- gcc $(LDFLAGS) -o i855crt i855crt.o vmodes.o -L /usr/X11R6/lib -lXext -lXv |
28 |
++LDLIBS = -lXv -lX11 |
29 |
+ |
30 |
+-i855crt.o: i855crt.c i855crt.h vmodes.h hw.h |
31 |
+- gcc $(CFLAGS) -c i855crt.c |
32 |
+- |
33 |
+-vmodes.o: vmodes.c vmodes.h |
34 |
+- gcc $(CFLAGS) -c vmodes.c |
35 |
++i855crt: vmodes.o |
36 |
+ |
37 |
+ clean: |
38 |
+ rm *.o -f |
39 |
|
40 |
diff --git a/x11-misc/i855crt/i855crt-0.4-r1.ebuild b/x11-misc/i855crt/i855crt-0.4-r1.ebuild |
41 |
index 1b8581227cd..25df8327c91 100644 |
42 |
--- a/x11-misc/i855crt/i855crt-0.4-r1.ebuild |
43 |
+++ b/x11-misc/i855crt/i855crt-0.4-r1.ebuild |
44 |
@@ -1,9 +1,9 @@ |
45 |
-# Copyright 1999-2011 Gentoo Foundation |
46 |
+# Copyright 1999-2019 Gentoo Authors |
47 |
# Distributed under the terms of the GNU General Public License v2 |
48 |
|
49 |
-EAPI=4 |
50 |
+EAPI=7 |
51 |
|
52 |
-inherit eutils toolchain-funcs |
53 |
+inherit toolchain-funcs |
54 |
|
55 |
DESCRIPTION="Intel Montara 855GM CRT out auxiliary driver" |
56 |
HOMEPAGE="http://i855crt.sourceforge.net/" |
57 |
@@ -12,30 +12,31 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
58 |
LICENSE="GPL-2" |
59 |
SLOT="0" |
60 |
KEYWORDS="~x86" |
61 |
-IUSE="" |
62 |
|
63 |
-DEPEND=" |
64 |
+RDEPEND=" |
65 |
x11-libs/libX11 |
66 |
- x11-libs/libXv |
67 |
-" |
68 |
-RDEPEND="${DEPEND}" |
69 |
+ x11-libs/libXv" |
70 |
+DEPEND="${RDEPEND}" |
71 |
|
72 |
-src_prepare() { |
73 |
- epatch "${FILESDIR}"/${PN}-i915support.diff |
74 |
+PATCHES=( |
75 |
+ "${FILESDIR}"/${PN}-i915support.diff |
76 |
+ "${FILESDIR}"/${PN}-0.4-makefile.patch |
77 |
+) |
78 |
|
79 |
- # respect CC, fix underlinking |
80 |
- sed -i Makefile \ |
81 |
- -e 's|gcc|$(CC)|g;/LDFLAGS/{s|$| -lX11|g};s|-lXext||g' \ |
82 |
- || die |
83 |
- export LIBS="-lX11" |
84 |
- tc-export CC |
85 |
+src_prepare() { |
86 |
+ default |
87 |
|
88 |
# upstream ships it with the binary, we want to make sure we compile it |
89 |
emake clean |
90 |
} |
91 |
|
92 |
+src_configure() { |
93 |
+ tc-export CC |
94 |
+} |
95 |
+ |
96 |
src_install() { |
97 |
dobin i855crt |
98 |
insinto /etc |
99 |
doins i855crt.conf |
100 |
+ einstalldocs |
101 |
} |