diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-libs/libgit2 | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-libs/libgit2')
| -rw-r--r-- | dev-libs/libgit2/Manifest | 3 | ||||
| -rw-r--r-- | dev-libs/libgit2/libgit2-1.9.2.ebuild | 79 | ||||
| -rw-r--r-- | dev-libs/libgit2/libgit2-1.9.3.ebuild | 79 | ||||
| -rw-r--r-- | dev-libs/libgit2/libgit2-1.9.4.ebuild | 79 | ||||
| -rw-r--r-- | dev-libs/libgit2/metadata.xml | 23 |
5 files changed, 263 insertions, 0 deletions
diff --git a/dev-libs/libgit2/Manifest b/dev-libs/libgit2/Manifest new file mode 100644 index 000000000000..a75fc0f9f275 --- /dev/null +++ b/dev-libs/libgit2/Manifest @@ -0,0 +1,3 @@ +DIST libgit2-1.9.2.tar.gz 7667818 BLAKE2B 6e5be4aee7ebe959a23ec24952eaff3ad66bbc740e0fd3ef66bc61b57c3228b71ad9b01808494782a90d362692d2cfabbfc24946543bbc109ec66df9c03cf26d SHA512 b9ac2d0a7cc92a31057fbf066e47145cdda89ebf0489d712d4452c709c3de9923a93a3c37128fdcfd8fbb5498f513a519a7f2a77ad6ef4efafe865323d481f18 +DIST libgit2-1.9.3.tar.gz 7674513 BLAKE2B 9f968cede042cc494c53c12f36ebee64a25637a40570373bd46c0c278436851a7a62c433e62d977919892ff4035fea5fef0d6468074cdff960ec6b4d3d160f83 SHA512 5359d07b85b691b92784d5ef52825be2c1f1616bab8e969e51177bf8f5e767edbaf267943296407f62df1f3d7fa08e48c802374289046b71da2cc1ac7d43a15f +DIST libgit2-1.9.4.tar.gz 7674814 BLAKE2B 3d8c71d1371668423259b610c4387e538b7450a23d89206fde2421382f6c19430e607f6fb0a92333f8f6a15a8dd22da1924e8c495cf8ea1c9975f6df161764c0 SHA512 85036ade3aca33c5283605ae9de21a7948ec5952bc8cd468aa024ca873851a56ab0ebe62f95c0da109df9163875e9687a377d3df69728d434cc258b3f845ef0c diff --git a/dev-libs/libgit2/libgit2-1.9.2.ebuild b/dev-libs/libgit2/libgit2-1.9.2.ebuild new file mode 100644 index 000000000000..0b9f8245813e --- /dev/null +++ b/dev-libs/libgit2/libgit2-1.9.2.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{13..14} ) + +inherit cmake flag-o-matic python-any-r1 + +DESCRIPTION="A linkable library for Git" +HOMEPAGE="https://libgit2.org/" +SRC_URI=" + https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz +" +S=${WORKDIR}/${P/_/-} + +LICENSE="GPL-2-with-linking-exception" +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" +IUSE="examples gssapi +ssh test trace" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/libpcre2:= + net-libs/llhttp:= + virtual/zlib:= + dev-libs/openssl:0= + gssapi? ( virtual/krb5 ) + ssh? ( net-libs/libssh2 ) +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + ${PYTHON_DEPS} + virtual/pkgconfig +" + +src_prepare() { + cmake_src_prepare + + # https://bugs.gentoo.org/948941 + sed -i -e 's:-Werror::' tests/headertest/CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTS=$(usex test) + -DUSE_SSH=$(usex ssh libssh2 OFF) + -DUSE_GSSAPI=$(usex gssapi ON OFF) + -DUSE_HTTP_PARSER=llhttp + -DREGEX_BACKEND=pcre2 + ) + # https://bugs.gentoo.org/925207 + append-lfs-flags + cmake_src_configure +} + +src_test() { + if [[ ${EUID} -eq 0 ]] ; then + # repo::iterator::fs_preserves_error fails if run as root + # since root can still access dirs with 0000 perms + ewarn "Skipping tests: non-root privileges are required for all tests to pass" + else + local TEST_VERBOSE=1 + cmake_src_test -R offline + fi +} + +src_install() { + cmake_src_install + dodoc docs/*.{md,txt} + + if use examples ; then + find examples -name '.gitignore' -delete || die + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi +} diff --git a/dev-libs/libgit2/libgit2-1.9.3.ebuild b/dev-libs/libgit2/libgit2-1.9.3.ebuild new file mode 100644 index 000000000000..ab275759e358 --- /dev/null +++ b/dev-libs/libgit2/libgit2-1.9.3.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{13..14} ) + +inherit cmake flag-o-matic python-any-r1 + +DESCRIPTION="A linkable library for Git" +HOMEPAGE="https://libgit2.org/" +SRC_URI=" + https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz +" +S=${WORKDIR}/${P/_/-} + +LICENSE="GPL-2-with-linking-exception" +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="examples gssapi +ssh test trace" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/libpcre2:= + net-libs/llhttp:= + virtual/zlib:= + dev-libs/openssl:0= + gssapi? ( virtual/krb5 ) + ssh? ( net-libs/libssh2 ) +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + ${PYTHON_DEPS} + virtual/pkgconfig +" + +src_prepare() { + cmake_src_prepare + + # https://bugs.gentoo.org/948941 + sed -i -e 's:-Werror::' tests/headertest/CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTS=$(usex test) + -DUSE_SSH=$(usex ssh libssh2 OFF) + -DUSE_GSSAPI=$(usex gssapi ON OFF) + -DUSE_HTTP_PARSER=llhttp + -DREGEX_BACKEND=pcre2 + ) + # https://bugs.gentoo.org/925207 + append-lfs-flags + cmake_src_configure +} + +src_test() { + if [[ ${EUID} -eq 0 ]] ; then + # repo::iterator::fs_preserves_error fails if run as root + # since root can still access dirs with 0000 perms + ewarn "Skipping tests: non-root privileges are required for all tests to pass" + else + local TEST_VERBOSE=1 + cmake_src_test -R offline + fi +} + +src_install() { + cmake_src_install + dodoc docs/*.{md,txt} + + if use examples ; then + find examples -name '.gitignore' -delete || die + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi +} diff --git a/dev-libs/libgit2/libgit2-1.9.4.ebuild b/dev-libs/libgit2/libgit2-1.9.4.ebuild new file mode 100644 index 000000000000..ab275759e358 --- /dev/null +++ b/dev-libs/libgit2/libgit2-1.9.4.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{13..14} ) + +inherit cmake flag-o-matic python-any-r1 + +DESCRIPTION="A linkable library for Git" +HOMEPAGE="https://libgit2.org/" +SRC_URI=" + https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz +" +S=${WORKDIR}/${P/_/-} + +LICENSE="GPL-2-with-linking-exception" +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="examples gssapi +ssh test trace" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/libpcre2:= + net-libs/llhttp:= + virtual/zlib:= + dev-libs/openssl:0= + gssapi? ( virtual/krb5 ) + ssh? ( net-libs/libssh2 ) +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + ${PYTHON_DEPS} + virtual/pkgconfig +" + +src_prepare() { + cmake_src_prepare + + # https://bugs.gentoo.org/948941 + sed -i -e 's:-Werror::' tests/headertest/CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTS=$(usex test) + -DUSE_SSH=$(usex ssh libssh2 OFF) + -DUSE_GSSAPI=$(usex gssapi ON OFF) + -DUSE_HTTP_PARSER=llhttp + -DREGEX_BACKEND=pcre2 + ) + # https://bugs.gentoo.org/925207 + append-lfs-flags + cmake_src_configure +} + +src_test() { + if [[ ${EUID} -eq 0 ]] ; then + # repo::iterator::fs_preserves_error fails if run as root + # since root can still access dirs with 0000 perms + ewarn "Skipping tests: non-root privileges are required for all tests to pass" + else + local TEST_VERBOSE=1 + cmake_src_test -R offline + fi +} + +src_install() { + cmake_src_install + dodoc docs/*.{md,txt} + + if use examples ; then + find examples -name '.gitignore' -delete || die + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi +} diff --git a/dev-libs/libgit2/metadata.xml b/dev-libs/libgit2/metadata.xml new file mode 100644 index 000000000000..8d04b39ca3f1 --- /dev/null +++ b/dev-libs/libgit2/metadata.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mgorny@gentoo.org</email> + <name>Michał Górny</name> + </maintainer> + <maintainer type="project"> + <email>gnome@gentoo.org</email> + <name>Gentoo GNOME Desktop</name> + </maintainer> + <longdescription lang="en"> + libgit2 is a portable, pure C implementation of the Git core methods provided + as a re-entrant linkable library with a solid API, allowing you to write native + speed custom Git applications in any language which supports C bindings. + </longdescription> + <use> + <flag name="gssapi">Enable GSSAPI support for SPNEGO auth</flag> + <flag name="ssh">Enable SSH transport support</flag> + <flag name="trace">Enable tracing support</flag> + </use> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
