summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-03-09 03:52:01 +0000
committerMike Frysinger <vapier@gentoo.org>2011-03-09 03:52:01 +0000
commit9402408a206554910991c2b7f149874b42741423 (patch)
tree49052289058d22e3ffe2a2c4d8be437778bb3116 /app-arch
parentVersion bump #357827 by Rafał Mużyło. (diff)
downloadgentoo-2-9402408a206554910991c2b7f149874b42741423.tar.gz
gentoo-2-9402408a206554910991c2b7f149874b42741423.tar.bz2
gentoo-2-9402408a206554910991c2b7f149874b42741423.zip
Version bump #357803 by tman.
(Portage version: 2.2.0_alpha25/cvs/Linux x86_64)
Diffstat (limited to 'app-arch')
-rw-r--r--app-arch/rar/ChangeLog7
-rw-r--r--app-arch/rar/rar-4.0.7.ebuild80
2 files changed, 86 insertions, 1 deletions
diff --git a/app-arch/rar/ChangeLog b/app-arch/rar/ChangeLog
index b14c0e32b639..009dfa484284 100644
--- a/app-arch/rar/ChangeLog
+++ b/app-arch/rar/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-arch/rar
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/rar/ChangeLog,v 1.67 2011/01/01 11:21:19 phajdan.jr Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/rar/ChangeLog,v 1.68 2011/03/09 03:52:01 vapier Exp $
+
+*rar-4.0.7 (09 Mar 2011)
+
+ 09 Mar 2011; Mike Frysinger <vapier@gentoo.org> +rar-4.0.7.ebuild:
+ Version bump #357803 by tman.
01 Jan 2011; Pawel Hajdan jr <phajdan.jr@gentoo.org> rar-3.9.3.ebuild:
x86 stable wrt bug #349832
diff --git a/app-arch/rar/rar-4.0.7.ebuild b/app-arch/rar/rar-4.0.7.ebuild
new file mode 100644
index 000000000000..385f6ff1397e
--- /dev/null
+++ b/app-arch/rar/rar-4.0.7.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/rar/rar-4.0.7.ebuild,v 1.1 2011/03/09 03:52:01 vapier Exp $
+
+MY_PV=${PV:0:4}b${PV:4}
+
+DESCRIPTION="RAR compressor/uncompressor"
+HOMEPAGE="http://www.rarsoft.com/"
+URI_x86="http://www.rarlab.com/rar/rarlinux-${MY_PV}.tar.gz"
+URI_amd64="http://www.rarlab.com/rar/rarlinux-x64-${MY_PV}.tar.gz"
+URI_w64="http://www.rarlab.com/rar/winrar-x64-${MY_PV//.}.exe"
+SRC_URI="x86? ( ${URI_x86} )
+ amd64? ( ${URI_amd64} )
+ all_sfx? (
+ ${URI_x86}
+ ${URI_amd64}
+ ${URI_w64}
+ )"
+
+LICENSE="RAR"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="all_sfx static"
+
+DEPEND="all_sfx? ( app-arch/unrar )"
+RDEPEND="sys-libs/glibc"
+
+S=${WORKDIR}/${PN}
+
+QA_DT_HASH="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_DT_HASH}
+
+src_unpack() {
+ use x86 && unpack ${URI_x86##*/}
+ use amd64 && unpack ${URI_amd64##*/}
+ rm -f "${S}"/license.txt
+ if use all_sfx ; then
+ mkdir sfx
+ cd sfx
+ unpack ${URI_x86##*/}
+ mv rar/default.sfx default-elf32.sfx || die
+ unpack ${URI_amd64##*/}
+ mv rar/default.sfx default-elf64.sfx || die
+ ln -s "${DISTDIR}"/${URI_w64##*/} w64.rar
+ unpack ./w64.rar
+ mv Default.SFX default-win32.sfx || die
+ mv Default64.SFX default-win64.sfx || die
+ fi
+}
+
+src_compile() { :; }
+
+src_install() {
+ exeinto /opt/rar
+ doexe rar unrar || die
+ use static && { newexe rar_static rar || 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
+}