Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-power/iasl: iasl-20121018.ebuild iasl-20130117.ebuild ChangeLog
Date: Thu, 31 Jan 2013 09:37:10
Message-Id: 20130131093707.35FF82171D@flycatcher.gentoo.org
1 patrick 13/01/31 09:37:07
2
3 Modified: ChangeLog
4 Added: iasl-20121018.ebuild iasl-20130117.ebuild
5 Log:
6 Bump for #437882
7
8 (Portage version: 2.2.0_alpha161/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.40 sys-power/iasl/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/iasl/ChangeLog?rev=1.40&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/iasl/ChangeLog?rev=1.40&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/iasl/ChangeLog?r1=1.39&r2=1.40
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-power/iasl/ChangeLog,v
20 retrieving revision 1.39
21 retrieving revision 1.40
22 diff -u -r1.39 -r1.40
23 --- ChangeLog 7 Sep 2012 23:11:29 -0000 1.39
24 +++ ChangeLog 31 Jan 2013 09:37:07 -0000 1.40
25 @@ -1,6 +1,13 @@
26 # ChangeLog for sys-power/iasl
27 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-power/iasl/ChangeLog,v 1.39 2012/09/07 23:11:29 robbat2 Exp $
29 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sys-power/iasl/ChangeLog,v 1.40 2013/01/31 09:37:07 patrick Exp $
31 +
32 +*iasl-20130117 (31 Jan 2013)
33 +*iasl-20121018 (31 Jan 2013)
34 +
35 + 31 Jan 2013; Patrick Lauer <patrick@g.o> +iasl-20121018.ebuild,
36 + +iasl-20130117.ebuild:
37 + Bump for #437882
38
39 *iasl-20120816 (07 Sep 2012)
40
41
42
43
44 1.1 sys-power/iasl/iasl-20121018.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/iasl/iasl-20121018.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/iasl/iasl-20121018.ebuild?rev=1.1&content-type=text/plain
48
49 Index: iasl-20121018.ebuild
50 ===================================================================
51 # Copyright 1999-2013 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sys-power/iasl/iasl-20121018.ebuild,v 1.1 2013/01/31 09:37:07 patrick Exp $
54
55 EAPI=4
56
57 inherit toolchain-funcs flag-o-matic eutils
58
59 MY_PN=acpica-unix
60 MY_P=${MY_PN}-${PV}
61 MY_TESTS_P=${MY_PN/ca/tests}-${PV}
62 DESCRIPTION="Intel ACPI Source Language (ASL) compiler"
63 HOMEPAGE="https://www.acpica.org/downloads/index.php"
64 SRC_URI="http://www.acpica.org/download/${MY_P}.tar.gz
65 test? ( http://www.acpica.org/download/${MY_TESTS_P}.tar.gz )"
66
67 LICENSE="iASL"
68 SLOT="0"
69 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-fbsd ~x86-fbsd"
70 IUSE="test"
71
72 DEPEND="sys-devel/bison
73 sys-devel/flex"
74 RDEPEND=""
75
76 S=${WORKDIR}/${MY_P}
77
78 pkg_setup() {
79 if use test && has test ${FEATURES}; then
80 ewarn 'You have selected USE="test". This will install the test results'
81 ewarn "into /usr/share/${PF}/, compressed as a tarball."
82 ewarn 'The tests themselves will only rarely die, but the test results'
83 ewarn 'are interesting for arch testing. The tests may take quite some'
84 ewarn 'time to complete.'
85 fi
86 }
87
88 src_prepare() {
89 #epatch "${FILESDIR}/${PN}-20110922-as-needed.patch"
90 epatch "${FILESDIR}/${PN}-20120816-locale.patch"
91 # Upstream has changed the buildsystem a lot, not sure if these are still
92 # needed
93 #epatch "${FILESDIR}/${PN}-20120816-parallelmake-001.patch"
94 #epatch "${FILESDIR}/${PN}-20110922-parallelmake-002.patch"
95 #epatch "${FILESDIR}/${PN}-20110922-parallelmake-003.patch"
96
97 find "${S}" -type f -name 'Makefile*' -print0 | \
98 xargs -0 -I '{}' \
99 sed -r -e 's:-\<Werror\>::g' -i '{}' \
100 || die
101
102 export BITS=64
103 }
104
105 src_configure() {
106 :
107 }
108
109 src_compile() {
110 cd acpica/generate/unix
111 emake BITS=${BITS}
112 }
113
114 src_test() {
115 aslts_test
116 #aapits_test
117 #The aapits test currently fails, missing include probably.
118 }
119
120 src_install() {
121 cd acpica/generate/unix
122 emake install DESTDIR="${D}" BITS=${BITS}
123 default_src_install
124 #local bin
125 #for bin in $(<"${T}"/binlist) ; do
126 # dobin "${T}"/${bin}
127 #done
128 dodoc "${S}"/changes.txt
129 newdoc "${S}"/source/compiler/readme.txt compiler-readme.txt
130 newdoc "${S}"/generate/unix/readme.txt unix-readme.txt
131 newdoc "${S}"/generate/lint/readme.txt lint-readme.txt
132 newdoc "${S}"/source/compiler/new_table.txt compiler-new_table.txt
133
134 if use test && has test ${FEATURES}; then
135 tb="${T}"/testresults.tar.bz2
136 export ASLTSDIR="$(<"${T}"/asltdir)"
137 ebegin "Creating Test Tarball"
138 tar -cjf "${tb}" -C "${ASLTSDIR}"/tmp/RESULTS . || die "tar failed"
139 eend $?
140 dodir /usr/share/${PF}
141 insinto /usr/share/${PF}
142 doins ${tb} || die "doins testresults.tar.bz2 failed"
143 fi
144
145 }
146
147 aslts_test() {
148 export ASL="${S}"/generate/unix/bin${BITS}/iasl \
149 acpiexec="${S}"/generate/unix/bin${BITS}/acpiexec \
150 ASLTSDIR="${WORKDIR}/${MY_TESTS_P}"/tests/aslts
151 export PATH="${PATH}:${ASLTSDIR}/bin"
152 echo "$ASLTSDIR" >"${T}"/asltdir
153 cd "${ASLTSDIR}"
154 edos2unix $(find . -type 'f')
155 make install || die "make install aslts test failed"
156 chmod +x $(find bin/ ! -regex 'ERROR_OPCODES|HOW_TO_USE|README' ) || die "chmod bin +x failed"
157
158 #The below Do commands runs the tests twice and then dies if the results aren't
159 #Identical.
160 Do 1 || die "failed Do 1"
161 Do 2 || die "failed Do 2"
162 }
163
164 aapits_test() {
165 mv "${WORKDIR}/${MY_TESTS_P}/tests/aapits" "${S}/tools/" || die "mv failed"
166 cd "${S}/tools/aapits" || die "cannot find ${S}/tools/aapits"
167 edos2unix $(find . -type 'f')
168 chmod +x $(find bin/ | sed -r -e '/\/[A-Z_]+$/d') || die "chmod bin +x failed"
169 make || die "make in aapits failed"
170 cd asl || die "cd asl failed"
171 make || die "make in asl failed"
172 cd ../bin
173 ./aapitsrun || die "aapitsrun failed"
174 }
175
176
177
178 1.1 sys-power/iasl/iasl-20130117.ebuild
179
180 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/iasl/iasl-20130117.ebuild?rev=1.1&view=markup
181 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/iasl/iasl-20130117.ebuild?rev=1.1&content-type=text/plain
182
183 Index: iasl-20130117.ebuild
184 ===================================================================
185 # Copyright 1999-2013 Gentoo Foundation
186 # Distributed under the terms of the GNU General Public License v2
187 # $Header: /var/cvsroot/gentoo-x86/sys-power/iasl/iasl-20130117.ebuild,v 1.1 2013/01/31 09:37:07 patrick Exp $
188
189 EAPI=4
190
191 inherit toolchain-funcs flag-o-matic eutils
192
193 MY_PN=acpica-unix
194 MY_P=${MY_PN}-${PV}
195 MY_TESTS_P=${MY_PN/ca/tests}-${PV}
196 DESCRIPTION="Intel ACPI Source Language (ASL) compiler"
197 HOMEPAGE="https://www.acpica.org/downloads/index.php"
198 SRC_URI="http://www.acpica.org/download/${MY_P}.tar.gz
199 test? ( http://www.acpica.org/download/${MY_TESTS_P}.tar.gz )"
200
201 LICENSE="iASL"
202 SLOT="0"
203 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-fbsd ~x86-fbsd"
204 IUSE="test"
205
206 DEPEND="sys-devel/bison
207 sys-devel/flex"
208 RDEPEND=""
209
210 S=${WORKDIR}/${MY_P}
211
212 pkg_setup() {
213 if use test && has test ${FEATURES}; then
214 ewarn 'You have selected USE="test". This will install the test results'
215 ewarn "into /usr/share/${PF}/, compressed as a tarball."
216 ewarn 'The tests themselves will only rarely die, but the test results'
217 ewarn 'are interesting for arch testing. The tests may take quite some'
218 ewarn 'time to complete.'
219 fi
220 }
221
222 src_prepare() {
223 #epatch "${FILESDIR}/${PN}-20110922-as-needed.patch"
224 epatch "${FILESDIR}/${PN}-20120816-locale.patch"
225 # Upstream has changed the buildsystem a lot, not sure if these are still
226 # needed
227 #epatch "${FILESDIR}/${PN}-20120816-parallelmake-001.patch"
228 #epatch "${FILESDIR}/${PN}-20110922-parallelmake-002.patch"
229 #epatch "${FILESDIR}/${PN}-20110922-parallelmake-003.patch"
230
231 find "${S}" -type f -name 'Makefile*' -print0 | \
232 xargs -0 -I '{}' \
233 sed -r -e 's:-\<Werror\>::g' -i '{}' \
234 || die
235
236 export BITS=64
237 }
238
239 src_configure() {
240 :
241 }
242
243 src_compile() {
244 cd acpica/generate/unix
245 emake BITS=${BITS}
246 }
247
248 src_test() {
249 aslts_test
250 #aapits_test
251 #The aapits test currently fails, missing include probably.
252 }
253
254 src_install() {
255 cd acpica/generate/unix
256 emake install DESTDIR="${D}" BITS=${BITS}
257 default_src_install
258 #local bin
259 #for bin in $(<"${T}"/binlist) ; do
260 # dobin "${T}"/${bin}
261 #done
262 dodoc "${S}"/changes.txt
263 newdoc "${S}"/source/compiler/readme.txt compiler-readme.txt
264 newdoc "${S}"/generate/unix/readme.txt unix-readme.txt
265 newdoc "${S}"/generate/lint/readme.txt lint-readme.txt
266 newdoc "${S}"/source/compiler/new_table.txt compiler-new_table.txt
267
268 if use test && has test ${FEATURES}; then
269 tb="${T}"/testresults.tar.bz2
270 export ASLTSDIR="$(<"${T}"/asltdir)"
271 ebegin "Creating Test Tarball"
272 tar -cjf "${tb}" -C "${ASLTSDIR}"/tmp/RESULTS . || die "tar failed"
273 eend $?
274 dodir /usr/share/${PF}
275 insinto /usr/share/${PF}
276 doins ${tb} || die "doins testresults.tar.bz2 failed"
277 fi
278
279 }
280
281 aslts_test() {
282 export ASL="${S}"/generate/unix/bin${BITS}/iasl \
283 acpiexec="${S}"/generate/unix/bin${BITS}/acpiexec \
284 ASLTSDIR="${WORKDIR}/${MY_TESTS_P}"/tests/aslts
285 export PATH="${PATH}:${ASLTSDIR}/bin"
286 echo "$ASLTSDIR" >"${T}"/asltdir
287 cd "${ASLTSDIR}"
288 edos2unix $(find . -type 'f')
289 make install || die "make install aslts test failed"
290 chmod +x $(find bin/ ! -regex 'ERROR_OPCODES|HOW_TO_USE|README' ) || die "chmod bin +x failed"
291
292 #The below Do commands runs the tests twice and then dies if the results aren't
293 #Identical.
294 Do 1 || die "failed Do 1"
295 Do 2 || die "failed Do 2"
296 }
297
298 aapits_test() {
299 mv "${WORKDIR}/${MY_TESTS_P}/tests/aapits" "${S}/tools/" || die "mv failed"
300 cd "${S}/tools/aapits" || die "cannot find ${S}/tools/aapits"
301 edos2unix $(find . -type 'f')
302 chmod +x $(find bin/ | sed -r -e '/\/[A-Z_]+$/d') || die "chmod bin +x failed"
303 make || die "make in aapits failed"
304 cd asl || die "cd asl failed"
305 make || die "make in asl failed"
306 cd ../bin
307 ./aapitsrun || die "aapitsrun failed"
308 }