blob: e7abdc20b4ca310854b64c4812e8fc49368d69da (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Net-RawIP/Net-RawIP-0.2.ebuild,v 1.15 2007/07/10 23:33:29 mr_bones_ Exp $
inherit eutils perl-module
IUSE=""
DESCRIPTION="Perl Net::RawIP - Raw IP packets manipulation Module"
SRC_URI="mirror://cpan/authors/id/S/SK/SKOLYCHEV/${P}.tar.gz"
HOMEPAGE="http://search.cpan.org/~skolychev/"
DEPEND="net-libs/libpcap
>=sys-apps/sed-4
dev-lang/perl"
SLOT="0"
LICENSE="Artistic"
KEYWORDS="alpha amd64 hppa ia64 ppc sparc x86"
src_unpack() {
unpack ${A}
# This patch makes sure CFLAGS are applied properly instead of
# being runon additions to the previously defined symbol.
# Attempts to address the problem in bug 16388 without completely
# losing CFLAGS. The patch submitted to that bug chose to remove
# the $ENV{'CFLAGS'}. With the current state of MakeMaker, this
# would be a perfectly acceptable choice, because the approach
# taken here ends up with two sets of CFLAGS in the compile line.
# However, I believe that it may be more prudent in the long run
# to try to accommodate what I think the original intention of the
# Makefile was. Perhaps on some system with some (maybe future)
# version of MakeMaker, this would be the only way to convey
# CFLAGS. Since duplication of CFLAGS is harmless, I'm going to
# go with adding the space instead of taking out the $ENV{CFLAGS}.
# Robert Coie <rac@gentoo.org> 2003.05.08
sed -i -e "s/D_IFLIST_'\./D_IFLIST_ '\./" ${S}/Makefile.PL || die "problem fixing makefile"
epatch "${FILESDIR}"/${P}-gcc4.patch
}
|