blob: 3c6db394b5d2496165c844be65f271f1548da1ae (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/arj/arj-3.10.22-r2.ebuild,v 1.10 2010/03/29 23:43:41 abcd Exp $
EAPI=3
inherit autotools eutils toolchain-funcs
PATCH_LEVEL=4
DESCRIPTION="Utility for opening arj archives"
HOMEPAGE="http://arj.sourceforge.net"
SRC_URI="mirror://debian/pool/main/a/arj/${P/-/_}.orig.tar.gz
mirror://debian/pool/main/a/arj/${P/-/_}-${PATCH_LEVEL}.diff.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ia64 ppc ~ppc64 sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
IUSE=""
DEPEND=""
src_prepare() {
epatch "${WORKDIR}"/${P/-/_}-${PATCH_LEVEL}.diff \
"${FILESDIR}"/${P}-implicit-declarations.patch
epatch "${FILESDIR}/${P}-glibc2.10.patch"
EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \
epatch debian/patches
epatch "${FILESDIR}"/${P}-darwin.patch
epatch "${FILESDIR}"/${P}-interix.patch
cd gnu
eautoconf
}
src_configure() {
cd gnu
CFLAGS="${CFLAGS} -Wall" econf
}
src_compile() {
sed -i -e '/stripgcc/d' GNUmakefile || die "sed failed."
ARJLIBDIR="${EPREFIX}/usr/$(get_libdir)"
emake CC=$(tc-getCC) libdir="${ARJLIBDIR}" \
pkglibdir="${ARJLIBDIR}" all || die "emake failed."
}
src_install() {
emake pkglibdir="${ARJLIBDIR}" \
DESTDIR="${D}" install || die "emake install failed."
dodoc doc/rev_hist.txt
}
|