diff options
Diffstat (limited to 'dev-libs/libbsd')
-rw-r--r-- | dev-libs/libbsd/Manifest | 3 | ||||
-rw-r--r-- | dev-libs/libbsd/libbsd-0.11.8.ebuild | 44 |
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-libs/libbsd/Manifest b/dev-libs/libbsd/Manifest index 5400445e0ca5..89fab161fb8e 100644 --- a/dev-libs/libbsd/Manifest +++ b/dev-libs/libbsd/Manifest @@ -2,5 +2,8 @@ AUX libbsd-0.11.7-musl-lfs.patch 1071 BLAKE2B e0ff9d4e066bfb9db72bd010c2dd0ba580 AUX libbsd-build-Fix-version-script-linker-support-detection.patch 1160 BLAKE2B 73246c3ba80ee29729c4f7265d2c47fd3c70f7b48dca90967d69dd00d6d8b90249e16ba9c9c6c1e1eab67f423ca93b133d0645e1c101b3caf24a405d736e725d SHA512 6dcea8e707ddaa407eade936044fef94e7500ac4aa28baf1944035b2fe69aaa210915e0cd50fa5ae60f83f62619a90430bc52ad655664f76b210c84b235ea489 DIST libbsd-0.11.7.tar.xz 418508 BLAKE2B 2ff0aa951c5b37a58ab101aade52d077d52f3695bb8535c99dec89659775501d93af16f164fef946776f445ee88a276d00870f64cb3fef58942ce26af6d2eaa9 SHA512 51fda4724f41dd8a4628afd58c21236a7588d9045e337e06eeabf83805a9aaaa53705441ca901ad11f1c65f18e881523bdc97721a7d3d6a5cced27f2450d09a2 DIST libbsd-0.11.7.tar.xz.asc 833 BLAKE2B 925cd4f5b68c0dccceb476cb188bb5a8185ad77895b9b458ff6819ae241dbd8cbf1c18dd12d10b90b3a9ea3f9e065b44566d1a908d0c111ecbd435434b922a66 SHA512 bdcce69ee261039900896c5be48659f1b6b809f3a6e8a5220aac30a6687926ac29e478a3ea737727d077d6575ee11b86eed896932568fdd261a9aaeb46d695b6 +DIST libbsd-0.11.8.tar.xz 432376 BLAKE2B b2b9496423f177af7cba3c55c071b58a314ad987bd04fee5c93dc1885a501a923048f676d00dcb70c8cfa37de775c6ec64224dfecce1d0eaed50b8c27ec0c001 SHA512 0173fc20e2471f96bc6677500a02fbccef7463e023445f47681843c9a94b1fa9970c5af7d2f87f1a1e7f8a7bb60112988defc073828fd2a0dcd0e66e44e67295 +DIST libbsd-0.11.8.tar.xz.asc 931 BLAKE2B 3841b81fa8bcdf0e27a41c769691dbefbb82073a18e3a30580794e0242c903bd0b512d31d6e897f8fa98ef3a3cf0dc08a413040ead00caa63f0b993396e1f2fe SHA512 a24355f9151f1da62e1f4f37280eec57ee7a32205b493d973d59231382c878e4373d4cf83ec41612536ef9361fe43e68331217c96c59b6741e7827272369ff2c EBUILD libbsd-0.11.7-r2.ebuild 2014 BLAKE2B ec16c30967a39e02bb943ed3dfe2f63003f4d0845698c88b39145f9de3408ffdef59070a20307e594534874de1e1f25ec7f1bac41782fe543b8bd8340242011f SHA512 b3ec6c68147aa523c998bf2678e755163528c48bf2d3dadf22a8ec18372085bb40ec88e351cb1584750cdb49c9bcda4c28e1baa68bc3c5c6c6b9ebcc1faadab5 +EBUILD libbsd-0.11.8.ebuild 1658 BLAKE2B dadf3fe02e35091550e8128d753776367350bb747d86c5fd9626171338dd008976cf5e7f2df2e69c49e70525705f0120f181dcbb4f220f38e1b9f661ecd5a00c SHA512 61eebc83a5fedbcadfeda6ec44692df49e2b168b86c6a55c52580f914c112b0979c80ef591baa72b54bc106ce21e89afc98a67282576d7475b4809b697dc9564 MISC metadata.xml 554 BLAKE2B 57cd84d1627796b005aef8d9ef4ff6d180f3373717ab89649e2de6f8adf661633edd63bfa9a0e74924b2919ef42fc8388a16c90c9b10f50c98d82efdd84d139e SHA512 b1b5861578bb7bda3fae6608d6682d422e822072dccd70fe2459b0814188780ad90a2777d82876d18cea975257d1b813300a84491593526ea3a3f5671645e468 diff --git a/dev-libs/libbsd/libbsd-0.11.8.ebuild b/dev-libs/libbsd/libbsd-0.11.8.ebuild new file mode 100644 index 000000000000..b86e24710246 --- /dev/null +++ b/dev-libs/libbsd/libbsd-0.11.8.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/guillemjover.asc +inherit multilib multilib-minimal verify-sig + +DESCRIPTION="Library to provide useful functions commonly found on BSD systems" +HOMEPAGE="https://libbsd.freedesktop.org/wiki/ https://gitlab.freedesktop.org/libbsd/libbsd" +SRC_URI="https://${PN}.freedesktop.org/releases/${P}.tar.xz" +SRC_URI+=" verify-sig? ( https://${PN}.freedesktop.org/releases/${P}.tar.xz.asc )" + +LICENSE="BEER-WARE BSD BSD-2 BSD-4 ISC MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="static-libs" + +RDEPEND="app-crypt/libmd[${MULTILIB_USEDEP}]" +DEPEND=" + ${RDEPEND} + >=sys-kernel/linux-headers-3.17 +" +BDEPEND="verify-sig? ( sec-keys/openpgp-keys-guillemjover )" + +multilib_src_configure() { + # The build system will install libbsd-ctor.a despite USE="-static-libs" + # which is correct, see: + # https://gitlab.freedesktop.org/libbsd/libbsd/commit/c5b959028734ca2281250c85773d9b5e1d259bc8 + ECONF_SOURCE="${S}" econf $(use_enable static-libs static) +} + +multilib_src_install() { + emake DESTDIR="${D}" install + + find "${ED}" -type f -name "*.la" -delete || die + + # ld scripts on standalone prefix (RAP) systems should have the prefix + # stripped from any paths, as the sysroot is automatically prepended. + local ldscript=${ED}/usr/$(get_libdir)/${PN}$(get_libname) + if use prefix && ! use prefix-guest && grep -qIF "ld script" "${ldscript}" 2>/dev/null; then + sed -i "s|${EPREFIX}/|/|g" "${ldscript}" || die + fi +} |