Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libgit2/
Date: Fri, 21 Feb 2020 10:08:37
Message-Id: 1582279704.ea9c71b3c0b9a157e73f19eb7d96a93e6191a8e7.mgorny@gentoo
1 commit: ea9c71b3c0b9a157e73f19eb7d96a93e6191a8e7
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 21 06:47:03 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 21 10:08:24 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea9c71b3
7
8 dev-libs/libgit2: Remove unmaintained live ebuild
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-libs/libgit2/libgit2-0.99.0.ebuild | 19 +++++----
13 dev-libs/libgit2/libgit2-9999.ebuild | 70 ----------------------------------
14 2 files changed, 9 insertions(+), 80 deletions(-)
15
16 diff --git a/dev-libs/libgit2/libgit2-0.99.0.ebuild b/dev-libs/libgit2/libgit2-0.99.0.ebuild
17 index 23bd171e310..3abe4784a16 100644
18 --- a/dev-libs/libgit2/libgit2-0.99.0.ebuild
19 +++ b/dev-libs/libgit2/libgit2-0.99.0.ebuild
20 @@ -6,19 +6,14 @@ EAPI=7
21 PYTHON_COMPAT=( python3_{6,7} )
22 inherit cmake python-any-r1
23
24 -if [[ ${PV} == "9999" ]] ; then
25 - EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
26 - inherit git-r3
27 -else
28 - SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
29 - KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~ppc-macos"
30 -fi
31 -
32 DESCRIPTION="A linkable library for Git"
33 HOMEPAGE="https://libgit2.org"
34 +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
35 +S=${WORKDIR}/${P/_/-}
36
37 LICENSE="GPL-2-with-linking-exception"
38 -SLOT="0/28"
39 +SLOT="0/0.99"
40 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~ppc-macos"
41 IUSE="examples gssapi libressl +ssh test +threads trace"
42 RESTRICT="!test? ( test )"
43
44 @@ -35,7 +30,11 @@ DEPEND="${RDEPEND}
45 virtual/pkgconfig
46 "
47
48 -S=${WORKDIR}/${P/_/-}
49 +src_prepare() {
50 + cmake_src_prepare
51 + # relying on forked http-parser to support some obscure URI form
52 + sed -i -e '/empty_port/s:test:_&:' tests/network/urlparse.c || die
53 +}
54
55 src_configure() {
56 local mycmakeargs=(
57
58 diff --git a/dev-libs/libgit2/libgit2-9999.ebuild b/dev-libs/libgit2/libgit2-9999.ebuild
59 deleted file mode 100644
60 index 41394dc15ba..00000000000
61 --- a/dev-libs/libgit2/libgit2-9999.ebuild
62 +++ /dev/null
63 @@ -1,70 +0,0 @@
64 -# Copyright 1999-2020 Gentoo Authors
65 -# Distributed under the terms of the GNU General Public License v2
66 -
67 -EAPI=6
68 -
69 -PYTHON_COMPAT=( python3_{6,7} )
70 -inherit cmake-utils python-any-r1
71 -
72 -if [[ ${PV} == "9999" ]] ; then
73 - EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
74 - inherit git-r3
75 -else
76 - SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
77 - KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~ppc-macos"
78 -fi
79 -
80 -DESCRIPTION="A linkable library for Git"
81 -HOMEPAGE="https://libgit2.org"
82 -
83 -LICENSE="GPL-2-with-linking-exception"
84 -SLOT="0/28"
85 -IUSE="examples gssapi libressl +ssh test +threads trace"
86 -RESTRICT="!test? ( test )"
87 -
88 -RDEPEND="
89 - !libressl? ( dev-libs/openssl:0= )
90 - libressl? ( dev-libs/libressl:0= )
91 - sys-libs/zlib
92 - net-libs/http-parser:=
93 - gssapi? ( virtual/krb5 )
94 - ssh? ( net-libs/libssh2 )
95 -"
96 -DEPEND="${RDEPEND}
97 - ${PYTHON_DEPS}
98 - virtual/pkgconfig
99 -"
100 -
101 -src_configure() {
102 - local mycmakeargs=(
103 - -DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)"
104 - -DBUILD_CLAR=$(usex test)
105 - -DENABLE_TRACE=$(usex trace)
106 - -DUSE_GSSAPI=$(usex gssapi)
107 - -DUSE_SSH=$(usex ssh)
108 - -DTHREADSAFE=$(usex threads)
109 - )
110 - cmake-utils_src_configure
111 -}
112 -
113 -src_test() {
114 - if [[ ${EUID} -eq 0 ]] ; then
115 - # repo::iterator::fs_preserves_error fails if run as root
116 - # since root can still access dirs with 0000 perms
117 - ewarn "Skipping tests: non-root privileges are required for all tests to pass"
118 - else
119 - local TEST_VERBOSE=1
120 - cmake-utils_src_test -R offline
121 - fi
122 -}
123 -
124 -src_install() {
125 - cmake-utils_src_install
126 - dodoc docs/*.{md,txt}
127 -
128 - if use examples ; then
129 - find examples -name '.gitignore' -delete || die
130 - dodoc -r examples
131 - docompress -x /usr/share/doc/${PF}/examples
132 - fi
133 -}