| 1 |
# Copyright 1999-2007 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/hfsplusutils/hfsplusutils-1.0.4-r1.ebuild,v 1.13 2007/01/08 22:21:44 josejx Exp $
|
| 4 |
|
| 5 |
WANT_AUTOMAKE=1.6
|
| 6 |
inherit autotools eutils libtool
|
| 7 |
|
| 8 |
MY_P="hfsplus_${PV}"
|
| 9 |
DESCRIPTION="HFS+ Filesystem Access Utilities (a PPC filesystem)"
|
| 10 |
HOMEPAGE="http://penguinppc.org/historical/hfsplus/"
|
| 11 |
SRC_URI="http://penguinppc.org/historical/hfsplus/${MY_P}.src.tar.bz2"
|
| 12 |
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="~amd64 ppc ppc64 x86"
|
| 16 |
IUSE=""
|
| 17 |
|
| 18 |
DEPEND="app-arch/bzip2"
|
| 19 |
RDEPEND="virtual/libc"
|
| 20 |
|
| 21 |
S=${WORKDIR}/hfsplus-${PV}
|
| 22 |
|
| 23 |
src_unpack() {
|
| 24 |
unpack ${A}
|
| 25 |
cd ${S}
|
| 26 |
epatch ${FILESDIR}/${P}-glob.patch
|
| 27 |
epatch ${FILESDIR}/${P}-errno.patch
|
| 28 |
epatch ${FILESDIR}/${P}-gcc4.patch
|
| 29 |
epatch ${FILESDIR}/${P}-string.patch
|
| 30 |
#let's avoid the Makefile.cvs since isn't working for us
|
| 31 |
export WANT_AUTOCONF=2.5
|
| 32 |
export WANT_AUTOMAKE=1.6
|
| 33 |
aclocal
|
| 34 |
autoconf
|
| 35 |
autoheader
|
| 36 |
automake -a
|
| 37 |
libtoolize --force --copy
|
| 38 |
elibtoolize
|
| 39 |
}
|
| 40 |
|
| 41 |
src_compile() {
|
| 42 |
econf || die
|
| 43 |
emake || die
|
| 44 |
}
|
| 45 |
|
| 46 |
src_install() {
|
| 47 |
dodir /usr/bin /usr/lib /usr/share/man
|
| 48 |
make \
|
| 49 |
prefix=${D}/usr \
|
| 50 |
libdir=${D}/usr/lib \
|
| 51 |
mandir=${D}/usr/share/man \
|
| 52 |
infodir=${D}/usr/share/info \
|
| 53 |
install || die
|
| 54 |
newman doc/man/hfsp.man hfsp.1
|
| 55 |
}
|