summaryrefslogtreecommitdiff
blob: ca320e7957d8a6d0ce7f3c9d0ea1239b345acbb1 (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-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/dpkg/dpkg-1.10.9.ebuild,v 1.3 2003/02/13 05:53:29 vapier Exp $

S=${WORKDIR}/${P}
IUSE=""
DESCRIPTION="Package maintenance system for Debian (no start-stop-dameon, dselect and sgml docs. many for alien)"
SRC_URI="http://ftp.debian.org/debian/pool/main/d/dpkg/${PN}_${PV}.tar.gz"
HOMEPAGE="http://packages.debian.org/unstable/base/dpkg.html"
LICENSE="LGPL-2.1"
KEYWORDS="~x86 ~ppc"

SLOT="0"

RDEPEND=">=sys-devel/perl-5.6.0
         >=sys-libs/ncurses-5.2-r7
         >=sys-libs/zlib-1.1.4" #app-text/sgmltools-lite?

DEPEND="${RDEPEND}
	>=sys-devel/gettext-0.11.5-r1"
	


src_compile() {
	cd main
	ln -s ../archtable
	cd ..
	econf --without-dselect --without-sgml-doc --without-start-stop-daemon
	make || die "emake failed."
}

src_install() {
	dobin scripts/822-date \
	    main/dpkg \
	    scripts/dpkg-architecture \
	    scripts/dpkg-buildpackage \
	    scripts/dpkg-checkbuilddeps \
	    dpkg-deb/dpkg-deb \
	    scripts/dpkg-distaddfile \
	    scripts/dpkg-genchanges \
	    scripts/dpkg-gencontrol \
	    scripts/dpkg-name \
	    scripts/dpkg-parsechangelog \
	    main/dpkg-query \
	    scripts/dpkg-scanpackages \
	    scripts/dpkg-scansources \
	    scripts/dpkg-shlibdeps \
	    scripts/dpkg-source \
	    split/dpkg-split
	dodir /etc/alternatives
	insinto /etc/alternatives
	doins scripts/README.alternatives
	dosbin scripts/update-alternatives scripts/dpkg-divert scripts/dpkg-statoverride
	dodoc ABOUT-NLS COPYING ChangeLog INSTALL THANKS TODO
}