1 |
commit: 0a9193a3ead52ad5a6b23bff84e3be17f46c2132 |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 23 18:13:25 2017 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 23 18:13:25 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a9193a3 |
7 |
|
8 |
dev-libs/libgit2: Version bump to 0.25.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
dev-libs/libgit2/Manifest | 1 + |
13 |
dev-libs/libgit2/libgit2-0.25.1.ebuild | 76 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 77 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/libgit2/Manifest b/dev-libs/libgit2/Manifest |
17 |
index 469bb1f..45def08 100644 |
18 |
--- a/dev-libs/libgit2/Manifest |
19 |
+++ b/dev-libs/libgit2/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST libgit2-0.24.6.tar.gz 4178476 SHA256 7b441a96967ff525e790f8b66859faba5c6be4c347124011f536ae9075ebc30c SHA512 ea928629450f6619c17e76cf32e5d76ddd9e00d914b8a0fc2efdcc32ae271637c124a27a8d4c595b8dcf2048551b22f1bc3c5b6394b3022a2f852a06f7ab3396 WHIRLPOOL 210a1d75e56883d8c82cf549f103414cf8365762f585d1c7939f40f73f430199680d01a0092cbb91a1f65446d74f26cd757ded98dd9d504f7064452c3183d1a2 |
22 |
+DIST libgit2-0.25.1.tar.gz 4252130 SHA256 7ae8e699ff7ff9a1fa702249140ee31ea6fd556bf7968e84e38165870667bcb1 SHA512 bbd0d27c95406b548185ce02e2a9288a9dcb8c3b28476ba20f4f4917f6bd67f1ddee80de3054d30b79cdb9d973c3061a15ea7847c79bfa4e0c62e41d5195cb99 WHIRLPOOL dcadeaef13fdd85b0960ca5c6279bc89385c697d8d74f390110db00aae53a9848e2e22b64d954bae46dfb8f71b5115f914f96938fb6ba20667913f9b3f880801 |
23 |
|
24 |
diff --git a/dev-libs/libgit2/libgit2-0.25.1.ebuild b/dev-libs/libgit2/libgit2-0.25.1.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000..30fb3ff |
27 |
--- /dev/null |
28 |
+++ b/dev-libs/libgit2/libgit2-0.25.1.ebuild |
29 |
@@ -0,0 +1,76 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=5 |
35 |
+ |
36 |
+inherit cmake-utils multilib |
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 ~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/25" |
51 |
+IUSE="examples gssapi libressl ssh test threads trace" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ !libressl? ( dev-libs/openssl:0 ) |
55 |
+ libressl? ( dev-libs/libressl ) |
56 |
+ sys-libs/zlib |
57 |
+ net-libs/http-parser:= |
58 |
+ gssapi? ( virtual/krb5 ) |
59 |
+ ssh? ( net-libs/libssh2 ) |
60 |
+" |
61 |
+DEPEND="${RDEPEND} |
62 |
+ virtual/pkgconfig |
63 |
+" |
64 |
+ |
65 |
+DOCS=( AUTHORS CONTRIBUTING.md CONVENTIONS.md README.md ) |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ # skip online tests |
69 |
+ sed -i '/libgit2_clar/s/-ionline/-xonline/' CMakeLists.txt || die |
70 |
+ |
71 |
+ cmake-utils_src_prepare |
72 |
+} |
73 |
+ |
74 |
+src_configure() { |
75 |
+ local mycmakeargs=( |
76 |
+ -DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)" |
77 |
+ $(cmake-utils_use_build test CLAR) |
78 |
+ $(cmake-utils_use_enable trace TRACE) |
79 |
+ $(cmake-utils_use_use gssapi GSSAPI) |
80 |
+ $(cmake-utils_use_use ssh SSH) |
81 |
+ $(cmake-utils_use threads THREADSAFE) |
82 |
+ ) |
83 |
+ cmake-utils_src_configure |
84 |
+} |
85 |
+ |
86 |
+src_test() { |
87 |
+ if [[ ${EUID} -eq 0 ]] ; then |
88 |
+ # repo::iterator::fs_preserves_error fails if run as root |
89 |
+ # since root can still access dirs with 0000 perms |
90 |
+ ewarn "Skipping tests: non-root privileges are required for all tests to pass" |
91 |
+ else |
92 |
+ local TEST_VERBOSE=1 |
93 |
+ cmake-utils_src_test |
94 |
+ fi |
95 |
+} |
96 |
+ |
97 |
+src_install() { |
98 |
+ cmake-utils_src_install |
99 |
+ |
100 |
+ if use examples ; then |
101 |
+ egit_clean examples |
102 |
+ dodoc -r examples |
103 |
+ docompress -x /usr/share/doc/${PF}/examples |
104 |
+ fi |
105 |
+} |