diff options
Diffstat (limited to 'app-arch')
-rw-r--r-- | app-arch/rar/Manifest | 3 | ||||
-rw-r--r-- | app-arch/rar/rar-5.6.0_p20180624.ebuild | 109 |
2 files changed, 112 insertions, 0 deletions
diff --git a/app-arch/rar/Manifest b/app-arch/rar/Manifest index e7824e09eafe..fcdc9ca7ddbe 100644 --- a/app-arch/rar/Manifest +++ b/app-arch/rar/Manifest @@ -1,9 +1,12 @@ DIST rarlinux-5.5.0_p20170811.tar.gz 546839 BLAKE2B d90bda3092fb636fee1db4f222632cf3d45c99f330298521b2a0957cd7bd4845f4518cf394e03a4e302d45cf73a37f5da5ac0cd7eba08a4859fd221697656c20 SHA512 c437d0be55ea90ae1dd9d657517d17d9edbba07cd77325785d8d503883847edeece2cc3993d3beec3a5b36b6830383b7026fbfc53b18f490288395994bc532cb DIST rarlinux-5.6.0_beta4_p20180513.tar.gz 551835 BLAKE2B cc6161b784d2191d4036e755a74b9706bbf021568926281380e75612310f8e6c3c31554809a4efb4e75dd2790b0a2eea2c467f76666a0c0dd7ec067225d57718 SHA512 36a80de1178b2409a46b81cb8c852931c9cb400dcc7c67c8322072947617a805f7bf721585200d1d22588c109d3109da478a6a9c9530aa7c23420c8960336f32 DIST rarlinux-5.6.0_beta5_p20180604.tar.gz 552421 BLAKE2B 3c298e432a54efd61569a21fb4c430eac927846f95ed14bf7caa3b893e328ce175e1ba8a5908a0058380fea9a7cfd8b40c959ce87f3a831fcce717cbc3cd80b0 SHA512 9d2b4ed0b904e60ff744f3c5b0fbacb35fa879be8029f7aacecd0b1eb4499b9b7ed9fb0511fe756d90c46f7c288ceb348330f5d8d5f0843c9aae3bfdf76b472d +DIST rarlinux-5.6.0_p20180624.tar.gz 552245 BLAKE2B 9988b67d545df89bb7087c2bbec5a6fc47d99f6fd8a97e3581f135dc829a43e5c044248e95f60f7cd29370a0955a3c4c8a6667bfcead17301dc0f45ddae0057f SHA512 a0baba489c9268bc25c814c94747c117de66599f91da875b0e0b8233c24910f0e831f8b407f7a9bd8d709da6bdea4ef50306ce456ea5089f893619b8ee5b780f DIST rarlinux-x64-5.5.0_p20170811.tar.gz 536028 BLAKE2B be453cab6720abc4b01f5aef6c5874b0ff328656f8452b2a671b1b5305427dbb0de2af4084e25e972c69fe4ca4072b10f21d66f7fee23a3e205b0b4f533c8b7f SHA512 1ca8cf7fbe526b43bdc9aeeccb6a0d86efd3bbaeee554e807d58ab62857294abc89662bb42b17b2cfe7e6739876c6345455cd027abbc4cb84312c58314278a66 DIST rarlinux-x64-5.6.0_beta4_p20180513.tar.gz 541066 BLAKE2B 7026b8650b85bd8df8b6a1fd7511305fbfceb21fa705e7bb81b0a7b60074464754a8d00cc6a6efc207ed4741547e11459b6a03e74bec9bdfcfa410f216fb753b SHA512 72a027d8cd7c05e1627772a91744883fe43968e9a0ceb627c2f16f7ac62a4e0a11e67a40247e064d16445b18bf1f666acac2111cb63ae3192ed9cbe71a552b85 DIST rarlinux-x64-5.6.0_beta5_p20180604.tar.gz 541805 BLAKE2B 8296d17fbdd2216fd65787ae561d4a10443fb2d838faeea7a7fbe272787a5cec259581d71cab06cc59c3e147f7fb07e4e0839620c78313da74b7cbdec29afae1 SHA512 3869f9cdb7f458c26e2f54c76b4ddb6d9bc4bc1bc74b54481787a4de2656d033231257c1f9b6e010787fcd3a6dd39de6e162ceeaf890708d3c9d725f5b933609 +DIST rarlinux-x64-5.6.0_p20180624.tar.gz 541604 BLAKE2B 2fd865af38db47c556341bb2482ee9af83857bc196e08f9b47d5a0f8ccae708931c09dcca2115866d37c03b77f7548da87cf2e778f003e9a432634b9ae378aae SHA512 e8427d12016d4298d1e3ca3dc32f367e2b7a407572e48c665eaec796c3538d50349760b5691bc6d58256a5470dc0c6637740fcdc6e8a9bd420193fae16e209eb DIST winrar-x64-5.5.0_p20170811.exe 2220872 BLAKE2B a37783f427440a5166021475f024ca6e281b4f0d39926e55c00588e51d371bdd1bd16bd04ed65c363f7aeef6d7e2b0ba796325f7f290e45cfd8c09048ae25489 SHA512 f2aa40bb875be7f88cd618b1f5e02cfe0c5fb584f4e27d06531aaee018e613a70be7b7d3e8b92448381dc83605db6bf044cbecc52f63b6045193fef07601be66 DIST winrar-x64-5.6.0_beta4_p20180513.exe 3184768 BLAKE2B cc1ed21de598ac696ecf14bceeb4bb3050d83042c226f8ccd1c5195fbb43bbbb8dea614ccffda23297bafccd767b9eb64a71b1449cb8449347134137e2f3a199 SHA512 a405ef876f5385f28fcbb6964d7fbb5efb4f35686e27fe67574dd36a3e043e492757c0bc274b8b419e0b519fba175c191c536e2b1fb9caac11843b893ea6f642 DIST winrar-x64-5.6.0_beta5_p20180604.exe 3183568 BLAKE2B 39c9fa431acc093c416c9bd980d0555ea77bf5f0412fd5a988c941a667538e7d4c76049dfe1793e9106a8a07189075461b48a0a8e5c6b90ca2a83a4642e5d1fb SHA512 7ec9bd69e027a9d5510932cbd79898c67a1484f040c334760bc160f4bd275390439a5ec00a224fc472fd85014b2c6417e45a817c65cf03c774be83c7cdf99d17 +DIST winrar-x64-5.6.0_p20180624.exe 3180248 BLAKE2B 3ddbef82e2ecee7960c5d282de905a2d4d279c3ebae9ceb9e5b72a822d352a80d189a76514a414840ea5ad8002d718435757c860a0935134b6eba01b70e0f444 SHA512 61896901b580476d4c12d40d42eef725de270beb0b01526e7d5d4e02847a7b67b0380f0a365e92eafe2a2303d60945146457d43430aace51c9a443a8b1ceef48 diff --git a/app-arch/rar/rar-5.6.0_p20180624.ebuild b/app-arch/rar/rar-5.6.0_p20180624.ebuild new file mode 100644 index 000000000000..182140ef84a4 --- /dev/null +++ b/app-arch/rar/rar-5.6.0_p20180624.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2018 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 +} |