diff options
Diffstat (limited to 'dev-util/libabigail')
-rw-r--r-- | dev-util/libabigail/Manifest | 3 | ||||
-rw-r--r-- | dev-util/libabigail/libabigail-2.2.ebuild | 17 | ||||
-rw-r--r-- | dev-util/libabigail/libabigail-9999.ebuild | 109 |
3 files changed, 123 insertions, 6 deletions
diff --git a/dev-util/libabigail/Manifest b/dev-util/libabigail/Manifest index e4169fe7c00c..17faeb2aff74 100644 --- a/dev-util/libabigail/Manifest +++ b/dev-util/libabigail/Manifest @@ -3,5 +3,6 @@ DIST libabigail-2.1.tar.gz 405861148 BLAKE2B 28c8c7cfc33b5002d10b94e2eb9e16ef403 DIST libabigail-2.2-docs.tar.xz 46776 BLAKE2B 469981ea9879b202bcfd68dfa1d71c25470c6c9b9a8058ff29923a4cb7ecd5cb652b239bf6faa05c6b7e479b425e2fd4327a0d6e1703f3622299d743b72e8b5c SHA512 c06bfa95957390ca7abd1e47a79e2da813fd3bdfb8dcaf23bf81da697c77b67d9cd5457010291e2753fcc74f55803a1c81234aa3b8cb27c6b1ce3991f6ab60ab DIST libabigail-2.2.tar.xz 351078692 BLAKE2B fc03b1653fbe94213713e710c358133a2abd51cac46c8d4b5d797715b16e3d9923ddd99f9a2f85352599b6b5628f52e505f0ec2bca6dc3ea118826bbe69ff42b SHA512 c512c4a497ea6bb88283feae6c31cf5fe347c260cf1670fe65296bf158d3a2aa449ca518a4f2780e814ffbe6970c7856d2ab91e15499638db78bc52d67d794ce EBUILD libabigail-2.1-r1.ebuild 2762 BLAKE2B 786535537ab8bdc0c6f760a20e26d20e0a86e895c2c70c98808b7f6283229e832ffb3a6f9f6c24009d3e9cdf5343b6397361a2d521bff5054ff14284ce5f3521 SHA512 7bd66ef1116e4a8462138c7485fb69d7f6d6178d7c01ebc979276237d0eda4404372ac95d75946ac215f45bc4a7731b72465e717d81543f13466cc51cbbd6be0 -EBUILD libabigail-2.2.ebuild 2741 BLAKE2B 0348937bba6bb48ea32a9677470b03d4864ddf3f5cda99dad2aa86e113be69d45da8efc4bab4dc52ba8c9960129cf965913ddec18e7fbec86ef8f5d666c49c68 SHA512 dc436791c61c22bb958adc55f3eb3f3ba51bd52c92bbe3fc6152bf7e1f7bd218932a00c79f5c3c1ccd03a5497574d5c2ab44b5db71582626da8f1af48b3793be +EBUILD libabigail-2.2.ebuild 2889 BLAKE2B 324f3333c0024fc3927ba03d1f2cac93bb6aa9ff5f98d3cec1184bc946801cf623628728faa4145cd17dcbecde87e061e97e121a0739e6562b1f4f88970a0e50 SHA512 29867edf5f29a973684de3e08359eef079fd567a06a10c38de7a1db1d92bb68947cdb5f5461b77bc9233ff77d4b1d98bad7b6cde364a4483fc2dde5e678fa738 +EBUILD libabigail-9999.ebuild 2889 BLAKE2B 324f3333c0024fc3927ba03d1f2cac93bb6aa9ff5f98d3cec1184bc946801cf623628728faa4145cd17dcbecde87e061e97e121a0739e6562b1f4f88970a0e50 SHA512 29867edf5f29a973684de3e08359eef079fd567a06a10c38de7a1db1d92bb68947cdb5f5461b77bc9233ff77d4b1d98bad7b6cde364a4483fc2dde5e678fa738 MISC metadata.xml 245 BLAKE2B 4ac08132cfdd18d0ef2c38470da5045bca296f4975a8fa1e7094c1f6f524ebf02103d487ae7d6d0bb1c912d46eb207a74a417bbdc10bc92499331112f15392e6 SHA512 fa5b2d519f191de35a1f8719e8ba7ea346c54173c797e152df2aeefda32dfb0e0741ff171b87e1ee835c1d5383f424b8bb276d597bdf2fe911525bd5719cab9d diff --git a/dev-util/libabigail/libabigail-2.2.ebuild b/dev-util/libabigail/libabigail-2.2.ebuild index e57b7f1c2158..3bd31a3ad9b3 100644 --- a/dev-util/libabigail/libabigail-2.2.ebuild +++ b/dev-util/libabigail/libabigail-2.2.ebuild @@ -20,15 +20,22 @@ inherit autotools bash-completion-r1 python-any-r1 out-of-source DESCRIPTION="Suite of tools for checking ABI differences between ELF objects" HOMEPAGE="https://sourceware.org/libabigail/" -SRC_URI="https://mirrors.kernel.org/sourceware/libabigail/${P}.tar.xz" -if [[ ${LIBABIGAIL_DOCS_PREBUILT} == 1 ]] ; then - SRC_URI+=" !doc? ( https://dev.gentoo.org/~${LIBABIGAIL_DOCS_PREBUILT_DEV}/distfiles/${CATEGORY}/${PN}/${PN}-${LIBABIGAIL_DOCS_VERSION}-docs.tar.xz )" - LIBABIGAIL_DOCS_USEFLAG="doc" +if [[ ${PV} == 9999 ]] ; then + LIBABIGAIL_DOCS_PREBUILT=0 + EGIT_REPO_URI="https://sourceware.org/git/libabigail.git" + inherit git-r3 +else + SRC_URI="https://mirrors.kernel.org/sourceware/libabigail/${P}.tar.xz" + if [[ ${LIBABIGAIL_DOCS_PREBUILT} == 1 ]] ; then + SRC_URI+=" !doc? ( https://dev.gentoo.org/~${LIBABIGAIL_DOCS_PREBUILT_DEV}/distfiles/${CATEGORY}/${PN}/${PN}-${LIBABIGAIL_DOCS_VERSION}-docs.tar.xz )" + LIBABIGAIL_DOCS_USEFLAG="doc" + fi + + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv" fi LICENSE="Apache-2.0-with-LLVM-exceptions" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv" IUSE="${LIBABIGAIL_DOCS_USEFLAG} test" RESTRICT="!test? ( test )" diff --git a/dev-util/libabigail/libabigail-9999.ebuild b/dev-util/libabigail/libabigail-9999.ebuild new file mode 100644 index 000000000000..3bd31a3ad9b3 --- /dev/null +++ b/dev-util/libabigail/libabigail-9999.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Generate using https://github.com/thesamesam/sam-gentoo-scripts/blob/main/niche/generate-libabigail-docs +# Set to 1 if prebuilt, 0 if not +# (the construct below is to allow overriding from env for script) +: ${LIBABIGAIL_DOCS_PREBUILT:=1} + +LIBABIGAIL_DOCS_PREBUILT_DEV=sam +LIBABIGAIL_DOCS_VERSION="${PV}" +# Default to generating docs (inc. man pages) if no prebuilt; overridden later +# bug #830088 +LIBABIGAIL_DOCS_USEFLAG="+doc" + +PYTHON_COMPAT=( python3_{8..11} ) + +inherit autotools bash-completion-r1 python-any-r1 out-of-source + +DESCRIPTION="Suite of tools for checking ABI differences between ELF objects" +HOMEPAGE="https://sourceware.org/libabigail/" +if [[ ${PV} == 9999 ]] ; then + LIBABIGAIL_DOCS_PREBUILT=0 + EGIT_REPO_URI="https://sourceware.org/git/libabigail.git" + inherit git-r3 +else + SRC_URI="https://mirrors.kernel.org/sourceware/libabigail/${P}.tar.xz" + if [[ ${LIBABIGAIL_DOCS_PREBUILT} == 1 ]] ; then + SRC_URI+=" !doc? ( https://dev.gentoo.org/~${LIBABIGAIL_DOCS_PREBUILT_DEV}/distfiles/${CATEGORY}/${PN}/${PN}-${LIBABIGAIL_DOCS_VERSION}-docs.tar.xz )" + LIBABIGAIL_DOCS_USEFLAG="doc" + fi + + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv" +fi + +LICENSE="Apache-2.0-with-LLVM-exceptions" +SLOT="0" +IUSE="${LIBABIGAIL_DOCS_USEFLAG} test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/elfutils + dev-libs/libxml2:2 + elibc_musl? ( sys-libs/fts-standalone )" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + doc? ( + app-doc/doxygen[dot] + dev-python/sphinx + sys-apps/texinfo + ) + test? ( ${PYTHON_DEPS} )" + +src_prepare() { + default + # need to run our autotools, due to ltmain.sh including Redhat calls: + # cannot read spec file '/usr/lib/rpm/redhat/redhat-hardened-ld': No such file or directory + eautoreconf +} + +my_src_configure() { + econf \ + --disable-deb \ + --disable-fedabipkgdiff \ + --disable-rpm \ + --disable-rpm415 \ + --disable-ctf \ + --enable-bash-completion \ + --enable-python3 \ + $(use_enable doc apidoc) \ + $(use_enable doc manual) +} + +my_src_compile() { + default + use doc && emake doc +} + +my_src_install() { + emake DESTDIR="${D}" install + + # If USE=doc, there'll be newly generated docs which we install instead. + if ! use doc && [[ ${LIBABIGAIL_DOCS_PREBUILT} == 1 ]] ; then + doinfo "${WORKDIR}"/${PN}-${LIBABIGAIL_DOCS_VERSION}-docs/texinfo/*.info + doman "${WORKDIR}"/${PN}-${LIBABIGAIL_DOCS_VERSION}-docs/man/*.[0-8] + elif use doc; then + doman doc/manuals/man/* + doinfo doc/manuals/texinfo/abigail.info + + dodoc -r doc/manuals/html + + docinto html/api + dodoc -r doc/api/html/. + fi +} + +my_src_install_all() { + einstalldocs + + local file + for file in abicompat abidiff abidw abilint abinilint abipkgdiff abisym fedabipkgdiff ; do + dobashcomp bash-completion/${file} + done + + # No static archives + find "${ED}" -name '*.la' -delete || die +} |