Gentoo Archives: gentoo-commits

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