Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/distro-info/
Date: Mon, 31 May 2021 20:53:39
Message-Id: 1622494400.62b0573a8fceb9ea8fd1ae6dd62797832cecbbd1.mgorny@gentoo
1 commit: 62b0573a8fceb9ea8fd1ae6dd62797832cecbbd1
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 31 20:43:50 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon May 31 20:53:20 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62b0573a
7
8 dev-util/distro-info: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-util/distro-info/Manifest | 1 -
13 dev-util/distro-info/distro-info-0.22.ebuild | 96 ----------------------------
14 2 files changed, 97 deletions(-)
15
16 diff --git a/dev-util/distro-info/Manifest b/dev-util/distro-info/Manifest
17 index 1fb0882fe13..e5fcd4eef0d 100644
18 --- a/dev-util/distro-info/Manifest
19 +++ b/dev-util/distro-info/Manifest
20 @@ -1,2 +1 @@
21 -DIST distro-info_0.22.tar.xz 29104 BLAKE2B 88eab833ea34de9e62f858e1fb9acfb94efb60114d2213b8bbb77a440c114dbac70a1707d1469113c1a98ea94d953ffa36480c132c294fd8e22b816a444b25e1 SHA512 b9d97e469b9173651c1816f39cc2315622b46f1579cbaba29c417a51417425e90a45283e83c7efee35db78621df08997f5395c8c1b0259f69e5cd91dee65793f
22 DIST distro-info_1.0.tar.xz 30908 BLAKE2B 8355e54919d83d09d3eb7983a35151f0e4253c62eefeccf4d1e614cef0bb7cecf466007c7789749c145674aa30324423f9977a26695d5de537f80d5eb069f371 SHA512 2d84b5845ff4e7ce8059fe83e9d64a380d6732e0e85bc889c948068579d27a86fd31f8e6b7d8cc256f4ff4631cd0ffd480835bf290452d3bc28469f5b3be9ddb
23
24 diff --git a/dev-util/distro-info/distro-info-0.22.ebuild b/dev-util/distro-info/distro-info-0.22.ebuild
25 deleted file mode 100644
26 index 63314fd48a0..00000000000
27 --- a/dev-util/distro-info/distro-info-0.22.ebuild
28 +++ /dev/null
29 @@ -1,96 +0,0 @@
30 -# Copyright 1999-2020 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=7
34 -
35 -PYTHON_COMPAT=( python3_7 )
36 -DISTUTILS_OPTIONAL=true
37 -
38 -inherit distutils-r1
39 -
40 -DESCRIPTION="Provides information about the Debian distributions' releases"
41 -HOMEPAGE="https://debian.org"
42 -SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV}.tar.xz"
43 -
44 -LICENSE="ISC"
45 -SLOT="0"
46 -KEYWORDS="amd64 x86"
47 -IUSE="python test"
48 -RESTRICT="!test? ( test )"
49 -
50 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
51 -
52 -COMMON_DEPEND="dev-lang/perl:=
53 - python? ( ${PYTHON_DEPS} )"
54 -DEPEND="${COMMON_DEPEND}
55 - python? ( dev-python/setuptools[${PYTHON_USEDEP}] )
56 - test? (
57 - dev-util/shunit2
58 - dev-python/pylint[${PYTHON_USEDEP}]
59 - )"
60 -RDEPEND="${COMMON_DEPEND}
61 - dev-util/distro-info-data"
62 -
63 -S="${WORKDIR}/${PN}"
64 -
65 -src_prepare() {
66 - default
67 -
68 - # 1. Gentoo do not provides dpkg vendor information
69 - # 2. Strip *FLAGS
70 - # 3. Strip predefined CFLAGS
71 - # 4. Point to correct perl's vendorlib
72 - # 5. Remove python tests - python eclass will be used instead
73 - sed -e "/cd python && python/d" \
74 - -e "/VENDOR/d" \
75 - -e "/dpkg-buildflags/d" \
76 - -e "s/-g -O2//g" \
77 - -e "s:\$(PREFIX)/share/perl5/Debian:\$(PERL_VENDORLIB)/Debian:g" \
78 - -e "/pyversions/d" \
79 - -i "${S}"/Makefile || die
80 -}
81 -
82 -src_configure() {
83 - default
84 -
85 - if use python; then
86 - pushd ./python > /dev/null || die
87 - distutils-r1_src_configure
88 - popd > /dev/null || die
89 - fi
90 -}
91 -
92 -src_compile() {
93 - default
94 -
95 - if use python; then
96 - pushd ./python > /dev/null || die
97 - distutils-r1_src_compile
98 - popd > /dev/null || die
99 - fi
100 -}
101 -
102 -src_install() {
103 - emake PERL_VENDORLIB=$(perl -e 'require Config; print "$Config::Config{'vendorlib'}\n";') \
104 - DESTDIR="${D}" install
105 -
106 - if use python; then
107 - pushd ./python > /dev/null || die
108 - distutils-r1_src_install
109 - popd > /dev/null || die
110 - fi
111 -}
112 -
113 -src_test() {
114 - TZ=UTC default
115 -
116 - if use python; then
117 - python_test() {
118 - esetup.py test
119 - }
120 -
121 - pushd ./python > /dev/null || die
122 - distutils-r1_src_test
123 - popd > /dev/null || die
124 - fi
125 -}