Gentoo Archives: gentoo-commits

From: Haelwenn Monnier <contact@×××××××××.me>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-util/devscripts/
Date: Mon, 05 Jul 2021 15:48:21
Message-Id: 1625474477.9e94b5e1cb4ff0eefd1a7d26c9cfb8677879c019.lanodan@gentoo
1 commit: 9e94b5e1cb4ff0eefd1a7d26c9cfb8677879c019
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Mon Jul 5 08:41:17 2021 +0000
4 Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
5 CommitDate: Mon Jul 5 08:41:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9e94b5e1
7
8 dev-util/devscripts: add 2.21.3
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 dev-util/devscripts/Manifest | 1 +
13 dev-util/devscripts/devscripts-2.21.3.ebuild | 120 +++++++++++++++++++++++++++
14 2 files changed, 121 insertions(+)
15
16 diff --git a/dev-util/devscripts/Manifest b/dev-util/devscripts/Manifest
17 index a372dd94f..457d5db0b 100644
18 --- a/dev-util/devscripts/Manifest
19 +++ b/dev-util/devscripts/Manifest
20 @@ -1 +1,2 @@
21 DIST devscripts_2.21.2.tar.xz 980516 BLAKE2B 907f2f4e258a8396ad0a28eead1e2058b8e19be205f024ea80c0fbd9621d5ca4299844fe83d66cac7f653a917705d9c36eddb9d51454a7fbb9d7e2b52bc994ff SHA512 a6765d807dc0c2ef7a3d8c59e1262bfe7542c3ca52cda3c1910af253925cb105a9d1bf272c76a86f0b3cdda9c8a4e2d29a660437f73087dd70ee8a444bbedb01
22 +DIST devscripts_2.21.3.tar.xz 980408 BLAKE2B 99207ed58c0fdc592ce491ddda79a2ecb22a8975ef70828749bf58dff9cc94f63779025b3f0326d0c2c49ca768a7e651b1f9e7843e6da298c25340916334de25 SHA512 84122dd36de7961c26044ac8b8eeee2c0aae1dd4a811b5f0d522fe43488dad2872aa044ad1f38a78e49f9d13d8c19eb583a8082d636caeebb188f1dd4f1caec7
23
24 diff --git a/dev-util/devscripts/devscripts-2.21.3.ebuild b/dev-util/devscripts/devscripts-2.21.3.ebuild
25 new file mode 100644
26 index 000000000..03de260d6
27 --- /dev/null
28 +++ b/dev-util/devscripts/devscripts-2.21.3.ebuild
29 @@ -0,0 +1,120 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_OPTIONAL=true
36 +PYTHON_COMPAT=( python3_{8..9} )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Scripts to make the life of a Debian Package maintainer easier"
41 +HOMEPAGE="https://salsa.debian.org/debian/devscripts"
42 +SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV}.tar.xz"
43 +
44 +LICENSE="GPL-2+"
45 +SLOT="0"
46 +KEYWORDS="~amd64"
47 +IUSE="python test"
48 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
49 +RESTRICT="!test? ( test )"
50 +
51 +CDEPEND="
52 + dev-lang/perl:=
53 + dev-perl/File-DesktopEntry
54 + dev-perl/File-DirList
55 + dev-perl/File-HomeDir
56 + dev-perl/File-Touch
57 + dev-perl/IPC-Run
58 + dev-perl/Moo
59 + dev-perl/libwww-perl
60 + dev-util/distro-info
61 + python? ( ${PYTHON_DEPS} )
62 +"
63 +DEPEND="${CDEPEND}
64 + test? (
65 + app-arch/zip
66 + dev-perl/Git-Wrapper
67 + dev-perl/GitLab-API-v4
68 + dev-perl/List-Compare
69 + dev-perl/Software-License
70 + dev-perl/String-ShellQuote
71 + dev-perl/UNIVERSAL-require
72 + dev-python/pyftpdlib[${PYTHON_USEDEP}]
73 + dev-python/python-debian[${PYTHON_USEDEP}]
74 + dev-util/shunit2
75 + dev-vcs/subversion
76 + sys-libs/libfaketime
77 + virtual/perl-DB_File
78 + )
79 +"
80 +RDEPEND="${CDEPEND}
81 + app-arch/dpkg
82 + app-crypt/gnupg
83 + app-text/wdiff
84 + dev-util/debhelper
85 + dev-util/patchutils
86 + sys-apps/fakeroot
87 +"
88 +BDEPEND="virtual/pkgconfig"
89 +
90 +PATCHES=(
91 + "${FILESDIR}/distutils-r1.patch"
92 + "${FILESDIR}/Remove-failing-tests.patch"
93 + "${FILESDIR}/Replace-Debian-xsl-stylesheets-paths-with-Gentoos.patch"
94 +)
95 +
96 +DISTUTILS_S="${S}"/scripts
97 +
98 +src_prepare() {
99 + default
100 +
101 + # Avoid file collision with app-shells/bash-completion
102 + rm "${DISTUTILS_S}"/bts.bash_completion || die
103 +}
104 +
105 +src_configure() {
106 + default
107 +
108 + if use python; then
109 + pushd "${DISTUTILS_S}" > /dev/null || die
110 + distutils-r1_src_configure
111 + popd > /dev/null || die
112 + fi
113 +}
114 +
115 +src_compile() {
116 + default
117 +
118 + if use python; then
119 + pushd "${DISTUTILS_S}" > /dev/null || die
120 + distutils-r1_src_compile
121 + popd > /dev/null || die
122 + fi
123 +}
124 +
125 +src_install() {
126 + dodir /usr/bin
127 + default
128 +
129 + if use python; then
130 + pushd "${DISTUTILS_S}" > /dev/null || die
131 + distutils-r1_src_install
132 + popd > /dev/null || die
133 + fi
134 +
135 + mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${PF} || die
136 +
137 + # "incorrect name, no completions for command defined"
138 + rm "${ED}"/usr/share/bash-completion/completions/{debcheckout,pkgnames} || die
139 +}
140 +
141 +src_test() {
142 + default
143 +
144 + if use python; then
145 + pushd "${DISTUTILS_S}" > /dev/null || die
146 + distutils-r1_src_test
147 + popd > /dev/null || die
148 + fi
149 +}