/[gentoo-x86]/net-misc/pump/pump-0.8.24-r2.ebuild
Gentoo

Contents of /net-misc/pump/pump-0.8.24-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Mar 7 16:03:56 2009 UTC (10 years, 9 months ago) by nelchael
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Revision bump: fix bug #260929 (static linking against popt), respect LDFLAGS.
(Portage version: 2.1.6.7/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/pump/pump-0.8.24-r2.ebuild,v 1.1 2009/02/12 20:37:12 nelchael Exp $
4
5 inherit eutils toolchain-funcs
6
7 PATCHLEVEL="5"
8
9 DESCRIPTION="This is the DHCP/BOOTP client written by RedHat"
10 HOMEPAGE="http://ftp.debian.org/debian/pool/main/p/pump/"
11 SRC_URI="mirror://debian/pool/main/p/${PN}/${PN}_${PV}.orig.tar.gz
12 mirror://debian/pool/main/p/${PN}/${PN}_${PV}-${PATCHLEVEL}.diff.gz
13 mirror://gentoo/${P}-patches.tar.bz2"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~sparc ~x86"
18 IUSE=""
19
20 DEPEND=">=dev-libs/popt-1.5"
21 RDEPEND="${DEPEND}"
22 PROVIDE="virtual/dhcpc"
23
24 src_unpack() {
25 unpack ${A}
26 cd "${S}"
27
28 # Apply Debians pump patchset - they fix things good :)
29 epatch "${WORKDIR}/${PN}_${PV}-${PATCHLEVEL}.diff"
30
31 for i in "${WORKDIR}/${PV}/"*; do
32 epatch "${i}"
33 done
34
35 sed -i \
36 -e 's,-Werror -g,,' \
37 Makefile || die "sed failed"
38
39 # Only install specific po files if LINGUAS is set
40 if [[ -n ${LINGUAS} ]]; then
41 cd po
42 local p
43 for l in $(ls *.po) ; do
44 [[ " ${LINGUAS} " != *" ${l%%.po} "* ]] && rm -f "${l}"
45 done
46 fi
47 }
48
49 src_compile() {
50 make CC="$(tc-getCC)" DEB_CFLAGS="-fPIC ${CFLAGS}" pump || die
51 }
52
53 src_install() {
54 into /
55 dosbin pump || die
56
57 doman pump.8
58 dodoc CREDITS
59
60 into /usr
61 dolib.a libpump.a || die
62 insinto /usr/include
63 doins pump.h || die
64
65 make -C po install datadir="${D}/usr/share/"
66 }

  ViewVC Help
Powered by ViewVC 1.1.20