diff options
author | Tim Harder <radhermit@gentoo.org> | 2011-06-30 21:02:39 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2011-06-30 21:02:39 +0000 |
commit | ba7dc0f822c93c7ce3d8a62d5f35b8275d79ff80 (patch) | |
tree | aefed646ee0b50f945fa5b2da4537f266566e66a /dev-libs/libgit2 | |
parent | [sys-infiniband/libibcm] Initial import to tree (diff) | |
download | historical-ba7dc0f822c93c7ce3d8a62d5f35b8275d79ff80.tar.gz historical-ba7dc0f822c93c7ce3d8a62d5f35b8275d79ff80.tar.bz2 historical-ba7dc0f822c93c7ce3d8a62d5f35b8275d79ff80.zip |
Initial import.
Package-Manager: portage-2.2.0_alpha41/cvs/Linux x86_64
Diffstat (limited to 'dev-libs/libgit2')
-rw-r--r-- | dev-libs/libgit2/ChangeLog | 10 | ||||
-rw-r--r-- | dev-libs/libgit2/Manifest | 19 | ||||
-rw-r--r-- | dev-libs/libgit2/files/libgit2-0.13.0-system-zlib.patch | 44 | ||||
-rw-r--r-- | dev-libs/libgit2/libgit2-0.13.0.ebuild | 39 | ||||
-rw-r--r-- | dev-libs/libgit2/metadata.xml | 14 |
5 files changed, 126 insertions, 0 deletions
diff --git a/dev-libs/libgit2/ChangeLog b/dev-libs/libgit2/ChangeLog new file mode 100644 index 000000000000..2888918f29fd --- /dev/null +++ b/dev-libs/libgit2/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-libs/libgit2 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libgit2/ChangeLog,v 1.1 2011/06/30 21:02:39 radhermit Exp $ + +*libgit2-0.13.0 (30 Jun 2011) + + 30 Jun 2011; Tim Harder <radhermit@gentoo.org> +libgit2-0.13.0.ebuild, + +files/libgit2-0.13.0-system-zlib.patch, +metadata.xml: + Initial import. + diff --git a/dev-libs/libgit2/Manifest b/dev-libs/libgit2/Manifest new file mode 100644 index 000000000000..4341c2fd4505 --- /dev/null +++ b/dev-libs/libgit2/Manifest @@ -0,0 +1,19 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX libgit2-0.13.0-system-zlib.patch 1657 RMD160 6a85b5ea26da4201ee1d45ad478082c6c30772a9 SHA1 e12cc7870a05b282cccf1e6c5ed731fba31ef159 SHA256 cca6928d41d9b4661ef326501749587025f57887594c82defbba5802d3ff3068 +DIST libgit2-0.13.0.tar.gz 885877 RMD160 c1b68809e15fcad0c53c75a0ff8bc770e66bbed2 SHA1 c66525f59f7f7f15b9ac022a89b7bb4e9d53fa2d SHA256 ae9a3666e09695a23e8e73de472f0306ce89a09c7d855afa643c1f28bb9c5725 +EBUILD libgit2-0.13.0.ebuild 867 RMD160 2621709fd6f68b2cb5c394a22e1f62ffb1ac297e SHA1 4e66cac043e78b18751d0dc2bd0a653e59ae8188 SHA256 50a3283eaa26bb382a3e103bedf95c9804839ff355f1d570aa94236d0c569230 +MISC ChangeLog 389 RMD160 f250fb170c22978c51fb0ffc6c30508e5c3cb06f SHA1 ee4631391bf10a9b0c0de12744114bd9d4125111 SHA256 dff6b6a81301d694d7aa8063f18c21892e7ad82aa0a30c0e0d890fe6eff6bbb6 +MISC metadata.xml 540 RMD160 5f6eb9f2ea0364e43fb7958af4474c52c378a014 SHA1 ce319b4230d61b53eca3102d8c9aca926addab13 SHA256 b8037d826224b8a642c198a1a2f35ceda36d6ed8a3bd847be152e5a396c2eaa1 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.17 (GNU/Linux) + +iQEcBAEBAgAGBQJODOR5AAoJEEqz6FtPBkyjB0IH/2nSXVq1Z1JlxoPlFPJUDtSz +pjTZBEZaYFRr5hHNDiVFRtYI3o/+G2wqR+PzUS1B6vMb0uwMdbcF2en+wYVKql8j +q0UFpy1dai4FhY+cLw3mUnZazW1NYDOfHqMZpuDPfk6b5eyjogssHqbdPzCbP2j/ +2BDtBHJwOCn1Z1YqYpPFaP133puRJr3w02gmDwaObgdsrZ1Crzlq7RfRkOKA/HoS +Z8HdzYyGJpW47Ptu+kK7MshyjyDqo7HIvePNFF9U4CSIhCnlFAUhJSWXC7YIE1Ci +Dc8vsHzZlKzY9guKuzSHJJFI3ZteBHEqMyZaZJ/b+D94e9gZRt6yon2AmTerM4Q= +=IEBn +-----END PGP SIGNATURE----- diff --git a/dev-libs/libgit2/files/libgit2-0.13.0-system-zlib.patch b/dev-libs/libgit2/files/libgit2-0.13.0-system-zlib.patch new file mode 100644 index 000000000000..5353af03c36e --- /dev/null +++ b/dev-libs/libgit2/files/libgit2-0.13.0-system-zlib.patch @@ -0,0 +1,44 @@ +--- libgit2-0.13.0/CMakeLists.txt.orig ++++ libgit2-0.13.0/CMakeLists.txt +@@ -22,7 +22,14 @@ + SET(LIBGIT2_VERSION_STRING "${LIBGIT2_VERSION_MAJOR}.${LIBGIT2_VERSION_MINOR}.${LIBGIT2_VERSION_REV}") + + # Find required dependencies +-INCLUDE_DIRECTORIES(deps/zlib src include) ++INCLUDE_DIRECTORIES(src include) ++IF (${CMAKE_SYSTEM_NAME} MATCHES "Linux") ++ find_package(ZLIB REQUIRED) ++ INCLUDE_DIRECTORIES( ${ZLIB_INCLUDE_DIRS} ) ++ELSE (${CMAKE_SYSTEM_NAME} MATCHES "Linux") ++ INCLUDE_DIRECTORIES(deps/zlib) ++ FILE(GLOB SRC_ZLIB deps/zlib/*.c) ++ENDIF() + + # Installation paths + SET(INSTALL_BIN bin CACHE PATH "Where to install binaries to.") +@@ -57,7 +64,6 @@ + + # Collect sourcefiles + FILE(GLOB SRC src/*.c src/backends/*.c) +-FILE(GLOB SRC_ZLIB deps/zlib/*.c) + FILE(GLOB SRC_SHA1 src/block-sha1/*.c) + FILE(GLOB SRC_PLAT src/unix/*.c) + FILE(GLOB SRC_H include/git2/*.h) +@@ -70,7 +76,7 @@ + + # Compile and link libgit2 + ADD_LIBRARY(git2 ${SRC} ${SRC_PLAT} ${SRC_SHA1} ${SRC_ZLIB}) +-TARGET_LINK_LIBRARIES(git2 ${CMAKE_THREAD_LIBS_INIT}) ++TARGET_LINK_LIBRARIES(git2 ${CMAKE_THREAD_LIBS_INIT} ${ZLIB_LIBRARIES}) + SET_TARGET_PROPERTIES(git2 PROPERTIES VERSION ${LIBGIT2_VERSION_STRING}) + SET_TARGET_PROPERTIES(git2 PROPERTIES SOVERSION ${LIBGIT2_VERSION_MAJOR}) + +@@ -92,7 +98,7 @@ + FILE(GLOB SRC_TEST tests/t??-*.c) + + ADD_EXECUTABLE(libgit2_test tests/test_main.c tests/test_lib.c tests/test_helpers.c ${SRC} ${SRC_PLAT} ${SRC_SHA1} ${SRC_TEST} ${SRC_ZLIB}) +- TARGET_LINK_LIBRARIES(libgit2_test ${CMAKE_THREAD_LIBS_INIT}) ++ TARGET_LINK_LIBRARIES(libgit2_test ${CMAKE_THREAD_LIBS_INIT} ${ZLIB_LIBRARIES}) + + ENABLE_TESTING() + ADD_TEST(libgit2_test libgit2_test) diff --git a/dev-libs/libgit2/libgit2-0.13.0.ebuild b/dev-libs/libgit2/libgit2-0.13.0.ebuild new file mode 100644 index 000000000000..a2750d7f9d9d --- /dev/null +++ b/dev-libs/libgit2/libgit2-0.13.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libgit2/libgit2-0.13.0.ebuild,v 1.1 2011/06/30 21:02:39 radhermit Exp $ + +EAPI=4 + +inherit cmake-utils multilib + +DESCRIPTION="A linkable library for Git" +HOMEPAGE="http://libgit2.github.com/" +SRC_URI="https://github.com/downloads/${PN}/${PN}/${P}.tar.gz" + +LICENSE="GPL-2-with-linking-exception" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples test" + +RDEPEND="sys-libs/zlib" +DEPEND="${RDEPEND}" + +DOCS=( README.md ) +PATCHES=( "${FILESDIR}"/${P}-system-zlib.patch ) + +src_configure() { + local mycmakeargs=( + -DINSTALL_LIB=/usr/$(get_libdir) + $(cmake-utils_use_build test TESTS) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + if use examples ; then + docinto examples + dodoc examples/* + fi +} diff --git a/dev-libs/libgit2/metadata.xml b/dev-libs/libgit2/metadata.xml new file mode 100644 index 000000000000..dce90bc49983 --- /dev/null +++ b/dev-libs/libgit2/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>radhermit@gentoo.org</email> + <name>Tim Harder</name> + </maintainer> + <longdescription lang="en"> + libgit2 is a portable, pure C implementation of the Git core methods provided + as a re-entrant linkable library with a solid API, allowing you to write native + speed custom Git applications in any language which supports C bindings. + </longdescription> +</pkgmetadata> |