diff --git a/recipes-devtools/python/python-rospkg.inc b/recipes-devtools/python/python-rospkg.inc new file mode 100644 index 0000000..b9e35c9 --- /dev/null +++ b/recipes-devtools/python/python-rospkg.inc @@ -0,0 +1,15 @@ +DESCRIPTION = "ROS package library" +SECTION = "devel/python" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=e910b35b0ef4e1f665b9a75d6afb7709" +SRCNAME = "rospkg" + +SRC_URI = "http://download.ros.org/downloads/rospkg/rospkg-${PV}.tar.gz" +SRC_URI[md5sum] = "36fa86450a397cbe531b214e088d06b7" +SRC_URI[sha256sum] = "ccd1d635319d41b79139b7336af64fc17a48a69ce0d728c1578c78f6350dbe1c" + +S = "${WORKDIR}/${SRCNAME}-${PV}" + +RDEPENDS_${PN} += "${PYTHON_PN}-xml" + +BBCLASSEXTEND = "native" diff --git a/recipes-devtools/python/python-rospkg_1.0.40.bb b/recipes-devtools/python/python-rospkg_1.0.40.bb index a446015..c6c8b97 100644 --- a/recipes-devtools/python/python-rospkg_1.0.40.bb +++ b/recipes-devtools/python/python-rospkg_1.0.40.bb @@ -1,17 +1,3 @@ -DESCRIPTION = "ROS package library" -SECTION = "devel/python" -LICENSE = "BSD" -LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=e910b35b0ef4e1f665b9a75d6afb7709" -SRCNAME = "rospkg" - -SRC_URI = "http://download.ros.org/downloads/rospkg/rospkg-${PV}.tar.gz" -SRC_URI[md5sum] = "36fa86450a397cbe531b214e088d06b7" -SRC_URI[sha256sum] = "ccd1d635319d41b79139b7336af64fc17a48a69ce0d728c1578c78f6350dbe1c" - -S = "${WORKDIR}/${SRCNAME}-${PV}" - -RDEPENDS_${PN} += "python-xml" +require python-rospkg.inc inherit setuptools - -BBCLASSEXTEND = "native" diff --git a/recipes-devtools/python/python3-rospkg_1.0.40.bb b/recipes-devtools/python/python3-rospkg_1.0.40.bb new file mode 100644 index 0000000..83a4944 --- /dev/null +++ b/recipes-devtools/python/python3-rospkg_1.0.40.bb @@ -0,0 +1,3 @@ +require python-rospkg.inc + +inherit setuptools3