commit:     af27fc11f3936b1fb6c36ea1dd7ae9fcde946a05
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 11 14:58:30 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Wed Dec 11 14:58:30 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af27fc11

app-arch/rar: bump to v5.8.0 from 2019-12-05

Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 app-arch/rar/Manifest                   |   3 +
 app-arch/rar/rar-5.8.0_p20191205.ebuild | 109 ++++++++++++++++++++++++++++++++
 2 files changed, 112 insertions(+)

diff --git a/app-arch/rar/Manifest b/app-arch/rar/Manifest
index e54abe57b2b..b49501c4ef3 100644
--- a/app-arch/rar/Manifest
+++ b/app-arch/rar/Manifest
@@ -1,3 +1,6 @@
 DIST rarlinux-5.7.1_p20190427.tar.gz 559019 BLAKE2B 
34da59809bbd846ea8a4fc90daed48e18efacafecf4b254e5b40b549ea172f7a399e5dd038d84427430d35392b8c3713921496f46bb9d9ea2e603938cac543c5
 SHA512 
9819e31cbc016aafdbb6b127b3a9ce427ead65bb0ac685ca0ede5fe1e27626054c2f0e3188b22fb9e4235780bac67f5b514178137891ecd3688ccab58e97ed6b
+DIST rarlinux-5.8.0_p20191205.tar.gz 564176 BLAKE2B 
78251a10d995c47766d2d6f0b553aaf1230e3d47b0098a7f137d499d3e182bbebd3d1c35551032f5c88166c646037733f9be8833b05a1aef136918cf2b29b556
 SHA512 
0b8d2347a4b14e26285dd99add5fdf9c2f1a9d9e1bf7524e7b31052d9aac6337e592da02ed5dc4dc9ab9020587bf89de865b53a5632ac76097c9410ec7cf916a
 DIST rarlinux-x64-5.7.1_p20190427.tar.gz 546592 BLAKE2B 
7ca3fcda8d4cba2595c82f6b14845427228904a0ba19e1cad6b812de3941b34f24a575e426198ff49db029f50420f68d693640a6e9fc71f01ccd78478a7e5b4a
 SHA512 
818307bcfb6ed5879c505d085a0430a4b3d07aa2fa9c1f3e04964832e363ac6d2116511aa0cda20cb0d499358a819d1ed03b7db01ff68749da2764fa3487da4b
+DIST rarlinux-x64-5.8.0_p20191205.tar.gz 551942 BLAKE2B 
57fb02ee14571e508515b107adbce2055998cfc05c1c0b5d297fdb021c418c59c9e9cf594cdaa919c205193c7f4454af59d68c98559f85e3e8c3b00e7fec1c0b
 SHA512 
625138adc3c9fb0ceca54c72ee53a0c260e9c9ca53df5c192386884474482dab34477b0efeba760366fd31c5c59cdb2baf6516977b5c61927606bbde146ee350
 DIST winrar-x64-5.7.1_p20190427.exe 3145336 BLAKE2B 
2f0a70c789d0d3cb97513c712c8179952841752dea7fe0af68bae518cbf74c51ccb9c8d1fb02f56d1f5a43823b53609a3c3bbc42ca6833923988af851874bd84
 SHA512 
d23d47b66770af4e13a04265d9e4a46d5e62b93361d45b2ad6720b89d638a3e4d59eced1fd8f86d7711708a4158cd5487cf2509c2feb3e32cee368ab113afe91
+DIST winrar-x64-5.8.0_p20191205.exe 3214504 BLAKE2B 
41b23a157c0af9d024bbf404c134bad5d026d5668eb18c7bc21b9627b5b82ea2dcfd81cbbcae8a7150a5f3cf1b7982477e23eeed3640dc0dbf29ccb190176a6a
 SHA512 
7b55ab2daaa9a11e32b9d7ff3df1c76de6786d415a8d3650cfae9b5cd27003b53b67336c8916ed138ccb996797392f9dbd2f49aeea9ba5cef04f6331a82c0e0b

diff --git a/app-arch/rar/rar-5.8.0_p20191205.ebuild 
b/app-arch/rar/rar-5.8.0_p20191205.ebuild
new file mode 100644
index 00000000000..2c97cb3f6b5
--- /dev/null
+++ b/app-arch/rar/rar-5.8.0_p20191205.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+DESCRIPTION="RAR compressor/uncompressor"
+HOMEPAGE="https://rarlab.com/";
+URI_x86="https://mirror.whissi.de/distfiles/rar/rarlinux-${PV}.tar.gz";
+URI_amd64="https://mirror.whissi.de/distfiles/rar/rarlinux-x64-${PV}.tar.gz";
+URI_w64="https://mirror.whissi.de/distfiles/rar/winrar-x64-${PV}.exe";
+SRC_URI="x86? ( ${URI_x86} )
+       amd64? ( ${URI_amd64} )
+       all_sfx? (
+               ${URI_x86}
+               ${URI_amd64}
+               ${URI_w64}
+       )"
+
+LICENSE="RAR BSD BSD-2"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="all_sfx"
+RESTRICT="mirror bindist"
+
+DEPEND="all_sfx? ( app-arch/unrar )"
+RDEPEND="sys-libs/glibc"
+
+S="${WORKDIR}/${PN}"
+
+QA_FLAGS_IGNORED="opt/rar/default.sfx
+       opt/rar/default-elf32.sfx
+       opt/rar/default-elf64.sfx
+       opt/rar/default-win32.sfx
+       opt/rar/default-win64.sfx
+       opt/rar/WinCon.SFX
+       opt/rar/WinCon64.SFX
+       opt/rar/Zip.SFX
+       opt/rar/Zip64.SFX
+       opt/rar/unrar
+       opt/rar/rar"
+QA_PRESTRIPPED=${QA_FLAGS_IGNORED}
+
+src_unpack() {
+       local _file
+
+       for _file in ${A}; do
+               if [[ "${_file}" == rarli* ]]; then
+                       if [[ "${_file}" =~ x64 ]]; then
+                               if ! use amd64; then
+                                       continue
+                               fi
+
+                               unpack "${_file}"
+                       elif [[ ! "${_file}" =~ x64 ]]; then
+                               if ! use x86; then
+                                       continue
+                               fi
+
+                               unpack "${_file}"
+                       else
+                               die "Unknown SRC file '${_file}'!"
+                       fi
+               fi
+       done
+
+       rm -f "${S}"/license.txt
+
+       if use all_sfx ; then
+               mkdir sfx
+               cd sfx
+               for _file in ${A}; do
+                       if [[ "${_file}" == rarli* ]]; then
+                               unpack "${_file}"
+                               if [[ "${_file}" =~ x64 ]]; then
+                                       mv rar/default.sfx default-elf64.sfx || 
die
+                               else
+                                       mv rar/default.sfx default-elf32.sfx || 
die
+                               fi
+                       elif [[ "${_file}" == winrar* ]]; then
+                               ln -s "${DISTDIR}"/${_file} w64.rar || die
+                               unpack ./w64.rar
+                               mv Default.SFX default-win32.sfx || die
+                               mv Default64.SFX default-win64.sfx || die
+                       else
+                               die "Unknown SFX file '${_file}'!"
+                       fi
+               done
+       fi
+}
+
+src_compile() { :; }
+
+src_install() {
+       exeinto /opt/rar
+       doexe rar unrar
+
+       dodir /opt/bin
+       dosym ../rar/rar /opt/bin/rar
+       dosym ../rar/unrar /opt/bin/unrar
+
+       insinto /opt/rar
+       if use all_sfx ; then
+               doins "${WORKDIR}"/sfx/*.{sfx,SFX}
+       else
+               doins default.sfx
+       fi
+       doins rarfiles.lst
+       dodoc *.txt
+}

Reply via email to