app-arch/unrar: import unrar-4.0.7 from portage

BUG=chromium-os:25974
TEST=emerge-{x86,amd64,arm}-generic unrar

Change-Id: Ic22820b4b713ed175726efc8a24e31d955f764e4
Reviewed-on: https://gerrit.chromium.org/gerrit/16321
Commit-Ready: Ben Chan <benchan@chromium.org>
Reviewed-by: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
This commit is contained in:
Ben Chan 2012-02-21 15:39:55 -08:00 committed by Gerrit
parent 7385964e03
commit c922afe735
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST unrarsrc-4.0.7.tar.gz 152853 RMD160 0629f8600e9ddb298f59fc05b9569bd40703acaf SHA1 e4c8b0d47278475f3dfb77e8497f5818eca3d4a0 SHA256 eac9ed7493870ca7f67b23e9208aef1db701c381123ac462e97f703777a33071

View File

@ -0,0 +1,33 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/unrar/unrar-4.0.7.ebuild,v 1.8 2011/12/18 20:02:37 halcy0n Exp $
inherit toolchain-funcs flag-o-matic
MY_PN=${PN}src
DESCRIPTION="Uncompress rar files"
HOMEPAGE="http://www.rarlab.com/rar_add.htm"
SRC_URI="http://www.rarlab.com/rar/${MY_PN}-${PV}.tar.gz"
LICENSE="unRAR"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
IUSE=""
RDEPEND="!<=app-arch/unrar-gpl-0.0.1_p20080417"
S=${WORKDIR}/unrar
src_compile() {
append-lfs-flags #356155
emake \
-f makefile.unix \
CXXFLAGS="${CXXFLAGS}" \
CXX="$(tc-getCXX)" \
STRIP="true" || die "emake failed"
}
src_install() {
dobin unrar || die
dodoc readme.txt
}