summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2016-10-11 00:35:21 +0200
committerManuel Rüger <mrueg@gentoo.org>2016-10-11 00:35:21 +0200
commitf9e4d518a020417d1cb9a0cd539f28bcb63e995b (patch)
tree2d57b44bad4ed097d89cb77967ef8a71e923f709 /dev-libs/libgit2
parentapp-office/texstudio: Remove old (diff)
downloadgentoo-f9e4d518a020417d1cb9a0cd539f28bcb63e995b.tar.gz
gentoo-f9e4d518a020417d1cb9a0cd539f28bcb63e995b.tar.bz2
gentoo-f9e4d518a020417d1cb9a0cd539f28bcb63e995b.zip
dev-libs/libgit2: Security bump to 0.24.2
Gentoo-Bug: 596758 Package-Manager: portage-2.3.1
Diffstat (limited to 'dev-libs/libgit2')
-rw-r--r--dev-libs/libgit2/Manifest1
-rw-r--r--dev-libs/libgit2/libgit2-0.24.2.ebuild76
2 files changed, 77 insertions, 0 deletions
diff --git a/dev-libs/libgit2/Manifest b/dev-libs/libgit2/Manifest
index 8d4e0c919831..2a229137e905 100644
--- a/dev-libs/libgit2/Manifest
+++ b/dev-libs/libgit2/Manifest
@@ -6,3 +6,4 @@ DIST libgit2-0.23.3.tar.gz 3718675 SHA256 2d5c80426675928cda6e9a313ae38b2a72c1a5
DIST libgit2-0.23.4.tar.gz 4065303 SHA256 c7f5e2d7381dbc4d7e878013d14f9993ae8a41bd23f032718e39ffba57894029 SHA512 f2f6244dfee4dab2dc5ef9607808404467a1f6baa684aa4e24b7116e7e7f63f396eef3282c1bcffbef47f19824731c2887deadbe3b2dad8a075b0639e5965d9e WHIRLPOOL 7346fd24616ba68929f02d686229a2f91caf2bf44ff88aadbb663ffb776dc6a5a222f0a9d7145ac9ef08ebcd321671e5c3d0175eca77230955bfaa2ca375ca6a
DIST libgit2-0.24.0.tar.gz 4169652 SHA256 1c6693f943bee3f634b9094376f93e7e03b9ca77354a33f4e903fdcb2ee8b2b0 SHA512 f41e8f9d4b03b392fb7f3a8a7e2ee806760d4c43fdc4270ef59d42c9d57f1f93681216ff4cfdfc6512b212bf7a37a4fe0fe9c44a04742fb3e2aef54c016136ba WHIRLPOOL 98117ab066a51a39042b0862ac3df872d72e1214518a8d5733bc0a92f2cad3eb18ced56f715075276aba527f824eae58f643a8b12115134da9122b7d902652ae
DIST libgit2-0.24.1.tar.gz 4173317 SHA256 60198cbb34066b9b5c1613d15c0479f6cd25f4aef42f7ec515cd1cc13a77fede SHA512 7ad06cef694a293eb90569b042270425f1d012c1c9de8db595dd841942072110bc5342f0d9782479abbba355f5db170b9dad778e79dd23857003e9668cdc1e13 WHIRLPOOL a808c530c4abfe1b54deb9d479d607dffc9b3c9a8f5ecd1121477cd3d33dfb282e7f23ba86ec8cc74bdebe5b0cf4dd650e8928b1017e75fc499e4cc29e21fa18
+DIST libgit2-0.24.2.tar.gz 4177238 SHA256 00f0a7403143fba69601accc80cacf49becc568b890ba232f300c1b2a37475e6 SHA512 aaba85ef65e00b5916642121dbf0e785c20332f29312e772186eef0eebba5c997a60f94dfb651cbab25c3070c7b4cc37e8619d9cb9fed590e1fb0460bcb7af02 WHIRLPOOL 090cc7b3f8ec3db468128d1441b4c4b02e8ec02b1e9f3d73ced5973083c81a811ac0e50ecfb61470e4a85a57af94772a74e9cf9d71fccac17e36938b05892e8a
diff --git a/dev-libs/libgit2/libgit2-0.24.2.ebuild b/dev-libs/libgit2/libgit2-0.24.2.ebuild
new file mode 100644
index 000000000000..4f16b6b73eac
--- /dev/null
+++ b/dev-libs/libgit2/libgit2-0.24.2.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2016 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/24"
+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
+}