From bb2c3bb2a497a488376f8eb9054a00c6358cf4d8 Mon Sep 17 00:00:00 2001 From: Daniele Rondina Date: Sat, 19 Oct 2024 18:29:04 +0200 Subject: [PATCH] sys-power/iasl: Bump v.202040927 --- .../atoms-extra/tools/sys-power/iasl/Manifest | 1 + .../tools/sys-power/iasl/build.yaml | 4 ++ .../tools/sys-power/iasl/definition.yaml | 4 +- .../tools/sys-power/iasl/iasl-20240927.ebuild | 58 +++++++++++++++++++ 4 files changed, 65 insertions(+), 2 deletions(-) create mode 100644 packages/atoms-extra/tools/sys-power/iasl/Manifest create mode 100644 packages/atoms-extra/tools/sys-power/iasl/iasl-20240927.ebuild diff --git a/packages/atoms-extra/tools/sys-power/iasl/Manifest b/packages/atoms-extra/tools/sys-power/iasl/Manifest new file mode 100644 index 0000000000..19732efabc --- /dev/null +++ b/packages/atoms-extra/tools/sys-power/iasl/Manifest @@ -0,0 +1 @@ +DIST acpica-unix-20240927.tar.gz 1952744 SHA512 655db9c1f0f65135e107e42ba9d24576be11cd031572fc6d099bc27f9e41c34c5544e7e9bded6024603000dabc168dcc285b827a2b71560ccef1626fbeb82b90 diff --git a/packages/atoms-extra/tools/sys-power/iasl/build.yaml b/packages/atoms-extra/tools/sys-power/iasl/build.yaml index 891372b725..a4507feadf 100644 --- a/packages/atoms-extra/tools/sys-power/iasl/build.yaml +++ b/packages/atoms-extra/tools/sys-power/iasl/build.yaml @@ -1,4 +1,8 @@ prelude: +# Temporary patch +- >- + rm /var/git/meta-repo/kits/core-hw-kit/sys-power/iasl/* -rf && + cp Manifest *.ebuild /var/git/meta-repo/kits/core-hw-kit/sys-power/iasl/ - |- export FEATURES="-sandbox -usersandbox -ipc-sandbox -pid-sandbox -network-sandbox" && \ export JOBS={{ ( index .Values.labels "jobs" ) | default "3" }} && \ diff --git a/packages/atoms-extra/tools/sys-power/iasl/definition.yaml b/packages/atoms-extra/tools/sys-power/iasl/definition.yaml index 636f810b8c..b62485aa85 100644 --- a/packages/atoms-extra/tools/sys-power/iasl/definition.yaml +++ b/packages/atoms-extra/tools/sys-power/iasl/definition.yaml @@ -1,5 +1,5 @@ name: iasl -version: 20200717+1 +version: "202040927" category: sys-power annotations: subsets: @@ -19,4 +19,4 @@ labels: kit: core-hw-kit original.package.name: sys-power/iasl original.package.slot: "0" - original.package.version: "20200717" + original.package.version: "20240927" diff --git a/packages/atoms-extra/tools/sys-power/iasl/iasl-20240927.ebuild b/packages/atoms-extra/tools/sys-power/iasl/iasl-20240927.ebuild new file mode 100644 index 0000000000..afbe83a8e0 --- /dev/null +++ b/packages/atoms-extra/tools/sys-power/iasl/iasl-20240927.ebuild @@ -0,0 +1,58 @@ +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit edos2unix toolchain-funcs + +MY_PN=acpica-unix +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Intel ACPI Source Language (ASL) compiler" +HOMEPAGE="https://www.acpica.org/downloads/" +SRC_URI="https://github.com/user-attachments/files/17171019/${MY_P}.tar.gz" +LICENSE="iASL" +SLOT="0" +KEYWORDS="*" + +BDEPEND=" + sys-devel/bison + sys-devel/flex" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + default + + find "${S}" -type f -name 'Makefile*' -print0 | \ + xargs -0 -I '{}' \ + sed -r -e 's:-\::g' -e "s:/usr:${EPREFIX}/usr:g" \ + -i '{}' \ + || die +} + +src_configure() { + tc-export CC + + # 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_compile() { + emake -C generate/unix BITS="${BITS}" +} + +src_install() { + cd generate/unix || die + emake install DESTDIR="${D}" BITS=${BITS} + default + + 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 +}