<commit_before>require lirc.inc

SRC_URI += " \
    file://lircd.service \
    file://lircd.init \
    file://lircexec.init \
    file://lircd.conf \
    file://lirc_options.conf \
    file://lirc.tmpfiles \
"
#file://0001-Adaptation-for-STM-configuration.patch \
#
SRC_URI[md5sum] = "3afc84e79c0839823cc20e7a710dd06d"
SRC_URI[sha256sum] = "4e3f948fcdee6dce009171143f0cb7cd7be48593dd58138db4101a41f651a1dd"

SYSTEMD_PACKAGES = "lirc"
SYSTEMD_SERVICE_${PN} = "lircd.service lircmd.service"
SYSTEMD_AUTO_ENABLE_lirc = "enable"

inherit autotools pkgconfig systemd pythonnative

PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,--without-systemdsystemunitdir,systemd"
PACKAGECONFIG[x11] = "--with-x,--with-x=no,libx11,"

PACKAGECONFIG_append = "${<EMAIL>.contains('DISTRO_FEATURES', 'systemd', ' systemd', '', d)}"
PACKAGECONFIG_append = "${<EMAIL>.contains('DISTRO_FEATURES', 'x11', ' x11', '', d)}"

#EXTRA_OEMAKE = 'SUBDIRS="lib daemons tools"'
do_install_append() {
    install -m 0755 -d ${D}${sysconfdir}
    install -m 0755 -d ${D}${sysconfdir}/lirc
    install -m 0755 -d ${D}${systemd_unitdir}/system
    install -m 0755 -d ${D}${libdir}/tmpfiles.d<commit_msg>lirc: use weak assignment in PACKAGECONFIG like other recipes<commit_after>require lirc.inc

SRC_URI += " \
    file://lircd.service \
    file://lircd.init \
    file://lircexec.init \
    file://lircd.conf \
    file://lirc_options.conf \
    file://lirc.tmpfiles \
"
#file://0001-Adaptation-for-STM-configuration.patch \
#
SRC_URI[md5sum] = "3afc84e79c0839823cc20e7a710dd06d"
SRC_URI[sha256sum] = "4e3f948fcdee6dce009171143f0cb7cd7be48593dd58138db4101a41f651a1dd"

SYSTEMD_PACKAGES = "lirc"
SYSTEMD_SERVICE_${PN} = "lircd.service lircmd.service"
SYSTEMD_AUTO_ENABLE_lirc = "enable"

inherit autotools pkgconfig systemd pythonnative

PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,--without-systemdsystemunitdir,systemd"
PACKAGECONFIG[x11] = "--with-x,--with-x=no,libx11,"

PACKAGECONFIG ?= " \
    ${<EMAIL>.contains('DISTRO_FEATURES', 'systemd', ' systemd', '', d)} \
    ${<EMAIL>.contains('DISTRO_FEATURES', 'x11', ' x11', '', d)} \
"

#EXTRA_OEMAKE = 'SUBDIRS="lib daemons tools"'
do_install_append() {
    install -m 0755 -d ${D}${sysconfdir}
    install -m 0755 -d ${D}${sysconfdir}/lirc
    install -m 0755 -d ${D}${systemd_unitdir}/system
    install -m 0755 -d ${D}${libdir}/tmpfiles.d
{'fraction_non_alphanumeric': 0.16550020584602718, 'fraction_numerical': 0.07410456978180321, 'mean_word_length': 4.7176470588235295, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1683490', 'n_tokens_mistral': 1109, 'n_tokens_neox': 993, 'n_words': 136}