commit: 1eaf6e5445484b218188989170f8ece7ac63b907 Author: Dima Pasechnik <dima <AT> pasechnik <DOT> info> AuthorDate: Tue Dec 30 18:20:58 2025 +0000 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> CommitDate: Thu Jan 1 14:04:29 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1eaf6e54
sci-libs/cddlib: add 094n Closes: https://github.com/gentoo/gentoo/pull/45209 Signed-off-by: Dima Pasechnik <dima <AT> pasechnik.info> Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> sci-libs/cddlib/Manifest | 1 + sci-libs/cddlib/cddlib-094n.ebuild | 61 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/sci-libs/cddlib/Manifest b/sci-libs/cddlib/Manifest index a14352b359b9..eb5fd2ce03ea 100644 --- a/sci-libs/cddlib/Manifest +++ b/sci-libs/cddlib/Manifest @@ -1 +1,2 @@ DIST cddlib-0.94m.tar.gz 1351298 BLAKE2B 0e1931ba94771f0dcae0ee10b003940ca331839eb8ce001ab02c4f1b382dde74d7dfcf74f4c62e1ae7214a3139547c09f56ef0cba5df74fc03a63ab741b64690 SHA512 50997bda38c36990456345881dc1eac65b1880aa510ea3812ae46a122ba7696bf3577f2b6976ff16811ee00f0a920c8ed6f1e7de0a4060bfaa96def11bab816e +DIST cddlib-0.94n.tar.gz 1381376 BLAKE2B a734ff0b767c38f113028202429f3016bf400e5ab1bce7ba829cf2cfe70d796fbc5b5609e50be32f46c1ccb58ccedead86311edfec4e279b06436e5e019cc51b SHA512 d171cdcc0f893c6a16b397989a30bb45f19cbd53594a140481ccf2a0985ca5c215f33ad86aa4aeed9f13acab2479be5ca9fcbefca8afdc9eb02afe0051ac1abc diff --git a/sci-libs/cddlib/cddlib-094n.ebuild b/sci-libs/cddlib/cddlib-094n.ebuild new file mode 100644 index 000000000000..ef5dd93d97c7 --- /dev/null +++ b/sci-libs/cddlib/cddlib-094n.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit libtool + +# This can't work forever; but for now, it's better than hard-coding the +# correct version string. +MY_PV="${PV:0:1}.${PV:1}" +QA_PKGCONFIG_VERSION="${MY_PV}" + +MY_P="${PN}-${MY_PV}" +DESCRIPTION="C library implementing the Double Description Method" +HOMEPAGE="https://people.inf.ethz.ch/fukudak/cdd_home/index.html" +SRC_URI="https://github.com/${PN}/${PN}/releases/download/${MY_PV}/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~riscv ~x86" +IUSE="doc examples static-libs tools" + +DEPEND="dev-libs/gmp:0" +RDEPEND="dev-libs/gmp:0=" + +src_prepare() { + default + elibtoolize +} + +src_configure() { + econf $(use_enable static-libs static) +} + +src_install() { + default + + if ! use tools; then + rm "${ED}"/usr/bin/* || die + fi + + if ! use static-libs; then + find "${ED}" -name '*.la' -delete || die + fi + + # Nobody wants the dvi/ps manual... + rm "${ED}/usr/share/doc/${PF}"/cddlibman.{dvi,ps} || die + + # since the PDF manual is installed by default. + if ! use doc; then + rm "${ED}/usr/share/doc/${PF}"/cddlibman.pdf || die + fi + + # The docs and examples are *both* installed by default, so we + # have to remove the examples if the user doesn't want them. + docompress -x "/usr/share/doc/${PF}"/examples{,-ext,-ine,-ine3d} + if ! use examples; then + rm -r "${ED}/usr/share/doc/${PF}"/examples{,-ext,-ine,-ine3d} || die + fi +}
