blob: 97b7359e1d9c179c9a72b7b231a82fb741176eaa (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-libs/libaal/libaal-1.0.5.ebuild,v 1.4 2006/08/20 21:19:10 vapier Exp $
inherit toolchain-funcs
DESCRIPTION="library required by reiser4progs"
HOMEPAGE="http://www.namesys.com/v4/v4.html"
SRC_URI="ftp://ftp.namesys.com/pub/reiser4progs/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 -sparc x86"
IUSE=""
DEPEND=""
src_unpack() {
unpack ${A}
cd "${S}"
# remove stupid CFLAG hardcodes
sed -i \
-e "/GENERIC_CFLAGS/s:-O3::" \
-e "/^CFLAGS=/s:\"\":\"${CFLAGS}\":" \
configure || die "sed"
cat <<-EOF > run-ldconfig
#!/bin/sh
true
EOF
}
src_compile() {
econf \
--enable-libminimal \
--enable-memory-manager \
|| die "configure failed"
emake || die "make failed"
}
src_install() {
make DESTDIR="${D}" install || die
dodoc AUTHORS BUGS CREDITS ChangeLog NEWS README THANKS TODO
# move shared libs to /
dodir /$(get_libdir)
mv "${D}"/usr/$(get_libdir)/lib*.so* "${D}"/$(get_libdir)/ || die
gen_usr_ldscript libaal.so libaal-minimal.so
}
|