Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-power/iasl: ChangeLog iasl-20090123.ebuild
Date: Sat, 24 Jan 2009 21:18:29
Message-Id: E1LQptY-00053j-Rb@stork.gentoo.org
1 robbat2 09/01/24 21:18:24
2
3 Modified: ChangeLog
4 Added: iasl-20090123.ebuild
5 Log:
6 Version bump to resolve bug #246196 - bison 2.4 related compile failures.
7 (Portage version: 2.2_rc20/cvs/Linux 2.6.28-05718-g0556e82 x86_64)
8
9 Revision Changes Path
10 1.22 sys-power/iasl/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/iasl/ChangeLog?rev=1.22&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/iasl/ChangeLog?rev=1.22&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/iasl/ChangeLog?r1=1.21&r2=1.22
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-power/iasl/ChangeLog,v
19 retrieving revision 1.21
20 retrieving revision 1.22
21 diff -p -w -b -B -u -u -r1.21 -r1.22
22 --- ChangeLog 9 Sep 2008 06:01:36 -0000 1.21
23 +++ ChangeLog 24 Jan 2009 21:18:24 -0000 1.22
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-power/iasl
26 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-power/iasl/ChangeLog,v 1.21 2008/09/09 06:01:36 robbat2 Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/sys-power/iasl/ChangeLog,v 1.22 2009/01/24 21:18:24 robbat2 Exp $
30 +
31 +*iasl-20090123 (24 Jan 2009)
32 +
33 + 24 Jan 2009; Robin H. Johnson <robbat2@g.o> +iasl-20090123.ebuild:
34 + Version bump to resolve bug #246196 - bison 2.4 related compile failures.
35
36 09 Sep 2008; Robin H. Johnson <robbat2@g.o>
37 +files/iasl-20080701-parallelmake.patch, iasl-20080701.ebuild:
38
39
40
41 1.1 sys-power/iasl/iasl-20090123.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/iasl/iasl-20090123.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/iasl/iasl-20090123.ebuild?rev=1.1&content-type=text/plain
45
46 Index: iasl-20090123.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-power/iasl/iasl-20090123.ebuild,v 1.1 2009/01/24 21:18:24 robbat2 Exp $
51
52 inherit toolchain-funcs flag-o-matic eutils
53
54 MY_PN=acpica-unix
55 MY_P=${MY_PN}-${PV}
56 MY_TESTS_P=${MY_PN/ca/tests}-${PV}
57 DESCRIPTION="Intel ACPI Source Language (ASL) compiler"
58 HOMEPAGE="http://www.intel.com/technology/iapc/acpi/"
59 SRC_URI="http://www.acpica.org/download/${MY_P}.tar.gz
60 test? ( http://www.acpica.org/download/${MY_TESTS_P}.tar.gz )"
61
62 LICENSE="iASL"
63 SLOT="0"
64 KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
65
66 IUSE="test"
67 DEPEND="sys-devel/bison
68 sys-devel/flex"
69
70 RDEPEND=""
71
72 S=${WORKDIR}/${MY_P}
73
74 pkg_setup() {
75 if use test
76 then
77 ewarn 'You have selected USE="test". This will install the test results'
78 ewarn "into /usr/share/${PF}/, compressed as a tarball."
79 ewarn 'The tests themselves will only rarely die, but the test results'
80 ewarn 'are interesting for arch testing. The tests may take quite some'
81 ewarn 'time to complete.'
82 fi
83 }
84
85 src_unpack() {
86 unpack ${A}
87 cd "${S}"
88 epatch "${FILESDIR}"/iasl-20080701-parallelmake.patch
89 }
90
91 src_compile() {
92 local target bin
93 append-flags -fno-strict-aliasing
94
95 for target in compiler tools/acpisrc tools/acpixtract tools/acpiexec
96 do
97 einfo "Compiling in ${target}/"
98 cd "${S}"/${target}
99 case "${target}" in
100 compiler) bin=iasl;;
101 *) bin=${target#*/};;
102 esac
103
104 emake CC="$(tc-getCC)" || die "emake in ${target} failed"
105 einfo "Finished compiling ${target}"
106
107 mv ${bin} "${T}" || die "mv ${bin} failed"
108 einfo "Finished moving ${bin}"
109
110 make clean || die "make clean in ${target} failed"
111 einfo "Finished cleaning ${target}"
112
113 echo ${bin} >>"${T}"/binlist
114 done
115 einfo "$(<"${T}"/binlist)"
116 }
117
118 src_test() {
119 aslts_test
120 #aapits_test
121 #The aapits test currently fails, missing include probably.
122 }
123
124 src_install() {
125 local bin
126 for bin in $(<"${T}"/binlist) ; do
127 dobin "${T}"/${bin}
128 done
129 dodoc README changes.txt
130 if hasq test $FEATURES ; then
131 export ASLTSDIR="$(<"${T}"/asltdir)"
132 cd "${ASLTSDIR}"/tmp/RESULTS || die "cd ${ASLTSDIR}/tmp/RESULTS failed"
133 ebegin "Creating Test Tarball"
134 tar -cjf testresults.tar.bz2 * || die "tar failed"
135 eend $?
136 dodir /usr/share/${PF}
137 insinto /usr/share/${PF}
138 doins testresults.tar.bz2 || die "doins testresults.tar.bz2 failed"
139 fi
140
141 }
142
143 aslts_test() {
144 export ASL="${T}"/iasl \
145 acpiexec="${T}"/acpiexec \
146 ASLTSDIR="${WORKDIR}/${MY_TESTS_P}"/tests/aslts
147 export PATH="${PATH}:${ASLTSDIR}/bin"
148 echo "$ASLTSDIR" >"${T}"/asltdir
149 cd "${ASLTSDIR}"
150 edos2unix $(find . -type 'f') || die "edos2unix failed in aslts"
151 make install || die "make install aslts test failed"
152 chmod +x $(find bin/ | sed -r -e '/\/[A-Z_]+$/d') || die "chmod bin +x failed"
153
154 #The below Do commands runs the tests twice and then dies if the results aren't
155 #Identical.
156 Do 1 || die "failed Do 1"
157 Do 2 || die "failed Do 2"
158 }
159
160 aapits_test() {
161 mv "${WORKDIR}/${MY_TESTS_P}/tests/aapits" "${S}/tools/" || die "mv failed"
162 cd "${S}/tools/aapits" || die "cannot find ${S}/tools/aapits"
163 edos2unix $(find . -type 'f') || die "edos2unix failed in aapits"
164 chmod +x $(find bin/ | sed -r -e '/\/[A-Z_]+$/d') || die "chmod bin +x failed"
165 make || die "make in aapits failed"
166 cd asl || die "cd asl failed"
167 make || die "make in asl failed"
168 cd ../bin
169 ./aapitsrun || die "aapitsrun failed"
170 }