diff options
Diffstat (limited to 'meta/recipes-core/kbd/kbd_2.2.0.bb')
-rw-r--r-- | meta/recipes-core/kbd/kbd_2.2.0.bb | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/meta/recipes-core/kbd/kbd_2.2.0.bb b/meta/recipes-core/kbd/kbd_2.2.0.bb deleted file mode 100644 index e5700ff57f..0000000000 --- a/meta/recipes-core/kbd/kbd_2.2.0.bb +++ /dev/null | |||
@@ -1,72 +0,0 @@ | |||
1 | SUMMARY = "Keytable files and keyboard utilities" | ||
2 | HOMEPAGE = "http://www.kbd-project.org/" | ||
3 | # everything minus console-fonts is GPLv2+ | ||
4 | LICENSE = "GPLv2+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=892f569a555ba9c07a568a7c0c4fa63a" | ||
6 | |||
7 | inherit autotools gettext ptest pkgconfig | ||
8 | |||
9 | DEPENDS += "flex-native" | ||
10 | |||
11 | RREPLACES_${PN} = "console-tools" | ||
12 | RPROVIDES_${PN} = "console-tools" | ||
13 | RCONFLICTS_${PN} = "console-tools" | ||
14 | |||
15 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/${BP}.tar.xz \ | ||
16 | file://run-ptest \ | ||
17 | ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'file://set-proper-path-of-resources.patch', '', d)} \ | ||
18 | file://0001-analyze.l-add-missing-string-format.patch \ | ||
19 | file://0001-Use-DATADIR-and-append-i386-to-fix-libkbdfile-test08.patch \ | ||
20 | file://fix_cflags.patch \ | ||
21 | " | ||
22 | |||
23 | SRC_URI[md5sum] = "d1d7ae0b5fb875dc082731e09cd0c8bc" | ||
24 | SRC_URI[sha256sum] = "21a1bc5f6fb3b18ce9fdd717e4533368060a3182a39c7155eaf7ec0f5f83e9f7" | ||
25 | |||
26 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \ | ||
27 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests','', d)} \ | ||
28 | " | ||
29 | |||
30 | PACKAGECONFIG[pam] = "--enable-vlock, --disable-vlock, libpam," | ||
31 | PACKAGECONFIG[tests] = "--enable-tests, --disable-tests, libcheck" | ||
32 | |||
33 | do_compile_ptest() { | ||
34 | oe_runmake -C ${B}/tests alt-is-meta dumpkeys-bkeymap dumpkeys-fulltable dumpkeys-mktable | ||
35 | } | ||
36 | |||
37 | do_install_ptest() { | ||
38 | install -D ${B}/tests/Makefile ${D}${PTEST_PATH}/tests/Makefile | ||
39 | sed -i -e '/Makefile:/,/^$/d' -e '/%: %.in/,/^$/d' \ | ||
40 | -e 's:--sysroot=${STAGING_DIR_TARGET}::g' \ | ||
41 | -e 's:${DEBUG_PREFIX_MAP}::g' \ | ||
42 | -e 's:${HOSTTOOLS_DIR}/::g' \ | ||
43 | -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ | ||
44 | -e 's:${RECIPE_SYSROOT}::g' \ | ||
45 | -e 's:${S}/config/missing::g' \ | ||
46 | -e 's:${WORKDIR}::g' \ | ||
47 | -e '/^lib.*_SOURCES =/d' -e '/$(EXEEXT):/,/^$/d' ${D}${PTEST_PATH}/tests/Makefile | ||
48 | |||
49 | find ${B}/tests -executable -exec install {} ${D}${PTEST_PATH}/tests \; | ||
50 | cp -rf ${S}/tests/data ${D}${PTEST_PATH}/tests | ||
51 | cp -rf ${S}/tests/findfile ${D}${PTEST_PATH}/tests | ||
52 | cp -rf ${S}/data ${D}${PTEST_PATH} | ||
53 | |||
54 | install -D -m 755 ${S}/config/test-driver ${D}${PTEST_PATH}/config/test-driver | ||
55 | } | ||
56 | |||
57 | PACKAGES += "${PN}-consolefonts ${PN}-keymaps ${PN}-unimaps ${PN}-consoletrans" | ||
58 | |||
59 | FILES_${PN}-consolefonts = "${datadir}/consolefonts" | ||
60 | FILES_${PN}-consoletrans = "${datadir}/consoletrans" | ||
61 | FILES_${PN}-keymaps = "${datadir}/keymaps" | ||
62 | FILES_${PN}-unimaps = "${datadir}/unimaps" | ||
63 | |||
64 | RDEPENDS_${PN}-ptest = "make" | ||
65 | |||
66 | inherit update-alternatives | ||
67 | |||
68 | ALTERNATIVE_${PN} = "chvt deallocvt fgconsole openvt showkey \ | ||
69 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'vlock','', d)}" | ||
70 | ALTERNATIVE_PRIORITY = "100" | ||
71 | |||
72 | BBCLASSEXTEND = "native" | ||