1 |
commit: a9b88702436769620b4a8fb0b7fe675b9dc0ea38 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 30 06:09:22 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 30 06:38:13 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9b88702 |
7 |
|
8 |
dev-libs/libgit2: Bump to 0.27.1 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/656874 |
11 |
|
12 |
dev-libs/libgit2/Manifest | 1 + |
13 |
dev-libs/libgit2/libgit2-0.27.1.ebuild | 80 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 81 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/libgit2/Manifest b/dev-libs/libgit2/Manifest |
17 |
index c7d120e31e0..478f35a49ba 100644 |
18 |
--- a/dev-libs/libgit2/Manifest |
19 |
+++ b/dev-libs/libgit2/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST libgit2-0.26.3.tar.gz 4728289 BLAKE2B b437732cb30d85487a7a1a16efd41d19fe7677635ae07393094cd2931a0fb6673f41b14122793a31dd317e27936df9844fcb2444ba916469e4673f42e9db04f6 SHA512 abcd3a904bed05c1f200be2ffbc2c44cebd1b548459ee834d5635c5eaf7bcd551a4993bcc1cb9fbeae9ea990c5ebc07655007ff4e623fa7c697f326c0ce12c3e |
22 |
DIST libgit2-0.27.0.tar.gz 4761312 BLAKE2B 4b39ab7609b8031751cff826523a6989872d2a8508b3928461680f03e5e5e2db0782f396e03c69d6d484568958d4eb018a41ebdd4502555c41bf5b7b9756cd82 SHA512 1304f0b6182e1e6e7fccbec1a568aefb662e144a1aea4fff5901f3c012ff0f3d28720f17d19b9a1bc6c892c32fe602766fe98a15538a94a468d65d3e4a1680ca |
23 |
+DIST libgit2-0.27.1.tar.gz 4765926 BLAKE2B 2eb34a621d61b1fb3b770081e27b92d662fd235750fc6ea580ddabeac5cfd20e40a70ce830d45144531c333239d173a322d0de343bb98cc02ce9bfb7822432bf SHA512 4cdee4aec0f0c7b36226ee29276b8802d6b59817f95b1357f35225c23a8d6de70242b2dd9a5fb3b765c3242f4ed1848933e20fc24899071d8b443d46c43ce99d |
24 |
|
25 |
diff --git a/dev-libs/libgit2/libgit2-0.27.1.ebuild b/dev-libs/libgit2/libgit2-0.27.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..456ded8f18d |
28 |
--- /dev/null |
29 |
+++ b/dev-libs/libgit2/libgit2-0.27.1.ebuild |
30 |
@@ -0,0 +1,80 @@ |
31 |
+# Copyright 1999-2018 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+inherit cmake-utils |
37 |
+ |
38 |
+if [[ ${PV} == "9999" ]] ; then |
39 |
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" |
40 |
+ inherit git-r3 |
41 |
+else |
42 |
+ SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86 ~ppc-macos" |
44 |
+fi |
45 |
+ |
46 |
+DESCRIPTION="A linkable library for Git" |
47 |
+HOMEPAGE="https://libgit2.github.com/" |
48 |
+ |
49 |
+LICENSE="GPL-2-with-linking-exception" |
50 |
+SLOT="0/27" |
51 |
+IUSE="+curl examples gssapi libressl +ssh test +threads trace" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ !libressl? ( dev-libs/openssl:0= ) |
55 |
+ libressl? ( dev-libs/libressl:0= ) |
56 |
+ sys-libs/zlib |
57 |
+ net-libs/http-parser:= |
58 |
+ curl? ( |
59 |
+ !libressl? ( net-misc/curl:=[curl_ssl_openssl(-)] ) |
60 |
+ libressl? ( net-misc/curl:=[curl_ssl_libressl(-)] ) |
61 |
+ ) |
62 |
+ gssapi? ( virtual/krb5 ) |
63 |
+ ssh? ( net-libs/libssh2 ) |
64 |
+" |
65 |
+DEPEND="${RDEPEND} |
66 |
+ virtual/pkgconfig |
67 |
+" |
68 |
+ |
69 |
+DOCS=( AUTHORS CONTRIBUTING.md CONVENTIONS.md README.md ) |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ # skip online tests |
73 |
+ sed -i '/libgit2_clar/s/-ionline/-xonline/' tests/CMakeLists.txt || die |
74 |
+ |
75 |
+ cmake-utils_src_prepare |
76 |
+} |
77 |
+ |
78 |
+src_configure() { |
79 |
+ local mycmakeargs=( |
80 |
+ -DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)" |
81 |
+ -DBUILD_CLAR=$(usex test) |
82 |
+ -DENABLE_TRACE=$(usex trace) |
83 |
+ -DUSE_GSSAPI=$(usex gssapi) |
84 |
+ -DUSE_SSH=$(usex ssh) |
85 |
+ -DTHREADSAFE=$(usex threads) |
86 |
+ -DCURL=$(usex curl) |
87 |
+ ) |
88 |
+ cmake-utils_src_configure |
89 |
+} |
90 |
+ |
91 |
+src_test() { |
92 |
+ if [[ ${EUID} -eq 0 ]] ; then |
93 |
+ # repo::iterator::fs_preserves_error fails if run as root |
94 |
+ # since root can still access dirs with 0000 perms |
95 |
+ ewarn "Skipping tests: non-root privileges are required for all tests to pass" |
96 |
+ else |
97 |
+ local TEST_VERBOSE=1 |
98 |
+ cmake-utils_src_test |
99 |
+ fi |
100 |
+} |
101 |
+ |
102 |
+src_install() { |
103 |
+ cmake-utils_src_install |
104 |
+ |
105 |
+ if use examples ; then |
106 |
+ find examples -name '.gitignore' -delete || die |
107 |
+ dodoc -r examples |
108 |
+ docompress -x /usr/share/doc/${PF}/examples |
109 |
+ fi |
110 |
+} |