1 |
robbat2 09/09/30 01:17:18 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: iasl-20090903.ebuild |
5 |
Log: |
6 |
Version bump. Also fix bug #286499 for Turkish locales. |
7 |
(Portage version: 2.2_rc42/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.28 sys-power/iasl/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/iasl/ChangeLog?rev=1.28&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/iasl/ChangeLog?rev=1.28&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/iasl/ChangeLog?r1=1.27&r2=1.28 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-power/iasl/ChangeLog,v |
19 |
retrieving revision 1.27 |
20 |
retrieving revision 1.28 |
21 |
diff -p -w -b -B -u -u -r1.27 -r1.28 |
22 |
--- ChangeLog 31 Jul 2009 06:47:10 -0000 1.27 |
23 |
+++ ChangeLog 30 Sep 2009 01:17:18 -0000 1.28 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for sys-power/iasl |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-power/iasl/ChangeLog,v 1.27 2009/07/31 06:47:10 robbat2 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-power/iasl/ChangeLog,v 1.28 2009/09/30 01:17:18 robbat2 Exp $ |
29 |
+ |
30 |
+*iasl-20090903 (30 Sep 2009) |
31 |
+ |
32 |
+ 30 Sep 2009; Robin H. Johnson <robbat2@g.o> +iasl-20090903.ebuild, |
33 |
+ +files/iasl-locale.patch: |
34 |
+ Version bump. Also fix bug #286499 for Turkish locales. |
35 |
|
36 |
31 Jul 2009; Robin H. Johnson <robbat2@g.o> iasl-20080514.ebuild, |
37 |
iasl-20080701.ebuild, iasl-20090123.ebuild, iasl-20090521.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 sys-power/iasl/iasl-20090903.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/iasl/iasl-20090903.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/iasl/iasl-20090903.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: iasl-20090903.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-20090903.ebuild,v 1.1 2009/09/30 01:17:18 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 |
epatch "${FILESDIR}"/iasl-locale.patch |
90 |
|
91 |
sed -i -e 's:LDFLAGS=:LDLIBS+=:' \ |
92 |
"${S}"/compiler/Makefile || die "unable to fix compiler Makefile" |
93 |
} |
94 |
|
95 |
src_compile() { |
96 |
local target bin |
97 |
append-flags -fno-strict-aliasing |
98 |
|
99 |
for target in compiler tools/acpisrc tools/acpixtract tools/acpiexec |
100 |
do |
101 |
einfo "Compiling in ${target}/" |
102 |
cd "${S}"/${target} |
103 |
case "${target}" in |
104 |
compiler) bin=iasl;; |
105 |
*) bin=${target#*/};; |
106 |
esac |
107 |
|
108 |
emake CC="$(tc-getCC)" || die "emake in ${target} failed" |
109 |
einfo "Finished compiling ${target}" |
110 |
|
111 |
mv ${bin} "${T}" || die "mv ${bin} failed" |
112 |
einfo "Finished moving ${bin}" |
113 |
|
114 |
make clean || die "make clean in ${target} failed" |
115 |
einfo "Finished cleaning ${target}" |
116 |
|
117 |
echo ${bin} >>"${T}"/binlist |
118 |
done |
119 |
einfo "$(<"${T}"/binlist)" |
120 |
} |
121 |
|
122 |
src_test() { |
123 |
aslts_test |
124 |
#aapits_test |
125 |
#The aapits test currently fails, missing include probably. |
126 |
} |
127 |
|
128 |
src_install() { |
129 |
local bin |
130 |
for bin in $(<"${T}"/binlist) ; do |
131 |
dobin "${T}"/${bin} |
132 |
done |
133 |
dodoc README changes.txt |
134 |
if use test ; 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="${T}"/iasl \ |
149 |
acpiexec="${T}"/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') || die "edos2unix failed in aslts" |
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') || die "edos2unix failed in aapits" |
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 |
} |