dev-libs/libgit2: Version bump to 0.25.1
authorManuel Rüger <mrueg@gentoo.org>
Mon, 23 Jan 2017 18:13:25 +0000 (19:13 +0100)
committerManuel Rüger <mrueg@gentoo.org>
Mon, 23 Jan 2017 18:13:25 +0000 (19:13 +0100)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

dev-libs/libgit2/Manifest
dev-libs/libgit2/libgit2-0.25.1.ebuild [new file with mode: 0644]

index 469bb1f79588a9e868d888087c094bb2c11bd1ee..45def089f63bb066a8bab580d6caa9b097daf469 100644 (file)
@@ -1 +1,2 @@
 DIST libgit2-0.24.6.tar.gz 4178476 SHA256 7b441a96967ff525e790f8b66859faba5c6be4c347124011f536ae9075ebc30c SHA512 ea928629450f6619c17e76cf32e5d76ddd9e00d914b8a0fc2efdcc32ae271637c124a27a8d4c595b8dcf2048551b22f1bc3c5b6394b3022a2f852a06f7ab3396 WHIRLPOOL 210a1d75e56883d8c82cf549f103414cf8365762f585d1c7939f40f73f430199680d01a0092cbb91a1f65446d74f26cd757ded98dd9d504f7064452c3183d1a2
+DIST libgit2-0.25.1.tar.gz 4252130 SHA256 7ae8e699ff7ff9a1fa702249140ee31ea6fd556bf7968e84e38165870667bcb1 SHA512 bbd0d27c95406b548185ce02e2a9288a9dcb8c3b28476ba20f4f4917f6bd67f1ddee80de3054d30b79cdb9d973c3061a15ea7847c79bfa4e0c62e41d5195cb99 WHIRLPOOL dcadeaef13fdd85b0960ca5c6279bc89385c697d8d74f390110db00aae53a9848e2e22b64d954bae46dfb8f71b5115f914f96938fb6ba20667913f9b3f880801
diff --git a/dev-libs/libgit2/libgit2-0.25.1.ebuild b/dev-libs/libgit2/libgit2-0.25.1.ebuild
new file mode 100644 (file)
index 0000000..30fb3ff
--- /dev/null
@@ -0,0 +1,76 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils multilib
+
+if [[ ${PV} == "9999" ]] ; then
+       EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+       inherit git-r3
+else
+       SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~arm ~ppc ~x86 ~ppc-macos"
+fi
+
+DESCRIPTION="A linkable library for Git"
+HOMEPAGE="https://libgit2.github.com/"
+
+LICENSE="GPL-2-with-linking-exception"
+SLOT="0/25"
+IUSE="examples gssapi libressl ssh test threads trace"
+
+RDEPEND="
+       !libressl? ( dev-libs/openssl:0 )
+       libressl? ( dev-libs/libressl )
+       sys-libs/zlib
+       net-libs/http-parser:=
+       gssapi? ( virtual/krb5 )
+       ssh? ( net-libs/libssh2 )
+"
+DEPEND="${RDEPEND}
+       virtual/pkgconfig
+"
+
+DOCS=( AUTHORS CONTRIBUTING.md CONVENTIONS.md README.md )
+
+src_prepare() {
+       # skip online tests
+       sed -i '/libgit2_clar/s/-ionline/-xonline/' CMakeLists.txt || die
+
+       cmake-utils_src_prepare
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)"
+               $(cmake-utils_use_build test CLAR)
+               $(cmake-utils_use_enable trace TRACE)
+               $(cmake-utils_use_use gssapi GSSAPI)
+               $(cmake-utils_use_use ssh SSH)
+               $(cmake-utils_use threads THREADSAFE)
+       )
+       cmake-utils_src_configure
+}
+
+src_test() {
+       if [[ ${EUID} -eq 0 ]] ; then
+               # repo::iterator::fs_preserves_error fails if run as root
+               # since root can still access dirs with 0000 perms
+               ewarn "Skipping tests: non-root privileges are required for all tests to pass"
+       else
+               local TEST_VERBOSE=1
+               cmake-utils_src_test
+       fi
+}
+
+src_install() {
+       cmake-utils_src_install
+
+       if use examples ; then
+               egit_clean examples
+               dodoc -r examples
+               docompress -x /usr/share/doc/${PF}/examples
+       fi
+}