commit:     7f7f746617ce50945cefe8cd5598e47d2f379831
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Fri May 24 21:10:17 2024 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Fri May 24 23:35:12 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f7f7466

app-arch/rar: add 7.01

Closes: https://bugs.gentoo.org/932310
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 app-arch/rar/Manifest        |   3 ++
 app-arch/rar/rar-7.01.ebuild | 123 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 126 insertions(+)

diff --git a/app-arch/rar/Manifest b/app-arch/rar/Manifest
index aefd06729f16..d75b72048545 100644
--- a/app-arch/rar/Manifest
+++ b/app-arch/rar/Manifest
@@ -1,3 +1,6 @@
 DIST rarlinux-x32-700.tar.gz 739081 BLAKE2B 
3f0d18ba3c9ff6b606bbddd3aafcc70209d87a1aa08877fa8ee62e4c28a56b0dd0d38304d273abb708fa1a9fb1d2264df0dc7eb2ac6dbd1264b250df40f141c5
 SHA512 
a1f1d1f203ae2f98949346ad331a27ce2d120bf28f289fc42d286fae5c9392af033a4ff72fbe078a130b9267eb42e9739db35aa98ce07f4d97566299aa233934
+DIST rarlinux-x32-701.tar.gz 739420 BLAKE2B 
9550c74d2f9a5bbd821fc2d313a1aa3fdca1f88675056e42507e9b40f7c456e20e0834149e6a925abc88d04aa23d5ccecb0f6efa7ba2d21629f030531b9e84d2
 SHA512 
2d8488106ed8ed5a67a1de114414a7fe58ab8a139b4f5fd78d5f334e59339e192d51574e3d36fdc7e5d4068cc9e33ec03e4ef6c0907193b407167c616f1ab357
 DIST rarlinux-x64-700.tar.gz 730268 BLAKE2B 
6a3c4890232b6bdc24a6e321bff66c8a41c3c64b7da8dbcd40714de647edabb32f8719be882335895a09453f36e247b7ce96edf8089f8fa6ea08489d69eb7813
 SHA512 
988b755d1b52051f5d4115a64f598e5d6a6a9d1756e8136a00a159001199bf684c4961245c1010f0414e174f61964e1e3f32f437810708cd77742b9b89946166
+DIST rarlinux-x64-701.tar.gz 730436 BLAKE2B 
271b18f636250876adf924752298e283922c87d1ea71084ebd4263f5c8db189b093faf0b66362db781ad0fd9c6154a9a3a1e7d013c7c6cee56ad8fd7fb772fa7
 SHA512 
3effdc32f5dbad414d4a434b4ec430c0dc29fd6a758036395712f61c588067547c3919025545d27e9a7fef6ba8de1773f2dd9a7e20dfa2178b2b9f9bd2440ff9
 DIST winrar-x64-700.exe 3911632 BLAKE2B 
f2191937e1e3d0938f0ca2c56467c838415401a20a0966efad050e9fde5fe7fc6e05694c98fd06daa6fe4d7c03f588e60d456d8d510c849929a52dab36d6a10a
 SHA512 
bc94f526d4dd751a44071dd6f540f2957d96f5c6500d7e5bb41ec6581bb0a584a6bb91fe13f7a1d9c7749c4601b1fe95f2a12a204b73bdc9a37c83cff7ac35c3
+DIST winrar-x64-701.exe 3912088 BLAKE2B 
46d379c51d6c2eba1b632c3f4e6f56529a0218db3cf4d4a4e52de08103d1de15dd6974c5375885dd19d1a29279f664d6df49056f57c71d8d3858bb0266d4eb99
 SHA512 
61daee2ce82c3b8e79f7598a79d72e337220ced7607e3ed878a3059ac03257542147dbd377e902cc95f04324e2fb7c5e07d1410f0a1815d5a05c5320e5715ef6

diff --git a/app-arch/rar/rar-7.01.ebuild b/app-arch/rar/rar-7.01.ebuild
new file mode 100644
index 000000000000..3b246fc046e2
--- /dev/null
+++ b/app-arch/rar/rar-7.01.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PV="${PV/./}"
+URI_AMD64="https://www.rarlab.com/rar/rarlinux-x64-${MY_PV}.tar.gz";
+URI_X86="https://www.rarlab.com/rar/rarlinux-x32-${MY_PV}.tar.gz";
+URI_WIN64="https://www.rarlab.com/rar/winrar-x64-${MY_PV}.exe";
+
+inherit unpacker
+
+DESCRIPTION="RAR compressor/uncompressor"
+HOMEPAGE="https://www.rarlab.com/";
+SRC_URI="
+       all-sfx? (
+               ${URI_AMD64}
+               ${URI_X86}
+               ${URI_WIN64}
+       )
+       amd64? ( ${URI_AMD64} )
+       x86? ( ${URI_X86} )
+"
+S="${WORKDIR}/${PN}"
+
+LICENSE="BSD BSD-2 RAR"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="all-sfx"
+RESTRICT="bindist mirror"
+
+RDEPEND="sys-libs/glibc"
+BDEPEND="all-sfx? ( app-arch/unrar )"
+
+DOCS=( "acknow.txt" "rar.txt" "readme.txt" "whatsnew.txt" )
+
+QA_PREBUILT="
+       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/unrar
+       opt/rar/rar
+       opt/rar/WinCon.SFX
+       opt/rar/WinCon64.SFX
+       opt/rar/Zip.SFX
+       opt/rar/Zip64.SFX
+"
+
+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
+
+       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
+                               # Use shipped unrar, as current version in tree 
segfaults
+                               # Bug #932666
+                               # unpack_rar ./w64.rar
+                               "${S}"/unrar x ./w64.rar || die
+                               mv Default.SFX default-win64.sfx || die
+                               mv Default32.SFX default-win32.sfx || die
+                       else
+                               die "Unknown SFX file '${_file}'!"
+                       fi
+               done
+       fi
+}
+
+src_compile() { :; }
+
+src_install() {
+       exeinto /opt/rar
+       doexe rar unrar
+
+       insinto /opt/rar
+       doins rarfiles.lst
+
+       if use all-sfx; then
+               doins "${WORKDIR}"/sfx/*.{sfx,SFX}
+       else
+               doins default.sfx
+       fi
+
+       dodir /opt/bin
+       dosym ../rar/rar /opt/bin/rar
+       dosym ../rar/unrar /opt/bin/unrar
+
+       docinto html
+       dodoc order.htm
+
+       einstalldocs
+}

Reply via email to