1 |
commit: 8011caca58dc751581813c005155940b607df371 |
2 |
Author: Hanno <hanno <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 15 10:55:06 2016 +0000 |
4 |
Commit: Hanno Boeck <hanno <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 15 10:55:06 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8011caca |
7 |
|
8 |
app-arch/unp: respect LINGUAS variable |
9 |
|
10 |
Also port to EAPI 6, change upstream URL to https. |
11 |
|
12 |
Package-Manager: portage-2.3.2 |
13 |
|
14 |
app-arch/unp/unp-2.0_pre7_p1-r1.ebuild | 45 ++++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 45 insertions(+) |
16 |
|
17 |
diff --git a/app-arch/unp/unp-2.0_pre7_p1-r1.ebuild b/app-arch/unp/unp-2.0_pre7_p1-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000..0c2a68d |
20 |
--- /dev/null |
21 |
+++ b/app-arch/unp/unp-2.0_pre7_p1-r1.ebuild |
22 |
@@ -0,0 +1,45 @@ |
23 |
+# Copyright 1999-2016 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+# $Id$ |
26 |
+ |
27 |
+EAPI=6 |
28 |
+ |
29 |
+inherit eutils bash-completion-r1 |
30 |
+ |
31 |
+DESCRIPTION="Script for unpacking various file formats" |
32 |
+HOMEPAGE="https://packages.qa.debian.org/u/unp.html" |
33 |
+TEMP_PV="${PV/_pre/$'\x7e'pre}" |
34 |
+MY_PV="${TEMP_PV/_p/+nmu}" |
35 |
+SRC_URI="mirror://debian/pool/main/u/unp/${PN}_${MY_PV}.tar.bz2" |
36 |
+S="${WORKDIR}/${PN}-${MY_PV}" |
37 |
+ |
38 |
+LICENSE="GPL-2" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
41 |
+IUSE="nls" |
42 |
+ |
43 |
+DEPEND="nls? ( sys-devel/gettext )" |
44 |
+ |
45 |
+RDEPEND="${DEPEND} |
46 |
+ dev-lang/perl" |
47 |
+ |
48 |
+PATCHES=( "${FILESDIR}/${P}-remove-deprecated-have.diff" ) |
49 |
+ |
50 |
+src_compile() { |
51 |
+ if use nls; then |
52 |
+ strip-linguas -i . |
53 |
+ emake -C po MOFILES="${LINGUAS/ /.po }.po" |
54 |
+ fi |
55 |
+} |
56 |
+ |
57 |
+src_install() { |
58 |
+ dobin unp || die "dobin failed" |
59 |
+ dosym /usr/bin/unp /usr/bin/ucat |
60 |
+ doman debian/unp.1 || die "doman failed" |
61 |
+ dodoc debian/changelog debian/README.Debian |
62 |
+ dobashcomp bash_completion.d/unp |
63 |
+ |
64 |
+ if use nls; then |
65 |
+ emake -C po MOFILES="${LINGUAS/ /.mo }.mo" DESTDIR="${D}" install |
66 |
+ fi |
67 |
+} |