From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7E5EE15808C for ; Sun, 13 Feb 2022 22:08:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B63C9E0896; Sun, 13 Feb 2022 22:08:27 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9B534E0896 for ; Sun, 13 Feb 2022 22:08:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B420D3433C3 for ; Sun, 13 Feb 2022 22:08:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DF6AB2D4 for ; Sun, 13 Feb 2022 22:08:23 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1644790101.42b4b58e90debc30cf85cc01b9a5d5849a2c2ce1.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libgit2/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libgit2/Manifest dev-libs/libgit2/libgit2-1.4.0.ebuild X-VCS-Directories: dev-libs/libgit2/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 42b4b58e90debc30cf85cc01b9a5d5849a2c2ce1 X-VCS-Branch: master Date: Sun, 13 Feb 2022 22:08:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: aa0f1267-d849-4130-a20e-4736b4350f75 X-Archives-Hash: 2ae7f0e7563b32d081a467c8f6ca0eb7 commit: 42b4b58e90debc30cf85cc01b9a5d5849a2c2ce1 Author: Michał Górny gentoo org> AuthorDate: Sun Feb 13 22:08:04 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Feb 13 22:08:21 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42b4b58e dev-libs/libgit2: Bump to 1.4.0 (properly) Signed-off-by: Michał Górny gentoo.org> dev-libs/libgit2/Manifest | 1 + dev-libs/libgit2/libgit2-1.4.0.ebuild | 73 +++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/dev-libs/libgit2/Manifest b/dev-libs/libgit2/Manifest index 4f8bf13b9779..81e484183f9a 100644 --- a/dev-libs/libgit2/Manifest +++ b/dev-libs/libgit2/Manifest @@ -1 +1,2 @@ DIST libgit2-1.3.0.tar.gz 5599575 BLAKE2B b701c105bb0a5bdcdd5ed1db180662ad4949c540944664d5d8c2f5d78998f15d15bd3669ae3e3d43bfa1b81207c0a94b7e49fc76e57f4cc8ef791ab26e62fc70 SHA512 842a648a67ff23ba9e6bf14b706ba9081164866e14000ebf3858442b7046925f05e1dbf00a7d740dc4bf32280e260730e23a9492e817094aa90736ae335ee76e +DIST libgit2-1.4.0.tar.gz 5628993 BLAKE2B b28795904250474e0a373bb28f18f0a18c17c91c1597ad56eb44f8d47a8cb0aa6521b0599f427f34e477771116929db8d5bcafcb7aaf97ddc2534dfa3fd89525 SHA512 e7eff2e30a299901d7b4d9544b655046801e5c83b0caf1d2476ab56c164c88448dc189b254929f2609e117f01c2e038c4538e7554269ad93fbd625229668cd06 diff --git a/dev-libs/libgit2/libgit2-1.4.0.ebuild b/dev-libs/libgit2/libgit2-1.4.0.ebuild new file mode 100644 index 000000000000..0c7add69a35e --- /dev/null +++ b/dev-libs/libgit2/libgit2-1.4.0.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +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/libpcre:= + 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/network/url/parse.c || die + # https://github.com/libgit2/libgit2/pull/6217 + sed -i -e 's:HTTP_Parser:HTTPParser:' cmake/SelectHTTPParser.cmake || 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=pcre + ) + 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 +}