mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 03:32:12 +02:00
libcap-ng: clean up recipe
This package is split into two recipes, one of the actual C library and one for the Python bindings. - Move common inherits into the common .inc. - Clean up install in the python recipe - Remove obsolete setuptools dependency - Remove obsolete explicit .debug packaging - Update homepage as freecode.com redirects to the top of SourceForge (From OE-Core rev: 0ccd7429aabfe5c1c9246477acf1af84a147715c) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
50e95b7138
commit
402e36fc2d
@@ -4,26 +4,16 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/libcap-ng:"
|
||||
|
||||
SUMMARY .= " - python"
|
||||
|
||||
inherit lib_package autotools python3targetconfig
|
||||
inherit python3targetconfig
|
||||
|
||||
# drop setuptools when version > 0.8.3 is released; it's needed only for distutils
|
||||
DEPENDS += "libcap-ng python3 swig-native python3-setuptools-native"
|
||||
DEPENDS += "libcap-ng python3 swig-native"
|
||||
|
||||
S = "${WORKDIR}/libcap-ng-${PV}"
|
||||
|
||||
EXTRA_OECONF += "--with-python3"
|
||||
|
||||
do_install:append() {
|
||||
rm -rf ${D}${bindir}
|
||||
rm -rf ${D}${libdir}/.debug
|
||||
rm -f ${D}${libdir}/lib*
|
||||
rm -rf ${D}${libdir}/pkgconfig
|
||||
rm -rf ${D}${datadir}
|
||||
rm -rf ${D}${includedir}
|
||||
do_install() {
|
||||
oe_runmake 'DESTDIR=${D}' install -C ${B}/bindings/python3
|
||||
}
|
||||
|
||||
# PACKAGES = "${PN}"
|
||||
|
||||
FILES:${PN} = "${libdir}/python${PYTHON_BASEVERSION}"
|
||||
FILES:${PN}-dbg =+ "${PYTHON_SITEPACKAGES_DIR}/.debug/_capng.so"
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
SUMMARY = "An alternate posix capabilities library"
|
||||
DESCRIPTION = "The libcap-ng library is intended to make programming \
|
||||
with POSIX capabilities much easier than the traditional libcap library."
|
||||
HOMEPAGE = "http://freecode.com/projects/libcap-ng"
|
||||
HOMEPAGE = "https://github.com/stevegrubb/libcap-ng"
|
||||
SECTION = "base"
|
||||
LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
|
||||
@@ -13,6 +13,8 @@ SRC_URI = "https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-${PV}.tar.gz \
|
||||
|
||||
SRC_URI[sha256sum] = "3ba5294d1cbdfa98afaacfbc00b6af9ed2b83e8a21817185dfd844cc8c7ac6ff"
|
||||
|
||||
inherit lib_package autotools
|
||||
|
||||
EXTRA_OECONF:append:class-target = " --with-capability_header=${STAGING_INCDIR}/linux/capability.h"
|
||||
EXTRA_OECONF:append:class-nativesdk = " --with-capability_header=${STAGING_INCDIR}/linux/capability.h"
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
require libcap-ng.inc
|
||||
|
||||
inherit lib_package autotools
|
||||
|
||||
EXTRA_OECONF += "--without-python3"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
Reference in New Issue
Block a user