diff options
author | Sam James <sam@gentoo.org> | 2021-12-04 18:32:31 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-12-04 18:34:45 +0000 |
commit | 2dd35fd1ed76e4e2995973c87e26f0b77bdf2444 (patch) | |
tree | cdaa5906c7d9247656b346d0e6f442519f54e243 /sys-libs/libucontext | |
parent | dev-lang/ruby: stable 2.7.5 for hppa, bug #827831 (diff) | |
download | gentoo-2dd35fd1ed76e4e2995973c87e26f0b77bdf2444.tar.gz gentoo-2dd35fd1ed76e4e2995973c87e26f0b77bdf2444.tar.bz2 gentoo-2dd35fd1ed76e4e2995973c87e26f0b77bdf2444.zip |
sys-libs/libucontext: initial import
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-libs/libucontext')
-rw-r--r-- | sys-libs/libucontext/Manifest | 1 | ||||
-rw-r--r-- | sys-libs/libucontext/libucontext-1.1.ebuild | 39 | ||||
-rw-r--r-- | sys-libs/libucontext/metadata.xml | 11 |
3 files changed, 51 insertions, 0 deletions
diff --git a/sys-libs/libucontext/Manifest b/sys-libs/libucontext/Manifest new file mode 100644 index 000000000000..d38b31369f67 --- /dev/null +++ b/sys-libs/libucontext/Manifest @@ -0,0 +1 @@ +DIST libucontext-1.1.tar.gz 25261 BLAKE2B 269b3899657779bc2c6a2f1c365242f0ee936afeb0acf74e48af5c1e6b96918bbaa239039508e7b1b1f7b358679fb4a222311b761223b69b9a3e7a9be2d0bc40 SHA512 05aed6f82a2b3d9dba896423335a7fc2fc5eddc87ed725f05e14488c6ddfcef10b835c928619439c7783e052baff7ef2dc162b6e06aa78992f6f611ca13c2e39 diff --git a/sys-libs/libucontext/libucontext-1.1.ebuild b/sys-libs/libucontext/libucontext-1.1.ebuild new file mode 100644 index 000000000000..c74a08255a21 --- /dev/null +++ b/sys-libs/libucontext/libucontext-1.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="ucontext implementation featuring glibc-compatible ABI" +HOMEPAGE="https://github.com/kaniini/libucontext" +SRC_URI="https://github.com/kaniini/libucontext/archive/refs/tags/${P}.tar.gz" +S="${WORKDIR}"/${PN}-${P} + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+man" + +BDEPEND="man? ( app-text/scdoc )" + +# segfault needs investigation +RESTRICT="test" + +src_compile() { + tc-export AR CC + + emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" +} + +src_test() { + emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" check +} + +src_install() { + emake DESTDIR="${ED}" LIBDIR="/usr/$(get_libdir)" install + + if use man ; then + emake DESTDIR="${ED}" LIBDIR="/usr/$(get_libdir)" install_docs + fi +} diff --git a/sys-libs/libucontext/metadata.xml b/sys-libs/libucontext/metadata.xml new file mode 100644 index 000000000000..6d14eb740806 --- /dev/null +++ b/sys-libs/libucontext/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>musl@gentoo.org</email> + <name>Musl project</name> + </maintainer> + <upstream> + <remote-id type="github">kaniini/libucontext</remote-id> + </upstream> +</pkgmetadata> |