summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-10-31 06:03:06 +0100
committerMichał Górny <mgorny@gentoo.org>2024-10-31 06:03:06 +0100
commit1e50fc8ab995d1389e26de99149317e5a1d82acc (patch)
tree4b146d5f6de02fad4ed6773e8a323b40b5278bf0 /dev-libs/libgit2
parentdev-python/simsimd: Remove old (diff)
downloadgentoo-1e50fc8ab995d1389e26de99149317e5a1d82acc.tar.gz
gentoo-1e50fc8ab995d1389e26de99149317e5a1d82acc.tar.bz2
gentoo-1e50fc8ab995d1389e26de99149317e5a1d82acc.zip
dev-libs/libgit2: Bump to 1.8.4
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-libs/libgit2')
-rw-r--r--dev-libs/libgit2/Manifest1
-rw-r--r--dev-libs/libgit2/libgit2-1.8.4.ebuild72
2 files changed, 73 insertions, 0 deletions
diff --git a/dev-libs/libgit2/Manifest b/dev-libs/libgit2/Manifest
index b9e142000cdf..e6c28a1a6768 100644
--- a/dev-libs/libgit2/Manifest
+++ b/dev-libs/libgit2/Manifest
@@ -2,3 +2,4 @@ DIST libgit2-1.7.2.tar.gz 7548186 BLAKE2B c27870124c7e63a37794014a802a6fce46c577
DIST libgit2-1.8.1.tar.gz 7608949 BLAKE2B 14558400d092dd963becfd3d4966a8d0799811be15fea8c5bc1e91be24f14bb81d33d82b2fb8dd8895e167f634a5d532d62a4609167bcb1d93143275207bbf6d SHA512 7429fbdc46ae44fd359e9260cbe33d9ce9276db810c096f12c43e5d302d01011463cdfd98d604e59780187e020e216e839823a77479dc12f952a37628516af78
DIST libgit2-1.8.2.tar.gz 7610104 BLAKE2B 5e6c68cd1b364b435130059ee12bcb889db5b00af00dc5e3b62e8b302cf3a81fa351568a5f094bc99041877a3272c98bd65999d6e81cc02ff1a31e0d07ea17ff SHA512 568daa01b254acd07624143c1fd949b131f174a0595e4c6031b1eee38afd59ec3917ffc5ade3310d2a17f22bf5062bc6d03603cb952b25cdefd6c1cec9b8033c
DIST libgit2-1.8.3.tar.gz 7609996 BLAKE2B bd2e359f2a67d04c346f42a54d7c68551493de36a0350a0c9cc972579f17c565d9d694ade9d0d2ce2b81abaabdf0ccd69c8d3906f5e166f55eedad40ee1a8da3 SHA512 5b21502bebb41c0a05ecce3f8a4e57f751a77c35c29ab5ab22f2a1495c97cd4ba1c02f8279f6791730c7827cb98c13c26c2fc86ee197d7bf54a695c5df75e983
+DIST libgit2-1.8.4.tar.gz 7610171 BLAKE2B 5a6fd422bba7f65b220b0c98bb851f79ec7d6173c3f34ebbdcfe12398e1a138af346da592bedfc52c99b39c8c28ef52d6e9244ec653b8b2f01732f2b1b4e35d2 SHA512 f1409d97c8cf072ea24f3d923fdc9468d21f171f72005c13c5358f520fdccb5f3950d1c7c16cea48a8a08df6a57280da46fe60c9b6aa8a8aae2ab1363c41d246
diff --git a/dev-libs/libgit2/libgit2-1.8.4.ebuild b/dev-libs/libgit2/libgit2-1.8.4.ebuild
new file mode 100644
index 000000000000..713f9a234ae4
--- /dev/null
+++ b/dev-libs/libgit2/libgit2-1.8.4.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 ~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 ON 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
+}