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

Contents of /media-sound/murmur/murmur-1.2.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Feb 15 21:28:13 2014 UTC (6 years, 9 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Stable for x86, wrt bug #500486

(Portage version: 2.2.7/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2014 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.5.ebuild,v 1.2 2014/02/15 21:18:34 ago Exp $
4
5 EAPI="5"
6
7 QT_MINIMAL="4.6"
8
9 inherit eutils qt4-r2 systemd user readme.gentoo
10
11 MY_P="${PN/murmur/mumble}-${PV/_/~}"
12
13 DESCRIPTION="Mumble is an open source, low-latency, high quality voice chat software"
14 HOMEPAGE="http://mumble.sourceforge.net/"
15 SRC_URI="http://mumble.info/snapshot/${MY_P}.tar.gz"
16
17 LICENSE="BSD"
18 SLOT="0"
19 KEYWORDS="amd64 ~ia64 x86"
20 IUSE="+dbus debug +ice pch zeroconf"
21
22 RDEPEND=">=dev-libs/openssl-1.0.0b
23 >=dev-libs/protobuf-2.2.0
24 sys-apps/lsb-release
25 >=sys-libs/libcap-2.15
26 dev-qt/qtcore:4[ssl]
27 || ( dev-qt/qtsql:4[sqlite] dev-qt/qtsql:4[mysql] )
28 dev-qt/qtxmlpatterns:4
29 dbus? ( dev-qt/qtdbus:4 )
30 ice? ( dev-libs/Ice )
31 zeroconf? ( net-dns/avahi[mdnsresponder-compat] )"
32
33 DEPEND="${RDEPEND}
34 >=dev-libs/boost-1.41.0
35 virtual/pkgconfig"
36
37 S="${WORKDIR}/${MY_P}"
38
39 PATCHES=(
40 "${FILESDIR}"/${PN}-1.2.4-ice-3.5.0-compat.patch
41 "${FILESDIR}"/${PN}-1.2.4-ice-3.5.1-compat.patch
42 )
43
44 DOC_CONTENTS="
45 Useful scripts are located in /usr/share/doc/${PF}/scripts.\n
46 Please execute:\n
47 murmurd -ini /etc/murmur/murmur.ini -supw <pw>\n
48 chown murmur:murmur /var/lib/murmur/murmur.sqlite\n
49 to set the build-in 'SuperUser' password before starting murmur.
50 Please restart dbus before starting murmur, or else dbus
51 registration will fail.
52 "
53
54 pkg_setup() {
55 enewgroup murmur
56 enewuser murmur -1 -1 /var/lib/murmur murmur
57 }
58
59 src_prepare() {
60 qt4-r2_src_prepare
61
62 sed \
63 -e 's:mumble-server:murmur:g' \
64 -e 's:/var/run:/run:g' \
65 -i "${S}"/scripts/murmur.{conf,ini.system} || die
66 }
67
68 src_configure() {
69 local conf_add
70
71 use dbus || conf_add="${conf_add} no-dbus"
72 use debug && conf_add="${conf_add} symbols debug" || conf_add="${conf_add} release"
73 use ice || conf_add="${conf_add} no-ice"
74 use pch || conf_add="${conf_add} no-pch"
75 use zeroconf || conf_add="${conf_add} no-bonjour"
76
77 eqmake4 main.pro -recursive \
78 CONFIG+="${conf_add} no-client"
79 }
80
81 src_compile() {
82 # parallel make workaround, upstream bug #3190498
83 emake -j1
84 }
85
86 src_install() {
87 dodoc README CHANGES
88
89 docinto scripts
90 dodoc scripts/*.php scripts/*.pl
91
92 local dir
93 if use debug; then
94 dir=debug
95 else
96 dir=release
97 fi
98
99 dobin "${dir}"/murmurd
100
101 insinto /etc/murmur/
102 newins scripts/murmur.ini.system murmur.ini
103
104 insinto /etc/logrotate.d/
105 newins "${FILESDIR}"/murmur.logrotate murmur
106
107 insinto /etc/dbus-1/system.d/
108 doins scripts/murmur.conf
109
110 insinto /usr/share/murmur/
111 doins src/murmur/Murmur.ice
112
113 newinitd "${FILESDIR}"/murmur.initd-r1 murmur
114 newconfd "${FILESDIR}"/murmur.confd murmur
115
116 if use dbus; then
117 systemd_newunit "${FILESDIR}"/murmurd-dbus.service "${PN}".service
118 systemd_newtmpfilesd "${FILESDIR}"/murmurd-dbus.tmpfiles "${PN}".conf
119 else
120 systemd_newunit "${FILESDIR}"/murmurd-no-dbus.service "${PN}".service
121 fi
122
123 keepdir /var/lib/murmur /var/log/murmur
124 fowners -R murmur /var/lib/murmur /var/log/murmur
125 fperms 750 /var/lib/murmur /var/log/murmur
126
127 doman man/murmurd.1
128
129 readme.gentoo_create_doc
130 }
131
132 pkg_postinst() {
133 readme.gentoo_print_elog
134 }

  ViewVC Help
Powered by ViewVC 1.1.20