Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/lirc/
Date: Fri, 08 Jul 2016 11:38:45
Message-Id: 1467976243.fba45ff6829ae469ccec2e5385b487dd182897d7.monsieurp@gentoo
1 commit: fba45ff6829ae469ccec2e5385b487dd182897d7
2 Author: Craig Andrews <candrews <AT> integralblue <DOT> com>
3 AuthorDate: Thu Jul 7 14:30:39 2016 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 8 11:10:43 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fba45ff6
7
8 app-misc/lirc: version bump to-0.9.4a
9
10 Gentoo-Bug: https://bugs.gentoo.org/588242
11 Closes: https://github.com/gentoo/gentoo/pull/1842
12
13 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
14
15 app-misc/lirc/Manifest | 1 +
16 app-misc/lirc/lirc-0.9.4a.ebuild | 125 +++++++++++++++++++++++++++++++++++++++
17 2 files changed, 126 insertions(+)
18
19 diff --git a/app-misc/lirc/Manifest b/app-misc/lirc/Manifest
20 index f9c2e81..2545d62 100644
21 --- a/app-misc/lirc/Manifest
22 +++ b/app-misc/lirc/Manifest
23 @@ -1,2 +1,3 @@
24 DIST lirc-0.9.0.tar.bz2 857286 SHA256 6323afae6ad498d4369675f77ec3dbb680fe661bea586aa296e67f2e2daba4ff SHA512 e91534c63e6065bd7da3b15e1676edf1672b8beb21864a6825df86247d7d165bf2dee6f8191732933e24e42a406e46afc55559948e4061eed2de7b08fac13431 WHIRLPOOL 0a1c00b07898aa7a5d78865fb73c6d26c6331dd0a4945773a801d29e40298b365eb58cae113a95fcf73be678a24ac082ad0868e8051303d732882fb82a859a7b
25 DIST lirc-0.9.4.tar.bz2 2291164 SHA256 dd18a6751674fd61e4a96eebc3b9e5c883389d6230811943513443522dfc5dd0 SHA512 0220cfa0e1900691eed3d6b0624c27e0a99825cd60303304eee7c60e3ae1d8e939d05d32680da64cdbf764919708888ce05803e9ab2423f4bf019b4acd8542f1 WHIRLPOOL 83390295e55445f2d10372e1515b0163d5b3b1e9903f132e018d975d66998d98ffee1caaa1fe26577a0ce18fce20ec025fd5cc0aaf5074728269b12e84d55268
26 +DIST lirc-0.9.4a.tar.bz2 2292119 SHA256 386086a74c7d12e7e8f26f7dbc8f40d20b9968c9ad2a42599483a51dd2da03ba SHA512 16be0ac5dd9b07d717ceba63cdc38c0db4a2bdcfc373ca6346d7cd4ab2cd2973aa7585d10b045fcaea952a3aabf7617c564ccb8268db6c62b172683a4b2cc188 WHIRLPOOL 93431c43d2dd31081e97113e2d49134de7feb29be53508900b3360408f7a099becf169fcebd0f6fc196280c594dc83d1299617ee54b65452828492db9bcd09ad
27
28 diff --git a/app-misc/lirc/lirc-0.9.4a.ebuild b/app-misc/lirc/lirc-0.9.4a.ebuild
29 new file mode 100644
30 index 0000000..63a2b92
31 --- /dev/null
32 +++ b/app-misc/lirc/lirc-0.9.4a.ebuild
33 @@ -0,0 +1,125 @@
34 +# Copyright 1999-2016 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +# $Id$
37 +
38 +EAPI=6
39 +
40 +inherit eutils flag-o-matic systemd
41 +
42 +DESCRIPTION="decode and send infra-red signals of many commonly used remote controls"
43 +HOMEPAGE="http://www.lirc.org/"
44 +
45 +LIRC_DRIVER_DEVICE="/dev/lirc0"
46 +
47 +MY_P=${PN}-${PV/_/}
48 +
49 +if [[ "${PV/_pre/}" = "${PV}" ]]; then
50 + SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2"
51 +else
52 + SRC_URI="http://www.lirc.org/software/snapshots/${MY_P}.tar.bz2"
53 +fi
54 +
55 +LICENSE="GPL-2"
56 +SLOT="0"
57 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
58 +IUSE="doc static-libs X audio irman ftdi inputlirc iguanair systemd usb"
59 +
60 +S="${WORKDIR}/${MY_P}"
61 +
62 +REQUIRED_USE="
63 + iguanair? ( irman )
64 +"
65 +DEPEND="
66 + doc? ( app-doc/doxygen )
67 +"
68 +
69 +RDEPEND="
70 + X? (
71 + x11-libs/libX11
72 + x11-libs/libSM
73 + x11-libs/libICE
74 + )
75 + systemd? ( sys-apps/systemd )
76 + audio? (
77 + >media-libs/portaudio-18
78 + media-libs/alsa-lib
79 + )
80 + irman? ( media-libs/libirman )
81 + iguanair? ( app-misc/iguanaIR )
82 + ftdi? ( dev-embedded/libftdi:0 )
83 + inputlirc? ( app-misc/inputlircd )
84 + usb? ( virtual/libusb:0 )
85 +"
86 +
87 +src_configure() {
88 + filter-flags -Wl,-O1
89 + econf \
90 + $(use_enable static-libs static) \
91 + $(use_with X x)
92 +}
93 +
94 +src_install() {
95 + default
96 +
97 + newinitd "${FILESDIR}"/lircd-0.8.6-r2 lircd
98 + newinitd "${FILESDIR}"/lircmd lircmd
99 + newconfd "${FILESDIR}"/lircd.conf.4 lircd
100 +
101 + insinto /etc/modprobe.d/
102 + newins "${FILESDIR}"/modprobed.lirc lirc.conf
103 +
104 + newinitd "${FILESDIR}"/irexec-initd irexec
105 + newconfd "${FILESDIR}"/irexec-confd irexec
106 +
107 + if use doc ; then
108 + dodoc -r doc/html
109 + fi
110 +
111 + keepdir /etc/lirc
112 + if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then
113 + newdoc "${D}"/etc/lirc/lircd.conf lircd.conf.example
114 + fi
115 +
116 + if ! use static-libs; then
117 + rm "${D}/usr/$(get_libdir)/liblirc_client.la" || die
118 + fi
119 +}
120 +
121 +pkg_preinst() {
122 + local dir="${EROOT}/etc/modprobe.d"
123 + if [[ -a "${dir}"/lirc && ! -a "${dir}"/lirc.conf ]]; then
124 + elog "Renaming ${dir}/lirc to lirc.conf"
125 + mv -f "${dir}/lirc" "${dir}/lirc.conf" || die
126 + fi
127 +
128 + # copy the first file that can be found
129 + if [[ -f "${EROOT}"/etc/lirc/lircd.conf ]]; then
130 + cp "${EROOT}"/etc/lirc/lircd.conf "${T}"/lircd.conf || die
131 + elif [[ -f "${EROOT}"/etc/lircd.conf ]]; then
132 + cp "${EROOT}"/etc/lircd.conf "${T}"/lircd.conf || die
133 + MOVE_OLD_LIRCD_CONF=1
134 + elif [[ -f "${D}"/etc/lirc/lircd.conf ]]; then
135 + cp "${D}"/etc/lirc/lircd.conf "${T}"/lircd.conf || die
136 + fi
137 +
138 + # stop portage from touching the config file
139 + if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then
140 + rm -f "${D}"/etc/lirc/lircd.conf || die
141 + fi
142 +}
143 +
144 +pkg_postinst() {
145 + # copy config file to new location
146 + # without portage knowing about it
147 + # so it will not delete it on unmerge or ever touch it again
148 + if [[ -e "${T}"/lircd.conf ]]; then
149 + cp "${T}"/lircd.conf "${EROOT}"/etc/lirc/lircd.conf || die
150 + if [[ "$MOVE_OLD_LIRCD_CONF" = "1" ]]; then
151 + elog "Moved /etc/lircd.conf to /etc/lirc/lircd.conf"
152 + rm -f "${EROOT}"/etc/lircd.conf || die
153 + fi
154 + fi
155 +
156 + einfo "The new default location for lircd.conf is inside of"
157 + einfo "/etc/lirc/ directory"
158 +}