1 |
commit: 0105a60401fee6d20245436ee194d1df13cf7448 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 2 05:54:22 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 2 06:49:50 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0105a604 |
7 |
|
8 |
dev-libs/libgit2: Bump to 0.28.5 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-libs/libgit2/Manifest | 1 + |
13 |
dev-libs/libgit2/libgit2-0.28.5.ebuild | 72 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 73 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/libgit2/Manifest b/dev-libs/libgit2/Manifest |
17 |
index ed473e8907b..65b412e39e1 100644 |
18 |
--- a/dev-libs/libgit2/Manifest |
19 |
+++ b/dev-libs/libgit2/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST libgit2-0.28.4.tar.gz 4991720 BLAKE2B 7dc94dce69c27f6de3736b94b4d80b727e3e2a7db255a9eab7422cebd93a3ea1a6f47d1de6c3fbe4ba5bcb28ade9b23a989c5b54c06eafeaf30e382f3b859cdf SHA512 b81160608003b25d9b922d259ebbbbf941b6bd5100fa1875497c8cd29de320e292fff568c757a7a85b2b3044ddc1cb92c74dbcb13d630d62ecf9a8559b619d15 |
22 |
+DIST libgit2-0.28.5.tar.gz 4998481 BLAKE2B 71a3502af125a3d1c91700539d5e235a62922b32ca5e62288581b496f4cb680c01bfe70ae092ab730fc45df1dd96c2c9167f51d551a50acd57c857b4ea07634d SHA512 abfea885f46444b0304ae57c32c06f4252afb0093c924da5e1ba10aaed952824d1b84036adb79b5b8ad8bea56a6331a51c62f3b9839aead16c7b26cb4554b53a |
23 |
DIST libgit2-0.99.0.tar.gz 5307975 BLAKE2B 2ff6c48d29844c8efd292b636c018403f49ae5eef1ef41e2c8755cc35d935677fa965b52c05724aa133f8542a266bb0e0fabb34fcf710127332bd6137ea4ff12 SHA512 e38e18da0e6ed1e5c8198c9eb2c362b21da2d0b9c8bc23309d2f70183549f4b9f23a6db8ce5f1f0f24b373e6427039c2a845b62dd74f91b02cfe8954f961a91b |
24 |
|
25 |
diff --git a/dev-libs/libgit2/libgit2-0.28.5.ebuild b/dev-libs/libgit2/libgit2-0.28.5.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..11c6f5ee1b8 |
28 |
--- /dev/null |
29 |
+++ b/dev-libs/libgit2/libgit2-0.28.5.ebuild |
30 |
@@ -0,0 +1,72 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
37 |
+inherit cmake python-any-r1 |
38 |
+ |
39 |
+if [[ ${PV} == "9999" ]] ; then |
40 |
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" |
41 |
+ inherit git-r3 |
42 |
+else |
43 |
+ SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~ppc-macos" |
45 |
+fi |
46 |
+ |
47 |
+DESCRIPTION="A linkable library for Git" |
48 |
+HOMEPAGE="https://libgit2.org" |
49 |
+ |
50 |
+LICENSE="GPL-2-with-linking-exception" |
51 |
+SLOT="0/28" |
52 |
+IUSE="examples gssapi libressl +ssh test +threads trace" |
53 |
+RESTRICT="!test? ( test )" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ !libressl? ( dev-libs/openssl:0= ) |
57 |
+ libressl? ( dev-libs/libressl:0= ) |
58 |
+ sys-libs/zlib |
59 |
+ net-libs/http-parser:= |
60 |
+ gssapi? ( virtual/krb5 ) |
61 |
+ ssh? ( net-libs/libssh2 ) |
62 |
+" |
63 |
+DEPEND="${RDEPEND} |
64 |
+ ${PYTHON_DEPS} |
65 |
+ virtual/pkgconfig |
66 |
+" |
67 |
+ |
68 |
+S=${WORKDIR}/${P/_/-} |
69 |
+ |
70 |
+src_configure() { |
71 |
+ local mycmakeargs=( |
72 |
+ -DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)" |
73 |
+ -DBUILD_CLAR=$(usex test) |
74 |
+ -DENABLE_TRACE=$(usex trace) |
75 |
+ -DUSE_GSSAPI=$(usex gssapi) |
76 |
+ -DUSE_SSH=$(usex ssh) |
77 |
+ -DTHREADSAFE=$(usex threads) |
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 |
+} |