diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2017-01-23 19:13:25 +0100 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2017-01-23 19:13:25 +0100 |
commit | 0a9193a3ead52ad5a6b23bff84e3be17f46c2132 (patch) | |
tree | 3c985bed0fceed02ca8d8bffaad5ef8ce5a67e64 | |
parent | dev-libs/libgit2: Update subslot on live ebuild (diff) | |
download | gentoo-0a9193a3ead52ad5a6b23bff84e3be17f46c2132.tar.gz gentoo-0a9193a3ead52ad5a6b23bff84e3be17f46c2132.tar.bz2 gentoo-0a9193a3ead52ad5a6b23bff84e3be17f46c2132.zip |
dev-libs/libgit2: Version bump to 0.25.1
Package-Manager: Portage-2.3.3, Repoman-2.3.1
-rw-r--r-- | dev-libs/libgit2/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libgit2/libgit2-0.25.1.ebuild | 76 |
2 files changed, 77 insertions, 0 deletions
diff --git a/dev-libs/libgit2/Manifest b/dev-libs/libgit2/Manifest index 469bb1f79588..45def089f63b 100644 --- a/dev-libs/libgit2/Manifest +++ b/dev-libs/libgit2/Manifest @@ -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 index 000000000000..30fb3ff4f14a --- /dev/null +++ b/dev-libs/libgit2/libgit2-0.25.1.ebuild @@ -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 +} |