summaryrefslogtreecommitdiff
path: root/dev-libs/libgit2
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-12-29 06:30:44 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-12-29 06:30:44 +0000
commit0e12f8e53cdddba84b0eb27dca59153e2cf52309 (patch)
tree8dec970370295a71970b82457ae1db36dbbbd07c /dev-libs/libgit2
parent72fd2b48b7154274a1d2009cdaab54e7f49fb3aa (diff)
gentoo auto-resync : 29:12:2024 - 06:30:44
Diffstat (limited to 'dev-libs/libgit2')
-rw-r--r--dev-libs/libgit2/Manifest2
-rw-r--r--dev-libs/libgit2/libgit2-1.9.0.ebuild72
2 files changed, 74 insertions, 0 deletions
diff --git a/dev-libs/libgit2/Manifest b/dev-libs/libgit2/Manifest
index b60d2aecf949..1882ffd51ce0 100644
--- a/dev-libs/libgit2/Manifest
+++ b/dev-libs/libgit2/Manifest
@@ -1,7 +1,9 @@
DIST libgit2-1.7.2.tar.gz 7548186 BLAKE2B c27870124c7e63a37794014a802a6fce46c577313f3b6081580f920fa842a65305b5bc56aa6ab02cf87c533d6052afdc37317f96aa1fd67387b07f52415ccbe3 SHA512 825737e4a1991fba50ea535f15b0e560ebe76ead752e04aeba36925b944d0da77fe9826a70980a1aa3d0bf9afbedfab79dd92e799c9252931384c89ebec9b012
DIST libgit2-1.8.1.tar.gz 7608949 BLAKE2B 14558400d092dd963becfd3d4966a8d0799811be15fea8c5bc1e91be24f14bb81d33d82b2fb8dd8895e167f634a5d532d62a4609167bcb1d93143275207bbf6d SHA512 7429fbdc46ae44fd359e9260cbe33d9ce9276db810c096f12c43e5d302d01011463cdfd98d604e59780187e020e216e839823a77479dc12f952a37628516af78
DIST libgit2-1.8.4.tar.gz 7610171 BLAKE2B 5a6fd422bba7f65b220b0c98bb851f79ec7d6173c3f34ebbdcfe12398e1a138af346da592bedfc52c99b39c8c28ef52d6e9244ec653b8b2f01732f2b1b4e35d2 SHA512 f1409d97c8cf072ea24f3d923fdc9468d21f171f72005c13c5358f520fdccb5f3950d1c7c16cea48a8a08df6a57280da46fe60c9b6aa8a8aae2ab1363c41d246
+DIST libgit2-1.9.0.tar.gz 7660744 BLAKE2B c81beab379bd78a66d28a48600527979a6c51d33f946df1f996f52ac274cadc88f7afb8c90683f584300941a214bc69389412fb6c9be3b48d22c708b41ca0e1d SHA512 38547ace676b933a3146c2a00405fc6815063a7af923b9f2c09c536ec717be77d19c513b383939054913ce617d7917c100a5cbd3378d101fcdb5eacd1d14f687
EBUILD libgit2-1.7.2.ebuild 1649 BLAKE2B 0eae55b662f2f6bf26d51032e67da956b43aa32411ed9ef6fda13bff21f259218625df41482fb52057382280e8f70e4ef93b225db00319b27f0d825ad96cde1d SHA512 8badba9710a974eada587d36a16939e0027bcb6d05435ae1d5fa4336c0955e0c721e39ac0bc40b5e798237535f1446c1c13f272f81ec5b973696a3a3f85efd2a
EBUILD libgit2-1.8.1.ebuild 1575 BLAKE2B ee289fb92268a9fa7267626df4651552cbb8d0487610aa292cbba5de8afcb54a16f6b68ff4ea2a8c4dc070fea29691359d54fc45e5243bc5c24f1584ddaff420 SHA512 dc7fe7e6dd8844acc2846f4adf55642949fe62c2c7897239a4764ad2284c60bdb14a10c1d87ab1aff615e064755297aa61b1e18ba9c6014a7a784353fd2c8f71
EBUILD libgit2-1.8.4.ebuild 1558 BLAKE2B 7c7c6a70f718d8efe4a8b7530f0ec11af2a63a7362eef5cee6f7cbafaf97e89befe7f03a264f2c679a5ae8898a78c23fdfc47ea1dbfe46b683b522c120293bb9 SHA512 2bb3dd65e459898fccb604cb5e25594a889c3c0383ce3b9ee22440fbe3956d5db55f13d1b1cdaa6a5e38b56588886135460ea0a07ceb93e32760285dd3e07871
+EBUILD libgit2-1.9.0.ebuild 1570 BLAKE2B 70a5b29e6737976731c225874eda0425b1962c5299c7cfea861634ad0e55e16c6021c08855df5a478d201e4db4488add060d3dfcfb3cf61442eb6f41153afc7a SHA512 a9292333a838d38484f6a87930a251880aba01cb0c2c923f132759a94668dc2ce776aad1ca190742e84df2c081cc2bc677237dce4611c14c57b4f6cebf6825f7
MISC metadata.xml 916 BLAKE2B c5fb3724d2e9ef35c5be3df76c79dfc80a34d238a12d6b16f3f16d919076e216dcb085c4c182102c8fe7338982ab862a749ff9d25d8c0a0561fc133db6e07682 SHA512 78b668f9fef202fb86abc1564c4b240f7084bb3ed6ac0b77a8e26940721be6db5bfff1b927403aaa561f3dc20400bac677cc9b0a0204542b5b304ab8491c08c7
diff --git a/dev-libs/libgit2/libgit2-1.9.0.ebuild b/dev-libs/libgit2/libgit2-1.9.0.ebuild
new file mode 100644
index 000000000000..2633d8d6db71
--- /dev/null
+++ b/dev-libs/libgit2/libgit2-1.9.0.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+
+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 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="examples gssapi +ssh test +threads trace"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-libs/libpcre2:=
+ net-libs/llhttp:=
+ sys-libs/zlib
+ dev-libs/openssl:0=
+ gssapi? ( virtual/krb5 )
+ ssh? ( net-libs/libssh2 )
+"
+DEPEND="
+ ${RDEPEND}
+"
+BDEPEND="
+ ${PYTHON_DEPS}
+ virtual/pkgconfig
+"
+
+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
+}