summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2023-10-05 16:05:04 +0200
committerConrad Kostecki <conikost@gentoo.org>2023-10-05 16:05:04 +0200
commit436a09dcba54d62095311aa396e0e7824050a6de (patch)
treefe4c1e8be87d770a3d3a0b1cf37ccdbaf86d81ea /app-arch/rar
parentdev-util/intel-graphics-compiler: reenable vectorcompiler (diff)
downloadgentoo-436a09dcba54d62095311aa396e0e7824050a6de.tar.gz
gentoo-436a09dcba54d62095311aa396e0e7824050a6de.tar.bz2
gentoo-436a09dcba54d62095311aa396e0e7824050a6de.zip
app-arch/rar: add 6.24
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-arch/rar')
-rw-r--r--app-arch/rar/Manifest3
-rw-r--r--app-arch/rar/rar-6.24.ebuild120
2 files changed, 123 insertions, 0 deletions
diff --git a/app-arch/rar/Manifest b/app-arch/rar/Manifest
index bb5c86da5223..5040863fc82f 100644
--- a/app-arch/rar/Manifest
+++ b/app-arch/rar/Manifest
@@ -1,3 +1,6 @@
DIST rarlinux-x32-623.tar.gz 627653 BLAKE2B fc7475374adaf4e53367c70f4b95aaa4e05e6b78aeece97f79f266bc73ed7fc00ad05eb0b4d91bc62b8b5373ff6c17a91536f5b6a670942e4a514e5a483e1ded SHA512 95d7319be5cbe8544a93cabfa457ac723b204c3a0799a2fa6408a21bdd75ad3b49e2c030242b6c0473c05c4079eba113158b525400e3612bda56d8fbc4af6c3a
+DIST rarlinux-x32-624.tar.gz 627966 BLAKE2B 8069b5a33bbc229c1f64564bc483e98da8996388890defe03cd430571a269ec9a0d935bdb9ca24d97a5ca2d2eff078c50f2ed158a5d48a263312063ff56b073d SHA512 967ca151e2927f427738c49eedd0bd4a0c1e56bd43d417bfbfb1e940d553c30a4860b279b90a47151838312f8e788f0fee13c424ee3b31ab2574a077de957234
DIST rarlinux-x64-623.tar.gz 614350 BLAKE2B a9ce80c6ab920e1c74d9b5fa4af2a2e0e46b638a4aced4cb6e88068518c1c3d702f20b44d9ce7c7c5601096254f01d6992c2d4a97a16554f8cfc67ca3600ce2f SHA512 0aa3e9c6b08e12343b1637929a3ce807196205ecfc5f6c98c464f8d8f40c544ec594a3be514a02d0e3a86c0a5d5e68208c993ab9d94d847249547fbb713fcfe2
+DIST rarlinux-x64-624.tar.gz 614146 BLAKE2B 4cad338a68234a8223b63427fbb2d735b65012d79466c0ef799b5764e2df8e575c3e42dcaa37c8a3e5e51474633452dc4e832b05a7c13164e1778d4f741edc49 SHA512 04b935d918d7636bf7cececee2c306f6c586ac363932a30529dcf0e5e199823ca976269acf26456f9a91830dfe909d67ff0a13e55a68096e59875e46e0e0b0de
DIST winrar-x64-623.exe 3595296 BLAKE2B 8ff54390827070ecd1f42f53d5010e150bd4ccf38dd9bb85a9ee0e3fffa3c489e72e79be0bdecb90d995f19f924bee643f3c1c433d4d932a9c90589f29491887 SHA512 5ba4cb71d9579b01e54835f9559ab39fddbff5f3bc262e0c9f67ea450d490122326d46ae8f8a55b503f96ba1e5963f31ca3ff477ff485bab0fc3e5eac793d8dd
+DIST winrar-x64-624.exe 3589048 BLAKE2B 5afb3069bea3e73f6f8aca103a99fb83d09fc0bf692757e5213515423918a7219a86dc0a5936131a180a0e324b04c9685cb47a493cb69f61f7673d4f45bcac26 SHA512 f5f61a3cf4440d9fa59e7093341a293c0b42081b547992284e54cef61eee1f817fdbbbcc2cb921b077f8bce5b9280072c0f3b5a1bff266ef23c3d9a792d24b9f
diff --git a/app-arch/rar/rar-6.24.ebuild b/app-arch/rar/rar-6.24.ebuild
new file mode 100644
index 000000000000..cb2c7ce9afaa
--- /dev/null
+++ b/app-arch/rar/rar-6.24.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
+}