1 |
commit: 354a3e8ba8c62da9d2549bdc127087ba89d5d691 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon May 2 08:14:45 2022 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Mon May 2 20:01:14 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=354a3e8b |
7 |
|
8 |
dev-util/devscripts: conflict with checkbashisms |
9 |
|
10 |
Closes: https://bugs.gentoo.org/842111 |
11 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
12 |
|
13 |
dev-util/devscripts/devscripts-2.22.1-r1.ebuild | 126 ++++++++++++++++++++++++ |
14 |
1 file changed, 126 insertions(+) |
15 |
|
16 |
diff --git a/dev-util/devscripts/devscripts-2.22.1-r1.ebuild b/dev-util/devscripts/devscripts-2.22.1-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000..11fcf9f20 |
19 |
--- /dev/null |
20 |
+++ b/dev-util/devscripts/devscripts-2.22.1-r1.ebuild |
21 |
@@ -0,0 +1,126 @@ |
22 |
+# Copyright 1999-2022 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+DISTUTILS_OPTIONAL=true |
28 |
+PYTHON_COMPAT=( python3_{9..10} ) |
29 |
+ |
30 |
+inherit bash-completion-r1 distutils-r1 |
31 |
+ |
32 |
+DESCRIPTION="Scripts to make the life of a Debian Package maintainer easier" |
33 |
+HOMEPAGE="https://salsa.debian.org/debian/devscripts" |
34 |
+SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV}.tar.xz" |
35 |
+ |
36 |
+LICENSE="GPL-2+" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64" |
39 |
+IUSE="python test" |
40 |
+ |
41 |
+CDEPEND=" |
42 |
+ dev-lang/perl:= |
43 |
+ dev-perl/File-DesktopEntry |
44 |
+ dev-perl/File-DirList |
45 |
+ dev-perl/File-HomeDir |
46 |
+ dev-perl/File-Touch |
47 |
+ dev-perl/IPC-Run |
48 |
+ dev-perl/Moo |
49 |
+ dev-perl/libwww-perl |
50 |
+ dev-util/distro-info |
51 |
+ python? ( ${PYTHON_DEPS} ) |
52 |
+" |
53 |
+DEPEND=" |
54 |
+ ${CDEPEND} |
55 |
+ app-text/docbook-xsl-stylesheets |
56 |
+ test? ( |
57 |
+ app-arch/zip |
58 |
+ dev-perl/Git-Wrapper |
59 |
+ dev-perl/GitLab-API-v4 |
60 |
+ dev-perl/List-Compare |
61 |
+ dev-perl/Software-License |
62 |
+ dev-perl/String-ShellQuote |
63 |
+ dev-perl/UNIVERSAL-require |
64 |
+ dev-python/pyftpdlib[${PYTHON_USEDEP}] |
65 |
+ dev-python/python-debian[${PYTHON_USEDEP}] |
66 |
+ dev-util/shunit2 |
67 |
+ dev-vcs/subversion |
68 |
+ sys-libs/libfaketime |
69 |
+ virtual/perl-DB_File |
70 |
+ ) |
71 |
+" |
72 |
+RDEPEND=" |
73 |
+ ${CDEPEND} |
74 |
+ app-arch/dpkg |
75 |
+ app-crypt/gnupg |
76 |
+ app-text/wdiff |
77 |
+ !dev-util/checkbashisms |
78 |
+ dev-util/debhelper |
79 |
+ dev-util/patchutils |
80 |
+ sys-apps/fakeroot |
81 |
+" |
82 |
+BDEPEND="virtual/pkgconfig" |
83 |
+ |
84 |
+REQUIRED_USE=" |
85 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
86 |
+ test? ( python ) |
87 |
+" |
88 |
+RESTRICT="!test? ( test )" |
89 |
+PATCHES=( |
90 |
+ "${FILESDIR}/distutils-r1.patch" |
91 |
+ "${FILESDIR}/Remove-failing-tests.patch" |
92 |
+ "${FILESDIR}/Replace-Debian-xsl-stylesheets-paths-with-Gentoos.patch" |
93 |
+) |
94 |
+ |
95 |
+DISTUTILS_S="${S}/scripts" |
96 |
+ |
97 |
+src_prepare() { |
98 |
+ default |
99 |
+ |
100 |
+ # Avoid file collision with app-shells/bash-completion |
101 |
+ rm "${DISTUTILS_S}/bts.bash_completion" || die |
102 |
+} |
103 |
+ |
104 |
+src_configure() { |
105 |
+ default |
106 |
+ |
107 |
+ if use python; then |
108 |
+ pushd "${DISTUTILS_S}" > /dev/null || die |
109 |
+ python_foreach_impl distutils-r1_src_configure |
110 |
+ popd > /dev/null || die |
111 |
+ fi |
112 |
+} |
113 |
+ |
114 |
+src_compile() { |
115 |
+ default |
116 |
+ |
117 |
+ if use python; then |
118 |
+ pushd "${DISTUTILS_S}" > /dev/null || die |
119 |
+ python_foreach_impl distutils-r1_src_compile |
120 |
+ popd > /dev/null || die |
121 |
+ fi |
122 |
+} |
123 |
+ |
124 |
+src_install() { |
125 |
+ dodir /usr/bin |
126 |
+ default |
127 |
+ |
128 |
+ if use python; then |
129 |
+ pushd "${DISTUTILS_S}" > /dev/null || die |
130 |
+ python_foreach_impl distutils-r1_src_install |
131 |
+ popd > /dev/null || die |
132 |
+ fi |
133 |
+ |
134 |
+ mv "${ED}/usr/share/doc/${PN}" "${ED}/usr/share/doc/${PF}" || die |
135 |
+ |
136 |
+ rm "${ED}/usr/share/bash-completion/completions/debcheckout" || die |
137 |
+ mv "${ED}"/usr/share/bash-completion/completions/{pkgnames,debsnap} || die |
138 |
+ bashcomp_alias debsnap wnpp-alert wnpp-check mk-build-deps rmadison mass-bug dd-list build-rdeps who-uploads transition-check getbuildlog grep-excuses rc-alert whodepends dget pts-subscribe pts-unsubscribe |
139 |
+} |
140 |
+ |
141 |
+src_test() { |
142 |
+ default |
143 |
+ |
144 |
+ pushd "${DISTUTILS_S}" > /dev/null || die |
145 |
+ python_foreach_impl distutils-r1_src_test |
146 |
+ popd > /dev/null || die |
147 |
+} |