1 |
commit: b96a2d93f8358a2ded085d7865a65c243a875c7b |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 26 21:21:47 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 26 21:51:21 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b96a2d93 |
7 |
|
8 |
dev-libs/libgit2: Bump to 1.4.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.4.2.ebuild | 71 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 72 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/libgit2/Manifest b/dev-libs/libgit2/Manifest |
17 |
index d01f9c722e8c..84d6cf79a10f 100644 |
18 |
--- a/dev-libs/libgit2/Manifest |
19 |
+++ b/dev-libs/libgit2/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST libgit2-1.3.0.tar.gz 5599575 BLAKE2B b701c105bb0a5bdcdd5ed1db180662ad4949c540944664d5d8c2f5d78998f15d15bd3669ae3e3d43bfa1b81207c0a94b7e49fc76e57f4cc8ef791ab26e62fc70 SHA512 842a648a67ff23ba9e6bf14b706ba9081164866e14000ebf3858442b7046925f05e1dbf00a7d740dc4bf32280e260730e23a9492e817094aa90736ae335ee76e |
22 |
DIST libgit2-1.4.0.tar.gz 5628993 BLAKE2B b28795904250474e0a373bb28f18f0a18c17c91c1597ad56eb44f8d47a8cb0aa6521b0599f427f34e477771116929db8d5bcafcb7aaf97ddc2534dfa3fd89525 SHA512 e7eff2e30a299901d7b4d9544b655046801e5c83b0caf1d2476ab56c164c88448dc189b254929f2609e117f01c2e038c4538e7554269ad93fbd625229668cd06 |
23 |
DIST libgit2-1.4.1.tar.gz 5629087 BLAKE2B 7c8316003c168c4b366fa4376d5e4dfa0a70dcb0cd0cc0b4ac7287f7b04eba50127cca89c4bcda94f86e5331b6a2951532b5108d5376a2a3fed7a68c31472151 SHA512 66943d82811c5e24687231696bd1ce8d7d58f44081c00a7030e01a69a7c920605a427c315a26af6c57c9bd7c1d1d31ab857f80615fce1ba4b981d01f733215cd |
24 |
+DIST libgit2-1.4.2.tar.gz 5629585 BLAKE2B 61e269fd08beb9579838a13b661b4270f1e8d2d3d1e67f6b8357e92a5ee4aaccbe637644dc87cc8b04d9c181e37808352077b75fed8753a4b2d8868eaf248b62 SHA512 144bec7f8e66d97b20335d87d1eb68d522f5e59064b0c557505c088d3c486d45704f023d701f51de572efa8e2eb111e3136eb5d23c035e29d16698206b5ec277 |
25 |
|
26 |
diff --git a/dev-libs/libgit2/libgit2-1.4.2.ebuild b/dev-libs/libgit2/libgit2-1.4.2.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..8727c6dbff6b |
29 |
--- /dev/null |
30 |
+++ b/dev-libs/libgit2/libgit2-1.4.2.ebuild |
31 |
@@ -0,0 +1,71 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+inherit cmake python-any-r1 |
39 |
+ |
40 |
+DESCRIPTION="A linkable library for Git" |
41 |
+HOMEPAGE="https://libgit2.org" |
42 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+S=${WORKDIR}/${P/_/-} |
44 |
+ |
45 |
+LICENSE="GPL-2-with-linking-exception" |
46 |
+SLOT="0/$(ver_cut 1-2)" |
47 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~ppc-macos" |
48 |
+IUSE="examples gssapi +ssh test +threads trace" |
49 |
+RESTRICT="!test? ( test )" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ dev-libs/libpcre:= |
53 |
+ net-libs/http-parser:= |
54 |
+ sys-libs/zlib |
55 |
+ dev-libs/openssl:0= |
56 |
+ gssapi? ( virtual/krb5 ) |
57 |
+ ssh? ( net-libs/libssh2 ) |
58 |
+" |
59 |
+DEPEND="${RDEPEND}" |
60 |
+BDEPEND=" |
61 |
+ ${PYTHON_DEPS} |
62 |
+ virtual/pkgconfig |
63 |
+" |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ cmake_src_prepare |
67 |
+ # relying on forked http-parser to support some obscure URI form |
68 |
+ sed -i -e '/empty_port/s:test:_&:' tests/network/url/parse.c || die |
69 |
+} |
70 |
+ |
71 |
+src_configure() { |
72 |
+ local mycmakeargs=( |
73 |
+ -DBUILD_TESTS=$(usex test) |
74 |
+ -DUSE_SSH=$(usex ssh) |
75 |
+ -DUSE_GSSAPI=$(usex gssapi ON OFF) |
76 |
+ -DUSE_HTTP_PARSER=system |
77 |
+ -DREGEX_BACKEND=pcre |
78 |
+ ) |
79 |
+ cmake_src_configure |
80 |
+} |
81 |
+ |
82 |
+src_test() { |
83 |
+ if [[ ${EUID} -eq 0 ]] ; then |
84 |
+ # repo::iterator::fs_preserves_error fails if run as root |
85 |
+ # since root can still access dirs with 0000 perms |
86 |
+ ewarn "Skipping tests: non-root privileges are required for all tests to pass" |
87 |
+ else |
88 |
+ local TEST_VERBOSE=1 |
89 |
+ cmake_src_test -R offline |
90 |
+ fi |
91 |
+} |
92 |
+ |
93 |
+src_install() { |
94 |
+ cmake_src_install |
95 |
+ dodoc docs/*.{md,txt} |
96 |
+ |
97 |
+ if use examples ; then |
98 |
+ find examples -name '.gitignore' -delete || die |
99 |
+ dodoc -r examples |
100 |
+ docompress -x /usr/share/doc/${PF}/examples |
101 |
+ fi |
102 |
+} |