summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-arch/rar/Manifest3
-rw-r--r--app-arch/rar/rar-5.5.0_beta4_p20170628.ebuild109
2 files changed, 112 insertions, 0 deletions
diff --git a/app-arch/rar/Manifest b/app-arch/rar/Manifest
index 0ab9c9411659..e658b9b24c62 100644
--- a/app-arch/rar/Manifest
+++ b/app-arch/rar/Manifest
@@ -1,3 +1,6 @@
DIST rarlinux-5.4.0-r1.tar.gz 541123 SHA256 ea4ec74f1692ceff09e890a427eed3257400124a1e0c173f53737a37993ade6e SHA512 fa6d5abb02c22eeb5c75b6ec84be7247e5629f4d278a7a836265e21e13626d16a00e60793bc8cfb58a1efaf0d8d717e0cbd43a250f64b03ea366d78a21dcc686 WHIRLPOOL e3d9553baabf496e73fee6314b5d06b73f5261ba5fc18d9bb90230a83bb590616899c8d1e747a1718171cf8933fe4aa8ad955f3f211533c71d6f47b96e4c11fd
+DIST rarlinux-5.5.0_beta4_p20170628.tar.gz 544409 SHA256 08c76882c42352ce36dd7cc78ce629a875889dbed41c713af078dbc4fe721073 SHA512 41c1da62995fab00421f788cb65dda3c5e1eb265fe1f4cd6a3bf4f9c28c63c39e4a0aa654f93ae444833c5c17397ee0beb98a6e02a515371ae245ac215d618b6 WHIRLPOOL e7c9c3a47deb1524aad46063fae486adadfd36850c42929494a83c05c86108e0c7da496da13114f72cbe32ca7791545cb43c1bff53b0fcd789357eda901e2511
DIST rarlinux-x64-5.4.0-r1.tar.gz 531782 SHA256 264b7f09270c44ee9be5f0e8e8cab48781822c9d3aa6caf078af01719511b6de SHA512 8b6b83bebfb8421bf9f1c25313ffa985683309fecafb07260b1a3bd889e2aa922d3a137ff97f47638dac4c2299e76c00e28c27e3e40b413e7d40280e61af9e47 WHIRLPOOL 0a2b2d3ae2e750c0a624d55edc10191536d32d963d1bc1298da349709b6a98032a033f034970d1f2fbb1c2dae0537681186b8fb9c1b1409dae023c8351fb1303
+DIST rarlinux-x64-5.5.0_beta4_p20170628.tar.gz 534501 SHA256 5efa3b24b9f4b5aff2538f13c4d6ecae766a54badeb06d12387cbbcc1ca85608 SHA512 630033f9a5201d53ecb8796651b89caf7351b09e37087e071fc14c4c683fd32404322e80a71f6f1e6e449f264c0209d8ce7ad554c37420dfb764f091188ced2e WHIRLPOOL 17904bffb07da1670d2fc0359c0dfc116330ce938cb6dd150e6d9608e89723875d05322e26f2a803946da2a7eaae0ae8c693750964b908061be405d1da3a68a3
+DIST winrar-x64-5.5.0_beta4_p20170628.exe 2212800 SHA256 bf4dcf7c42ecb9028a2106297ebd6739fb75194c262e1f0ea7823ceaceccc8c8 SHA512 5a452d5a4f96dc240b1a04d690ced1ed6395857e1eafce8bcb91a3fe1feb60a54376b36c1d4117e6660556947bda6cf550e9a495842bdba4d6029ddeb17116c1 WHIRLPOOL 5f91b1b9eb8a0563c969b09027ad7197cc0d5586f8cddae0b0ce44a1d45489ba3461792f639a86c7829f7437b0dc9f0e14019cb5029f854ac65ff51f111eb79a
DIST winrar-x64-540-r1.exe 2179856 SHA256 d73cc6a97c3edde637c7d952ee2e0efc5b09937e5300cb0ecaffda70f4efdef0 SHA512 27082f2aa1fde0b82611360bece85b984258a3e81fb20249122a643ae1d6d9878ca248e854899a7ceffa4363aa032fc5360eba80c19e700292b5a261040d75c0 WHIRLPOOL 62bd28cb0ef7c4b5294f44cf15d697f15a69aaaa898865b006d3ff3984378cb688907481dab738e2f25737cec9fe199dc157b48b66f28ae6a66fb1dd27018d7b
diff --git a/app-arch/rar/rar-5.5.0_beta4_p20170628.ebuild b/app-arch/rar/rar-5.5.0_beta4_p20170628.ebuild
new file mode 100644
index 000000000000..c824db2197bd
--- /dev/null
+++ b/app-arch/rar/rar-5.5.0_beta4_p20170628.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+DESCRIPTION="RAR compressor/uncompressor"
+HOMEPAGE="http://www.rarsoft.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 || die
+
+ dodir /opt/bin
+ dosym ../rar/rar /opt/bin/rar || die
+ dosym ../rar/unrar /opt/bin/unrar || die
+
+ insinto /opt/rar
+ if use all_sfx ; then
+ doins "${WORKDIR}"/sfx/*.{sfx,SFX} || die
+ else
+ doins default.sfx || die
+ fi
+ doins rarfiles.lst || die
+ dodoc *.txt
+}