/[gentoo-x86]/media-sound/murmur/murmur-1.2.3-r1.ebuild
Gentoo

Contents of /media-sound/murmur/murmur-1.2.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Feb 20 19:10:16 2012 UTC (8 years, 9 months ago) by tgurr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Revbump adding patches for Qt 4.8 SSL compatibility. Fix bug #398791, thanks to Hans Nieser. Remove old.

(Portage version: 2.2.0_alpha86/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/murmur/murmur-1.2.3-r1.ebuild,v 1.1 2011/09/15 21:42:38 tgurr Exp $
4
5 EAPI="4"
6
7 inherit eutils qt4-r2
8
9 MY_P="${PN/murmur/mumble}-${PV/_/~}"
10
11 DESCRIPTION="Mumble is an open source, low-latency, high quality voice chat software"
12 HOMEPAGE="http://mumble.sourceforge.net/"
13 SRC_URI="mirror://sourceforge/mumble/${MY_P}.tar.gz"
14
15 LICENSE="BSD"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="+dbus debug +ice pch zeroconf"
19
20 RDEPEND=">=dev-libs/openssl-1.0.0b
21 >=dev-libs/protobuf-2.2.0
22 sys-apps/lsb-release
23 >=sys-libs/libcap-2.15
24 x11-libs/qt-core:4[ssl]
25 || ( x11-libs/qt-sql:4[sqlite] x11-libs/qt-sql:4[mysql] )
26 x11-libs/qt-xmlpatterns:4
27 dbus? ( x11-libs/qt-dbus:4 )
28 ice? ( dev-libs/Ice )
29 zeroconf? ( || ( net-dns/avahi[mdnsresponder-compat] net-misc/mDNSResponder ) )"
30
31 DEPEND="${RDEPEND}
32 >=dev-libs/boost-1.41.0
33 dev-util/pkgconfig"
34
35 S="${WORKDIR}/${MY_P}"
36
37 PATCHES=( "${FILESDIR}/${PN}-1.2.3-ice-3.4.2-compat.patch" )
38
39 pkg_setup() {
40 enewgroup murmur
41 enewuser murmur -1 -1 /var/lib/murmur murmur
42 }
43
44 src_prepare() {
45 qt4-r2_src_prepare
46
47 sed -i -e 's:mumble-server:murmur:g' \
48 "${S}"/scripts/murmur.{conf,ini.system} || die
49 }
50
51 src_configure() {
52 local conf_add
53
54 use dbus || conf_add="${conf_add} no-dbus"
55 use debug && conf_add="${conf_add} symbols debug" || conf_add="${conf_add} release"
56 use ice || conf_add="${conf_add} no-ice"
57 use pch || conf_add="${conf_add} no-pch"
58 use zeroconf || conf_add="${conf_add} no-bonjour"
59
60 eqmake4 main.pro -recursive \
61 CONFIG+="${conf_add} no-client"
62 }
63
64 src_compile() {
65 # parallel make workaround, upstream bug #3190498
66 emake -j1
67 }
68
69 src_install() {
70 dodoc README CHANGES
71
72 docinto scripts
73 dodoc scripts/*.php scripts/*.pl
74
75 local dir
76 if use debug; then
77 dir=debug
78 else
79 dir=release
80 fi
81
82 dobin "${dir}"/murmurd
83
84 insinto /etc/murmur/
85 newins scripts/murmur.ini.system murmur.ini
86
87 insinto /etc/logrotate.d/
88 newins "${FILESDIR}"/murmur.logrotate murmur
89
90 insinto /etc/dbus-1/system.d/
91 doins scripts/murmur.conf
92
93 newinitd "${FILESDIR}"/murmur.initd murmur
94 newconfd "${FILESDIR}"/murmur.confd murmur
95
96 keepdir /var/lib/murmur /var/run/murmur /var/log/murmur
97 fowners -R murmur /var/lib/murmur /var/run/murmur /var/log/murmur
98 fperms 750 /var/lib/murmur /var/run/murmur /var/log/murmur
99
100 doman man/murmurd.1
101 }
102
103 pkg_postinst() {
104 echo
105 elog "Useful scripts are located in /usr/share/doc/${PF}/scripts."
106 elog "Please execute:"
107 elog "murmurd -ini /etc/murmur/murmur.ini -supw <pw>"
108 elog "chown murmur:murmur /var/lib/murmur/murmur.sqlite"
109 elog "to set the build-in 'SuperUser' password before starting murmur."
110 elog "Please restart dbus before starting murmur, or else dbus"
111 elog "registration will fail."
112 echo
113 }

  ViewVC Help
Powered by ViewVC 1.1.20