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