dev-libs/libgit2: new package, add 1.5.2
Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
parent
e5df404c28
commit
493d3e874c
@ -23,7 +23,7 @@ If you are an author of an integration / component or other stuff related to Hom
|
||||
PyPI `SDIST` tar.gz source release would be preferred, because I can automatically merge it and it will use Gentoo's mirror system. Most of the integrations/components do both. I cannot add packages only available in wheels format. Please make sure you have a proper license assigned, selected license should be unique on all platforms (
|
||||
PyPI/GitHub/Sourceforge).
|
||||
|
||||
##2023/10 Update:
|
||||
## note to the 2023-10 Update
|
||||
|
||||
Due to a sudden significant change in the [pypi.eclass](https://devmanual.gentoo.org/eclass-reference/pypi.eclass/index.html) and other fundamental aspects of the Gentoo packaging system, we faced a complex and time-consuming task of updating our ebuilds. These changes required modifications to nearly 2000 ebuilds, impacting our ability to release updates in a timely manner.
|
||||
|
||||
|
3
dev-libs/libgit2/Manifest
Normal file
3
dev-libs/libgit2/Manifest
Normal file
@ -0,0 +1,3 @@
|
||||
DIST libgit2-1.5.2.tar.gz 5896845 BLAKE2B b89c48c953d8804c1ea1997e0c81f45aeb66f87a7cad100069dc3a8364e0658f6d6e41e49adf123cc950b2da46f805aa05f07af234990f62aa78d38d5e8e78d5 SHA512 0de5e82953482bf57e9cd221406581a12c6acfbeeea0cebbb9b701d288804ec085b7c0902ba1f04ad7cdaaead9d472be21ffe8d730050db5c77101a93448fb3a
|
||||
EBUILD libgit2-1.5.2.ebuild 1640 BLAKE2B c3960ee9d85af9996bca80628cf368cf8fe4f526a2c2e1459afcc2a3722a194fbf85f7b3a788efbfdfee45a517134e2202e35df9ece80dbd0c97685240344a72 SHA512 8ef68c35efc87e9c1ad2743d9c0399847bb4b8370f5991e6c872fda0d249a239113015d9387f5b03dd3f3888ef36d237ac780b258099e6f876218b4633929b63
|
||||
MISC metadata.xml 916 BLAKE2B c5fb3724d2e9ef35c5be3df76c79dfc80a34d238a12d6b16f3f16d919076e216dcb085c4c182102c8fe7338982ab862a749ff9d25d8c0a0561fc133db6e07682 SHA512 78b668f9fef202fb86abc1564c4b240f7084bb3ed6ac0b77a8e26940721be6db5bfff1b927403aaa561f3dc20400bac677cc9b0a0204542b5b304ab8491c08c7
|
76
dev-libs/libgit2/libgit2-1.5.2.ebuild
Normal file
76
dev-libs/libgit2/libgit2-1.5.2.ebuild
Normal file
@ -0,0 +1,76 @@
|
||||
# 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 x86"
|
||||
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
|
||||
}
|
25
dev-libs/libgit2/metadata.xml
Normal file
25
dev-libs/libgit2/metadata.xml
Normal file
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>mgorny@gentoo.org</email>
|
||||
<name>Michał Górny</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>gnome@gentoo.org</email>
|
||||
<name>Gentoo GNOME Desktop</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>
|
||||
<use>
|
||||
<flag name="gssapi">Enable GSSAPI support for SPNEGO auth</flag>
|
||||
<flag name="ssh">Enable SSH transport support</flag>
|
||||
<flag name="trace">Enable tracing support</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">libgit2/libgit2</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
x
Reference in New Issue
Block a user