DRAFT ament-python bbclass: Import from lgsvl/meta-ros2@7a2ce1033f
Add missing copyright notice.
This commit is contained in:
parent
18145d0427
commit
502974512e
|
@ -0,0 +1,28 @@
|
|||
# Copyright (c) 2018 LG Electronics, Inc.
|
||||
|
||||
ROS_BPN ?= "${@d.getVar('BPN', True).replace('-', '_')}"
|
||||
|
||||
S = "${WORKDIR}/git/${ROS_BPN}"
|
||||
|
||||
inherit setuptools3
|
||||
|
||||
do_install_append() {
|
||||
mkdir -p ${D}/usr/share/ament_index/resource_index/packages
|
||||
touch ${D}/usr/share/ament_index/resource_index/packages/${ROS_BPN}
|
||||
if test -e ${D}/usr/lib/${ROS_BPN}; then
|
||||
for i in ${D}/usr/lib/${ROS_BPN}/* ; do \
|
||||
sed -i '1c#!/usr/bin/python3' $i
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
FILES_${PN} = " \
|
||||
/usr/share/* \
|
||||
${datadir}/${ROS_BPN}/package.xml \
|
||||
${datadir}/${ROS_BPN}/resource/* \
|
||||
${datadir}/ament_index/* \
|
||||
${libdir}/${PYTHON_DIR}/* \
|
||||
${libdir}/${ROS_BPN}/* \
|
||||
${libdir}/lib*.so \
|
||||
"
|
||||
|
Loading…
Reference in New Issue