1 |
patrick 13/03/05 04:36:19 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: iasl-20130117-r1.ebuild |
5 |
Removed: iasl-20130117.ebuild |
6 |
Log: |
7 |
Fix BITS value to make things work on 32bit architectures too |
8 |
|
9 |
(Portage version: 2.2.0_alpha166/cvs/Linux x86_64, unsigned Manifest commit) |
10 |
|
11 |
Revision Changes Path |
12 |
1.41 sys-power/iasl/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/iasl/ChangeLog?rev=1.41&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/iasl/ChangeLog?rev=1.41&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/iasl/ChangeLog?r1=1.40&r2=1.41 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sys-power/iasl/ChangeLog,v |
21 |
retrieving revision 1.40 |
22 |
retrieving revision 1.41 |
23 |
diff -u -r1.40 -r1.41 |
24 |
--- ChangeLog 31 Jan 2013 09:37:07 -0000 1.40 |
25 |
+++ ChangeLog 5 Mar 2013 04:36:19 -0000 1.41 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for sys-power/iasl |
28 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sys-power/iasl/ChangeLog,v 1.40 2013/01/31 09:37:07 patrick Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-power/iasl/ChangeLog,v 1.41 2013/03/05 04:36:19 patrick Exp $ |
31 |
+ |
32 |
+*iasl-20130117-r1 (05 Mar 2013) |
33 |
+ |
34 |
+ 05 Mar 2013; Patrick Lauer <patrick@g.o> +iasl-20130117-r1.ebuild, |
35 |
+ -iasl-20130117.ebuild: |
36 |
+ Fix BITS value to make things work on 32bit architectures too |
37 |
|
38 |
*iasl-20130117 (31 Jan 2013) |
39 |
*iasl-20121018 (31 Jan 2013) |
40 |
|
41 |
|
42 |
|
43 |
1.1 sys-power/iasl/iasl-20130117-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/iasl/iasl-20130117-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/iasl/iasl-20130117-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: iasl-20130117-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2013 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sys-power/iasl/iasl-20130117-r1.ebuild,v 1.1 2013/03/05 04:36:19 patrick Exp $ |
53 |
|
54 |
EAPI=4 |
55 |
|
56 |
inherit toolchain-funcs flag-o-matic eutils |
57 |
|
58 |
MY_PN=acpica-unix |
59 |
MY_P=${MY_PN}-${PV} |
60 |
MY_TESTS_P=${MY_PN/ca/tests}-${PV} |
61 |
DESCRIPTION="Intel ACPI Source Language (ASL) compiler" |
62 |
HOMEPAGE="https://www.acpica.org/downloads/index.php" |
63 |
SRC_URI="http://www.acpica.org/download/${MY_P}.tar.gz |
64 |
test? ( http://www.acpica.org/download/${MY_TESTS_P}.tar.gz )" |
65 |
|
66 |
LICENSE="iASL" |
67 |
SLOT="0" |
68 |
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-fbsd ~x86-fbsd" |
69 |
IUSE="test" |
70 |
|
71 |
DEPEND="sys-devel/bison |
72 |
sys-devel/flex" |
73 |
RDEPEND="" |
74 |
|
75 |
S=${WORKDIR}/${MY_P} |
76 |
|
77 |
pkg_setup() { |
78 |
if use test && has test ${FEATURES}; then |
79 |
ewarn 'You have selected USE="test". This will install the test results' |
80 |
ewarn "into /usr/share/${PF}/, compressed as a tarball." |
81 |
ewarn 'The tests themselves will only rarely die, but the test results' |
82 |
ewarn 'are interesting for arch testing. The tests may take quite some' |
83 |
ewarn 'time to complete.' |
84 |
fi |
85 |
} |
86 |
|
87 |
src_prepare() { |
88 |
#epatch "${FILESDIR}/${PN}-20110922-as-needed.patch" |
89 |
epatch "${FILESDIR}/${PN}-20120816-locale.patch" |
90 |
# Upstream has changed the buildsystem a lot, not sure if these are still |
91 |
# needed |
92 |
#epatch "${FILESDIR}/${PN}-20120816-parallelmake-001.patch" |
93 |
#epatch "${FILESDIR}/${PN}-20110922-parallelmake-002.patch" |
94 |
#epatch "${FILESDIR}/${PN}-20110922-parallelmake-003.patch" |
95 |
|
96 |
find "${S}" -type f -name 'Makefile*' -print0 | \ |
97 |
xargs -0 -I '{}' \ |
98 |
sed -r -e 's:-\<Werror\>::g' -i '{}' \ |
99 |
|| die |
100 |
|
101 |
# BITS is tied to ARCH - please set appropriately if you add new keywords |
102 |
if [[ $ARCH == @(amd64|amd64-fbsd) ]] ; then |
103 |
export BITS=64 |
104 |
else |
105 |
export BITS=32 |
106 |
fi |
107 |
} |
108 |
|
109 |
src_configure() { |
110 |
: |
111 |
} |
112 |
|
113 |
src_compile() { |
114 |
cd acpica/generate/unix |
115 |
emake BITS=${BITS} |
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 |
cd acpica/generate/unix |
126 |
emake install DESTDIR="${D}" BITS=${BITS} |
127 |
default_src_install |
128 |
#local bin |
129 |
#for bin in $(<"${T}"/binlist) ; do |
130 |
# dobin "${T}"/${bin} |
131 |
#done |
132 |
dodoc "${S}"/changes.txt |
133 |
newdoc "${S}"/source/compiler/readme.txt compiler-readme.txt |
134 |
newdoc "${S}"/generate/unix/readme.txt unix-readme.txt |
135 |
newdoc "${S}"/generate/lint/readme.txt lint-readme.txt |
136 |
newdoc "${S}"/source/compiler/new_table.txt compiler-new_table.txt |
137 |
|
138 |
if use test && has test ${FEATURES}; then |
139 |
tb="${T}"/testresults.tar.bz2 |
140 |
export ASLTSDIR="$(<"${T}"/asltdir)" |
141 |
ebegin "Creating Test Tarball" |
142 |
tar -cjf "${tb}" -C "${ASLTSDIR}"/tmp/RESULTS . || die "tar failed" |
143 |
eend $? |
144 |
dodir /usr/share/${PF} |
145 |
insinto /usr/share/${PF} |
146 |
doins ${tb} || die "doins testresults.tar.bz2 failed" |
147 |
fi |
148 |
|
149 |
} |
150 |
|
151 |
aslts_test() { |
152 |
export ASL="${S}"/generate/unix/bin${BITS}/iasl \ |
153 |
acpiexec="${S}"/generate/unix/bin${BITS}/acpiexec \ |
154 |
ASLTSDIR="${WORKDIR}/${MY_TESTS_P}"/tests/aslts |
155 |
export PATH="${PATH}:${ASLTSDIR}/bin" |
156 |
echo "$ASLTSDIR" >"${T}"/asltdir |
157 |
cd "${ASLTSDIR}" |
158 |
edos2unix $(find . -type 'f') |
159 |
make install || die "make install aslts test failed" |
160 |
chmod +x $(find bin/ ! -regex 'ERROR_OPCODES|HOW_TO_USE|README' ) || die "chmod bin +x failed" |
161 |
|
162 |
#The below Do commands runs the tests twice and then dies if the results aren't |
163 |
#Identical. |
164 |
Do 1 || die "failed Do 1" |
165 |
Do 2 || die "failed Do 2" |
166 |
} |
167 |
|
168 |
aapits_test() { |
169 |
mv "${WORKDIR}/${MY_TESTS_P}/tests/aapits" "${S}/tools/" || die "mv failed" |
170 |
cd "${S}/tools/aapits" || die "cannot find ${S}/tools/aapits" |
171 |
edos2unix $(find . -type 'f') |
172 |
chmod +x $(find bin/ | sed -r -e '/\/[A-Z_]+$/d') || die "chmod bin +x failed" |
173 |
make || die "make in aapits failed" |
174 |
cd asl || die "cd asl failed" |
175 |
make || die "make in asl failed" |
176 |
cd ../bin |
177 |
./aapitsrun || die "aapitsrun failed" |
178 |
} |