Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/rar/
Date: Mon, 29 Apr 2019 11:33:30
Message-Id: 1556537592.b3f6f54bdd8eb11f3dfb20c1b9c1a990679d0e16.whissi@gentoo
1 commit: b3f6f54bdd8eb11f3dfb20c1b9c1a990679d0e16
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 29 11:29:57 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 29 11:33:12 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3f6f54b
7
8 app-arch/rar: bump to v5.7.1
9
10 Package-Manager: Portage-2.3.64, Repoman-2.3.12
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 app-arch/rar/Manifest | 3 +
14 app-arch/rar/rar-5.7.1_p20190427.ebuild | 109 ++++++++++++++++++++++++++++++++
15 2 files changed, 112 insertions(+)
16
17 diff --git a/app-arch/rar/Manifest b/app-arch/rar/Manifest
18 index ac62d10d819..bfa38668176 100644
19 --- a/app-arch/rar/Manifest
20 +++ b/app-arch/rar/Manifest
21 @@ -1,3 +1,6 @@
22 DIST rarlinux-5.7.0_p20190224.tar.gz 558744 BLAKE2B 3c7b9337767ce8045069b3a851878661e6cae950c69b09bc8c15b86c0fbf4d0b02ce55d198d1ce65ca9e5f227ab1188817f6bdfbce76ef1f8468caa4addfa733 SHA512 ed13c8191888c78dbd2f838f9f17d200bec827ac74024063f3c679fb2051b8e9b5e861d8ab4c9c7d0c8a14017c41386647b0bfd880d0d4855e8da06c17d9d270
23 +DIST rarlinux-5.7.1_p20190427.tar.gz 559019 BLAKE2B 34da59809bbd846ea8a4fc90daed48e18efacafecf4b254e5b40b549ea172f7a399e5dd038d84427430d35392b8c3713921496f46bb9d9ea2e603938cac543c5 SHA512 9819e31cbc016aafdbb6b127b3a9ce427ead65bb0ac685ca0ede5fe1e27626054c2f0e3188b22fb9e4235780bac67f5b514178137891ecd3688ccab58e97ed6b
24 DIST rarlinux-x64-5.7.0_p20190224.tar.gz 546390 BLAKE2B cdf251bbf834c1826d138d811fcf9009a97f45876366192421e601b3075bcad87f760ed5740b00b1620cdd7c569800dd589ddf3fda80db1da30cb223edb0e43a SHA512 48a4aefca44250795687e9f435c13c0c730b86c1abd0c229a1e3234372f13b38c310956525b81e4a5fe9074b39ce7438baaa2c243e4b53259e46d22c53989e3e
25 +DIST rarlinux-x64-5.7.1_p20190427.tar.gz 546592 BLAKE2B 7ca3fcda8d4cba2595c82f6b14845427228904a0ba19e1cad6b812de3941b34f24a575e426198ff49db029f50420f68d693640a6e9fc71f01ccd78478a7e5b4a SHA512 818307bcfb6ed5879c505d085a0430a4b3d07aa2fa9c1f3e04964832e363ac6d2116511aa0cda20cb0d499358a819d1ed03b7db01ff68749da2764fa3487da4b
26 DIST winrar-x64-5.7.0_p20190224.exe 3142272 BLAKE2B 89b4adfc7317eb8def65f4e9f0ad7e23a9eb039dd451a97afd34a229b5fe0d19bf62cfbd507ade6a0cb32e1985d6dbd83ee61076673bfeda0d061fd1e7f22469 SHA512 a4853bcd410800818c3fcabf7d0e926612447604fbabfad2bc90c67717a50ca1c293882ff5ed3614b044d8bb1c1d9afe5dff90b836bb9c62efc994b52430c9e1
27 +DIST winrar-x64-5.7.1_p20190427.exe 3145336 BLAKE2B 2f0a70c789d0d3cb97513c712c8179952841752dea7fe0af68bae518cbf74c51ccb9c8d1fb02f56d1f5a43823b53609a3c3bbc42ca6833923988af851874bd84 SHA512 d23d47b66770af4e13a04265d9e4a46d5e62b93361d45b2ad6720b89d638a3e4d59eced1fd8f86d7711708a4158cd5487cf2509c2feb3e32cee368ab113afe91
28
29 diff --git a/app-arch/rar/rar-5.7.1_p20190427.ebuild b/app-arch/rar/rar-5.7.1_p20190427.ebuild
30 new file mode 100644
31 index 00000000000..a7303d59494
32 --- /dev/null
33 +++ b/app-arch/rar/rar-5.7.1_p20190427.ebuild
34 @@ -0,0 +1,109 @@
35 +# Copyright 1999-2019 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI="6"
39 +
40 +DESCRIPTION="RAR compressor/uncompressor"
41 +HOMEPAGE="https://rarlab.com/"
42 +URI_x86="https://mirror.whissi.de/distfiles/rar/rarlinux-${PV}.tar.gz"
43 +URI_amd64="https://mirror.whissi.de/distfiles/rar/rarlinux-x64-${PV}.tar.gz"
44 +URI_w64="https://mirror.whissi.de/distfiles/rar/winrar-x64-${PV}.exe"
45 +SRC_URI="x86? ( ${URI_x86} )
46 + amd64? ( ${URI_amd64} )
47 + all_sfx? (
48 + ${URI_x86}
49 + ${URI_amd64}
50 + ${URI_w64}
51 + )"
52 +
53 +LICENSE="RAR BSD BSD-2"
54 +SLOT="0"
55 +KEYWORDS="-* ~amd64 ~x86"
56 +IUSE="all_sfx"
57 +RESTRICT="mirror bindist"
58 +
59 +DEPEND="all_sfx? ( app-arch/unrar )"
60 +RDEPEND="sys-libs/glibc"
61 +
62 +S="${WORKDIR}/${PN}"
63 +
64 +QA_FLAGS_IGNORED="opt/rar/default.sfx
65 + opt/rar/default-elf32.sfx
66 + opt/rar/default-elf64.sfx
67 + opt/rar/default-win32.sfx
68 + opt/rar/default-win64.sfx
69 + opt/rar/WinCon.SFX
70 + opt/rar/WinCon64.SFX
71 + opt/rar/Zip.SFX
72 + opt/rar/Zip64.SFX
73 + opt/rar/unrar
74 + opt/rar/rar"
75 +QA_PRESTRIPPED=${QA_FLAGS_IGNORED}
76 +
77 +src_unpack() {
78 + local _file
79 +
80 + for _file in ${A}; do
81 + if [[ "${_file}" == rarli* ]]; then
82 + if [[ "${_file}" =~ x64 ]]; then
83 + if ! use amd64; then
84 + continue
85 + fi
86 +
87 + unpack "${_file}"
88 + elif [[ ! "${_file}" =~ x64 ]]; then
89 + if ! use x86; then
90 + continue
91 + fi
92 +
93 + unpack "${_file}"
94 + else
95 + die "Unknown SRC file '${_file}'!"
96 + fi
97 + fi
98 + done
99 +
100 + rm -f "${S}"/license.txt
101 +
102 + if use all_sfx ; then
103 + mkdir sfx
104 + cd sfx
105 + for _file in ${A}; do
106 + if [[ "${_file}" == rarli* ]]; then
107 + unpack "${_file}"
108 + if [[ "${_file}" =~ x64 ]]; then
109 + mv rar/default.sfx default-elf64.sfx || die
110 + else
111 + mv rar/default.sfx default-elf32.sfx || die
112 + fi
113 + elif [[ "${_file}" == winrar* ]]; then
114 + ln -s "${DISTDIR}"/${_file} w64.rar || die
115 + unpack ./w64.rar
116 + mv Default.SFX default-win32.sfx || die
117 + mv Default64.SFX default-win64.sfx || die
118 + else
119 + die "Unknown SFX file '${_file}'!"
120 + fi
121 + done
122 + fi
123 +}
124 +
125 +src_compile() { :; }
126 +
127 +src_install() {
128 + exeinto /opt/rar
129 + doexe rar unrar || die
130 +
131 + dodir /opt/bin
132 + dosym ../rar/rar /opt/bin/rar || die
133 + dosym ../rar/unrar /opt/bin/unrar || die
134 +
135 + insinto /opt/rar
136 + if use all_sfx ; then
137 + doins "${WORKDIR}"/sfx/*.{sfx,SFX} || die
138 + else
139 + doins default.sfx || die
140 + fi
141 + doins rarfiles.lst || die
142 + dodoc *.txt
143 +}