diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-07-18 13:00:52 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-07-18 13:00:52 +0100 |
commit | e0722f6145f1e8db6281ff135d83442091b31620 (patch) | |
tree | e12d701878d995460a24779bd4e1d7689acbeb78 /dev-libs/libgit2 | |
parent | dcb9c4187a31b8b770600503289d2ad39745e782 (diff) |
gentoo auto-resync : 18:07:2023 - 13:00:52
Diffstat (limited to 'dev-libs/libgit2')
-rw-r--r-- | dev-libs/libgit2/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/libgit2/libgit2-1.7.0.ebuild | 70 |
2 files changed, 72 insertions, 0 deletions
diff --git a/dev-libs/libgit2/Manifest b/dev-libs/libgit2/Manifest index 472ee32e003a..7a86984599c4 100644 --- a/dev-libs/libgit2/Manifest +++ b/dev-libs/libgit2/Manifest @@ -1,3 +1,5 @@ DIST libgit2-1.6.4.tar.gz 6666964 BLAKE2B 103af9ea9ed1310b1066a48859bbefc162647d787519bb3df83d7ea1957cda5934537271970d3d180f91daa6edc3bbc05387d6293812f0d849dda966419d29ba SHA512 fd73df91710f19b0d6c3765c37c7f529233196da91cf4d58028a8d3840244f11df44abafabd74a8ed1cbe4826d1afd6ff9f01316d183ace0924c65e7cf0eb8d5 +DIST libgit2-1.7.0.tar.gz 7545180 BLAKE2B 3382efb1f82e5598eae9f72b145fc8cc19876d925ae94513e42e5e8bedfbb923387d3c5d4c80f1333fe6b07e5d96866d4d0776b2190a50f6929862f943815d8f SHA512 68c8ed289de7daccaec17ea2ac49f4610325595cf90cddef763a31546a0a1c6bd400bf6180b68e2d3a8bdc3d031328efbbbaf3b61467dfc1b944e8cf3efcfd69 EBUILD libgit2-1.6.4.ebuild 1501 BLAKE2B d0ef9271ebf71f53291b0bbf5b88600ffb152b359efa1df32f9f07b762bfa4763db5f97b207d579004bf6afe813af7d2be989227b471b668e97cd9bce1429904 SHA512 dba3ec4b4f8301afa35285196be6174507eaf5b4ec3fba6141b474af8ae535226a7f5d43582df64040af3c28fc0c68361bd4f224cc3390a82a014744f1e44059 +EBUILD libgit2-1.7.0.ebuild 1510 BLAKE2B 561c39b7098e8f3f5870174093ef3aad03590321ea430ea9341caef2160e0aab17df8438e43cf933911436fa7d02aca2de80c49ec50640280d9daff5c9e11636 SHA512 53b5d102e80ce40bf51901ae89bdde391f5567953f6d99f09e07ed1719e058ce86ff75b2100f47d45191dce1b74def40ee72bbca47a21d75e40b7b5b39587bff MISC metadata.xml 916 BLAKE2B c5fb3724d2e9ef35c5be3df76c79dfc80a34d238a12d6b16f3f16d919076e216dcb085c4c182102c8fe7338982ab862a749ff9d25d8c0a0561fc133db6e07682 SHA512 78b668f9fef202fb86abc1564c4b240f7084bb3ed6ac0b77a8e26940721be6db5bfff1b927403aaa561f3dc20400bac677cc9b0a0204542b5b304ab8491c08c7 diff --git a/dev-libs/libgit2/libgit2-1.7.0.ebuild b/dev-libs/libgit2/libgit2-1.7.0.ebuild new file mode 100644 index 000000000000..d3ca4b8d6ae8 --- /dev/null +++ b/dev-libs/libgit2/libgit2-1.7.0.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) + +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 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~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_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 +} |