Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libgit2/
Date: Tue, 28 Feb 2023 13:07:26
Message-Id: 1677589197.08da9dd29294c4c807b2c4414ae4b36918b6a9e3.mgorny@gentoo
1 commit: 08da9dd29294c4c807b2c4414ae4b36918b6a9e3
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 28 12:59:57 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 28 12:59:57 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08da9dd2
7
8 dev-libs/libgit2: Bump to 1.6.2
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-libs/libgit2/Manifest | 1 +
13 dev-libs/libgit2/libgit2-1.6.2.ebuild | 69 +++++++++++++++++++++++++++++++++++
14 2 files changed, 70 insertions(+)
15
16 diff --git a/dev-libs/libgit2/Manifest b/dev-libs/libgit2/Manifest
17 index efd6ade221ce..52330e5ea0d9 100644
18 --- a/dev-libs/libgit2/Manifest
19 +++ b/dev-libs/libgit2/Manifest
20 @@ -1,3 +1,4 @@
21 DIST libgit2-1.5.1.tar.gz 5895483 BLAKE2B 4df80216523f4065e46c1ce99fd0747d2f8516571691c8c2b5638e32c805f5ce08d3add769e6d5ce29ac69b35419db82ce56c6b3019e70573c4ad63aca2e440d SHA512 04cf389e30cd9fb787704e3c8997acaaeea5c13e1e2f9eaf9f5598d35c2e85f3cf04b47312cae9e7278236ecb089c2d33addd852e38d3c7d2daa87929b077f39
22 DIST libgit2-1.5.2.tar.gz 5896845 BLAKE2B b89c48c953d8804c1ea1997e0c81f45aeb66f87a7cad100069dc3a8364e0658f6d6e41e49adf123cc950b2da46f805aa05f07af234990f62aa78d38d5e8e78d5 SHA512 0de5e82953482bf57e9cd221406581a12c6acfbeeea0cebbb9b701d288804ec085b7c0902ba1f04ad7cdaaead9d472be21ffe8d730050db5c77101a93448fb3a
23 DIST libgit2-1.6.1.tar.gz 6666523 BLAKE2B cf80f64bdb069f16cd39855b6ff0afa9c601e489c59da60fc7a72b447263f731db806b7df60c289f2b94ee3d26ef182a33395528962d4bfca87db8e99da1cf86 SHA512 9288e6a0129020458a3ef6a7af2074e1a4577cf0be9adbab9316f5fae149861a4f39dd1dc104030e7fe849bb95d0ef12ffac4c728c5f13da4b5f66c7e6f9af7a
24 +DIST libgit2-1.6.2.tar.gz 6666383 BLAKE2B 7a42d8440fbe0afa24057bf53d52bcb04b4e8654f71cfa55871a7e77a150297731879d8f5be51df61ad91556656b66b102536a508cf61d9c11e8658e841fc560 SHA512 ef9feef36c5876776f3aa608101115c9e7a0970e6dd752851d930cb85b4b1789ed68f42700ebea51095ff54600e37c18a4de0c0678d9a4d7d4aba83668890c09
25
26 diff --git a/dev-libs/libgit2/libgit2-1.6.2.ebuild b/dev-libs/libgit2/libgit2-1.6.2.ebuild
27 new file mode 100644
28 index 000000000000..fd4006780f80
29 --- /dev/null
30 +++ b/dev-libs/libgit2/libgit2-1.6.2.ebuild
31 @@ -0,0 +1,69 @@
32 +# Copyright 1999-2023 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +PYTHON_COMPAT=( python3_{9..11} )
38 +inherit cmake python-any-r1
39 +
40 +DESCRIPTION="A linkable library for Git"
41 +HOMEPAGE="https://libgit2.org/"
42 +SRC_URI="
43 + https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
44 +"
45 +S=${WORKDIR}/${P/_/-}
46 +
47 +LICENSE="GPL-2-with-linking-exception"
48 +SLOT="0/$(ver_cut 1-2)"
49 +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-macos"
50 +IUSE="examples gssapi +ssh test +threads trace"
51 +RESTRICT="!test? ( test )"
52 +
53 +RDEPEND="
54 + dev-libs/libpcre2:=
55 + net-libs/http-parser:=
56 + sys-libs/zlib
57 + dev-libs/openssl:0=
58 + gssapi? ( virtual/krb5 )
59 + ssh? ( net-libs/libssh2 )
60 +"
61 +DEPEND="
62 + ${RDEPEND}
63 +"
64 +BDEPEND="
65 + ${PYTHON_DEPS}
66 + virtual/pkgconfig
67 +"
68 +
69 +src_configure() {
70 + local mycmakeargs=(
71 + -DBUILD_TESTS=$(usex test)
72 + -DUSE_SSH=$(usex ssh)
73 + -DUSE_GSSAPI=$(usex gssapi ON OFF)
74 + -DUSE_HTTP_PARSER=system
75 + -DREGEX_BACKEND=pcre2
76 + )
77 + cmake_src_configure
78 +}
79 +
80 +src_test() {
81 + if [[ ${EUID} -eq 0 ]] ; then
82 + # repo::iterator::fs_preserves_error fails if run as root
83 + # since root can still access dirs with 0000 perms
84 + ewarn "Skipping tests: non-root privileges are required for all tests to pass"
85 + else
86 + local TEST_VERBOSE=1
87 + cmake_src_test -R offline
88 + fi
89 +}
90 +
91 +src_install() {
92 + cmake_src_install
93 + dodoc docs/*.{md,txt}
94 +
95 + if use examples ; then
96 + find examples -name '.gitignore' -delete || die
97 + dodoc -r examples
98 + docompress -x /usr/share/doc/${PF}/examples
99 + fi
100 +}