From d8aef9f9c6c65ab26b9eb499e0c3715412c95bc9 Mon Sep 17 00:00:00 2001 From: Justin Lecher Date: Sat, 8 Feb 2014 13:36:49 +0000 Subject: Add threads USE flag, #497352 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!) --- dev-libs/libgit2/ChangeLog | 9 ++++- dev-libs/libgit2/libgit2-0.20.0-r1.ebuild | 66 +++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+), 2 deletions(-) create mode 100644 dev-libs/libgit2/libgit2-0.20.0-r1.ebuild (limited to 'dev-libs/libgit2') diff --git a/dev-libs/libgit2/ChangeLog b/dev-libs/libgit2/ChangeLog index 1e08c43de0dc..4a3c65587a3f 100644 --- a/dev-libs/libgit2/ChangeLog +++ b/dev-libs/libgit2/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-libs/libgit2 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libgit2/ChangeLog,v 1.18 2013/12/07 14:26:30 pacho Exp $ +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libgit2/ChangeLog,v 1.19 2014/02/08 13:36:49 jlec Exp $ + +*libgit2-0.20.0-r1 (08 Feb 2014) + + 08 Feb 2014; Justin Lecher +libgit2-0.20.0-r1.ebuild: + Add threads USE flag, #497352 07 Dec 2013; Pacho Ramos libgit2-0.19.0-r1.ebuild: x86 stable, bug #488774 diff --git a/dev-libs/libgit2/libgit2-0.20.0-r1.ebuild b/dev-libs/libgit2/libgit2-0.20.0-r1.ebuild new file mode 100644 index 000000000000..450f88b20f0e --- /dev/null +++ b/dev-libs/libgit2/libgit2-0.20.0-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libgit2/libgit2-0.20.0-r1.ebuild,v 1.1 2014/02/08 13:36:49 jlec Exp $ + +EAPI=5 + +inherit cmake-utils multilib + +DESCRIPTION="A linkable library for Git" +HOMEPAGE="http://libgit2.github.com/" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2-with-linking-exception" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~ppc-macos" +IUSE="examples ssh test threads trace" + +RDEPEND=" + sys-libs/zlib + net-libs/http-parser + ssh? ( net-libs/libssh2 )" +DEPEND="${RDEPEND}" + +DOCS=( AUTHORS CONTRIBUTING.md CONVENTIONS.md README.md ) + +PATCHES=( "${FILESDIR}"/${P}-skip-blame-test.patch ) + +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 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 + find examples -name .gitignore -delete || die + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi +} + -- cgit v1.2.3-65-gdbad