Gentoo Archives: gentoo-commits

From: Yixun Lan <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/stgit/
Date: Wed, 24 Nov 2021 09:50:22
Message-Id: 1637747412.b269c53e4fc32b7dfedf6ab9a8da3684c61e4502.dlan@gentoo
1 commit: b269c53e4fc32b7dfedf6ab9a8da3684c61e4502
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 24 09:50:03 2021 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 24 09:50:12 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b269c53e
7
8 dev-vcs/stgit: version bump, 1.4
9
10 Closes: https://bugs.gentoo.org/820560
11 Package-Manager: Portage-3.0.28, Repoman-3.0.3
12 Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>
13
14 dev-vcs/stgit/Manifest | 1 +
15 dev-vcs/stgit/stgit-1.4.ebuild | 79 ++++++++++++++++++++++++++++++++++++++++++
16 2 files changed, 80 insertions(+)
17
18 diff --git a/dev-vcs/stgit/Manifest b/dev-vcs/stgit/Manifest
19 index d12b8d07cc11..7b1184d022e8 100644
20 --- a/dev-vcs/stgit/Manifest
21 +++ b/dev-vcs/stgit/Manifest
22 @@ -1 +1,2 @@
23 DIST stgit-1.1.tar.gz 313862 BLAKE2B 2d15ba7c2f55ff1211f0d9a3002878102f5023e897d0830daa688a2af8c6a386ec0cf076c728b6f45650ee3382379a32fb4efb25d0da3b28302f158dfca6ef62 SHA512 917c645f219b2725d1e88186674a6184c96f1457d5c7722b4da17931d963f0fe0c675cdaaca435ba7405ba498d6db9a01c9f554d1aa3093cc3205d224d9d9759
24 +DIST stgit-1.4.tar.gz 390734 BLAKE2B a2c8b6848cacd743022318ebf9a0512c6bd02a2b8c864db2270e5075c82dfd9e6037a3a79978b2061487bf040864077b0f7836c66986d82ff3eb902331589d87 SHA512 5251dc26a7c64dcc83021399f95ea911d6b65cfb2ee5c016c886447740ed48b66d3f0bd92a45b4aed40ae2e77dfe6ba62336dbba6773a1879ab749c95bb99b4b
25
26 diff --git a/dev-vcs/stgit/stgit-1.4.ebuild b/dev-vcs/stgit/stgit-1.4.ebuild
27 new file mode 100644
28 index 000000000000..06367525ebb8
29 --- /dev/null
30 +++ b/dev-vcs/stgit/stgit-1.4.ebuild
31 @@ -0,0 +1,79 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{7..10} )
38 +DISTUTILS_USE_SETUPTOOLS=no
39 +
40 +inherit bash-completion-r1 distutils-r1
41 +
42 +DESCRIPTION="Manage a stack of patches using GIT as a backend"
43 +HOMEPAGE="https://stacked-git.github.io"
44 +UPSTREAM_VER=
45 +[[ -n ${UPSTREAM_VER} ]] && \
46 + UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz"
47 +
48 +SRC_URI="https://github.com/ctmarinas/stgit/archive/v${PV}.tar.gz -> ${P}.tar.gz
49 + ${UPSTREAM_PATCHSET_URI}"
50 +
51 +LICENSE="GPL-2"
52 +SLOT="0"
53 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
54 +IUSE="doc"
55 +
56 +RDEPEND=">=dev-vcs/git-1.6.3.3"
57 +
58 +# NOTE: It seems to be quite important which asciidoc version to use.
59 +# So keep an eye on it for the future.
60 +DEPEND="${RDEPEND}
61 + doc? (
62 + app-text/asciidoc
63 + app-text/xmlto
64 + dev-lang/perl
65 + )"
66 +
67 +pkg_setup() {
68 + if ! use doc; then
69 + echo
70 + ewarn "Manpages will not be built and installed."
71 + ewarn "Enable the 'doc' useflag, if you want them."
72 + echo
73 + fi
74 +}
75 +
76 +python_prepare_all() {
77 + # Upstream's patchset
78 + [[ -n ${UPSTREAM_VER} ]] && \
79 + eapply "${WORKDIR}"/patches-upstream
80 +
81 + # this will be a noop, as we are working with a tarball,
82 + # but throws git errors --> just get rid of it
83 + echo "version=\"${PV}\"" > "${S}"/stgit/builtin_version.py
84 +
85 + distutils-r1_python_prepare_all
86 +}
87 +
88 +src_compile() {
89 + distutils-r1_src_compile
90 +
91 + # bug 526468
92 + if use doc; then
93 + emake htmldir="${EPREFIX}/usr/share/doc/${PF}/html/" \
94 + mandir="${EPREFIX}/usr/share/man/" \
95 + doc
96 + fi
97 +}
98 +
99 +src_install() {
100 + if use doc; then
101 + emake DESTDIR="${D}" \
102 + htmldir="${EPREFIX}/usr/share/doc/${PF}/html/" \
103 + mandir="${EPREFIX}/usr/share/man/" \
104 + install-doc install-html
105 + fi
106 +
107 + distutils-r1_src_install
108 +
109 + newbashcomp completion/stgit.bash 'stg'
110 +}