commit: be6768fc2448bb4a0f0aa1cc356cc36990d6cdfe Author: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org> AuthorDate: Thu Feb 1 20:33:37 2024 +0000 Commit: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org> CommitDate: Fri Feb 2 05:35:00 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be6768fc
dev-libs/stb: add 20240201 Bug: https://bugs.gentoo.org/818556 Closes: https://bugs.gentoo.org/876034 Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/35140 Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org> dev-libs/stb/Manifest | 1 + dev-libs/stb/stb-20240201.ebuild | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/dev-libs/stb/Manifest b/dev-libs/stb/Manifest index 4371b529fd59..7b637c0364c7 100644 --- a/dev-libs/stb/Manifest +++ b/dev-libs/stb/Manifest @@ -1 +1,2 @@ DIST stb-20200713.tar.gz 1378579 BLAKE2B 13f2deecdc20c95fe3dfd1820346e9c8d1046004082a4b6044934efa7e20270b253953fb8e2d9eecf2a263ea342b740d87807e50da48178c0eb4c7028bd27488 SHA512 a9ba80d19dae4e527171bb02e1caa4d3eb0704cdf7f8fef1a7a09e6b05c65b829b0aa580f469f158a39bf13018289f40c1680ab5c22bfa5e932bff94eced475d +DIST stb-20240201.tar.gz 1510288 BLAKE2B f11e802c6e9efe60bf08bb6071b6e8a12fc7a0713f450379534c2a4fc96c2023a190f4fed598fa7fa9b577e19f14bffbfa2f54dff1ebf72d933dc0113aa820c5 SHA512 2403ddb14b7c1a49f12bb0b43e52c612d58e4382ed03f59b4255560900eb7f08651b6688ec8b468b89e999611a67de5bd1102aa03d3847e3dd2d464175a11905 diff --git a/dev-libs/stb/stb-20240201.ebuild b/dev-libs/stb/stb-20240201.ebuild new file mode 100644 index 000000000000..a7606445ce4e --- /dev/null +++ b/dev-libs/stb/stb-20240201.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# There are no official releases +CHECKSUM="f4a71b13373436a2866c5d68f8f80ac6f0bc1ffe" + +DESCRIPTION="single-file public domain (or MIT licensed) libraries for C/C++" +HOMEPAGE="https://github.com/nothings/stb" +SRC_URI="https://github.com/nothings/stb/archive/${CHECKSUM}.tar.gz -> ${P}.tar.gz" + +LICENSE="|| ( MIT Unlicense )" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +S="${WORKDIR}/${PN}-${CHECKSUM}" + +src_prepare() { + default + + # Move the header files in a folder so they don't pollute the include dir + mkdir stb || die + mv *.h stb/ || die +} + +src_install() { + doheader -r stb + + insinto /usr/share/pkgconfig + cat > "${D}"/usr/share/pkgconfig/stb.pc <<-EOF + prefix=/usr + includedir=\${prefix}/include/stb + + Name: stb + Description: stb single-file public domain libraries + Version: ${PV} + Cflags: -I\${includedir} + EOF +}
