commit: 9300b8e118fb0bfffbeb64e562087685fcdea4cb parent: 8f20402942a1f3d4cf3255932589ab656a095346 Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Date: Fri, 14 Feb 2020 17:50:20 +0100 sys-libs/libucontext: NewDiffstat:
A | sys-libs/libucontext/Manifest | 1 | + |
A | sys-libs/libucontext/libucontext-0.9.0.ebuild | 45 | +++++++++++++++++++++++++++++++++++++++++++++ |
A | sys-libs/libucontext/metadata.xml | 11 | +++++++++++ |
3 files changed, 57 insertions(+), 0 deletions(-)
diff --git a/sys-libs/libucontext/Manifest b/sys-libs/libucontext/Manifest @@ -0,0 +1 @@ +DIST libucontext-0.9.0.tar.xz 9968 BLAKE2B 1f21e706fc6497224bb29220584e7a815882d2e6ee26e2844a60508f3872e228a2940af800c4a0fc8ac19e064924aaf379e8844ca7ca286fb4f1904fbc54621b SHA512 47ffa743e0b364d7a5d5ae633f89e83a7e3bbdf62a8a703a06a522c08b187b785548e8b8d58d53fc4fd984575f086794e74c12d40075326c6e88024e841550b6 diff --git a/sys-libs/libucontext/libucontext-0.9.0.ebuild b/sys-libs/libucontext/libucontext-0.9.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 2018-2020 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-minimal + +DESCRIPTION="library which provides the <ucontext.h> API from older POSIX revisions" +HOMEPAGE="https://code.foxkit.us/adelie/libucontext" +KEYWORDS="~aarch64 ~amd64 ~arm ~ppc ~ppc64 ~s390x ~x86" +LICENSE="MIT" +SRC_URI="https://distfiles.adelielinux.org/source/${PN}/${P}.tar.xz" +SLOT="0" + +IUSE="test" +RESTRICT="!test? ( test )" + +get_kernel_arch() { + case "$ABI" in + amd64) echo "x86_64";; + *) echo $ABI;; + esac +} + +src_prepare() { + default + + sed -i \ + -e 's;^LIBUCONTEXT_PATH = ;\0 /usr;' \ + -e 's;^LIBUCONTEXT_STATIC_PATH = ;\0 /usr;' \ + -e 's;ln -sf ${LIBUCONTEXT_SONAME} ${DESTDIR};\0/usr;' \ + "${S}/Makefile" || die "Failed adjusting prefix to /usr" +} + +src_compile() { + emake ARCH="$(get_kernel_arch)" +} + +src_test() { + emake ARCH="$(get_kernel_arch)" check +} + +src_install() { + emake ARCH="$(get_kernel_arch)" DESTDIR="${ED}" install +} diff --git a/sys-libs/libucontext/metadata.xml b/sys-libs/libucontext/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>contact@hacktivis.me</email> + <name>Haelwenn (lanodan) Monnier</name> + </maintainer> + <use> + <flag name="obstack">Use <pkg>sys-libs/obstack-standalone</pkg> for greater compatibility</flag> + </use> +</pkgmetadata>