blob: 253de544bcbb774056709ad2f3f4c8941d01a612 (
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
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm/rpm-3.0.6-r1.ebuild,v 1.7 2002/07/11 06:30:10 drobbins Exp $
S=${WORKDIR}/${P}
DESCRIPTION="Red Hat Package Management Utils"
SRC_URI="ftp://ftp.rpm.org/pub/rpm/dist/rpm-3.0.x/${P}.tar.gz"
HOMEPAGE="http://www.rpm.org/"
LICENSE="GPL|LGPL"
RDEPEND="=sys-libs/db-1.85-r1
>=sys-libs/zlib-1.1.3
>=sys-apps/bzip2-1.0.1"
DEPEND="$RDEPEND nls? ( sys-devel/gettext )"
src_unpack() {
unpack ${A}
cd ${S}
patch -p0 < ${FILESDIR}/${P}-popt-popt.c-gentoo.diff
# Suppress pointer warnings
cp configure configure.orig
sed -e "s:-Wpointer-arith::" configure.orig > configure
}
src_compile() {
local myconf
if [ -z "`use nls`" ]
then
myconf="--disable-nls"
fi
try ./configure --prefix=/usr --mandir=/usr/share/man ${myconf}
try make
}
src_install() {
try make DESTDIR=${D} install
mv ${D}/bin/rpm ${D}/usr/bin
rm -rf ${D}/bin
dodoc CHANGES COPYING CREDITS GROUPS README* RPM* TODO
}
pkg_postinst() {
${ROOT}/usr/bin/rpm --initdb --root=${ROOT}
}
|