summaryrefslogtreecommitdiff
path: root/app-arch/rar
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-arch/rar
reinit the tree, so we can have metadata
Diffstat (limited to 'app-arch/rar')
-rw-r--r--app-arch/rar/Manifest7
-rw-r--r--app-arch/rar/metadata.xml14
-rw-r--r--app-arch/rar/rar-5.5.0_p20170811.ebuild109
3 files changed, 130 insertions, 0 deletions
diff --git a/app-arch/rar/Manifest b/app-arch/rar/Manifest
new file mode 100644
index 000000000000..ba5fae1aafe6
--- /dev/null
+++ b/app-arch/rar/Manifest
@@ -0,0 +1,7 @@
+DIST rarlinux-5.5.0_p20170811.tar.gz 546839 SHA256 09af93f7d8c39baf8200fddfe507ca416a9f11cbe30a41b8d1346fa1cf3fdb0e SHA512 c437d0be55ea90ae1dd9d657517d17d9edbba07cd77325785d8d503883847edeece2cc3993d3beec3a5b36b6830383b7026fbfc53b18f490288395994bc532cb WHIRLPOOL 6f06d00a3e4908366fe3f7f68f45f0ad59c9f2d50f77a096dfadb671bf6653141e1f3e99be1afd3f6336a4fcc56a99e2ef3827cc9cb55bbfdd24e6aff16543a1
+DIST rarlinux-x64-5.5.0_p20170811.tar.gz 536028 SHA256 798fa2815f62062eb2e7ca3750fcf30a9af212998f29738a33f12d819e866c4f SHA512 1ca8cf7fbe526b43bdc9aeeccb6a0d86efd3bbaeee554e807d58ab62857294abc89662bb42b17b2cfe7e6739876c6345455cd027abbc4cb84312c58314278a66 WHIRLPOOL 590d482caa7c50ff9b5ba99d06a2f34930327ed39a3ddb24d88c4b949e9be4caa95f6131758c63b4cdf0b02bb63ecce36e26597b5c30c7817c4ed45a204d9c0e
+DIST winrar-x64-5.5.0_p20170811.exe 2220872 SHA256 367d47ad48822caeedf73ce9f26a3a92db6f9f2eb18ee6d650806959b6d7d0a2 SHA512 f2aa40bb875be7f88cd618b1f5e02cfe0c5fb584f4e27d06531aaee018e613a70be7b7d3e8b92448381dc83605db6bf044cbecc52f63b6045193fef07601be66 WHIRLPOOL d3a54d02d9218220705b1789f7cde0de455e1f5fb67c576ebfce72da9d08106ab47b4d60af7bd3ea3de394ebe20112a111edd4847e84e606b5d0c4a40d5d9124
+EBUILD rar-5.5.0_p20170811.ebuild 2281 SHA256 a1e74cbdafdc699e3c4aaeafc6d691c23a221882c12ede64d4f4f603fa2214f1 SHA512 aa68c6bc07bca69dc599dfd7553bdcd23f884fcf353ea6ceecd1c0822f799016d2958eb75bcbe937c10352bf1aab7d60bd8b6f6934244fd842d01da749f6dd28 WHIRLPOOL ddc77a5290cd239f911859fe5d1a8fc405fa14b9ad22a2fab1f90d697fcc70b8f606c1fc4b108cec461903d4091b02bcb04c41bfa7caa1667a4410402ef5b329
+MISC ChangeLog 4643 SHA256 e19ca824548e5d47ca8f59b4b00a22458cb68b613e532bded7db7992171be187 SHA512 dbbf5e11e49062c40064aad078d947f6398c892bc83788999cc1b11f21aff5da6646b537fa56ac4c3eecf4e6824480d6ad5a2427eb23bf6f078405e6070486bb WHIRLPOOL 1ef116fb542ea5825e7cd769294351bb71e399c2b35518f8d052f3d82065fa78a97625ad12a384c942c766ef21bdc418ad27168de9e5c1c969e06362dc6c17a6
+MISC ChangeLog-2015 11861 SHA256 55cd4a66776eba230f3f02db03e718d1c7a3837b4d5fb8bc449de8be1c53c52d SHA512 ef507e9c9e270a484d558189880d75f7719088b1b15ba437ce0ed44b5965049a12b5b0cd97e3851a373e16f763d0d380961f6c64ec92d6cfec97689a8b81564d WHIRLPOOL e52e771268deb63a9d001bf97ff4c9f78bc7349fe425217febd1b8b1746060118661e15f8cded25df5f1fbf26638f1728a5611843cc85ed632514f6c9ada6bf1
+MISC metadata.xml 436 SHA256 4ed725c9f6678f49453554ca684b82581c0d835925e1b8d05d0722bd39d30c97 SHA512 9748890b95ef59d0fc815cc71757c10e77914ea73d254770a8669d8b766d95c65a90eb941a360b361d4e0c28f1abde6ba15a84a77609820aea7eaa25d2e913a1 WHIRLPOOL 8d3bc2360f4f59be8715064044da0bc2f4c52151950aa9c029f404aae31b97ef752195bf041a1edc9ca9463e5ccd0fee6361dd837d97f2a1fa113dd75aa04d7f
diff --git a/app-arch/rar/metadata.xml b/app-arch/rar/metadata.xml
new file mode 100644
index 000000000000..89f2e872e662
--- /dev/null
+++ b/app-arch/rar/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>whissi@gentoo.org</email>
+ <name>Thomas Deutschmann</name>
+ </maintainer>
+ <use>
+ <flag name="all_sfx">
+ Install all SFX (Self-Extracting) files rather than just the native
+ format (allows creation of Windows EXEs on Linux ELF systems)
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/app-arch/rar/rar-5.5.0_p20170811.ebuild b/app-arch/rar/rar-5.5.0_p20170811.ebuild
new file mode 100644
index 000000000000..05ff5abaad7c
--- /dev/null
+++ b/app-arch/rar/rar-5.5.0_p20170811.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
+}