perl 5.10.1: PROVIDES libmodule-build-perl
authorRoman I Khimov <khimov@altell.ru>
Tue, 10 Aug 2010 14:20:50 +0000 (18:20 +0400)
committerRoman I Khimov <khimov@altell.ru>
Thu, 23 Sep 2010 05:49:28 +0000 (09:49 +0400)
perl 5.10.1 has Module::Build built-in and it's newer than what we have in
libmodule-build-perl-native.

Signed-off-by: Roman I Khimov <khimov@altell.ru>
recipes/perl/perl-native_5.10.1.bb
recipes/perl/perl-rprovides_5.10.1.inc [new file with mode: 0644]
recipes/perl/perl_5.10.1.bb

index 0e0854b..b6e0bb5 100644 (file)
@@ -3,12 +3,16 @@ HOMEPAGE = "http://www.perl.org/"
 SECTION = "libs"
 LICENSE = "Artistic|GPL"
 DEPENDS = "virtual/db-native gdbm-native"
-PR = "r4"
+PR = "r5"
 NATIVE_INSTALL_WORKS = "1"
 
 # Not tested enough
 DEFAULT_PREFERENCE = "-1"
 
+# 5.10.1 has this module built-in
+PROVIDES += "libmodule-build-perl-native"
+RPROVIDES_${PN} += "libmodule-build-perl-native"
+
 FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/perl-${PV}"
 
 SRC_URI = "http://ftp.funet.fi/pub/CPAN/src/perl-${PV}.tar.gz;name=perl-${PV} \
diff --git a/recipes/perl/perl-rprovides_5.10.1.inc b/recipes/perl/perl-rprovides_5.10.1.inc
new file mode 100644 (file)
index 0000000..9a648db
--- /dev/null
@@ -0,0 +1 @@
+RPROVIDES_perl-module-module-build += "libmodule-build-perl"
index 50db492..8a0726a 100644 (file)
@@ -5,7 +5,10 @@ LICENSE = "Artistic|GPL"
 PRIORITY = "optional"
 # We need gnugrep (for -I)
 DEPENDS = "virtual/db perl-native grep-native"
-PR = "r12"
+PR = "r13"
+
+# 5.10.1 has Module::Build built-in
+PROVIDES += "libmodule-build-perl"
 
 # Not tested enough
 DEFAULT_PREFERENCE = "-1"
@@ -279,5 +282,6 @@ FILES_perl-module-unicore-name += "${datadir}/perl/${PV}/unicore"
 
 require perl-rdepends_${PV}.inc
 require perl-rprovides.inc
+require perl-rprovides_${PV}.inc
 
 PARALLEL_MAKE = ""