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