Gentoo Archives: gentoo-commits

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-util/osc/files/, dev-util/osc/
Date: Wed, 05 May 2021 05:13:16
Message-Id: 1620191369.932dc50d00b99beb4ff226e39ffba209983959ea.cybertailor@gentoo
1 commit: 932dc50d00b99beb4ff226e39ffba209983959ea
2 Author: Anna Vyalkova <cyber <AT> sysrq <DOT> in>
3 AuthorDate: Wed May 5 05:09:29 2021 +0000
4 Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
5 CommitDate: Wed May 5 05:09:29 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=932dc50d
7
8 dev-util/osc: bump to 0.172, drop old
9
10 Include a patch to disable compressing manpage with gzip at build
11 time.
12
13 Closes: https://bugs.gentoo.org/780960
14 Signed-off-by: Anna Vyalkova <cyber <AT> sysrq.in>
15
16 dev-util/osc/Manifest | 3 +-
17 dev-util/osc/files/osc-no-man-compression.patch | 31 ++++++++++
18 dev-util/osc/osc-0.169.1.ebuild | 66 ----------------------
19 dev-util/osc/osc-0.171.0.ebuild | 65 ---------------------
20 .../{osc-0.171.0-r1.ebuild => osc-0.172.0.ebuild} | 2 +
21 dev-util/osc/osc-9999.ebuild | 2 +
22 6 files changed, 36 insertions(+), 133 deletions(-)
23
24 diff --git a/dev-util/osc/Manifest b/dev-util/osc/Manifest
25 index 64b38634d..4c01f835d 100644
26 --- a/dev-util/osc/Manifest
27 +++ b/dev-util/osc/Manifest
28 @@ -1,2 +1 @@
29 -DIST osc-0.169.1.tar.gz 357179 BLAKE2B d65b6b238aff7cd9c4e5e1509318bfcb4bccdb00c363485c4ae106fab40051f9e5f5b4b76baca3ac25b0cf64d66d0003b3580fcd930511aa6ea7c8d36d7f50e7 SHA512 9429864bcc61c47505c8924cdf35164289f55adf890bc6f28e3fb6063438a53722384594512e3c12662dffc1d31b84f2b292af873d72b3de552a27aa4403ab16
30 -DIST osc-0.171.0.tar.gz 360391 BLAKE2B acc4687c1b084e6ec997e4c4215fe940f9f850ec2ded849676e86bd2b133367459fcbe90a2d3adea1ace249eaa6efed24e107a8f899698836feb33d6eed38ecb SHA512 21a2ef400a64b88c5f588aa80667f2bbb8dbfaf78b55b041d9db4f5cd92548ff8339d5add86ffbf597d913bb804f87c28d68cb2cb2f6923facdddb8044974bf3
31 +DIST osc-0.172.0.tar.gz 360976 BLAKE2B 99f625c4d702127dd54dd7b64027b217f0f5e7272a9104115201d01733ec5c230e465a572eaafb41bbc4c4e46f6a237dc3ed9d425f9837eb78a589c9badaf80e SHA512 3c7d6f37472d6805e1aafc7f2fb20bf841ac894d51f5bcb8026d9109cf8898104decb52ab9f99169cdd27724e9549edef134c8eaf24d206bd4e3317c7c249401
32
33 diff --git a/dev-util/osc/files/osc-no-man-compression.patch b/dev-util/osc/files/osc-no-man-compression.patch
34 new file mode 100644
35 index 000000000..0b8dcf7ef
36 --- /dev/null
37 +++ b/dev-util/osc/files/osc-no-man-compression.patch
38 @@ -0,0 +1,31 @@
39 +--- a/setup.py
40 ++++ b/setup.py
41 +@@ -3,7 +3,6 @@
42 + from distutils.core import setup
43 + import distutils.core
44 + from distutils.command import build, install_data
45 +-import gzip
46 + import os.path
47 + import sys
48 +
49 +@@ -29,9 +28,9 @@
50 + def build_man_page(self):
51 + """
52 + """
53 +- man_path = os.path.join(self.build_base, 'osc.1.gz')
54 ++ man_path = os.path.join(self.build_base, 'osc.1')
55 + distutils.log.info('generating %s' % man_path)
56 +- outfile = gzip.open(man_path, 'wt')
57 ++ outfile = open(man_path, 'w')
58 + osccli = commandline.Osc(stdout=outfile)
59 + # FIXME: we cannot call the main method because osc expects an ~/.oscrc
60 + # file (this would break builds in environments like the obs)
61 +@@ -100,7 +99,7 @@
62 +
63 + data_files = []
64 + if sys.platform[:3] != 'win':
65 +- data_files.append((os.path.join('share', 'man', 'man1'), ['osc.1.gz']))
66 ++ data_files.append((os.path.join('share', 'man', 'man1'), ['osc.1']))
67 +
68 + with open("README") as fh:
69 + long_description = fh.read()
70
71 diff --git a/dev-util/osc/osc-0.169.1.ebuild b/dev-util/osc/osc-0.169.1.ebuild
72 deleted file mode 100644
73 index ace0feb56..000000000
74 --- a/dev-util/osc/osc-0.169.1.ebuild
75 +++ /dev/null
76 @@ -1,66 +0,0 @@
77 -# Copyright 1999-2020 Gentoo Authors
78 -# Distributed under the terms of the GNU General Public License v2
79 -
80 -EAPI=7
81 -
82 -PYTHON_COMPAT=( python3_{7,8} )
83 -PYTHON_REQ_USE="xml"
84 -DISTUTILS_SINGLE_IMPL=1
85 -
86 -inherit distutils-r1
87 -
88 -DESCRIPTION="Command line tool for Open Build Service"
89 -HOMEPAGE="https://en.opensuse.org/openSUSE:OSC https://github.com/openSUSE/osc"
90 -
91 -if [[ "${PV}" == "9999" ]]; then
92 - EGIT_REPO_URI="https://github.com/openSUSE/${PN}.git"
93 -
94 - inherit git-r3
95 -else
96 - SRC_URI="https://github.com/openSUSE/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
97 - OBS_PROJECT="openSUSE:Tools"
98 -
99 - KEYWORDS="~amd64 ~x86"
100 -fi
101 -
102 -LICENSE="GPL-2"
103 -SLOT="0"
104 -
105 -# Test require config file: osc.oscerr.NoConfigfile
106 -RESTRICT="test"
107 -
108 -RDEPEND="
109 - app-arch/rpm[python,${PYTHON_SINGLE_USEDEP}]
110 - $(python_gen_cond_dep '
111 - dev-python/m2crypto[${PYTHON_USEDEP}]
112 - ')
113 - ${PYTHON_SINGLE_DEPS}
114 -"
115 -
116 -BDEPEND="
117 - $(python_gen_cond_dep '
118 - >=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}]
119 - ')
120 - test? (
121 - ${RDEPEND}
122 - $(python_gen_cond_dep '
123 - dev-python/path-py[${PYTHON_USEDEP}]
124 - ')
125 -)"
126 -
127 -distutils_enable_tests pytest
128 -# Bug: https://bugs.gentoo.org/704520
129 -#distutils_enable_sphinx docs dev-python/alabaster
130 -
131 -src_install() {
132 - distutils-r1_src_install
133 -
134 - dosym osc-wrapper.py /usr/bin/osc
135 - rm -f "${ED}/usr/share/doc/${PN}"*/TODO*
136 - insinto /usr/share/bash-completion/completions
137 - newins dist/complete.sh osc
138 - insinto /usr/lib/osc
139 - newins dist/osc.complete complete
140 - insinto /usr/share/zsh/site-functions
141 - newins "${FILESDIR}/osc.zsh_completion" _osc
142 -}
143
144 diff --git a/dev-util/osc/osc-0.171.0.ebuild b/dev-util/osc/osc-0.171.0.ebuild
145 deleted file mode 100644
146 index 7969127ae..000000000
147 --- a/dev-util/osc/osc-0.171.0.ebuild
148 +++ /dev/null
149 @@ -1,65 +0,0 @@
150 -# Copyright 1999-2020 Gentoo Authors
151 -# Distributed under the terms of the GNU General Public License v2
152 -
153 -EAPI=7
154 -
155 -PYTHON_COMPAT=( python3_{7..9} )
156 -PYTHON_REQ_USE="xml"
157 -DISTUTILS_SINGLE_IMPL=1
158 -
159 -inherit distutils-r1
160 -
161 -DESCRIPTION="Command line tool for Open Build Service"
162 -HOMEPAGE="
163 - https://en.opensuse.org/openSUSE:OSC
164 - https://github.com/openSUSE/osc
165 -"
166 -
167 -if [[ ${PV} == 9999 ]]; then
168 - inherit git-r3
169 - EGIT_REPO_URI="https://github.com/openSUSE/${PN}.git"
170 -else
171 - OBS_PROJECT="openSUSE:Tools"
172 - SRC_URI="https://github.com/openSUSE/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
173 - KEYWORDS="~amd64 ~x86"
174 -fi
175 -
176 -LICENSE="GPL-2"
177 -SLOT="0"
178 -# Test require config file: osc.oscerr.NoConfigfile
179 -RESTRICT="test"
180 -
181 -RDEPEND="
182 - app-arch/rpm[python,${PYTHON_SINGLE_USEDEP}]
183 - $(python_gen_cond_dep '
184 - dev-python/m2crypto[${PYTHON_USEDEP}]
185 - ')
186 - ${PYTHON_SINGLE_DEPS}
187 -"
188 -BDEPEND="
189 - $(python_gen_cond_dep '
190 - >=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}]
191 - ')
192 - test? (
193 - ${RDEPEND}
194 - $(python_gen_cond_dep '
195 - dev-python/path-py[${PYTHON_USEDEP}]
196 - ')
197 -)"
198 -
199 -distutils_enable_tests pytest
200 -# Bug: https://bugs.gentoo.org/704520
201 -#distutils_enable_sphinx docs dev-python/alabaster
202 -
203 -src_install() {
204 - distutils-r1_src_install
205 -
206 - dosym osc-wrapper.py /usr/bin/osc
207 - rm -f "${ED}/usr/share/doc/${PN}"*/TODO*
208 - insinto /usr/share/bash-completion/completions
209 - newins dist/complete.sh osc
210 - insinto /usr/lib/osc
211 - newins dist/osc.complete complete
212 - insinto /usr/share/zsh/site-functions
213 - newins "${FILESDIR}/osc.zsh_completion" _osc
214 -}
215
216 diff --git a/dev-util/osc/osc-0.171.0-r1.ebuild b/dev-util/osc/osc-0.172.0.ebuild
217 similarity index 96%
218 rename from dev-util/osc/osc-0.171.0-r1.ebuild
219 rename to dev-util/osc/osc-0.172.0.ebuild
220 index 02af4e71b..d85b0bb5d 100644
221 --- a/dev-util/osc/osc-0.171.0-r1.ebuild
222 +++ b/dev-util/osc/osc-0.172.0.ebuild
223 @@ -47,6 +47,8 @@ BDEPEND="
224 ')
225 )"
226
227 +PATCHES=( "${FILESDIR}"/${PN}-no-man-compression.patch )
228 +
229 distutils_enable_tests pytest
230 # Bug: https://bugs.gentoo.org/704520
231 #distutils_enable_sphinx docs dev-python/alabaster
232
233 diff --git a/dev-util/osc/osc-9999.ebuild b/dev-util/osc/osc-9999.ebuild
234 index 02af4e71b..d85b0bb5d 100644
235 --- a/dev-util/osc/osc-9999.ebuild
236 +++ b/dev-util/osc/osc-9999.ebuild
237 @@ -47,6 +47,8 @@ BDEPEND="
238 ')
239 )"
240
241 +PATCHES=( "${FILESDIR}"/${PN}-no-man-compression.patch )
242 +
243 distutils_enable_tests pytest
244 # Bug: https://bugs.gentoo.org/704520
245 #distutils_enable_sphinx docs dev-python/alabaster