blob: 662bf203030cd5ce5733837f5ac425e9b7e75d35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-radio/svxlink/svxlink-13.12.ebuild,v 1.4 2014/03/04 20:10:33 ago Exp $
EAPI=4
inherit eutils multilib qt4-r2 user
DESCRIPTION="Multi Purpose Voice Services System, including Qtel for EchoLink"
HOMEPAGE="http://svxlink.sourceforge.net/"
SRC_URI="mirror://sourceforge/svxlink/${P}.tar.gz"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND="dev-lang/tcl
dev-qt/qtcore:4
dev-qt/qtgui:4
media-libs/alsa-lib
media-sound/gsm
dev-libs/libgcrypt:0
media-libs/speex
media-libs/opus
dev-libs/libsigc++:2
dev-libs/popt"
DEPEND="${RDEPEND}
virtual/pkgconfig"
MAKEOPTS="${MAKEOPTS} -j1"
pkg_setup() {
enewgroup svxlink
enewuser svxlink -1 -1 -1 svxlink
}
src_prepare() {
sed -i -e "s:/lib:/$(get_libdir):g" makefile.cfg || die
sed -i -e "s:/etc/udev:/lib/udev:" svxlink/scripts/Makefile.default || die
# fix underlinking
sed -i -e "s:lgsm:lgsm -lspeex:" qtel/Makefile.default || die
# drop deprecated desktop category (bug #475730)
sed -i -e "s:Categories=Application;:Categories=:g" qtel/qtel.desktop || die
}
src_install() {
default
fowners -R svxlink.svxlink /var/spool/svxlink
# adapt to gentoo init system
rm -R "${D}"/etc/sysconfig || die
newinitd "${FILESDIR}"/remotetrx.init remotetrx
newinitd "${FILESDIR}"/svxlink.init svxlink
newconfd "${FILESDIR}"/remotetrx.rc remotetrx
newconfd "${FILESDIR}"/svxlink.rc svxlink
}
|