summaryrefslogtreecommitdiffstats
path: root/app-arch/unrar/unrar-3.5.4-r2.ebuild
blob: 10231c0ae7ea508f80d1aa7568d0b145a515ab58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/unrar/unrar-3.5.4.ebuild,v 1.1 2005/11/09 01:38:07 vapier Exp $

inherit eutils

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 ~hppa ~ppc ~ppc-macos ~ppc64 ~sparc x86"
IUSE=""

DEPEND="!app-arch/unrar-gpl"

S=${WORKDIR}/unrar

src_compile() {
	emake -f makefile.unix CXXFLAGS="$CXXFLAGS" || die "emake failed"
}

src_install() {
	dobin unrar || die "dobin failed"
	dodoc readme.txt
#SDS
	epatch "${FILESDIR}"/unrar-3.5.3_fix.patch || die
	epatch "${FILESDIR}"/ftello_unrar_fix.patch || die
	emake -f makefile.unix CXXFLAGS="$CXXFLAGS" clean || die "emake failed"
	emake -f makefile.unix CXXFLAGS="$CXXFLAGS" lib || die "emake failed"

        mkdir -p ${D}/usr/lib/                                                  
        mkdir -p ${D}/usr/include/libunrar3/                                    
        install -s -D -m 755 libunrar3.so ${D}/usr/lib/libunrar3.so
        install -D -m 644 dll.hpp ${D}/usr/include/libunrar3/dll.hpp  
#EDS
}