Skip to contentSkip to conversation

libmodule-pluggable-perl: use upstream instead of github.com/moto-timo

PATCH New Tim Orling 1 participant 2 messages Feb 22, 2018

lore
Share & tools
lore

Tim Orling

author
#0 lore raw

PATCH 1/2 libmodule-pluggable-perl: use upstream instead of github.com/moto-timo

Upstream has updated the build system to use EUMM, so the fix on github.com/moto-timo is no longer needed.

Because the versions where out of sync, reflect the bump in PR.

Add UPSTREAM_CHECK_REGEX to properly catch upstream updates.

---
 .../recipes-perl/libmodule/libmodule-pluggable-perl_5.2.bb    | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
meta-perl/recipes-perl/libmodule/libmodule-pluggable-perl_5.2.bb +8 -3
index c73a15a4f..aed65d3a8 100644
@@ -17,9 +17,14 @@ LICENSE = "Artistic-1.0 | GPL-1.0+"
 LIC_FILES_CHKSUM = "file://README;beginline=322;endline=325;md5=086450ce010f6fda25db0b38fcc41086"
 
 SRCNAME = "Module-Pluggable"
-SRC_URI = "https://github.com/moto-timo/${SRCNAME}/archive/${PV}.tar.gz"
-SRC_URI[md5sum] = "e32475d6ff5843f738cedacd3b7a2cdb"
-SRC_URI[sha256sum] = "58c62292eea6d06959eba1b97598650813211265403242d57efb2f605c96059f"
+SRC_URI = "${CPAN_MIRROR}/authors/id/S/SI/SIMONW/${SRCNAME}-${PV}.tar.gz"
+SRC_URI[md5sum] = "87ce2971662efd0b69a81bb4dc9ea76c"
+SRC_URI[sha256sum] = "b3f2ad45e4fd10b3fb90d912d78d8b795ab295480db56dc64e86b9fa75c5a6df"
+
+PR = "r1"
+
+UPSTREAM_CHECK_REGEX = "Module\-Pluggable\-(?P<pver>(\d+\.\d+))"
+UPSTREAM_CHECK_URI = "https://metacpan.org/release/${SRCNAME}"
 
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
Signature · 1 line
2.13.6
author
#1 lore raw

PATCH 2/2 libmodule-runtime-perl: upgrade to 0.016, use upstream

Upstream has fixed build system to use EUMM, so we no longer need the fix on github.com/moto-timo.

Add UPSTREAM_CHECK_REGEX to ensure we catch future updates.

Extended the license checksum to include the Copyright. The length of the README file has changed, so the checksum has changed. Verified that the license remains the same.

---
 ...runtime-perl_0.015.bb => libmodule-runtime-perl_0.016.bb} | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
 rename meta-perl/recipes-perl/libmodule/{libmodule-runtime-perl_0.015.bb => libmodule-runtime-perl_0.016.bb} (75%)
meta-perl/recipes-perl/libmodule/libmodule-runtime-perl_0.016.bb renamed from meta-perl/recipes-perl/libmodule/libmodule-runtime-perl_0.015.bb +7 -5
similarity index 75%
rename from meta-perl/recipes-perl/libmodule/libmodule-runtime-perl_0.015.bb
rename to meta-perl/recipes-perl/libmodule/libmodule-runtime-perl_0.016.bb
index b92842c46..89f0f709a 100644
@@ -17,12 +17,14 @@ SECTION = "libs"
 HOMEPAGE = "http://search.cpan.org/~zefram/Module-Runtime/"
 
 LICENSE = "Artistic-1.0 | GPL-1.0+"
-LIC_FILES_CHKSUM = "file://README;beginline=45;endline=46;md5=62e24a93342fede7221d66335c716f34"
+LIC_FILES_CHKSUM = "file://README;beginline=36;endline=44;md5=9416434672a57853d6181f3da9094963"
 
-SRCNAME = "module-runtime"
-SRC_URI = "https://github.com/moto-timo/${SRCNAME}/archive/${PV}.tar.gz"
-SRC_URI[md5sum] = "ad6ca179c978aa02ac8aa29244ef9beb"
-SRC_URI[sha256sum] = "59effa82b3f6986d28de6154a8f2428157691004d951f936a81e851f4dbcb045"
+SRCNAME = "Module-Runtime"
+SRC_URI = "${CPAN_MIRROR}/authors/id/Z/ZE/ZEFRAM/${SRCNAME}-${PV}.tar.gz"
+SRC_URI[md5sum] = "d3d47222fa2e3dfcb4526f6cc8437b20"
+SRC_URI[sha256sum] = "68302ec646833547d410be28e09676db75006f4aa58a11f3bdb44ffe99f0f024"
+
+UPSTREAM_CHECK_REGEX = "Module\-Runtime\-(?P<pver>(\d+\.\d+)).tar"
 
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
Signature · 1 line
2.13.6