Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/lirc/
Date: Mon, 09 Jul 2018 14:09:11
Message-Id: 1531145342.9da18e4d87493b3cfc7b063d4bb8a39358d28324.candrews@gentoo
1 commit: 9da18e4d87493b3cfc7b063d4bb8a39358d28324
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 9 14:07:43 2018 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 9 14:09:02 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9da18e4d
7
8 app-misc/lirc: 0.10.1 version bump
9
10 Package-Manager: Portage-2.3.41, Repoman-2.3.9
11
12 app-misc/lirc/Manifest | 1 +
13 app-misc/lirc/lirc-0.10.1.ebuild | 151 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 152 insertions(+)
15
16 diff --git a/app-misc/lirc/Manifest b/app-misc/lirc/Manifest
17 index 640fb7f681a..71cb02daed0 100644
18 --- a/app-misc/lirc/Manifest
19 +++ b/app-misc/lirc/Manifest
20 @@ -1,5 +1,6 @@
21 DIST lirc-0.10.0-rc2.tar.bz2 2552982 BLAKE2B d68639198dd7041865f6b7ac79cb94b63d8a85ee70f97628e27887d14f62814388a51521dabe91730570c382c6bb7edb36c15eba0f8ea9f5d4490dfce2bd121a SHA512 ab3426477f017e3a1b9da690189beae5086bbb52f88d302e6c91d7633f74ef781e6747f6b697b3ed6df13497a3e666f11c846104d2f00b975746d24bfd2a6cd5
22 DIST lirc-0.10.0.tar.bz2 2523528 BLAKE2B 5c133b40936060fbaa0a9463b1b07d9197d935388e3eb4e46791b1f844b82ea6b6d42ae0c6ce249ca306688fa5d15718f5a3a54b497fc9f168b8b736b06bdd1e SHA512 06ccc1c8c80bfd17a6d180ae39a17779cbba341086f90a03a2e552bfb71e3abcb13f991312fba0e57df79c1882c1e29a2f273dddcd46a9ff53160b556e1547ab
23 +DIST lirc-0.10.1.tar.bz2 2523226 BLAKE2B 47b7ee87de8f64f7f829af519c0d296a85cf91790148927e850965177d4984bb994a0ad122cb59c3db508813d0824ffec45126e794abd08174a052361cea53e5 SHA512 31c0b6ee169b302b99994a2a3fa0ebcae0e01cb83c02fe02acf1de5ba8cf77a091a0221c7d8104448c30930adafe654cd08afb7d0df6b5b7ec2d47df26e5df9d
24 DIST lirc-0.9.0.tar.bz2 857286 BLAKE2B 034c7b8492dd42301bb6d40da8c6c95f714b925ee50e7396290231684024dc3fe3bb64987db92d2a4e4d56203436007e68222bbf9a775bb9d29bbefcc4a7c1e4 SHA512 e91534c63e6065bd7da3b15e1676edf1672b8beb21864a6825df86247d7d165bf2dee6f8191732933e24e42a406e46afc55559948e4061eed2de7b08fac13431
25 DIST lirc-0.9.4a.tar.bz2 2292119 BLAKE2B 6ca7562716fde3327aa3f8f9913da7d349969f1bcac095bf2e9b1e3025d1e39176e2fb386ca08bcf80d458262f9eb96dab363ef3aa2c1d56b914ac8a36fcbacf SHA512 16be0ac5dd9b07d717ceba63cdc38c0db4a2bdcfc373ca6346d7cd4ab2cd2973aa7585d10b045fcaea952a3aabf7617c564ccb8268db6c62b172683a4b2cc188
26 DIST lirc-0.9.4c.tar.bz2 2311300 BLAKE2B f58f3b3a701e0ae787e34ec65c1d29b0faa75958b95aa43663a78dbe04c1c1d5456df5a6c5e41c673db9f589a7c2d41423b5f6a667fac890fb18f29fd797438b SHA512 0a0d0e025b87a55ec919c92824d8288bfaf35cfebae0ee97d86e344109f584baa72a2eff6d24fbc526900671d6092e0eebef8d1566559b0d153e122e3127c0cb
27
28 diff --git a/app-misc/lirc/lirc-0.10.1.ebuild b/app-misc/lirc/lirc-0.10.1.ebuild
29 new file mode 100644
30 index 00000000000..9b8d2c10c01
31 --- /dev/null
32 +++ b/app-misc/lirc/lirc-0.10.1.ebuild
33 @@ -0,0 +1,151 @@
34 +# Copyright 1999-2018 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +
39 +PYTHON_COMPAT=( python3_4 python3_{5,6} )
40 +
41 +inherit eutils flag-o-matic linux-info python-single-r1 systemd xdg-utils
42 +
43 +DESCRIPTION="decode and send infra-red signals of many commonly used remote controls"
44 +HOMEPAGE="http://www.lirc.org/"
45 +
46 +LIRC_DRIVER_DEVICE="/dev/lirc0"
47 +
48 +MY_P=${PN}-${PV/_/-}
49 +
50 +if [[ "${PV/_pre/}" = "${PV}" ]]; then
51 + SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2"
52 +else
53 + SRC_URI="http://www.lirc.org/software/snapshots/${MY_P}.tar.bz2"
54 +fi
55 +
56 +LICENSE="GPL-2+"
57 +SLOT="0"
58 +KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86"
59 +IUSE="audio +devinput doc ftdi gtk inputlirc static-libs systemd +uinput usb X"
60 +
61 +REQUIRED_USE="
62 + ${PYTHON_REQUIRED_USE}
63 + gtk? ( X )
64 +"
65 +
66 +S="${WORKDIR}/${MY_P}"
67 +
68 +COMMON_DEPEND="
69 + ${PYTHON_DEPS}
70 + audio? (
71 + >media-libs/portaudio-18
72 + media-libs/alsa-lib
73 + )
74 + dev-python/pyyaml[${PYTHON_USEDEP}]
75 + ftdi? ( dev-embedded/libftdi:0 )
76 + systemd? ( sys-apps/systemd )
77 + usb? ( virtual/libusb:0 )
78 + X? (
79 + x11-libs/libICE
80 + x11-libs/libSM
81 + x11-libs/libX11
82 + )
83 +"
84 +
85 +DEPEND="
86 + ${COMMON_DEPEND}
87 + dev-libs/libxslt
88 + doc? ( app-doc/doxygen )
89 + sys-apps/kmod
90 + sys-kernel/linux-headers
91 +"
92 +
93 +RDEPEND="
94 + ${COMMON_DEPEND}
95 + gtk? (
96 + x11-libs/vte[introspection]
97 + dev-python/pygobject[${PYTHON_USEDEP}]
98 + )
99 + inputlirc? ( app-misc/inputlircd )
100 +"
101 +
102 +pkg_setup() {
103 + use uinput && CONFIG_CHECK="INPUT_UINPUT"
104 +}
105 +
106 +src_configure() {
107 + xdg_environment_reset
108 + econf \
109 + --localstatedir="${EPREFIX}/var" \
110 + $(use_enable static-libs static) \
111 + $(use_enable devinput) \
112 + $(use_enable uinput) \
113 + $(use_with X x)
114 +}
115 +
116 +src_install() {
117 + default
118 +
119 + if use !gtk ; then
120 + # lirc-setup requires gtk
121 + rm "${ED%/}"/usr/bin/lirc-setup || die
122 + fi
123 +
124 + newinitd "${FILESDIR}"/lircd-0.8.6-r2 lircd
125 + newinitd "${FILESDIR}"/lircmd-0.9.4a-r2 lircmd
126 + newconfd "${FILESDIR}"/lircd.conf.4 lircd
127 + newconfd "${FILESDIR}"/lircmd-0.10.0.conf lircmd
128 +
129 + insinto /etc/modprobe.d/
130 + newins "${FILESDIR}"/modprobed.lirc lirc.conf
131 +
132 + newinitd "${FILESDIR}"/irexec-initd-0.9.4a-r2 irexec
133 + newconfd "${FILESDIR}"/irexec-confd irexec
134 +
135 + keepdir /etc/lirc
136 + if [[ -e "${ED%/}"/etc/lirc/lircd.conf ]]; then
137 + newdoc "${ED%/}"/etc/lirc/lircd.conf lircd.conf.example
138 + fi
139 +
140 + find "${ED}" -name '*.la' -delete || die
141 +
142 + # Avoid QA notice
143 + rm -d "${ED%/}"/var/run/lirc || die
144 + rm -d "${ED%/}"/var/run || die
145 +}
146 +
147 +pkg_preinst() {
148 + local dir="${EROOT%/}/etc/modprobe.d"
149 + if [[ -a "${dir}"/lirc && ! -a "${dir}"/lirc.conf ]]; then
150 + elog "Renaming ${dir}/lirc to lirc.conf"
151 + mv -f "${dir}/lirc" "${dir}/lirc.conf" || die
152 + fi
153 +
154 + # copy the first file that can be found
155 + if [[ -f "${EROOT%/}"/etc/lirc/lircd.conf ]]; then
156 + cp "${EROOT%/}"/etc/lirc/lircd.conf "${T}"/lircd.conf || die
157 + elif [[ -f "${EROOT%/}"/etc/lircd.conf ]]; then
158 + cp "${EROOT%/}"/etc/lircd.conf "${T}"/lircd.conf || die
159 + MOVE_OLD_LIRCD_CONF=1
160 + elif [[ -f "${ED%/}"/etc/lirc/lircd.conf ]]; then
161 + cp "${ED%/}"/etc/lirc/lircd.conf "${T}"/lircd.conf || die
162 + fi
163 +
164 + # stop portage from touching the config file
165 + if [[ -e "${ED%/}"/etc/lirc/lircd.conf ]]; then
166 + rm -f "${ED%/}"/etc/lirc/lircd.conf || die
167 + fi
168 +}
169 +
170 +pkg_postinst() {
171 + # copy config file to new location
172 + # without portage knowing about it
173 + # so it will not delete it on unmerge or ever touch it again
174 + if [[ -e "${T}"/lircd.conf ]]; then
175 + cp "${T}"/lircd.conf "${EROOT%/}"/etc/lirc/lircd.conf || die
176 + if [[ "$MOVE_OLD_LIRCD_CONF" = "1" ]]; then
177 + elog "Moved /etc/lircd.conf to /etc/lirc/lircd.conf"
178 + rm -f "${EROOT%/}"/etc/lircd.conf || die
179 + fi
180 + fi
181 +
182 + einfo "The new default location for lircd.conf is inside of"
183 + einfo "${EROOT%/}/etc/lirc/ directory"
184 +}