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/, dev-vcs/stgit/files/
Date: Mon, 16 Oct 2017 07:02:12
Message-Id: 1508137324.f2751e7270736adf5701baedb178f51477937d9b.dlan@gentoo
1 commit: f2751e7270736adf5701baedb178f51477937d9b
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 16 06:59:01 2017 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 16 07:02:04 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2751e72
7
8 dev-vcs/stgit: version bump 0.18
9
10 also fix broken HOMEPAGE
11
12 Package-Manager: Portage-2.3.10, Repoman-2.3.3
13
14 dev-vcs/stgit/Manifest | 1 +
15 dev-vcs/stgit/files/stgit-0.16-man-linkfix.patch | 4 +-
16 dev-vcs/stgit/stgit-0.18.ebuild | 86 ++++++++++++++++++++++++
17 3 files changed, 89 insertions(+), 2 deletions(-)
18
19 diff --git a/dev-vcs/stgit/Manifest b/dev-vcs/stgit/Manifest
20 index 6e87fcab6e5..c1234aaaea7 100644
21 --- a/dev-vcs/stgit/Manifest
22 +++ b/dev-vcs/stgit/Manifest
23 @@ -2,3 +2,4 @@ DIST stgit-0.16-missing-patches.tar.gz 1667 SHA256 f105bb417592be3c68d830ad1cf2e
24 DIST stgit-0.16.tar.gz 362687 SHA256 02f1a19350ccf4a26abac1421df8c2d021e78f995c913f9562718a1700318a42 SHA512 782de3d5855aad4f5d040478745990517ebe2b26dc315a3ed41db95399bb46e075d63a70baa0e3aa2ab1012b59e6ad1f5940a904f296ef09d6bca60f66e417dd WHIRLPOOL e2334c041cb260455d549d33b6628fd4f6e1e7da850f2987ba86922504e07aed8177d092550348b52cad8894b0335d20ee1608b855fa1cb6545bdd301a9d38f1
25 DIST stgit-0.17.1-upstream-patches-1.tar.xz 15324 SHA256 4ec973ee6a16daee616c5f675294e9351e4953b4d171059cddb504d286939cd3 SHA512 2d756d960b5bd803258afe0bb89cb29a960bc2745adf37f2b574fd114579a867ec51628f2267744ec2eec70090376274bfd720a612093a36f4bb8e4ecb8f6d30 WHIRLPOOL 538a060e8628b9d43af56568a267c2026a9088156af188d5a745adfbb11807dcf948f216e6492d51069c85e80985f156196df6b28eb2664b3e5e27a09b169c57
26 DIST stgit-0.17.1.tar.gz 398466 SHA256 d43365a0c22e41a6fb9ba1a86de164d6475e79054e7f33805d6a829eb4056ade SHA512 3efdfb9bc024c3a7c0d74d49e85f157d5d5209c9a2ad0ce63a07138c02fb1580e92ac4a91796e79bbd221e6884317e975f9f44e35db0b484fd916bc67cd61abe WHIRLPOOL a7c4c83cfeace12ced60e846ed9daaffadea3ed201a90e72239e3f8df310164e00ce5a89174df177f89df4a609a66ac35e905f31419ed654081c3ab0c2cba859
27 +DIST stgit-0.18.tar.gz 235852 SHA256 00c83a0a057ee61a300f2291b8926f85521ffd1c92b4cb5152e2be3bf836d3a5 SHA512 5820cc1a8cdd5183fbe309b4b80568098844ff57934c75a43263b5cfcdac4b64e015abc9ed6a53dd856236d76bd0ebeec31e87561bca0d0d82a6e5ec7a10745f WHIRLPOOL 330f97dd43cc0c617d2cdd5eafccf332e1e1debf916d596370f75b02b6a77abc22f0543f397d72f1db3c4a0a539221d2eee4ab82db9c983607108ae15bb2f18d
28
29 diff --git a/dev-vcs/stgit/files/stgit-0.16-man-linkfix.patch b/dev-vcs/stgit/files/stgit-0.16-man-linkfix.patch
30 index 83fdb545787..559cf8fa789 100644
31 --- a/dev-vcs/stgit/files/stgit-0.16-man-linkfix.patch
32 +++ b/dev-vcs/stgit/files/stgit-0.16-man-linkfix.patch
33 @@ -1,5 +1,5 @@
34 ---- Documentation/Makefile.old 2012-07-08 23:55:38.958779174 +0200
35 -+++ Documentation/Makefile 2012-07-08 23:56:42.638010483 +0200
36 +--- a/Documentation/Makefile 2012-07-08 23:55:38.958779174 +0200
37 ++++ b/Documentation/Makefile 2012-07-08 23:56:42.638010483 +0200
38 @@ -72,7 +72,7 @@
39 $(ASCIIDOC) -b xhtml11 -d manpage -f asciidoc.conf $(ASCIIDOC_EXTRA) $<
40
41
42 diff --git a/dev-vcs/stgit/stgit-0.18.ebuild b/dev-vcs/stgit/stgit-0.18.ebuild
43 new file mode 100644
44 index 00000000000..9ecaaef6894
45 --- /dev/null
46 +++ b/dev-vcs/stgit/stgit-0.18.ebuild
47 @@ -0,0 +1,86 @@
48 +# Copyright 1999-2017 Gentoo Foundation
49 +# Distributed under the terms of the GNU General Public License v2
50 +
51 +EAPI=6
52 +
53 +PYTHON_COMPAT=( python2_7 )
54 +
55 +inherit bash-completion-r1 distutils-r1
56 +
57 +DESCRIPTION="Manage a stack of patches using GIT as a backend"
58 +HOMEPAGE="http://www.procode.org/stgit/"
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 +PATCHES=(
83 + "${FILESDIR}/${PN}-0.16-man-linkfix.patch"
84 +)
85 +
86 +pkg_setup() {
87 + if ! use doc; then
88 + echo
89 + ewarn "Manpages will not be built and installed."
90 + ewarn "Enable the 'doc' useflag, if you want them."
91 + echo
92 + fi
93 +}
94 +
95 +python_prepare_all() {
96 + # Upstream's patchset
97 + if [[ -n ${UPSTREAM_VER} ]]; then
98 + EPATCH_SUFFIX="patch" \
99 + EPATCH_FORCE="yes" \
100 + epatch "${WORKDIR}"/patches-upstream
101 + fi
102 +
103 + # this will be a noop, as we are working with a tarball,
104 + # but throws git errors --> just get rid of it
105 + sed -i -e 's/version\.write_builtin_version()//' setup.py || die
106 +
107 + distutils-r1_python_prepare_all
108 +}
109 +
110 +src_compile() {
111 + distutils-r1_src_compile
112 +
113 + # bug 526468
114 + if use doc; then
115 + emake DESTDIR="${D}" \
116 + htmldir="${EPREFIX}/usr/share/doc/${PF}/html/" \
117 + mandir="${EPREFIX}/usr/share/man/" \
118 + doc
119 + fi
120 +}
121 +
122 +src_install() {
123 + if use doc; then
124 + emake DESTDIR="${D}" \
125 + htmldir="${EPREFIX}/usr/share/doc/${PF}/html/" \
126 + mandir="${EPREFIX}/usr/share/man/" \
127 + install-doc install-html
128 + fi
129 +
130 + distutils-r1_src_install
131 +
132 + newbashcomp stgit-completion.bash 'stg'
133 +}