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