diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2023-06-02 09:56:39 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2023-06-02 09:56:39 +0200 |
commit | facfb4d0e567cdc9bc990fae71adb648a1427278 (patch) | |
tree | ea882d8899f2895a81767161b5a17bacd4f788f9 /app-arch/rar | |
parent | net-misc/ntp: update man page path for USE=openntpd (diff) | |
download | gentoo-facfb4d0e567cdc9bc990fae71adb648a1427278.tar.gz gentoo-facfb4d0e567cdc9bc990fae71adb648a1427278.tar.bz2 gentoo-facfb4d0e567cdc9bc990fae71adb648a1427278.zip |
app-arch/rar: add 6.22
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-arch/rar')
-rw-r--r-- | app-arch/rar/Manifest | 3 | ||||
-rw-r--r-- | app-arch/rar/rar-6.22.ebuild | 120 |
2 files changed, 123 insertions, 0 deletions
diff --git a/app-arch/rar/Manifest b/app-arch/rar/Manifest index d1458b3cedf0..df59f625e37e 100644 --- a/app-arch/rar/Manifest +++ b/app-arch/rar/Manifest @@ -1,3 +1,6 @@ DIST rarlinux-x32-621.tar.gz 627883 BLAKE2B 07957401eea5efad7295a4da31f56bdb5ea64935b193f594f8cd5755aca9b4ffded9a2df834216c604a65b1fb7c0ab99c59591afb7f54dc65c6d74ff0b37cc0a SHA512 3e83806ccc40edfdc0740ca416cac2480e475fad72be4e245d500272f817c35f4c1ed05f7a40918f463b182d52454a3c02bf469298d56b973977fbda2d261b60 +DIST rarlinux-x32-622.tar.gz 627428 BLAKE2B eeb78f7dac2777347d54d203645ca9861c89d4e9bf47e1afc369eadde789d837b9537bc602cf6bb9262b188f70ecbe236463f15e12ef986d5b542d6ccb1a3294 SHA512 0d0f2e374185afc6541aa54f059d4d21a4bc6eaddc8ca42fa054866db1ddfbf7022ecaf35dc3677198ad57e4d84f17e3dd02f501b6bc48ea0eb54ce9d5168c05 DIST rarlinux-x64-621.tar.gz 614402 BLAKE2B 8ab72e52aee82942a5917f6742fdb135e6be9187609e3a857103b8758385f85cde1e95bc2c13e87e20d6b39b1e5bb77da7f917b2ff8a01e6baece9b462dd9135 SHA512 3f990213b2366e1c829ec24f9cdb957a29de45f2d12b9a35de54709443f977aab495d5bfd13ab2b46d77b83283635c827b614a7c33585925ca4fd4d9405e1c90 +DIST rarlinux-x64-622.tar.gz 614091 BLAKE2B d158052f80dc300f7a5c189d14bf8fa484a857e459c7c117fe9da4e7fc86f5a41b9176742038f11b8564ea78b1cf137eb12dfddb0df1c44bd08c0d4cf8de3296 SHA512 a38a930c6861aca0f1c7ce28f4174f464b537f4bacaca52b065c5cf31d3c331421c481d522785471874e000df441d8ea810d36f7ecc8be9dc849c73683af47d9 DIST winrar-x64-621.exe 3585248 BLAKE2B b65643c87d422db0094ac54f855c34345f4d07780e5b91a0ee203e87ffd3e10091ef2338a269a3f01c40cc4324b4b3f2254614e42535681d896b627db918b8e8 SHA512 42f4bcbff08f08dd45097b9ac07444bb3e157d6e9055c307de3f1cf86b62900e9cdf5931cee305e0bb0991a6f5ef060196cc42a29b8fc7d233032036a42b1494 +DIST winrar-x64-622.exe 3594776 BLAKE2B f3c9e90e9a84951cb57522436e153b1d0c8c4f4e13a66126937ad68a5d773ee55b394c020f7fddfbebee8cc1b24721566e2a1cc5fcf0724108dbe5a5446d0a84 SHA512 f73a6b37f96db444c8099c8f41c444bc216ce57c26b1401d3be44531ed28aa2e59802b71c6191992602ef21fe7a6e20414af87d6d3ba0071acc89b9167a1718f diff --git a/app-arch/rar/rar-6.22.ebuild b/app-arch/rar/rar-6.22.ebuild new file mode 100644 index 000000000000..cb2c7ce9afaa --- /dev/null +++ b/app-arch/rar/rar-6.22.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2023 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 + unpack_rar ./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 + + 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 +} |