1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="RAR compressor/uncompressor"
8 HOMEPAGE="http://www.rarsoft.com/"
9 URI_x86="http://www.rarsoft.com/rar/rarlinux-${MY_PV}.tar.gz"
10 URI_amd64="http://www.rarsoft.com/rar/rarlinux-x64-${MY_PV}.tar.gz"
11 URI_w64="http://www.rarsoft.com/rar/winrar-x64-${MY_PV//.}.exe"
12 SRC_URI="x86? ( ${URI_x86} )
13 amd64? ( ${URI_amd64} )
22 KEYWORDS="-* amd64 ~x86"
25 DEPEND="all_sfx? ( app-arch/unrar )"
26 RDEPEND="sys-libs/glibc"
30 QA_FLAGS_IGNORED="opt/rar/default.sfx
31 opt/rar/default-elf32.sfx
32 opt/rar/default-elf64.sfx
33 opt/rar/default-win32.sfx
34 opt/rar/default-win64.sfx
41 QA_PRESTRIPPED=${QA_FLAGS_IGNORED}
44 use x86 && unpack ${URI_x86##*/}
45 use amd64 && unpack ${URI_amd64##*/}
46 rm -f "${S}"/license.txt
51 mv rar/default.sfx default-elf32.sfx || die
52 unpack ${URI_amd64##*/}
53 mv rar/default.sfx default-elf64.sfx || die
54 ln -s "${DISTDIR}"/${URI_w64##*/} w64.rar
56 mv Default.SFX default-win32.sfx || die
57 mv Default64.SFX default-win64.sfx || die
65 doexe rar unrar || die
66 use static && { newexe rar_static rar || die ; }
69 dosym ../rar/rar /opt/bin/rar || die
70 dosym ../rar/unrar /opt/bin/unrar || die
74 doins "${WORKDIR}"/sfx/*.{sfx,SFX} || die
76 doins default.sfx || die
78 doins rarfiles.lst || die