aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Shelton <stuart@shelton.me>2017-01-09 01:24:26 +0000
committerStuart Shelton <stuart@shelton.me>2017-01-09 01:24:26 +0000
commita8464b7f5a10750b357bccae8f02d2e000f64500 (patch)
treee10e0fddfbb4bd2c5694b01bf196ff7733e3e6f1 /sys-power
parentAdd sys-power/acpid-2.0.28, update sys-power/acpid-2.0.27 (diff)
downloadsrcshelton-a8464b7f5a10750b357bccae8f02d2e000f64500.tar.gz
srcshelton-a8464b7f5a10750b357bccae8f02d2e000f64500.tar.bz2
srcshelton-a8464b7f5a10750b357bccae8f02d2e000f64500.zip
Add sys-power/iasl-20160729
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/iasl/Manifest3
-rw-r--r--sys-power/iasl/iasl-20160729.ebuild135
2 files changed, 138 insertions, 0 deletions
diff --git a/sys-power/iasl/Manifest b/sys-power/iasl/Manifest
index bd44e524..515d2d6e 100644
--- a/sys-power/iasl/Manifest
+++ b/sys-power/iasl/Manifest
@@ -1,5 +1,8 @@
AUX iasl-20140214-nostrip.patch 253 SHA256 ee69d121651279e7c3238e72c4996316b2fc06e57ada2863cb7fdd12138f15db SHA512 1379fa71c03d880b53ed1ed34ec925d5e94fe6f636f86cfdbb5a1e65a1c6a82fb99a42b991be154c018da9eaaa70c7443fa4b5ca38eb03fe5cec4f0de1dd6364 WHIRLPOOL 0db963c9eb85c986a88d6beb258168baa578469fc59efbf6a37f77b611bec9fc0029fe3c10b7524fa692b5f3b24196fec0052d32bf694d14b393f8034a6750e8
AUX iasl-20140828-locale.patch 349 SHA256 5078278e4de1bf7f966d0f72967af5a14be7f460cab192f240785d35fadbf7c4 SHA512 311c20b7d5cdc7e3ce5e2a84e508eb898cd506efa720d1e4bb017ff0b34d786ffed30168b7dcf16b4bee988702d00258289e5e320e0a3bb3cf630a1a71145640 WHIRLPOOL 5c5fe379eec8c1e916ec1440a51e4e33e93af8740ada34c5252814e10991e4cbde39bd648e90ed66527df358d31ae03b5988ac46551cd0a4585b648339d4d25b
DIST acpica-unix-20140828.tar.gz 1423788 SHA256 37984860aac35a8d35c25c4e71f519fd3ea61f2405bb37ad64caeda4543e535a SHA512 ab4cb8ba74c5abf05913b6ef39955698f2bb5c243f723d660bd8f9c397fcf2a959d5ec10326a699c53e05319a428e721f1d65a07249574200af3227676725398 WHIRLPOOL 4e584be596ed10b39acf11613be706a374e84c4e42c9e82eda84649be9ed72f64065e286eefe3a40a6b376d9eef2ab0cd86e26935455ad78ecbde8a24ce1d970
+DIST acpica-unix-20160729.tar.gz 1556095 SHA256 bf45e6f96f8b603a618ca09204a3074b60c46365ea262b11d1b06d0b6186c0bd SHA512 37b0439b03e8d811c8b14d0c7c89471989227fb78b462f585c6290431afecc5b258073e568dde8dc982fa959ebce4b4d51589ea997f0066e66d4785ce185ccf2 WHIRLPOOL fa857a7e370e623d0fdc5464ad9bb4ef4bb79b374f86134208a444d102494b24c28d80e562e9328e978d5237423de87f49032783e17e649965269697daaec39f
DIST acpitests-unix-20140828.tar.gz 2008060 SHA256 e576c74bf1bf1c9f7348bf9419e05c8acfece7105abcdc052e66670c7af2cf00 SHA512 7c3d36c9c1054a56f9b473cd0204062d7ac93b66e1f4d448575182ac3fb0a819506701306be406dd7b8385d37c6f77d7bc4dadc57f6743203ac1bee36a975be5 WHIRLPOOL d04f1cc65f3512dcba53440c295ba1dd740d337b1e3b5812c7c2717ac066408b18ff085b77db7d5dba6cb5055e2ba13dfb1323f28d7f7cae01bbc9fc34d5f09a
+DIST acpitests-unix-20160729.tar.gz 1829061 SHA256 d1e71a554392931a41ab29441249f0139e0251823060a4883a4859fa39087446 SHA512 bf6073092a0dfb208f1d4b13ff3a3c5335be8e1326b1e58acd41def1a402ab0d843600f616019d1dde6593db8c53c6876bd9d489360fe98c6a7bee95d9215600 WHIRLPOOL 4c7bb5b634529137b57753c4ac7d6ff7be8640c735fe71fdc8ad16274366169e6a85efe062243f8814b17abac6cf8c95ab61579d292b2fe40aac6bc03a64a34b
EBUILD iasl-20140828.ebuild 3391 SHA256 e8051bb4543985ec111282c009a7c84d608f41531a39807c7f7ab09fb10e6ea6 SHA512 6f09fef3fc3e0ebd92ec4a50fedd2ab1f5de4b12ceb375f8cf929242cfc8657d5516542c43020a8eb5e514d91627256392fcd2fdb9c5ef09c1d99720a27401cf WHIRLPOOL 6c1f38d0677e6d942bc7d232cfed9c2a90b4334359424a730e85b48ce8d5c3a490f12a18f3dfde0c27032708ed71d41d7d1e453354cd31103e1333e7f5148288
+EBUILD iasl-20160729.ebuild 3520 SHA256 a18838c52df9f950b489fc6cf123ef37629183e941440786a0d57af93642d5e5 SHA512 4292cf1bf581366e44248f7f46024cad3482ebd74c1a589fd4a3ea658e8a74c866374cd87df2b5341fe709f41250cb47bc35fca90cb26315fb80171cfed5bf71 WHIRLPOOL 9d72f0a6d4d5d22ceea0c266a6443117a873187da669c9a9e34a9d1fd90fd4a6a70782c893660c9e91631b11141d795c1495442920df552d839ef549990766ee
diff --git a/sys-power/iasl/iasl-20160729.ebuild b/sys-power/iasl/iasl-20160729.ebuild
new file mode 100644
index 00000000..eae44d9d
--- /dev/null
+++ b/sys-power/iasl/iasl-20160729.ebuild
@@ -0,0 +1,135 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id: 6279f0aa2af4755d977a1db8816d6ad91e1fae19 $
+
+EAPI=6
+
+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/"
+SRC_URI="http://www.acpica.org/sites/acpica/files/${MY_P}.tar.gz
+ test? ( http://www.acpica.org/sites/acpica/files/${MY_TESTS_P}.tar.gz )"
+
+LICENSE="iASL"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="doc 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
+}
+
+PATCHES=(
+ "${FILESDIR}/${PN}-20140828-locale.patch"
+ "${FILESDIR}/${PN}-20140214-nostrip.patch"
+)
+
+src_prepare() {
+ default
+
+ find "${S}" -type f -name 'Makefile*' -print0 | \
+ xargs -0 -I '{}' \
+ sed -r -e 's:-\<Werror\>::g' -i '{}' \
+ || die
+
+ # BITS is tied to ARCH - please set appropriately if you add new keywords
+ if [[ $ARCH == @(amd64|amd64-fbsd) ]] ; then
+ export BITS=64
+ else
+ export BITS=32
+ fi
+}
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ cd "${S}"/generate/unix || die
+ emake BITS=${BITS}
+}
+
+src_test() {
+ aslts_test
+ #aapits_test
+ #The aapits test currently fails, missing include probably.
+}
+
+src_install() {
+ cd "${S}"/generate/unix || die
+ emake install DESTDIR="${ED}" BITS=${BITS}
+
+ default_src_install
+
+ #local bin
+ #for bin in $(<"${T}"/binlist) ; do
+ # dobin "${T}"/${bin}
+ #done
+
+ dodoc "${S}"/changes.txt
+ if use doc; then
+ 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
+ fi
+
+ 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}
+ fi
+
+}
+
+aslts_test() {
+ export ASL="${S}"/generate/unix/bin/iasl \
+ acpiexec="${S}"/generate/unix/bin/acpiexec \
+ ASLTSDIR="${WORKDIR}/${MY_TESTS_P}"/tests/aslts
+ export PATH="${PATH}:${ASLTSDIR}/bin"
+ echo "$ASLTSDIR" >"${T}"/asltdir
+ cd "${ASLTSDIR}" || die
+ 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 || die
+ ./aapitsrun || die "aapitsrun failed"
+}
+
+# vi: set diffopt=iwhite,filler: