blob: ee3e1e9cf6afdeaea8983ac14524aa493aa452f7 (
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
58
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/pacman/pacman-3.4.1.ebuild,v 1.1 2010/11/01 00:56:08 hwoarang Exp $
EAPI=2
inherit autotools
DESCRIPTION="Archlinux's binary package manager"
HOMEPAGE="http://archlinux.org/pacman/"
SRC_URI="ftp://ftp.archlinux.org/other/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="debug doc test"
COMMON_DEPEND="app-arch/libarchive
virtual/libiconv
virtual/libintl
sys-devel/gettext"
RDEPEND="${COMMON_DEPEND}
app-arch/xz-utils"
DEPEND="${COMMON_DEPEND}
doc? ( app-doc/doxygen )
test? ( dev-lang/python )"
RESTRICT="test"
src_prepare() {
sed -i -e '/-Werror/d' configure.ac || die "-Werror"
# acinclude.m4 overrides libtool macros from /usr/share/aclocal, causing
# elibtoolize's ltmain.sh to incompatible with ./configure after
# eautoreconf is run.
sed -i -e '4,/dnl Add some custom macros for pacman and libalpm/d' acinclude.m4 || die "libtool fix"
eautoreconf
}
src_configure() {
econf \
--localstatedir=/var \
--disable-git-version \
--disable-internal-download \
$(use_enable debug) \
$(use_enable doc) \
$(use_enable doc doxygen)
}
src_install() {
emake DESTDIR="${D}" install || die
dodir /etc/pacman.d || die
}
pkg_postinst() {
einfo "Please see http://ohnopub.net/~ohnobinki/gentoo/arch/ for information"
einfo "about setting up an archlinux chroot."
}
|