summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/opkg-utils
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/opkg-utils')
-rw-r--r--meta/recipes-devtools/opkg-utils/opkg-utils_0.4.5.bb20
1 files changed, 10 insertions, 10 deletions
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_0.4.5.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_0.4.5.bb
index 93d2911104..a2bcc7f661 100644
--- a/meta/recipes-devtools/opkg-utils/opkg-utils_0.4.5.bb
+++ b/meta/recipes-devtools/opkg-utils/opkg-utils_0.4.5.bb
@@ -1,5 +1,5 @@
1SUMMARY = "Additional utilities for the opkg package manager" 1SUMMARY = "Additional utilities for the opkg package manager"
2SUMMARY_update-alternatives-opkg = "Utility for managing the alternatives system" 2SUMMARY:update-alternatives-opkg = "Utility for managing the alternatives system"
3SECTION = "base" 3SECTION = "base"
4HOMEPAGE = "http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils" 4HOMEPAGE = "http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils"
5LICENSE = "GPLv2+" 5LICENSE = "GPLv2+"
@@ -17,13 +17,13 @@ SRC_URI[sha256sum] = "528635e674addea5c2b3a3268404ad04a952c4f410d17c3d754f5dd552
17 17
18TARGET_CC_ARCH += "${LDFLAGS}" 18TARGET_CC_ARCH += "${LDFLAGS}"
19 19
20RDEPENDS_${PN} += "bash" 20RDEPENDS:${PN} += "bash"
21 21
22inherit perlnative 22inherit perlnative
23 23
24# For native builds we use the host Python 24# For native builds we use the host Python
25PYTHONRDEPS = "python3 python3-shell python3-io python3-math python3-crypt python3-logging python3-fcntl python3-pickle python3-compression python3-stringold" 25PYTHONRDEPS = "python3 python3-shell python3-io python3-math python3-crypt python3-logging python3-fcntl python3-pickle python3-compression python3-stringold"
26PYTHONRDEPS_class-native = "" 26PYTHONRDEPS:class-native = ""
27 27
28PACKAGECONFIG = "python update-alternatives" 28PACKAGECONFIG = "python update-alternatives"
29PACKAGECONFIG[python] = ",,,${PYTHONRDEPS}" 29PACKAGECONFIG[python] = ",,,${PYTHONRDEPS}"
@@ -36,7 +36,7 @@ do_install() {
36 fi 36 fi
37} 37}
38 38
39do_install_append_class-target() { 39do_install:append:class-target() {
40 if ! ${@bb.utils.contains('PACKAGECONFIG', 'python', 'true', 'false', d)}; then 40 if ! ${@bb.utils.contains('PACKAGECONFIG', 'python', 'true', 'false', d)}; then
41 grep -lZ "/usr/bin/env.*python" ${D}${bindir}/* | xargs -0 rm 41 grep -lZ "/usr/bin/env.*python" ${D}${bindir}/* | xargs -0 rm
42 fi 42 fi
@@ -48,15 +48,15 @@ do_install_append_class-target() {
48 48
49# These are empty and will pull python3-dev into images where it wouldn't 49# These are empty and will pull python3-dev into images where it wouldn't
50# have been otherwise, so don't generate them. 50# have been otherwise, so don't generate them.
51PACKAGES_remove = "${PN}-dev ${PN}-staticdev" 51PACKAGES:remove = "${PN}-dev ${PN}-staticdev"
52 52
53PACKAGES =+ "update-alternatives-opkg" 53PACKAGES =+ "update-alternatives-opkg"
54FILES_update-alternatives-opkg = "${bindir}/update-alternatives" 54FILES:update-alternatives-opkg = "${bindir}/update-alternatives"
55RPROVIDES_update-alternatives-opkg = "update-alternatives update-alternatives-cworth" 55RPROVIDES:update-alternatives-opkg = "update-alternatives update-alternatives-cworth"
56RREPLACES_update-alternatives-opkg = "update-alternatives-cworth" 56RREPLACES:update-alternatives-opkg = "update-alternatives-cworth"
57RCONFLICTS_update-alternatives-opkg = "update-alternatives-cworth" 57RCONFLICTS:update-alternatives-opkg = "update-alternatives-cworth"
58 58
59pkg_postrm_update-alternatives-opkg() { 59pkg_postrm:update-alternatives-opkg() {
60 rm -rf $D${nonarch_libdir}/opkg/alternatives 60 rm -rf $D${nonarch_libdir}/opkg/alternatives
61 rmdir $D${nonarch_libdir}/opkg || true 61 rmdir $D${nonarch_libdir}/opkg || true
62} 62}