perl: Drop grep-native from DEPENDS, update grep line
authorTom Rini <tom_rini@mentor.com>
Mon, 28 Feb 2011 17:21:32 +0000 (10:21 -0700)
committerTom Rini <tom_rini@mentor.com>
Mon, 28 Feb 2011 17:25:37 +0000 (10:25 -0700)
Both OS X 10.6 and FreeBSD (for some time) ship with GNU grep.
Also, we can use -l rather than passing on to cut to get the files
to mangle and put -r in with -I and -l.

Signed-off-by: Tom Rini <tom_rini@mentor.com>
recipes/perl/perl_5.10.1.bb

index a53b157..6c0dcb1 100644 (file)
@@ -3,8 +3,7 @@ HOMEPAGE = "http://www.perl.org/"
 SECTION = "devel/perl"
 LICENSE = "Artistic|GPLv1+"
 PRIORITY = "optional"
-# We need gnugrep (for -I)
-DEPENDS = "virtual/db perl-native grep-native"
+DEPENDS = "virtual/db perl-native"
 PR = "r22"
 
 # 5.10.1 has Module::Build built-in
@@ -158,7 +157,7 @@ do_configure() {
        esac
 
         # These are strewn all over the source tree
-        for foo in `grep -I -m1 \/usr\/include\/.*\\.h ${WORKDIR}/* -r | cut -f 1 -d ":"` ; do
+        for foo in `grep -lrI -m1 \/usr\/include\/.*\\.h ${WORKDIR}/*` ; do
             echo Fixing: $foo
             sed -e "s%/usr/include/%${STAGING_INCDIR}/%g" -i $foo
         done