1 |
commit: 6b4f62969d14d5e97d6fcb437518927f8e144c7b |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 24 10:33:28 2016 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 24 10:37:51 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b4f6296 |
7 |
|
8 |
app-misc/lirc: Drop old |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
app-misc/lirc/lirc-0.9.4a-r1.ebuild | 139 ------------------------------------ |
13 |
1 file changed, 139 deletions(-) |
14 |
|
15 |
diff --git a/app-misc/lirc/lirc-0.9.4a-r1.ebuild b/app-misc/lirc/lirc-0.9.4a-r1.ebuild |
16 |
deleted file mode 100644 |
17 |
index 0c413ef..00000000 |
18 |
--- a/app-misc/lirc/lirc-0.9.4a-r1.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,139 +0,0 @@ |
21 |
-# Copyright 1999-2016 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
-# $Id$ |
24 |
- |
25 |
-EAPI=6 |
26 |
- |
27 |
-inherit eutils flag-o-matic systemd |
28 |
- |
29 |
-DESCRIPTION="decode and send infra-red signals of many commonly used remote controls" |
30 |
-HOMEPAGE="http://www.lirc.org/" |
31 |
- |
32 |
-LIRC_DRIVER_DEVICE="/dev/lirc0" |
33 |
- |
34 |
-MY_P=${PN}-${PV/_/} |
35 |
- |
36 |
-if [[ "${PV/_pre/}" = "${PV}" ]]; then |
37 |
- SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2" |
38 |
-else |
39 |
- SRC_URI="http://www.lirc.org/software/snapshots/${MY_P}.tar.bz2" |
40 |
-fi |
41 |
- |
42 |
-LICENSE="GPL-2" |
43 |
-SLOT="0" |
44 |
-KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
45 |
-IUSE="doc static-libs X audio irman ftdi inputlirc iguanair systemd usb" |
46 |
- |
47 |
-S="${WORKDIR}/${MY_P}" |
48 |
- |
49 |
-REQUIRED_USE=" |
50 |
- iguanair? ( irman ) |
51 |
-" |
52 |
-DEPEND=" |
53 |
- doc? ( app-doc/doxygen ) |
54 |
-" |
55 |
- |
56 |
-RDEPEND=" |
57 |
- X? ( |
58 |
- x11-libs/libX11 |
59 |
- x11-libs/libSM |
60 |
- x11-libs/libICE |
61 |
- ) |
62 |
- systemd? ( sys-apps/systemd ) |
63 |
- audio? ( |
64 |
- >media-libs/portaudio-18 |
65 |
- media-libs/alsa-lib |
66 |
- ) |
67 |
- irman? ( media-libs/libirman ) |
68 |
- iguanair? ( app-misc/iguanaIR ) |
69 |
- ftdi? ( dev-embedded/libftdi:0 ) |
70 |
- inputlirc? ( app-misc/inputlircd ) |
71 |
- usb? ( virtual/libusb:0 ) |
72 |
-" |
73 |
- |
74 |
-PATCHES=( |
75 |
- "${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/ |
76 |
-) |
77 |
- |
78 |
-src_configure() { |
79 |
- filter-flags -Wl,-O1 |
80 |
- econf \ |
81 |
- --docdir=/usr/share/doc/${PF} \ |
82 |
- --localstatedir=/var \ |
83 |
- $(use_enable static-libs static) \ |
84 |
- $(use_with X x) |
85 |
-} |
86 |
- |
87 |
-# Defined src_compile as a workaround for a parallel make issue |
88 |
-# See https://bugs.gentoo.org/show_bug.cgi?id=588864 |
89 |
-# and https://sourceforge.net/p/lirc/tickets/210/ |
90 |
-src_compile() { |
91 |
- emake lib |
92 |
- emake |
93 |
-} |
94 |
- |
95 |
-src_install() { |
96 |
- default |
97 |
- |
98 |
- newinitd "${FILESDIR}"/lircd-0.8.6-r2 lircd |
99 |
- newinitd "${FILESDIR}"/lircmd lircmd |
100 |
- newconfd "${FILESDIR}"/lircd.conf.4 lircd |
101 |
- |
102 |
- insinto /etc/modprobe.d/ |
103 |
- newins "${FILESDIR}"/modprobed.lirc lirc.conf |
104 |
- |
105 |
- newinitd "${FILESDIR}"/irexec-initd-0.9.4a-r1 irexec |
106 |
- newconfd "${FILESDIR}"/irexec-confd irexec |
107 |
- |
108 |
- keepdir /etc/lirc |
109 |
- if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then |
110 |
- newdoc "${D}"/etc/lirc/lircd.conf lircd.conf.example |
111 |
- fi |
112 |
- |
113 |
- if ! use static-libs; then |
114 |
- rm "${D}/usr/$(get_libdir)/liblirc_client.la" || die |
115 |
- fi |
116 |
- |
117 |
- # Avoid QA notice |
118 |
- rm -d "${D}"/var/run/lirc || die |
119 |
- rm -d "${D}"/var/run || die |
120 |
-} |
121 |
- |
122 |
-pkg_preinst() { |
123 |
- local dir="${EROOT}/etc/modprobe.d" |
124 |
- if [[ -a "${dir}"/lirc && ! -a "${dir}"/lirc.conf ]]; then |
125 |
- elog "Renaming ${dir}/lirc to lirc.conf" |
126 |
- mv -f "${dir}/lirc" "${dir}/lirc.conf" || die |
127 |
- fi |
128 |
- |
129 |
- # copy the first file that can be found |
130 |
- if [[ -f "${EROOT}"/etc/lirc/lircd.conf ]]; then |
131 |
- cp "${EROOT}"/etc/lirc/lircd.conf "${T}"/lircd.conf || die |
132 |
- elif [[ -f "${EROOT}"/etc/lircd.conf ]]; then |
133 |
- cp "${EROOT}"/etc/lircd.conf "${T}"/lircd.conf || die |
134 |
- MOVE_OLD_LIRCD_CONF=1 |
135 |
- elif [[ -f "${D}"/etc/lirc/lircd.conf ]]; then |
136 |
- cp "${D}"/etc/lirc/lircd.conf "${T}"/lircd.conf || die |
137 |
- fi |
138 |
- |
139 |
- # stop portage from touching the config file |
140 |
- if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then |
141 |
- rm -f "${D}"/etc/lirc/lircd.conf || die |
142 |
- fi |
143 |
-} |
144 |
- |
145 |
-pkg_postinst() { |
146 |
- # copy config file to new location |
147 |
- # without portage knowing about it |
148 |
- # so it will not delete it on unmerge or ever touch it again |
149 |
- if [[ -e "${T}"/lircd.conf ]]; then |
150 |
- cp "${T}"/lircd.conf "${EROOT}"/etc/lirc/lircd.conf || die |
151 |
- if [[ "$MOVE_OLD_LIRCD_CONF" = "1" ]]; then |
152 |
- elog "Moved /etc/lircd.conf to /etc/lirc/lircd.conf" |
153 |
- rm -f "${EROOT}"/etc/lircd.conf || die |
154 |
- fi |
155 |
- fi |
156 |
- |
157 |
- einfo "The new default location for lircd.conf is inside of" |
158 |
- einfo "/etc/lirc/ directory" |
159 |
-} |