summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-12-26 23:02:23 +0000
committerMike Frysinger <vapier@gentoo.org>2010-12-26 23:02:23 +0000
commitc68ca526a424e00ee32ec7c4ef575e3e3bf46320 (patch)
tree86ce2bf27e8938e970428e9a5fab5c07770e926d /app-arch/rar
parentold (diff)
downloadgentoo-2-c68ca526a424e00ee32ec7c4ef575e3e3bf46320.tar.gz
gentoo-2-c68ca526a424e00ee32ec7c4ef575e3e3bf46320.tar.bz2
gentoo-2-c68ca526a424e00ee32ec7c4ef575e3e3bf46320.zip
Add USE=static and USE=all_sfx (for installing all SFX files).
(Portage version: 2.2.0_alpha10/cvs/Linux x86_64)
Diffstat (limited to 'app-arch/rar')
-rw-r--r--app-arch/rar/ChangeLog8
-rw-r--r--app-arch/rar/metadata.xml6
-rw-r--r--app-arch/rar/rar-3.9.3-r1.ebuild78
3 files changed, 91 insertions, 1 deletions
diff --git a/app-arch/rar/ChangeLog b/app-arch/rar/ChangeLog
index a0ea3c1b5b04..b0157085ee06 100644
--- a/app-arch/rar/ChangeLog
+++ b/app-arch/rar/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-arch/rar
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/rar/ChangeLog,v 1.64 2010/10/05 09:48:44 xmw Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/rar/ChangeLog,v 1.65 2010/12/26 23:02:23 vapier Exp $
+
+*rar-3.9.3-r1 (26 Dec 2010)
+
+ 26 Dec 2010; Mike Frysinger <vapier@gentoo.org> +rar-3.9.3-r1.ebuild,
+ metadata.xml:
+ Add USE=static and USE=all_sfx (for installing all SFX files).
*rar-3.9.3 (05 Oct 2010)
diff --git a/app-arch/rar/metadata.xml b/app-arch/rar/metadata.xml
index 54494c4bb860..5fa64587dcbe 100644
--- a/app-arch/rar/metadata.xml
+++ b/app-arch/rar/metadata.xml
@@ -5,4 +5,10 @@
<maintainer>
<email>maintainer-needed@gentoo.org</email>
</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-3.9.3-r1.ebuild b/app-arch/rar/rar-3.9.3-r1.ebuild
new file mode 100644
index 000000000000..ef4293d72aaf
--- /dev/null
+++ b/app-arch/rar/rar-3.9.3-r1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/rar/rar-3.9.3-r1.ebuild,v 1.1 2010/12/26 23:02:23 vapier Exp $
+
+DESCRIPTION="RAR compressor/uncompressor"
+HOMEPAGE="http://www.rarsoft.com/"
+URI_x86="http://www.rarlab.com/rar/rarlinux-${PV}.tar.gz"
+URI_amd64="http://www.rarlab.com/rar/rarlinux-x64-${PV}.tar.gz"
+URI_w64="http://www.rarlab.com/rar/winrar-x64-${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
+}