1 |
commit: dcf8303a944d767f5a702a5ac0b4db9855d347c3 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 13 01:56:20 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 13 02:09:42 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcf8303a |
7 |
|
8 |
dev-libs/libgit2: Bump to 1.1.0 |
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.1.0.ebuild | 71 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 72 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/libgit2/Manifest b/dev-libs/libgit2/Manifest |
17 |
index a527e14c097..670805a7b73 100644 |
18 |
--- a/dev-libs/libgit2/Manifest |
19 |
+++ b/dev-libs/libgit2/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST libgit2-1.0.1.tar.gz 5312878 BLAKE2B 7eb97bb97d66240ce135e21d348f6dea0c5626992b608f8944b75f9bae5de933fffa07edd536c0353841f8d02c950feec1451008003e35f53554f3c59b069a7f SHA512 7c307822b22e3771e5e908b115600310f7901b3250287532c498003b25a5b1e007bfa23592f16ec4d83c1567a9213710526f78cab7c120316e9a8fc74c5e57a9 |
22 |
+DIST libgit2-1.1.0.tar.gz 5426975 BLAKE2B 2a1c1f71d2a2e06448c78eb46028fdcfd59682dccf2365851c4bd059cdd78842320f9a5ba7345e761611a5b4eba634faf2e26cc669097da0ba2e1c832c23059f SHA512 347bb68900181b44fa58a0417506c91383adb965607fce049a5b4c57ac9cc286e0a140d164c339b50fb6cd6951f47757c2917a2df44ba004bfaa4fb643946bb8 |
23 |
|
24 |
diff --git a/dev-libs/libgit2/libgit2-1.1.0.ebuild b/dev-libs/libgit2/libgit2-1.1.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..b9331796cd2 |
27 |
--- /dev/null |
28 |
+++ b/dev-libs/libgit2/libgit2-1.1.0.ebuild |
29 |
@@ -0,0 +1,71 @@ |
30 |
+# Copyright 1999-2020 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{6,7,8,9} ) |
36 |
+inherit cmake python-any-r1 |
37 |
+ |
38 |
+DESCRIPTION="A linkable library for Git" |
39 |
+HOMEPAGE="https://libgit2.org" |
40 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+S=${WORKDIR}/${P/_/-} |
42 |
+ |
43 |
+LICENSE="GPL-2-with-linking-exception" |
44 |
+SLOT="0/1.0" |
45 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~ppc-macos" |
46 |
+IUSE="examples gssapi libressl +ssh test +threads trace" |
47 |
+RESTRICT="!test? ( test )" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ !libressl? ( dev-libs/openssl:0= ) |
51 |
+ libressl? ( dev-libs/libressl:0= ) |
52 |
+ sys-libs/zlib |
53 |
+ net-libs/http-parser:= |
54 |
+ gssapi? ( virtual/krb5 ) |
55 |
+ ssh? ( net-libs/libssh2 ) |
56 |
+" |
57 |
+DEPEND="${RDEPEND} |
58 |
+ ${PYTHON_DEPS} |
59 |
+ virtual/pkgconfig |
60 |
+" |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ cmake_src_prepare |
64 |
+ # relying on forked http-parser to support some obscure URI form |
65 |
+ sed -i -e '/empty_port/s:test:_&:' tests/network/urlparse.c || die |
66 |
+} |
67 |
+ |
68 |
+src_configure() { |
69 |
+ local mycmakeargs=( |
70 |
+ -DBUILD_CLAR=$(usex test) |
71 |
+ -DENABLE_TRACE=$(usex trace ON OFF) |
72 |
+ -DUSE_GSSAPI=$(usex gssapi ON OFF) |
73 |
+ -DUSE_SSH=$(usex ssh) |
74 |
+ -DTHREADSAFE=$(usex threads) |
75 |
+ -DUSE_HTTP_PARSER=system |
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 |
+} |