summaryrefslogtreecommitdiffstats
path: root/app-arch/unrar/unrar-3.7.3-r1.ebuild
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
commitca9627e70852f6b2e835660df870fe3ab405882d (patch)
tree0a008b1d5b16fa0679a195ed7b5662c7891f591c /app-arch/unrar/unrar-3.7.3-r1.ebuild
downloaddarklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip
Initial import
Diffstat (limited to 'app-arch/unrar/unrar-3.7.3-r1.ebuild')
-rw-r--r--app-arch/unrar/unrar-3.7.3-r1.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/app-arch/unrar/unrar-3.7.3-r1.ebuild b/app-arch/unrar/unrar-3.7.3-r1.ebuild
new file mode 100644
index 0000000..b3e6fd6
--- /dev/null
+++ b/app-arch/unrar/unrar-3.7.3-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/unrar/unrar-3.7.3.ebuild,v 1.9 2007/02/17 15:12:18 vapier Exp $
+
+#SDS
+inherit toolchain-funcs eutils
+#EDS
+
+
+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 ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="!app-arch/unrar-gpl"
+
+S=${WORKDIR}/unrar
+
+src_compile() {
+ emake \
+ -f makefile.unix \
+ CXXFLAGS="${CXXFLAGS}" \
+ CXX="$(tc-getCXX)" \
+ STRIP="true" || 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
+}