Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-drivers/xf86-video-ati/
Date: Tue, 17 Jul 2018 14:15:51
Message-Id: 1531836922.f81770e41df51ad850fa78d6f57d7972a9e536bf.mattst88@gentoo
1 commit: f81770e41df51ad850fa78d6f57d7972a9e536bf
2 Author: Marty E. Plummer <hanetzer <AT> startmail <DOT> com>
3 AuthorDate: Tue Jul 17 00:33:48 2018 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 17 14:15:22 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f81770e4
7
8 x11-drivers/xf86-video-ati: port to EAPI 7
9
10 Package-Manager: Portage-2.3.41, Repoman-2.3.9
11
12 ...9999.ebuild => xf86-video-ati-18.0.1-r2.ebuild} | 48 ++++++++++++++++------
13 .../xf86-video-ati/xf86-video-ati-9999.ebuild | 48 ++++++++++++++++------
14 2 files changed, 70 insertions(+), 26 deletions(-)
15
16 diff --git a/x11-drivers/xf86-video-ati/xf86-video-ati-9999.ebuild b/x11-drivers/xf86-video-ati/xf86-video-ati-18.0.1-r2.ebuild
17 similarity index 52%
18 copy from x11-drivers/xf86-video-ati/xf86-video-ati-9999.ebuild
19 copy to x11-drivers/xf86-video-ati/xf86-video-ati-18.0.1-r2.ebuild
20 index 3f5390aec7a..56d17e3405a 100644
21 --- a/x11-drivers/xf86-video-ati/xf86-video-ati-9999.ebuild
22 +++ b/x11-drivers/xf86-video-ati/xf86-video-ati-18.0.1-r2.ebuild
23 @@ -1,28 +1,40 @@
24 # Copyright 1999-2018 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26
27 -EAPI=5
28 +EAPI=7
29
30 -XORG_DRI=always
31 -inherit linux-info xorg-2
32 +inherit linux-info
33 +
34 +DESCRIPTION="ATI video driver"
35 +HOMEPAGE="https://www.x.org/wiki/ati/"
36
37 if [[ ${PV} == 9999* ]]; then
38 - SRC_URI=""
39 + EGIT_REPO_URI="https://anongit.freedesktop.org/git/xorg/driver/${PN}"
40 + inherit autotools git-r3
41 + LIVE_DEPEND=">=x11-misc/util-macros-1.18"
42 else
43 + SRC_URI="mirror://xorg/driver/${P}.tar.bz2"
44 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd"
45 fi
46
47 -DESCRIPTION="ATI video driver"
48 -HOMEPAGE="https://www.x.org/wiki/ati/"
49 -
50 +LICENSE="MIT"
51 +SLOT="0"
52 IUSE="+glamor udev"
53
54 -RDEPEND=">=x11-libs/libdrm-2.4.78[video_cards_radeon]
55 +BDEPEND="
56 + virtual/pkgconfig
57 +"
58 +RDEPEND="
59 + >=x11-libs/libdrm-2.4.78[video_cards_radeon]
60 >=x11-libs/libpciaccess-0.8.0
61 glamor? ( x11-base/xorg-server[glamor] )
62 - udev? ( virtual/libudev:= )"
63 -DEPEND="${RDEPEND}
64 - x11-base/xorg-proto"
65 + udev? ( virtual/libudev:= )
66 +"
67 +DEPEND="
68 + ${LIVE_DEPEND}
69 + ${RDEPEND}
70 + x11-base/xorg-proto
71 +"
72
73 pkg_pretend() {
74 if use kernel_linux ; then
75 @@ -35,10 +47,20 @@ pkg_pretend() {
76 check_extra_config
77 }
78
79 +src_prepare() {
80 + default
81 + [[ ${PV} == 9999 ]] eautoreconf
82 +}
83 +
84 src_configure() {
85 - XORG_CONFIGURE_OPTIONS=(
86 + local econfargs=(
87 $(use_enable glamor)
88 $(use_enable udev)
89 )
90 - xorg-2_src_configure
91 + econf "${econfargs[@]}"
92 +}
93 +
94 +src_install() {
95 + default
96 + find "${D}" -name '*.la' -delete || die
97 }
98
99 diff --git a/x11-drivers/xf86-video-ati/xf86-video-ati-9999.ebuild b/x11-drivers/xf86-video-ati/xf86-video-ati-9999.ebuild
100 index 3f5390aec7a..56d17e3405a 100644
101 --- a/x11-drivers/xf86-video-ati/xf86-video-ati-9999.ebuild
102 +++ b/x11-drivers/xf86-video-ati/xf86-video-ati-9999.ebuild
103 @@ -1,28 +1,40 @@
104 # Copyright 1999-2018 Gentoo Foundation
105 # Distributed under the terms of the GNU General Public License v2
106
107 -EAPI=5
108 +EAPI=7
109
110 -XORG_DRI=always
111 -inherit linux-info xorg-2
112 +inherit linux-info
113 +
114 +DESCRIPTION="ATI video driver"
115 +HOMEPAGE="https://www.x.org/wiki/ati/"
116
117 if [[ ${PV} == 9999* ]]; then
118 - SRC_URI=""
119 + EGIT_REPO_URI="https://anongit.freedesktop.org/git/xorg/driver/${PN}"
120 + inherit autotools git-r3
121 + LIVE_DEPEND=">=x11-misc/util-macros-1.18"
122 else
123 + SRC_URI="mirror://xorg/driver/${P}.tar.bz2"
124 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd"
125 fi
126
127 -DESCRIPTION="ATI video driver"
128 -HOMEPAGE="https://www.x.org/wiki/ati/"
129 -
130 +LICENSE="MIT"
131 +SLOT="0"
132 IUSE="+glamor udev"
133
134 -RDEPEND=">=x11-libs/libdrm-2.4.78[video_cards_radeon]
135 +BDEPEND="
136 + virtual/pkgconfig
137 +"
138 +RDEPEND="
139 + >=x11-libs/libdrm-2.4.78[video_cards_radeon]
140 >=x11-libs/libpciaccess-0.8.0
141 glamor? ( x11-base/xorg-server[glamor] )
142 - udev? ( virtual/libudev:= )"
143 -DEPEND="${RDEPEND}
144 - x11-base/xorg-proto"
145 + udev? ( virtual/libudev:= )
146 +"
147 +DEPEND="
148 + ${LIVE_DEPEND}
149 + ${RDEPEND}
150 + x11-base/xorg-proto
151 +"
152
153 pkg_pretend() {
154 if use kernel_linux ; then
155 @@ -35,10 +47,20 @@ pkg_pretend() {
156 check_extra_config
157 }
158
159 +src_prepare() {
160 + default
161 + [[ ${PV} == 9999 ]] eautoreconf
162 +}
163 +
164 src_configure() {
165 - XORG_CONFIGURE_OPTIONS=(
166 + local econfargs=(
167 $(use_enable glamor)
168 $(use_enable udev)
169 )
170 - xorg-2_src_configure
171 + econf "${econfargs[@]}"
172 +}
173 +
174 +src_install() {
175 + default
176 + find "${D}" -name '*.la' -delete || die
177 }