From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BFC17138334 for ; Mon, 9 Jul 2018 14:15:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7BF48E086B; Mon, 9 Jul 2018 14:15:47 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 38A41E086B for ; Mon, 9 Jul 2018 14:15:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 97CAE335C6B for ; Mon, 9 Jul 2018 14:15:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B610337A for ; Mon, 9 Jul 2018 14:15:43 +0000 (UTC) From: "Craig Andrews" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Craig Andrews" Message-ID: <1531145738.fbb915167cb5d6027c6bc4387ba3354536d92805.candrews@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/lirc/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/lirc/Manifest app-misc/lirc/lirc-0.10.0_rc2.ebuild app-misc/lirc/lirc-0.9.4a-r2.ebuild app-misc/lirc/lirc-0.9.4c.ebuild app-misc/lirc/lirc-0.9.4d.ebuild app-misc/lirc/metadata.xml X-VCS-Directories: app-misc/lirc/ X-VCS-Committer: candrews X-VCS-Committer-Name: Craig Andrews X-VCS-Revision: fbb915167cb5d6027c6bc4387ba3354536d92805 X-VCS-Branch: master Date: Mon, 9 Jul 2018 14:15:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a2319e9d-096d-4227-a1e4-6457b00567e3 X-Archives-Hash: 05461316333802f1e3b9f4025bb862fd commit: fbb915167cb5d6027c6bc4387ba3354536d92805 Author: Craig Andrews gentoo org> AuthorDate: Mon Jul 9 14:14:47 2018 +0000 Commit: Craig Andrews gentoo org> CommitDate: Mon Jul 9 14:15:38 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbb91516 app-misc/lirc: Drop old versions Package-Manager: Portage-2.3.41, Repoman-2.3.9 app-misc/lirc/Manifest | 4 - app-misc/lirc/lirc-0.10.0_rc2.ebuild | 151 ---------------------------------- app-misc/lirc/lirc-0.9.4a-r2.ebuild | 136 ------------------------------ app-misc/lirc/lirc-0.9.4c.ebuild | 150 --------------------------------- app-misc/lirc/lirc-0.9.4d.ebuild | 155 ----------------------------------- app-misc/lirc/metadata.xml | 2 - 6 files changed, 598 deletions(-) diff --git a/app-misc/lirc/Manifest b/app-misc/lirc/Manifest index 71cb02daed0..4f51ac9b435 100644 --- a/app-misc/lirc/Manifest +++ b/app-misc/lirc/Manifest @@ -1,7 +1,3 @@ -DIST lirc-0.10.0-rc2.tar.bz2 2552982 BLAKE2B d68639198dd7041865f6b7ac79cb94b63d8a85ee70f97628e27887d14f62814388a51521dabe91730570c382c6bb7edb36c15eba0f8ea9f5d4490dfce2bd121a SHA512 ab3426477f017e3a1b9da690189beae5086bbb52f88d302e6c91d7633f74ef781e6747f6b697b3ed6df13497a3e666f11c846104d2f00b975746d24bfd2a6cd5 DIST lirc-0.10.0.tar.bz2 2523528 BLAKE2B 5c133b40936060fbaa0a9463b1b07d9197d935388e3eb4e46791b1f844b82ea6b6d42ae0c6ce249ca306688fa5d15718f5a3a54b497fc9f168b8b736b06bdd1e SHA512 06ccc1c8c80bfd17a6d180ae39a17779cbba341086f90a03a2e552bfb71e3abcb13f991312fba0e57df79c1882c1e29a2f273dddcd46a9ff53160b556e1547ab DIST lirc-0.10.1.tar.bz2 2523226 BLAKE2B 47b7ee87de8f64f7f829af519c0d296a85cf91790148927e850965177d4984bb994a0ad122cb59c3db508813d0824ffec45126e794abd08174a052361cea53e5 SHA512 31c0b6ee169b302b99994a2a3fa0ebcae0e01cb83c02fe02acf1de5ba8cf77a091a0221c7d8104448c30930adafe654cd08afb7d0df6b5b7ec2d47df26e5df9d DIST lirc-0.9.0.tar.bz2 857286 BLAKE2B 034c7b8492dd42301bb6d40da8c6c95f714b925ee50e7396290231684024dc3fe3bb64987db92d2a4e4d56203436007e68222bbf9a775bb9d29bbefcc4a7c1e4 SHA512 e91534c63e6065bd7da3b15e1676edf1672b8beb21864a6825df86247d7d165bf2dee6f8191732933e24e42a406e46afc55559948e4061eed2de7b08fac13431 -DIST lirc-0.9.4a.tar.bz2 2292119 BLAKE2B 6ca7562716fde3327aa3f8f9913da7d349969f1bcac095bf2e9b1e3025d1e39176e2fb386ca08bcf80d458262f9eb96dab363ef3aa2c1d56b914ac8a36fcbacf SHA512 16be0ac5dd9b07d717ceba63cdc38c0db4a2bdcfc373ca6346d7cd4ab2cd2973aa7585d10b045fcaea952a3aabf7617c564ccb8268db6c62b172683a4b2cc188 -DIST lirc-0.9.4c.tar.bz2 2311300 BLAKE2B f58f3b3a701e0ae787e34ec65c1d29b0faa75958b95aa43663a78dbe04c1c1d5456df5a6c5e41c673db9f589a7c2d41423b5f6a667fac890fb18f29fd797438b SHA512 0a0d0e025b87a55ec919c92824d8288bfaf35cfebae0ee97d86e344109f584baa72a2eff6d24fbc526900671d6092e0eebef8d1566559b0d153e122e3127c0cb -DIST lirc-0.9.4d.tar.bz2 2489704 BLAKE2B 89cf8989aa84905d292fdf72632b7e5854aa2b225a6a6183839fa3e5fbc6624474e2723d3456cf5c5e6216abd134805fba495e89469808cd5ff139c31f86c032 SHA512 fb3892e12fbe5277e04c451694f1ea4ed45cc424d66ea57b11c4ac4760afa7df4b37897f380b4ade464a82523a0cee336f216d2009ea9431333fd7ca74a8336c diff --git a/app-misc/lirc/lirc-0.10.0_rc2.ebuild b/app-misc/lirc/lirc-0.10.0_rc2.ebuild deleted file mode 100644 index 464217b7e0a..00000000000 --- a/app-misc/lirc/lirc-0.10.0_rc2.ebuild +++ /dev/null @@ -1,151 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python3_4 python3_5 ) - -inherit eutils flag-o-matic linux-info python-single-r1 systemd xdg-utils - -DESCRIPTION="decode and send infra-red signals of many commonly used remote controls" -HOMEPAGE="http://www.lirc.org/" - -LIRC_DRIVER_DEVICE="/dev/lirc0" - -MY_P=${PN}-${PV/_/-} - -if [[ "${PV/_pre/}" = "${PV}" ]]; then - SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2" -else - SRC_URI="http://www.lirc.org/software/snapshots/${MY_P}.tar.bz2" -fi - -LICENSE="GPL-2+" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86" -IUSE="audio +devinput doc ftdi gtk inputlirc static-libs systemd +uinput usb X" - -REQUIRED_USE=" - ${PYTHON_REQUIRED_USE} - gtk? ( X ) -" - -S="${WORKDIR}/${MY_P}" - -COMMON_DEPEND=" - ${PYTHON_DEPS} - audio? ( - >media-libs/portaudio-18 - media-libs/alsa-lib - ) - dev-python/pyyaml[${PYTHON_USEDEP}] - ftdi? ( dev-embedded/libftdi:0 ) - systemd? ( sys-apps/systemd ) - usb? ( virtual/libusb:0 ) - X? ( - x11-libs/libICE - x11-libs/libSM - x11-libs/libX11 - ) -" - -DEPEND=" - ${COMMON_DEPEND} - dev-libs/libxslt - doc? ( app-doc/doxygen ) - sys-apps/kmod - sys-kernel/linux-headers -" - -RDEPEND=" - ${COMMON_DEPEND} - gtk? ( - x11-libs/vte[introspection] - dev-python/pygobject[${PYTHON_USEDEP}] - ) - inputlirc? ( app-misc/inputlircd ) -" - -pkg_setup() { - use uinput && CONFIG_CHECK="INPUT_UINPUT" -} - -src_configure() { - xdg_environment_reset - econf \ - --localstatedir="${EPREFIX}/var" \ - $(use_enable static-libs static) \ - $(use_enable devinput) \ - $(use_enable uinput) \ - $(use_with X x) -} - -src_install() { - default - - if use !gtk ; then - # lirc-setup requires gtk - rm "${ED%/}"/usr/bin/lirc-setup || die - fi - - newinitd "${FILESDIR}"/lircd-0.8.6-r2 lircd - newinitd "${FILESDIR}"/lircmd-0.9.4a-r2 lircmd - newconfd "${FILESDIR}"/lircd.conf.4 lircd - newconfd "${FILESDIR}"/lircmd-0.10.0.conf lircmd - - insinto /etc/modprobe.d/ - newins "${FILESDIR}"/modprobed.lirc lirc.conf - - newinitd "${FILESDIR}"/irexec-initd-0.9.4a-r2 irexec - newconfd "${FILESDIR}"/irexec-confd irexec - - keepdir /etc/lirc - if [[ -e "${ED%/}"/etc/lirc/lircd.conf ]]; then - newdoc "${ED%/}"/etc/lirc/lircd.conf lircd.conf.example - fi - - find "${ED}" -name '*.la' -delete || die - - # Avoid QA notice - rm -d "${ED%/}"/var/run/lirc || die - rm -d "${ED%/}"/var/run || die -} - -pkg_preinst() { - local dir="${EROOT%/}/etc/modprobe.d" - if [[ -a "${dir}"/lirc && ! -a "${dir}"/lirc.conf ]]; then - elog "Renaming ${dir}/lirc to lirc.conf" - mv -f "${dir}/lirc" "${dir}/lirc.conf" || die - fi - - # copy the first file that can be found - if [[ -f "${EROOT%/}"/etc/lirc/lircd.conf ]]; then - cp "${EROOT%/}"/etc/lirc/lircd.conf "${T}"/lircd.conf || die - elif [[ -f "${EROOT%/}"/etc/lircd.conf ]]; then - cp "${EROOT%/}"/etc/lircd.conf "${T}"/lircd.conf || die - MOVE_OLD_LIRCD_CONF=1 - elif [[ -f "${ED%/}"/etc/lirc/lircd.conf ]]; then - cp "${ED%/}"/etc/lirc/lircd.conf "${T}"/lircd.conf || die - fi - - # stop portage from touching the config file - if [[ -e "${ED%/}"/etc/lirc/lircd.conf ]]; then - rm -f "${ED%/}"/etc/lirc/lircd.conf || die - fi -} - -pkg_postinst() { - # copy config file to new location - # without portage knowing about it - # so it will not delete it on unmerge or ever touch it again - if [[ -e "${T}"/lircd.conf ]]; then - cp "${T}"/lircd.conf "${EROOT%/}"/etc/lirc/lircd.conf || die - if [[ "$MOVE_OLD_LIRCD_CONF" = "1" ]]; then - elog "Moved /etc/lircd.conf to /etc/lirc/lircd.conf" - rm -f "${EROOT%/}"/etc/lircd.conf || die - fi - fi - - einfo "The new default location for lircd.conf is inside of" - einfo "${EROOT%/}/etc/lirc/ directory" -} diff --git a/app-misc/lirc/lirc-0.9.4a-r2.ebuild b/app-misc/lirc/lirc-0.9.4a-r2.ebuild deleted file mode 100644 index fa9852918a2..00000000000 --- a/app-misc/lirc/lirc-0.9.4a-r2.ebuild +++ /dev/null @@ -1,136 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit eutils flag-o-matic systemd - -DESCRIPTION="decode and send infra-red signals of many commonly used remote controls" -HOMEPAGE="http://www.lirc.org/" - -LIRC_DRIVER_DEVICE="/dev/lirc0" - -MY_P=${PN}-${PV/_/} - -if [[ "${PV/_pre/}" = "${PV}" ]]; then - SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2" -else - SRC_URI="http://www.lirc.org/software/snapshots/${MY_P}.tar.bz2" -fi - -LICENSE="GPL-2+" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" -IUSE="doc static-libs X audio irman ftdi inputlirc iguanair systemd usb" - -S="${WORKDIR}/${MY_P}" - -REQUIRED_USE=" - iguanair? ( irman ) -" -DEPEND=" - doc? ( app-doc/doxygen ) -" - -RDEPEND=" - X? ( - x11-libs/libX11 - x11-libs/libSM - x11-libs/libICE - ) - systemd? ( sys-apps/systemd ) - audio? ( - >media-libs/portaudio-18 - media-libs/alsa-lib - ) - irman? ( media-libs/libirman ) - iguanair? ( app-misc/iguanaIR ) - ftdi? ( dev-embedded/libftdi:0 ) - inputlirc? ( app-misc/inputlircd ) - usb? ( virtual/libusb:0 ) -" - -PATCHES=( - "${FILESDIR}"/lirc-0.9.4-doc-path-fix.patch # https://bugs.gentoo.org/show_bug.cgi?id=589246 https://sourceforge.net/p/lirc/tickets/214/ -) - -src_configure() { - filter-flags -Wl,-O1 - econf \ - --localstatedir=/var \ - $(use_enable static-libs static) \ - $(use_with X x) -} - -# Defined src_compile as a workaround for a parallel make issue -# See https://bugs.gentoo.org/show_bug.cgi?id=588864 -# and https://sourceforge.net/p/lirc/tickets/210/ -src_compile() { - emake lib - emake -} - -src_install() { - default - - newinitd "${FILESDIR}"/lircd-0.8.6-r2 lircd - newinitd "${FILESDIR}"/lircmd-0.9.4a-r2 lircmd - newconfd "${FILESDIR}"/lircd.conf.4 lircd - newconfd "${FILESDIR}"/lircmd.conf lircmd - - insinto /etc/modprobe.d/ - newins "${FILESDIR}"/modprobed.lirc lirc.conf - - newinitd "${FILESDIR}"/irexec-initd-0.9.4a-r2 irexec - newconfd "${FILESDIR}"/irexec-confd irexec - - keepdir /etc/lirc - if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then - newdoc "${D}"/etc/lirc/lircd.conf lircd.conf.example - fi - - find "${D}" -name '*.la' -delete || die - - # Avoid QA notice - rm -d "${D}"/var/run/lirc || die - rm -d "${D}"/var/run || die -} - -pkg_preinst() { - local dir="${EROOT}/etc/modprobe.d" - if [[ -a "${dir}"/lirc && ! -a "${dir}"/lirc.conf ]]; then - elog "Renaming ${dir}/lirc to lirc.conf" - mv -f "${dir}/lirc" "${dir}/lirc.conf" || die - fi - - # copy the first file that can be found - if [[ -f "${EROOT}"/etc/lirc/lircd.conf ]]; then - cp "${EROOT}"/etc/lirc/lircd.conf "${T}"/lircd.conf || die - elif [[ -f "${EROOT}"/etc/lircd.conf ]]; then - cp "${EROOT}"/etc/lircd.conf "${T}"/lircd.conf || die - MOVE_OLD_LIRCD_CONF=1 - elif [[ -f "${D}"/etc/lirc/lircd.conf ]]; then - cp "${D}"/etc/lirc/lircd.conf "${T}"/lircd.conf || die - fi - - # stop portage from touching the config file - if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then - rm -f "${D}"/etc/lirc/lircd.conf || die - fi -} - -pkg_postinst() { - # copy config file to new location - # without portage knowing about it - # so it will not delete it on unmerge or ever touch it again - if [[ -e "${T}"/lircd.conf ]]; then - cp "${T}"/lircd.conf "${EROOT}"/etc/lirc/lircd.conf || die - if [[ "$MOVE_OLD_LIRCD_CONF" = "1" ]]; then - elog "Moved /etc/lircd.conf to /etc/lirc/lircd.conf" - rm -f "${EROOT}"/etc/lircd.conf || die - fi - fi - - einfo "The new default location for lircd.conf is inside of" - einfo "/etc/lirc/ directory" -} diff --git a/app-misc/lirc/lirc-0.9.4c.ebuild b/app-misc/lirc/lirc-0.9.4c.ebuild deleted file mode 100644 index 25ec10062e3..00000000000 --- a/app-misc/lirc/lirc-0.9.4c.ebuild +++ /dev/null @@ -1,150 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python3_4 python3_5 ) - -inherit eutils flag-o-matic python-single-r1 systemd xdg-utils - -DESCRIPTION="decode and send infra-red signals of many commonly used remote controls" -HOMEPAGE="http://www.lirc.org/" - -LIRC_DRIVER_DEVICE="/dev/lirc0" - -MY_P=${PN}-${PV/_/} - -if [[ "${PV/_pre/}" = "${PV}" ]]; then - SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2" -else - SRC_URI="http://www.lirc.org/software/snapshots/${MY_P}.tar.bz2" -fi - -LICENSE="GPL-2+" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" -IUSE="audio doc ftdi gtk inputlirc static-libs systemd usb X" - -REQUIRED_USE=" - ${PYTHON_REQUIRED_USE} - gtk? ( X ) -" - -S="${WORKDIR}/${MY_P}" - -COMMON_DEPEND=" - ${PYTHON_DEPS} - audio? ( - >media-libs/portaudio-18 - media-libs/alsa-lib - ) - dev-python/pyyaml[${PYTHON_USEDEP}] - ftdi? ( dev-embedded/libftdi:0 ) - systemd? ( sys-apps/systemd ) - usb? ( virtual/libusb:0 ) - X? ( - x11-libs/libICE - x11-libs/libSM - x11-libs/libX11 - ) -" - -DEPEND=" - ${COMMON_DEPEND} - dev-libs/libxslt - doc? ( app-doc/doxygen ) - sys-apps/kmod - sys-kernel/linux-headers -" - -RDEPEND=" - ${COMMON_DEPEND} - gtk? ( - x11-libs/vte[introspection] - dev-python/pygobject[${PYTHON_USEDEP}] - ) - inputlirc? ( app-misc/inputlircd ) -" - -PATCHES=( - # https://bugs.gentoo.org/show_bug.cgi?id=589246 https://sourceforge.net/p/lirc/tickets/214/ - "${FILESDIR}"/lirc-0.9.4-doc-path-fix.patch -) - -src_configure() { - xdg_environment_reset - econf \ - --localstatedir="${EPREFIX}/var" \ - $(use_enable static-libs static) \ - $(use_with X x) -} - -src_install() { - default - - if use !gtk ; then - # lirc-setup requires gtk - rm "${ED%/}"/usr/bin/lirc-setup || die - fi - - newinitd "${FILESDIR}"/lircd-0.8.6-r2 lircd - newinitd "${FILESDIR}"/lircmd-0.9.4a-r2 lircmd - newconfd "${FILESDIR}"/lircd.conf.4 lircd - newconfd "${FILESDIR}"/lircmd.conf lircmd - - insinto /etc/modprobe.d/ - newins "${FILESDIR}"/modprobed.lirc lirc.conf - - newinitd "${FILESDIR}"/irexec-initd-0.9.4a-r2 irexec - newconfd "${FILESDIR}"/irexec-confd irexec - - keepdir /etc/lirc - if [[ -e "${ED%/}"/etc/lirc/lircd.conf ]]; then - newdoc "${ED%/}"/etc/lirc/lircd.conf lircd.conf.example - fi - - find "${ED}" -name '*.la' -delete || die - - # Avoid QA notice - rm -d "${ED%/}"/var/run/lirc || die - rm -d "${ED%/}"/var/run || die -} - -pkg_preinst() { - local dir="${EROOT%/}/etc/modprobe.d" - if [[ -a "${dir}"/lirc && ! -a "${dir}"/lirc.conf ]]; then - elog "Renaming ${dir}/lirc to lirc.conf" - mv -f "${dir}/lirc" "${dir}/lirc.conf" || die - fi - - # copy the first file that can be found - if [[ -f "${EROOT%/}"/etc/lirc/lircd.conf ]]; then - cp "${EROOT%/}"/etc/lirc/lircd.conf "${T}"/lircd.conf || die - elif [[ -f "${EROOT%/}"/etc/lircd.conf ]]; then - cp "${EROOT%/}"/etc/lircd.conf "${T}"/lircd.conf || die - MOVE_OLD_LIRCD_CONF=1 - elif [[ -f "${ED%/}"/etc/lirc/lircd.conf ]]; then - cp "${ED%/}"/etc/lirc/lircd.conf "${T}"/lircd.conf || die - fi - - # stop portage from touching the config file - if [[ -e "${ED%/}"/etc/lirc/lircd.conf ]]; then - rm -f "${ED%/}"/etc/lirc/lircd.conf || die - fi -} - -pkg_postinst() { - # copy config file to new location - # without portage knowing about it - # so it will not delete it on unmerge or ever touch it again - if [[ -e "${T}"/lircd.conf ]]; then - cp "${T}"/lircd.conf "${EROOT%/}"/etc/lirc/lircd.conf || die - if [[ "$MOVE_OLD_LIRCD_CONF" = "1" ]]; then - elog "Moved /etc/lircd.conf to /etc/lirc/lircd.conf" - rm -f "${EROOT%/}"/etc/lircd.conf || die - fi - fi - - einfo "The new default location for lircd.conf is inside of" - einfo "${EROOT%/}/etc/lirc/ directory" -} diff --git a/app-misc/lirc/lirc-0.9.4d.ebuild b/app-misc/lirc/lirc-0.9.4d.ebuild deleted file mode 100644 index 57072953cad..00000000000 --- a/app-misc/lirc/lirc-0.9.4d.ebuild +++ /dev/null @@ -1,155 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python3_4 python3_5 ) - -inherit autotools eutils flag-o-matic python-single-r1 systemd xdg-utils - -DESCRIPTION="decode and send infra-red signals of many commonly used remote controls" -HOMEPAGE="http://www.lirc.org/" - -LIRC_DRIVER_DEVICE="/dev/lirc0" - -MY_P=${PN}-${PV/_/} - -if [[ "${PV/_pre/}" = "${PV}" ]]; then - SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2" -else - SRC_URI="http://www.lirc.org/software/snapshots/${MY_P}.tar.bz2" -fi - -LICENSE="GPL-2+" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" -IUSE="audio doc ftdi gtk inputlirc static-libs systemd usb X" - -REQUIRED_USE=" - ${PYTHON_REQUIRED_USE} - gtk? ( X ) -" - -S="${WORKDIR}/${MY_P}" - -COMMON_DEPEND=" - ${PYTHON_DEPS} - audio? ( - >media-libs/portaudio-18 - media-libs/alsa-lib - ) - dev-python/pyyaml[${PYTHON_USEDEP}] - ftdi? ( dev-embedded/libftdi:0 ) - systemd? ( sys-apps/systemd ) - usb? ( virtual/libusb:0 ) - X? ( - x11-libs/libICE - x11-libs/libSM - x11-libs/libX11 - ) -" - -DEPEND=" - ${COMMON_DEPEND} - dev-libs/libxslt - doc? ( app-doc/doxygen ) - sys-apps/kmod - sys-kernel/linux-headers -" - -RDEPEND=" - ${COMMON_DEPEND} - gtk? ( - x11-libs/vte[introspection] - dev-python/pygobject[${PYTHON_USEDEP}] - ) - inputlirc? ( app-misc/inputlircd ) -" - -PATCHES=( - # https://bugs.gentoo.org/show_bug.cgi?id=589246 https://sourceforge.net/p/lirc/tickets/214/ - "${FILESDIR}"/lirc-0.9.4-doc-path-fix.patch -) - -src_prepare() { - default - eautoreconf -} - -src_configure() { - xdg_environment_reset - econf \ - --localstatedir="${EPREFIX}/var" \ - $(use_enable static-libs static) \ - $(use_with X x) -} - -src_install() { - default - - if use !gtk ; then - # lirc-setup requires gtk - rm "${ED%/}"/usr/bin/lirc-setup || die - fi - - newinitd "${FILESDIR}"/lircd-0.8.6-r2 lircd - newinitd "${FILESDIR}"/lircmd-0.9.4a-r2 lircmd - newconfd "${FILESDIR}"/lircd.conf.4 lircd - newconfd "${FILESDIR}"/lircmd.conf lircmd - - insinto /etc/modprobe.d/ - newins "${FILESDIR}"/modprobed.lirc lirc.conf - - newinitd "${FILESDIR}"/irexec-initd-0.9.4a-r2 irexec - newconfd "${FILESDIR}"/irexec-confd irexec - - keepdir /etc/lirc - if [[ -e "${ED%/}"/etc/lirc/lircd.conf ]]; then - newdoc "${ED%/}"/etc/lirc/lircd.conf lircd.conf.example - fi - - find "${ED}" -name '*.la' -delete || die - - # Avoid QA notice - rm -d "${ED%/}"/var/run/lirc || die - rm -d "${ED%/}"/var/run || die -} - -pkg_preinst() { - local dir="${EROOT%/}/etc/modprobe.d" - if [[ -a "${dir}"/lirc && ! -a "${dir}"/lirc.conf ]]; then - elog "Renaming ${dir}/lirc to lirc.conf" - mv -f "${dir}/lirc" "${dir}/lirc.conf" || die - fi - - # copy the first file that can be found - if [[ -f "${EROOT%/}"/etc/lirc/lircd.conf ]]; then - cp "${EROOT%/}"/etc/lirc/lircd.conf "${T}"/lircd.conf || die - elif [[ -f "${EROOT%/}"/etc/lircd.conf ]]; then - cp "${EROOT%/}"/etc/lircd.conf "${T}"/lircd.conf || die - MOVE_OLD_LIRCD_CONF=1 - elif [[ -f "${ED%/}"/etc/lirc/lircd.conf ]]; then - cp "${ED%/}"/etc/lirc/lircd.conf "${T}"/lircd.conf || die - fi - - # stop portage from touching the config file - if [[ -e "${ED%/}"/etc/lirc/lircd.conf ]]; then - rm -f "${ED%/}"/etc/lirc/lircd.conf || die - fi -} - -pkg_postinst() { - # copy config file to new location - # without portage knowing about it - # so it will not delete it on unmerge or ever touch it again - if [[ -e "${T}"/lircd.conf ]]; then - cp "${T}"/lircd.conf "${EROOT%/}"/etc/lirc/lircd.conf || die - if [[ "$MOVE_OLD_LIRCD_CONF" = "1" ]]; then - elog "Moved /etc/lircd.conf to /etc/lirc/lircd.conf" - rm -f "${EROOT%/}"/etc/lircd.conf || die - fi - fi - - einfo "The new default location for lircd.conf is inside of" - einfo "${EROOT%/}/etc/lirc/ directory" -} diff --git a/app-misc/lirc/metadata.xml b/app-misc/lirc/metadata.xml index b1e7f0c27f8..3a8d3814118 100644 --- a/app-misc/lirc/metadata.xml +++ b/app-misc/lirc/metadata.xml @@ -11,9 +11,7 @@ The transmitter device generates its clock signal in hardware Add transmitter support to some lirc-drivers (e.g. serial) Add a dependency on app-misc/inputlircd - Add a dependency on media-libs/libirman Support using an audio device connected to an IR receiver - Support iguanaIR devices Support FTDI devices Include GTK support which enables the use of lirc-setup