1 |
polynomial-c 15/07/26 12:43:10 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: iasl-20150717.ebuild |
5 |
Removed: iasl-20140627.ebuild iasl-20090123.ebuild |
6 |
Log: |
7 |
Version bump. Removed old |
8 |
|
9 |
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 981CA6FC) |
10 |
|
11 |
Revision Changes Path |
12 |
1.50 sys-power/iasl/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/iasl/ChangeLog?rev=1.50&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/iasl/ChangeLog?rev=1.50&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/iasl/ChangeLog?r1=1.49&r2=1.50 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sys-power/iasl/ChangeLog,v |
21 |
retrieving revision 1.49 |
22 |
retrieving revision 1.50 |
23 |
diff -u -r1.49 -r1.50 |
24 |
--- ChangeLog 27 Sep 2014 14:20:13 -0000 1.49 |
25 |
+++ ChangeLog 26 Jul 2015 12:43:10 -0000 1.50 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for sys-power/iasl |
28 |
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sys-power/iasl/ChangeLog,v 1.49 2014/09/27 14:20:13 polynomial-c Exp $ |
30 |
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
31 |
+# $Header: /var/cvsroot/gentoo-x86/sys-power/iasl/ChangeLog,v 1.50 2015/07/26 12:43:10 polynomial-c Exp $ |
32 |
+ |
33 |
+*iasl-20150717 (26 Jul 2015) |
34 |
+ |
35 |
+ 26 Jul 2015; Lars Wendler <polynomial-c@g.o> -iasl-20090123.ebuild, |
36 |
+ -iasl-20140627.ebuild, +iasl-20150717.ebuild: |
37 |
+ Version bump. Removed old. |
38 |
|
39 |
*iasl-20140828 (27 Sep 2014) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 sys-power/iasl/iasl-20150717.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/iasl/iasl-20150717.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/iasl/iasl-20150717.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: iasl-20150717.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2015 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/sys-power/iasl/iasl-20150717.ebuild,v 1.1 2015/07/26 12:43:10 polynomial-c Exp $ |
54 |
|
55 |
EAPI=5 |
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/" |
64 |
SRC_URI="http://www.acpica.org/sites/acpica/files/${MY_P}.tar.gz |
65 |
test? ( http://www.acpica.org/sites/acpica/files/${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}-20140828-locale.patch" \ |
90 |
"${FILESDIR}/${PN}-20140214-nostrip.patch" |
91 |
|
92 |
find "${S}" -type f -name 'Makefile*' -print0 | \ |
93 |
xargs -0 -I '{}' \ |
94 |
sed -r -e 's:-\<Werror\>::g' -i '{}' \ |
95 |
|| die |
96 |
|
97 |
# BITS is tied to ARCH - please set appropriately if you add new keywords |
98 |
if [[ $ARCH == @(amd64|amd64-fbsd) ]] ; then |
99 |
export BITS=64 |
100 |
else |
101 |
export BITS=32 |
102 |
fi |
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} |
143 |
fi |
144 |
|
145 |
} |
146 |
|
147 |
aslts_test() { |
148 |
export ASL="${S}"/generate/unix/bin/iasl \ |
149 |
acpiexec="${S}"/generate/unix/bin/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 |
} |