From: MichaƂ Bartoszkiewicz Date: Tue, 8 Jan 2013 20:40:20 +0000 (+0100) Subject: Nowy pakiet: sys-power/iasl-20121220 X-Git-Url: https://git.bzium.org/embe/overlay.git/commitdiff_plain/5d1408d2a7dcad50fbe792c2ba63013f13ed3e00?hp=fb2d0f65e3a084ff6e4cd97832647a3fcc20ef5f Nowy pakiet: sys-power/iasl-20121220 --- diff --git a/sys-power/iasl/Manifest b/sys-power/iasl/Manifest new file mode 100644 index 0000000..fc29346 --- /dev/null +++ b/sys-power/iasl/Manifest @@ -0,0 +1,3 @@ +DIST acpica-unix-20121220.tar.gz 1266333 SHA256 cd62ea004657d6693e10ad56b518f42094d35385d22200e3a1024b238195ab83 SHA512 ef76fd34b30d5c58ed7a53841173388d17f3dc7f419a8503c7350bc3115b1c7608b4e583bda72c6b9c19c50c932655a522993de954f49adfbfaefecfa0ddd189 WHIRLPOOL 15580b6fce34bcdead7300d52c0ced1e8477d3e378d9cc85418052204c6b7f2cf7d4921ef1bae1758fbc6437c83796de3b9cd60da4da206d62d8356e87b81cbe +DIST acpitests-unix-20121220.tar.gz 1979377 SHA256 73eb48117e16c601bfcbb300f8f557003444daed882d49e9bfcdbcd598702aab SHA512 ce09fcd7739c76137cd0c69f9770b6627cd64c75672ec45940e036be026162bfddee467f60876fe11459bbfa1cb8b3cf7974b6e2c09aa1dcae101215fed157b8 WHIRLPOOL 619037b90abd83ffc2cfae2127a4c5926cc5f79120e4f7e68fec41c212811a68db9d80381adbd9a62b486a5254038d70ba33b37eed7c20b070c7df0e8320fdcc +EBUILD iasl-20121220.ebuild 3273 SHA256 2cedf8c761b37a892d81c7a6edd99eae75fddee1b30588ebedb45005c94c32d4 SHA512 521f14fcd173e7ac727ec07bb673d305939d0550b6fe6eb22811cac3d04409106ea43cb8713f0dae2ff3345ecb23c60a50fc43b201e74c24026fb54d634f9e0f WHIRLPOOL 71a2b9d17f6e7531db53fe3e5c706a50e819fc9d37cfd53b7ed68220d49d27cd77dca3b701fbe87f09637f21993587989ef06d3c3f78c3a4ea308acf2b99f395 diff --git a/sys-power/iasl/iasl-20121220.ebuild b/sys-power/iasl/iasl-20121220.ebuild new file mode 100644 index 0000000..6bf8200 --- /dev/null +++ b/sys-power/iasl/iasl-20121220.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/iasl/iasl-20120816.ebuild,v 1.1 2012/09/07 23:11:29 robbat2 Exp $ + +EAPI=4 + +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="https://www.acpica.org/downloads/index.php" +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 ~amd64-fbsd ~x86-fbsd" +IUSE="test" + +DEPEND="sys-devel/bison + sys-devel/flex" +RDEPEND="" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + if use test && has test ${FEATURES}; 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_prepare() { + find "${S}" -type f -name 'Makefile*' -print0 | \ + xargs -0 -I '{}' \ + sed -r -e 's:-\::g' -i '{}' \ + || die + + export BITS=64 +} + +src_configure() { + : +} + +src_compile() { + cd acpica/generate/unix + emake BITS=${BITS} +} + +src_test() { + aslts_test + #aapits_test + #The aapits test currently fails, missing include probably. +} + +src_install() { + cd acpica/generate/unix + emake install DESTDIR="${D}" BITS=${BITS} + default_src_install + #local bin + #for bin in $(<"${T}"/binlist) ; do + # dobin "${T}"/${bin} + #done + dodoc "${S}"/changes.txt + newdoc "${S}"/source/compiler/readme.txt compiler-readme.txt + newdoc "${S}"/generate/unix/readme.txt unix-readme.txt + newdoc "${S}"/generate/lint/readme.txt lint-readme.txt + newdoc "${S}"/source/compiler/new_table.txt compiler-new_table.txt + + if use test && has test ${FEATURES}; then + tb="${T}"/testresults.tar.bz2 + export ASLTSDIR="$(<"${T}"/asltdir)" + ebegin "Creating Test Tarball" + tar -cjf "${tb}" -C "${ASLTSDIR}"/tmp/RESULTS . || die "tar failed" + eend $? + dodir /usr/share/${PF} + insinto /usr/share/${PF} + doins ${tb} || die "doins testresults.tar.bz2 failed" + fi + +} + +aslts_test() { + export ASL="${S}"/generate/unix/bin${BITS}/iasl \ + acpiexec="${S}"/generate/unix/bin${BITS}/acpiexec \ + ASLTSDIR="${WORKDIR}/${MY_TESTS_P}"/tests/aslts + export PATH="${PATH}:${ASLTSDIR}/bin" + echo "$ASLTSDIR" >"${T}"/asltdir + cd "${ASLTSDIR}" + edos2unix $(find . -type 'f') + make install || die "make install aslts test failed" + chmod +x $(find bin/ ! -regex 'ERROR_OPCODES|HOW_TO_USE|README' ) || 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') + 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" +}