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