diff options
Diffstat (limited to 'dev-libs/libgit2')
-rw-r--r-- | dev-libs/libgit2/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/libgit2/libgit2-1.5.0.ebuild | 76 |
2 files changed, 78 insertions, 0 deletions
diff --git a/dev-libs/libgit2/Manifest b/dev-libs/libgit2/Manifest index 7cc4dc21969a..e12663309057 100644 --- a/dev-libs/libgit2/Manifest +++ b/dev-libs/libgit2/Manifest @@ -1,5 +1,7 @@ DIST libgit2-1.3.2.tar.gz 5824473 BLAKE2B 521512721d5959274898046e4341e000c3d0bb28cffde9c1c5f9640f73c74fb3b5330a2329b57a92490acd93f6b59f9b53d9940b50a1056c15f52632db9fdfe6 SHA512 580ad6f3e2cb992014d7fecef4d834dd0fda169c4439ec5d566322edb457b2173910b25a49ba50d5bd05518ad771ee2f42e47ab48ce417c297b6a93dd0cb502d DIST libgit2-1.4.4.tar.gz 5855349 BLAKE2B 2668e351521e1cd9d2998c45c65e2a8c30f3436d94f86ebaa10382d01afb136bbde28c71d359fb57757ebbd44b1cef1bacd302023d0803a23697aee10f03ebac SHA512 8f4cc43de9b92866ac12e01613efe0ff808deca29ff82b6da98a38c814bb711ff3133145d0219210af7015955fbe381be6f1cb98915811d3c37e92b01eb522e9 +DIST libgit2-1.5.0.tar.gz 5893437 BLAKE2B 4108de0e8fc6a02e4172f47cb69cdfe8c85a0a72235432ca58b02d94e0bcb8390caf0c710060772551cc3a392291778ae14b561256c6d88058d0ae5a277f2fbf SHA512 7a32b27cd32bd03ce7be6c127317f82a4ac6f16615c3234699676781f4858d057edb0410b2fe36fd2e634b00748a8b0be17f23809e09a7602ba48185134300f7 EBUILD libgit2-1.3.2.ebuild 1698 BLAKE2B 2dc3632795ce43e35c4f8f0d8b0a9e6eece80299c6c6cae21f7a6c8fedfc9c2da3021b97495968a17b966f90bbf48072a79c39757e4adf37aa25999a9f2aad7d SHA512 0ac8c62508780fecccf0052c8545afa9fd49dc8ec908cf83ebb064f1257330009fb728c11d7f7bb19b6c59d457b526ed919dd9b1375f8b33e1945d8d8d4d7989 EBUILD libgit2-1.4.4.ebuild 1655 BLAKE2B 395acbb358de3c8b5f6dc1ebb7194ccc72ce43fee00b40e57cd6510c9019269f544d2838d05df1b0bb565e783fbd3ec6028398b19c52e2e4c6cfaa73cfab2d3f SHA512 5167d46a27a52272c85cfb191c1e8596034ada2e6580e35ae0bf7ea0f5426fd5e8c0eb5b2f6a481885d30dc7621aefc089762b30be41a7231e8d87a979cf072c +EBUILD libgit2-1.5.0.ebuild 1673 BLAKE2B b5297c647b8cb5f8334aa949c437b70b7e2bd04d8a1735169cfe61fe7f4c085e22f15d81db2b006a2da59ef3c6827a61502933dfda3abb24234a108cf001eb09 SHA512 5675d9726a1ebb74e4bd543b83150ee5d2d77475ec6b81a8a4b5355b550cf2b2ee78306e033c6a79fed70f37f03dcbdd14094abb79df265df03d7e2e12bbdcbe MISC metadata.xml 916 BLAKE2B c5fb3724d2e9ef35c5be3df76c79dfc80a34d238a12d6b16f3f16d919076e216dcb085c4c182102c8fe7338982ab862a749ff9d25d8c0a0561fc133db6e07682 SHA512 78b668f9fef202fb86abc1564c4b240f7084bb3ed6ac0b77a8e26940721be6db5bfff1b927403aaa561f3dc20400bac677cc9b0a0204542b5b304ab8491c08c7 diff --git a/dev-libs/libgit2/libgit2-1.5.0.ebuild b/dev-libs/libgit2/libgit2-1.5.0.ebuild new file mode 100644 index 000000000000..c6bf49f120a5 --- /dev/null +++ b/dev-libs/libgit2/libgit2-1.5.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) +inherit cmake python-any-r1 + +DESCRIPTION="A linkable library for Git" +HOMEPAGE="https://libgit2.org/" +SRC_URI=" + https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz +" +S=${WORKDIR}/${P/_/-} + +LICENSE="GPL-2-with-linking-exception" +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~ppc-macos" +IUSE="examples gssapi +ssh test +threads trace" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/libpcre2:= + net-libs/http-parser:= + sys-libs/zlib + dev-libs/openssl:0= + gssapi? ( virtual/krb5 ) + ssh? ( net-libs/libssh2 ) +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + ${PYTHON_DEPS} + virtual/pkgconfig +" + +src_prepare() { + cmake_src_prepare + # relying on forked http-parser to support some obscure URI form + sed -i -e '/empty_port/s:test:_&:' \ + tests/libgit2/network/url/parse.c || die +} + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTS=$(usex test) + -DUSE_SSH=$(usex ssh) + -DUSE_GSSAPI=$(usex gssapi ON OFF) + -DUSE_HTTP_PARSER=system + -DREGEX_BACKEND=pcre2 + ) + cmake_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_src_test -R offline + fi +} + +src_install() { + cmake_src_install + dodoc docs/*.{md,txt} + + if use examples ; then + find examples -name '.gitignore' -delete || die + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi +} |