Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/alien/, app-arch/alien/files/
Date: Wed, 23 May 2018 12:40:18
Message-Id: 1527079206.1a7acfd7f96271609e2c6df77097da4d2f796401.monsieurp@gentoo
1 commit: 1a7acfd7f96271609e2c6df77097da4d2f796401
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 23 12:38:55 2018 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Wed May 23 12:40:06 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a7acfd7
7
8 app-arch/alien: add support for more tar extensions.
9
10 Courtesy of Austin English <wizardedit <AT> gentoo.org>.
11
12 I've also slipped in a EAPI 6 update whilst at it.
13
14 Closes: https://bugs.gentoo.org/629524
15 Package-Manager: Portage-2.3.24, Repoman-2.3.6
16
17 app-arch/alien/alien-8.95-r1.ebuild | 34 ++++++++++++++++++++++
18 .../alien/files/alien-8.95-tar-extensions.patch | 25 ++++++++++++++++
19 2 files changed, 59 insertions(+)
20
21 diff --git a/app-arch/alien/alien-8.95-r1.ebuild b/app-arch/alien/alien-8.95-r1.ebuild
22 new file mode 100644
23 index 00000000000..c088b5dc181
24 --- /dev/null
25 +++ b/app-arch/alien/alien-8.95-r1.ebuild
26 @@ -0,0 +1,34 @@
27 +# Copyright 1999-2018 Gentoo Foundation
28 +# Distributed under the terms of the GNU General Public License v2
29 +
30 +EAPI=6
31 +
32 +inherit perl-module
33 +
34 +DESCRIPTION="Converts between the rpm, dpkg, stampede slp, and slackware tgz file formats"
35 +HOMEPAGE="http://kitenet.net/programs/alien"
36 +SRC_URI="mirror://debian/pool/main/a/${PN}/${PN}_${PV}.tar.xz -> ${P}.tar.xz"
37 +
38 +LICENSE="LGPL-2.1"
39 +SLOT="0"
40 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~x86"
41 +IUSE="+bzip2"
42 +
43 +RDEPEND="
44 + app-arch/rpm
45 + app-arch/dpkg
46 + dev-util/debhelper
47 + >=app-arch/tar-1.14.91
48 + bzip2? (
49 + app-arch/bzip2
50 + )"
51 +
52 +DEPEND="${RDEPEND}"
53 +
54 +PATCHES=( "${FILESDIR}/${P}-tar-extensions.patch" )
55 +
56 +src_prepare() {
57 + default
58 + sed -e s%'$(VARPREFIX)'%${D}% -e s%'$(PREFIX)'%${D}/usr%g \
59 + -i "${S}"/Makefile.PL || die "sed failed"
60 +}
61
62 diff --git a/app-arch/alien/files/alien-8.95-tar-extensions.patch b/app-arch/alien/files/alien-8.95-tar-extensions.patch
63 new file mode 100644
64 index 00000000000..4709fcc1c4f
65 --- /dev/null
66 +++ b/app-arch/alien/files/alien-8.95-tar-extensions.patch
67 @@ -0,0 +1,25 @@
68 +From 01aabf053ea28308df87272cca79e645a9268fd7 Mon Sep 17 00:00:00 2001
69 +From: Austin English <austinenglish@×××××.com>
70 +Date: Fri, 1 Sep 2017 02:20:37 -0500
71 +Subject: [PATCH] add more tar extensions
72 +
73 +Signed-off-by: Austin English <austinenglish@×××××.com>
74 +---
75 + Alien/Package/Tgz.pm | 2 +-
76 + 1 file changed, 1 insertion(+), 1 deletion(-)
77 +
78 +diff --git a/Alien/Package/Tgz.pm b/Alien/Package/Tgz.pm
79 +index 7ab6e8b..65a3d2d 100644
80 +--- a/Alien/Package/Tgz.pm
81 ++++ b/Alien/Package/Tgz.pm
82 +@@ -11,7 +11,7 @@ use strict;
83 + use base qw(Alien::Package);
84 + use Cwd qw(abs_path);
85 +
86 +-my $tarext=qr/\.(?:tgz|tar(?:\.(?:gz|Z|z|bz|bz2))?|taz)$/;
87 ++my $tarext=qr/\.(?:taz|tar(?:\.(?:bz|bz2|gz|Z|z|))?|tb2|tbz|tbz2|tZ|xpak)$/;
88 +
89 + =head1 DESCRIPTION
90 +
91 +--
92 +2.14.0