1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 DESCRIPTION="archlinux's binary package manager"
10 HOMEPAGE="http://archlinux.org/pacman/"
11 SRC_URI="ftp://ftp.archlinux.org/other/${PN}/${P}.tar.gz"
18 COMMON_DEPEND="app-arch/libarchive
22 RDEPEND="${COMMON_DEPEND}
24 DEPEND="${COMMON_DEPEND}
25 doc? ( app-doc/doxygen )
26 test? ( dev-lang/python )"
29 sed -i -e '/-Werror/d' configure.ac || die "-Werror"
30 # acinclude.m4 overrides libtool macros from /usr/share/aclocal, causing
31 # elibtoolize's ltmain.sh to incompatible with ./configure after
33 sed -i -e '4,/dnl Add some custom macros for pacman and libalpm/d' acinclude.m4 || die "libtool fix"
39 --localstatedir=/var \
40 --disable-git-version \
41 --disable-internal-download \
44 $(use_enable doc doxygen)
48 emake DESTDIR="${D}" install || die
50 dodir /etc/pacman.d || die
54 einfo "Please see http://ohnopub.net/~ohnobinki/gentoo/arch/ for information"
55 einfo "about setting up an archlinux chroot."