1 |
commit: f1b13c15aadac7c2777cf304df6b9c3ea4e5f304 |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 1 16:55:35 2018 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 1 17:00:18 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1b13c15 |
7 |
|
8 |
app-arch/createrepo: use backports-lzma instead of pyliblzma |
9 |
|
10 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
11 |
Closes: https://bugs.gentoo.org/show_bug.cgi?id=643310 |
12 |
Signed-off-by: Alon Bar-Lev <alonbl <AT> gentoo.org> |
13 |
|
14 |
app-arch/createrepo/createrepo-0.10.4-r1.ebuild | 51 ++++++++++++++++++++++ |
15 |
.../createrepo/files/createrepo-0.10.4-lzma.patch | 14 ++++++ |
16 |
2 files changed, 65 insertions(+) |
17 |
|
18 |
diff --git a/app-arch/createrepo/createrepo-0.10.4-r1.ebuild b/app-arch/createrepo/createrepo-0.10.4-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..39a64af2e0b |
21 |
--- /dev/null |
22 |
+++ b/app-arch/createrepo/createrepo-0.10.4-r1.ebuild |
23 |
@@ -0,0 +1,51 @@ |
24 |
+# Copyright 1999-2018 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=7 |
28 |
+ |
29 |
+PYTHON_COMPAT=( python2_7 ) |
30 |
+PYTHON_REQ_USE='xml' |
31 |
+ |
32 |
+inherit python-single-r1 bash-completion-r1 |
33 |
+ |
34 |
+DESCRIPTION="Creates a common rpm-metadata repository" |
35 |
+HOMEPAGE="http://createrepo.baseurl.org/" |
36 |
+SRC_URI="http://createrepo.baseurl.org/download/${P}.tar.gz" |
37 |
+ |
38 |
+LICENSE="GPL-2" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~amd64 ~x86" |
41 |
+IUSE="" |
42 |
+ |
43 |
+RDEPEND=">=dev-python/urlgrabber-2.9.0[${PYTHON_USEDEP}] |
44 |
+ >=app-arch/rpm-4.1.1[python,${PYTHON_USEDEP}] |
45 |
+ dev-libs/libxml2[python,${PYTHON_USEDEP}] |
46 |
+ >=app-arch/deltarpm-3.6_pre20110223[python,${PYTHON_USEDEP}] |
47 |
+ dev-python/backports-lzma[${PYTHON_USEDEP}] |
48 |
+ >=sys-apps/yum-3.4.3 |
49 |
+ ${PYTHON_DEPS}" |
50 |
+DEPEND="${PYTHON_DEPS}" |
51 |
+ |
52 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
53 |
+ |
54 |
+PATCHES=( |
55 |
+ "${FILESDIR}/${PN}-0.10.3-ten-changelog-limit.patch" |
56 |
+ "${FILESDIR}/${P}-lzma.patch" |
57 |
+) |
58 |
+ |
59 |
+pkg_setup() { |
60 |
+ python-single-r1_pkg_setup |
61 |
+ python_export PYTHON_SITEDIR |
62 |
+} |
63 |
+ |
64 |
+src_install() { |
65 |
+ emake install \ |
66 |
+ DESTDIR="${ED}" \ |
67 |
+ PYTHON=true \ |
68 |
+ compdir="$(get_bashcompdir)" \ |
69 |
+ PKGDIR="${PYTHON_SITEDIR}/${PN}" |
70 |
+ einstalldocs |
71 |
+ python_fix_shebang "${ED}" |
72 |
+ python_optimize |
73 |
+ python_optimize "${ED}/usr/share/createrepo" |
74 |
+} |
75 |
|
76 |
diff --git a/app-arch/createrepo/files/createrepo-0.10.4-lzma.patch b/app-arch/createrepo/files/createrepo-0.10.4-lzma.patch |
77 |
new file mode 100644 |
78 |
index 00000000000..2bae50c0a8a |
79 |
--- /dev/null |
80 |
+++ b/app-arch/createrepo/files/createrepo-0.10.4-lzma.patch |
81 |
@@ -0,0 +1,14 @@ |
82 |
+diff --git a/createrepo/utils.py b/createrepo/utils.py |
83 |
+index b0d92ec..1220c7c 100644 |
84 |
+--- a/createrepo/utils.py |
85 |
++++ b/createrepo/utils.py |
86 |
+@@ -25,7 +25,8 @@ from gzip import write32u, FNAME |
87 |
+ from yum import misc |
88 |
+ _available_compression = ['gz', 'bz2'] |
89 |
+ try: |
90 |
+- import lzma |
91 |
++ import backports.lzma |
92 |
++ lzma = backports.lzma |
93 |
+ _available_compression.append('xz') |
94 |
+ except ImportError: |
95 |
+ lzma = None |