Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-power/iasl: ChangeLog iasl-20140828.ebuild iasl-20140325.ebuild
Date: Sat, 27 Sep 2014 14:20:17
Message-Id: 20140927142013.886D766D4@oystercatcher.gentoo.org
1 polynomial-c 14/09/27 14:20:13
2
3 Modified: ChangeLog
4 Added: iasl-20140828.ebuild
5 Removed: iasl-20140325.ebuild
6 Log:
7 Version bump. Removed old
8
9 (Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
10
11 Revision Changes Path
12 1.49 sys-power/iasl/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/iasl/ChangeLog?rev=1.49&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/iasl/ChangeLog?rev=1.49&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/iasl/ChangeLog?r1=1.48&r2=1.49
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-power/iasl/ChangeLog,v
21 retrieving revision 1.48
22 retrieving revision 1.49
23 diff -u -r1.48 -r1.49
24 --- ChangeLog 13 Aug 2014 09:24:17 -0000 1.48
25 +++ ChangeLog 27 Sep 2014 14:20:13 -0000 1.49
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.48 2014/08/13 09:24:17 ago Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-power/iasl/ChangeLog,v 1.49 2014/09/27 14:20:13 polynomial-c Exp $
31 +
32 +*iasl-20140828 (27 Sep 2014)
33 +
34 + 27 Sep 2014; Lars Wendler <polynomial-c@g.o> -iasl-20140325.ebuild,
35 + +iasl-20140828.ebuild, +files/iasl-20140828-locale.patch:
36 + Version bump. Removed old.
37
38 13 Aug 2014; Agostino Sarubbo <ago@g.o> iasl-20130117-r1.ebuild:
39 Stable for ppc, wrt bug #505846
40
41
42
43 1.1 sys-power/iasl/iasl-20140828.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/iasl/iasl-20140828.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/iasl/iasl-20140828.ebuild?rev=1.1&content-type=text/plain
47
48 Index: iasl-20140828.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-power/iasl/iasl-20140828.ebuild,v 1.1 2014/09/27 14:20:13 polynomial-c Exp $
53
54 EAPI=5
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/"
63 SRC_URI="http://www.acpica.org/sites/acpica/files/${MY_P}.tar.gz
64 test? ( http://www.acpica.org/sites/acpica/files/${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}-20140828-locale.patch" \
89 "${FILESDIR}/${PN}-20140214-nostrip.patch"
90
91 find "${S}" -type f -name 'Makefile*' -print0 | \
92 xargs -0 -I '{}' \
93 sed -r -e 's:-\<Werror\>::g' -i '{}' \
94 || die
95
96 # BITS is tied to ARCH - please set appropriately if you add new keywords
97 if [[ $ARCH == @(amd64|amd64-fbsd) ]] ; then
98 export BITS=64
99 else
100 export BITS=32
101 fi
102 }
103
104 src_configure() {
105 :
106 }
107
108 src_compile() {
109 cd acpica/generate/unix
110 emake BITS=${BITS}
111 }
112
113 src_test() {
114 aslts_test
115 #aapits_test
116 #The aapits test currently fails, missing include probably.
117 }
118
119 src_install() {
120 cd acpica/generate/unix
121 emake install DESTDIR="${D}" BITS=${BITS}
122 default_src_install
123 #local bin
124 #for bin in $(<"${T}"/binlist) ; do
125 # dobin "${T}"/${bin}
126 #done
127 dodoc "${S}"/changes.txt
128 newdoc "${S}"/source/compiler/readme.txt compiler-readme.txt
129 newdoc "${S}"/generate/unix/readme.txt unix-readme.txt
130 newdoc "${S}"/generate/lint/readme.txt lint-readme.txt
131 newdoc "${S}"/source/compiler/new_table.txt compiler-new_table.txt
132
133 if use test && has test ${FEATURES}; then
134 tb="${T}"/testresults.tar.bz2
135 export ASLTSDIR="$(<"${T}"/asltdir)"
136 ebegin "Creating Test Tarball"
137 tar -cjf "${tb}" -C "${ASLTSDIR}"/tmp/RESULTS . || die "tar failed"
138 eend $?
139 dodir /usr/share/${PF}
140 insinto /usr/share/${PF}
141 doins ${tb}
142 fi
143
144 }
145
146 aslts_test() {
147 export ASL="${S}"/generate/unix/bin/iasl \
148 acpiexec="${S}"/generate/unix/bin/acpiexec \
149 ASLTSDIR="${WORKDIR}/${MY_TESTS_P}"/tests/aslts
150 export PATH="${PATH}:${ASLTSDIR}/bin"
151 echo "$ASLTSDIR" >"${T}"/asltdir
152 cd "${ASLTSDIR}"
153 edos2unix $(find . -type 'f')
154 make install || die "make install aslts test failed"
155 chmod +x $(find bin/ ! -regex 'ERROR_OPCODES|HOW_TO_USE|README' ) || die "chmod bin +x failed"
156
157 #The below Do commands runs the tests twice and then dies if the results aren't
158 #Identical.
159 Do 1 || die "failed Do 1"
160 Do 2 || die "failed Do 2"
161 }
162
163 aapits_test() {
164 mv "${WORKDIR}/${MY_TESTS_P}/tests/aapits" "${S}/tools/" || die "mv failed"
165 cd "${S}/tools/aapits" || die "cannot find ${S}/tools/aapits"
166 edos2unix $(find . -type 'f')
167 chmod +x $(find bin/ | sed -r -e '/\/[A-Z_]+$/d') || die "chmod bin +x failed"
168 make || die "make in aapits failed"
169 cd asl || die "cd asl failed"
170 make || die "make in asl failed"
171 cd ../bin
172 ./aapitsrun || die "aapitsrun failed"
173 }