summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-07-13 19:09:02 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2008-07-13 19:09:02 +0000
commite43372fe5dbe7b5c54a21c20269191eb1ed9e50f (patch)
tree2d1647df9b221b7483acdf54574476b65a938d09 /sys-power
parentMarked ppc stable for bug #212241. (diff)
downloadhistorical-e43372fe5dbe7b5c54a21c20269191eb1ed9e50f.tar.gz
historical-e43372fe5dbe7b5c54a21c20269191eb1ed9e50f.tar.bz2
historical-e43372fe5dbe7b5c54a21c20269191eb1ed9e50f.zip
Version bump as the 20080514 version fails under KVM, per bug #231574.
Package-Manager: portage-2.2_rc1/cvs/Linux 2.6.26-rc4-00103-g1beee8d x86_64
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/iasl/ChangeLog7
-rw-r--r--sys-power/iasl/Manifest5
-rw-r--r--sys-power/iasl/iasl-20080701.ebuild117
3 files changed, 127 insertions, 2 deletions
diff --git a/sys-power/iasl/ChangeLog b/sys-power/iasl/ChangeLog
index 5827f64152d9..3cbcf1fee778 100644
--- a/sys-power/iasl/ChangeLog
+++ b/sys-power/iasl/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-power/iasl
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/iasl/ChangeLog,v 1.19 2008/06/07 02:55:49 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/iasl/ChangeLog,v 1.20 2008/07/13 19:09:02 robbat2 Exp $
+
+*iasl-20080701 (13 Jul 2008)
+
+ 13 Jul 2008; Robin H. Johnson <robbat2@gentoo.org> +iasl-20080701.ebuild:
+ Version bump as the 20080514 version fails under KVM, per bug #231574.
07 Jun 2008; Robin H. Johnson <robbat2@gentoo.org> iasl-20080514.ebuild:
Per bug #224505, we need to check FEATURES in src_install, as ASLTDIR will
diff --git a/sys-power/iasl/Manifest b/sys-power/iasl/Manifest
index cad861436de6..b20ad81eea56 100644
--- a/sys-power/iasl/Manifest
+++ b/sys-power/iasl/Manifest
@@ -2,8 +2,11 @@ AUX acpica-unix-20051216-buildfixup.patch 6542 RMD160 7609304a7f74b836f662486d5d
AUX acpica-unix-20060512-buildfixup.patch 5876 RMD160 9efd45283e2aff4558849ee5f46dcc6d2de5c572 SHA1 5cce3c7617de36457fa72901879f9914f3aabbf4 SHA256 ca1b41b22aed0e9d2ae154e95fc4761f66c40c8d493a3d7163edf75e43c46361
DIST acpica-unix-20060912.tar.gz 859242 RMD160 e8c10dd73912243e2b0e5b13b45342a963772c89 SHA1 77a1bbfaa0ad257e04a2aaa31b54a8ce1da5f2fa SHA256 f9a8bf089a639681f42e2a533b7004d2fdd9a4e3e3b6bbba9bd232c6a5acf773
DIST acpica-unix-20080514.tar.gz 887758 RMD160 9824cd2643a134db37383849f1dfb1e44beecde0 SHA1 cb0ada08bc4acaaabbf23b7d1f2677bd9861073a SHA256 2b4b078e1234ea65b05db680566e9122c90dc0b754c9df087666bfbd3d70c086
+DIST acpica-unix-20080701.tar.gz 891421 RMD160 653aa66eb48b0a505c4658333e75f81c8212415f SHA1 b48241592339fc3c3ddca7cbf599868b1b90bd00 SHA256 b1768267de4cfc52e5b347fa9f198bbcdebca2b605eeb015b051027dbb9f6e0b
DIST acpitests-unix-20080514.tar.gz 1898223 RMD160 16075cb2f69ab0ef0b8388b79186c8c000a1722f SHA1 1a2f41fe75cc32d32661fcaa6f1c6e4aca3455eb SHA256 6e43826295874c6dbd17cd7e4fbacfcd6a2d1581626591c797ee5d94d59faa86
+DIST acpitests-unix-20080701.tar.gz 1880102 RMD160 23b7b14c6f518b14ce7786d12a55debe78b997f2 SHA1 6be97af198917a0168f89178316e8b79715a15ac SHA256 8dc21976da4d2ee8e4cff6cd6b807c5dcfbbdbe0ec0562d0d435b7563680bdb5
EBUILD iasl-20060912.ebuild 1164 RMD160 e0f61b613639cbd3d2272809c38ebe132b4fcea0 SHA1 759656f4c2522e274fc3cbcb7e3ac696e81cdc27 SHA256 d3cd2c4929fa374280f48780035854850c53c0bf3c9509bf4ef273fa2f484f36
EBUILD iasl-20080514.ebuild 3302 RMD160 a5d7da3fd78b77efd8db2a12eaecddb1cdf12fe3 SHA1 dbe62e5ad32bc37738c358eaf33dcbf8d39c0f77 SHA256 3802ef4977eede3bd1793b8f18bc48c86467ce5149c6035b1ee0ca3647af45fa
-MISC ChangeLog 3249 RMD160 126990f1585c367390e46db18aade0c0aa2e651d SHA1 572f3c998b5d1a60b4c7651faa7169072b161dca SHA256 5206cdddee73709f8f64cc04305ccd62dce573e08db7cfd7facc4bd08e1903ef
+EBUILD iasl-20080701.ebuild 3302 RMD160 d75e5a472095865ea2944a11fa8cf5dd4f5728c7 SHA1 25deb2a48db645a794710699671fcc321a947d7d SHA256 99304dd2e45f87d6b7e14de888024e21c3c9c13cc4f843042c1edc0045a0ee5a
+MISC ChangeLog 3429 RMD160 c30aff81c16e2363074fa66b259adf02dc506daa SHA1 fc20b7f104d105fdc85a4a95143179f3d13b4dcb SHA256 9f7a952228f6e052a70e1cc1f3f8365b0082b3317ed0df035b8c82487642a02e
MISC metadata.xml 223 RMD160 ffa99612cf27469c417944deed0e0c9155e64331 SHA1 607c637402dd253406aa6ee684471a702c5d1a99 SHA256 d6bb9ba68629616062b4433ab3b8fb01dfcafae5bb47804d9e06cdd6c66daa44
diff --git a/sys-power/iasl/iasl-20080701.ebuild b/sys-power/iasl/iasl-20080701.ebuild
new file mode 100644
index 000000000000..e09bbd1731f7
--- /dev/null
+++ b/sys-power/iasl/iasl-20080701.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/iasl/iasl-20080701.ebuild,v 1.1 2008/07/13 19:09:02 robbat2 Exp $
+
+inherit toolchain-funcs flag-o-matic eutils
+
+MY_PN=acpica-unix
+MY_P=${MY_PN}-${PV}
+MY_TESTS_P=${MY_PN/ca/tests}-${PV}
+DESCRIPTION="Intel ACPI Source Language (ASL) compiler"
+HOMEPAGE="http://www.intel.com/technology/iapc/acpi/"
+SRC_URI="http://www.acpica.org/download/${MY_P}.tar.gz
+ test? ( http://www.acpica.org/download/${MY_TESTS_P}.tar.gz )"
+
+LICENSE="iASL"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
+
+IUSE="test"
+DEPEND="sys-devel/bison
+ sys-devel/flex"
+
+RDEPEND=""
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ if use test
+ then
+ ewarn 'You have selected USE="test". This will install the test results'
+ ewarn "into /usr/share/${PF}/, compressed as a tarball."
+ ewarn 'The tests themselves will only rarely die, but the test results'
+ ewarn 'are interesting for arch testing. The tests may take quite some'
+ ewarn 'time to complete.'
+ fi
+}
+
+src_compile() {
+ local target bin
+ append-flags -fno-strict-aliasing
+
+ for target in compiler tools/acpisrc tools/acpixtract tools/acpiexec
+ do
+ einfo "Compiling in ${target}/"
+ cd "${S}"/${target}
+ case "${target}" in
+ compiler) bin=iasl;;
+ *) bin=${target#*/};;
+ esac
+
+ emake -j1 CC="$(tc-getCC)" || die "emake in ${target} failed"
+ einfo "Finished compiling ${target}"
+
+ mv ${bin} "${T}" || die "mv ${bin} failed"
+ einfo "Finished moving ${bin}"
+
+ make clean || die "make clean in ${target} failed"
+ einfo "Finished cleaning ${target}"
+
+ echo ${bin} >>"${T}"/binlist
+ done
+ einfo "$(<"${T}"/binlist)"
+}
+
+src_test() {
+ aslts_test
+ #aapits_test
+ #The aapits test currently fails, missing include probably.
+}
+
+src_install() {
+ local bin
+ for bin in $(<"${T}"/binlist) ; do
+ dobin "${T}"/${bin}
+ done
+ dodoc README changes.txt
+ if hasq test $FEATURES ; then
+ export ASLTSDIR="$(<"${T}"/asltdir)"
+ cd "${ASLTSDIR}"/tmp/RESULTS || die "cd ${ASLTSDIR}/tmp/RESULTS failed"
+ ebegin "Creating Test Tarball"
+ tar -cjf testresults.tar.bz2 * || die "tar failed"
+ eend $?
+ dodir /usr/share/${PF}
+ insinto /usr/share/${PF}
+ doins testresults.tar.bz2 || die "doins testresults.tar.bz2 failed"
+ fi
+
+}
+
+aslts_test() {
+ export ASL="${T}"/iasl \
+ acpiexec="${T}"/acpiexec \
+ ASLTSDIR="${WORKDIR}/${MY_TESTS_P}"/tests/aslts
+ export PATH="${PATH}:${ASLTSDIR}/bin"
+ echo "$ASLTSDIR" >"${T}"/asltdir
+ cd "${ASLTSDIR}"
+ edos2unix $(find . -type 'f') || die "edos2unix failed in aslts"
+ make install || die "make install aslts test failed"
+ chmod +x $(find bin/ | sed -r -e '/\/[A-Z_]+$/d') || die "chmod bin +x failed"
+
+ #The below Do commands runs the tests twice and then dies if the results aren't
+ #Identical.
+ Do 1 || die "failed Do 1"
+ Do 2 || die "failed Do 2"
+}
+
+aapits_test() {
+ mv "${WORKDIR}/${MY_TESTS_P}/tests/aapits" "${S}/tools/" || die "mv failed"
+ cd "${S}/tools/aapits" || die "cannot find ${S}/tools/aapits"
+ edos2unix $(find . -type 'f') || die "edos2unix failed in aapits"
+ chmod +x $(find bin/ | sed -r -e '/\/[A-Z_]+$/d') || die "chmod bin +x failed"
+ make || die "make in aapits failed"
+ cd asl || die "cd asl failed"
+ make || die "make in asl failed"
+ cd ../bin
+ ./aapitsrun || die "aapitsrun failed"
+}