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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Oct 9 18:58:44 2013 UTC (7 years, 1 month ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Use improved unit files from Exherbo (thanks to tgurr for suggesting the change), revert the dependency restriction on Ice as I cannot reproduce the problem and, in any case, the problem would affect to even current stable (and probably would need a specific bug to handle that issue)

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2013 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.4-r1.ebuild,v 1.2 2013/10/07 17:19:08 pacho Exp $
4
5 EAPI="5"
6
7 QT_MINIMAL="4.6"
8
9 inherit eutils qt4-r2 systemd user
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-3.5.0 )
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 )
42
43 pkg_setup() {
44 enewgroup murmur
45 enewuser murmur -1 -1 /var/lib/murmur murmur
46 }
47
48 src_prepare() {
49 qt4-r2_src_prepare
50
51 sed \
52 -e 's:mumble-server:murmur:g' \
53 -e 's:/var/run:/run:g' \
54 -i "${S}"/scripts/murmur.{conf,ini.system} || die
55 }
56
57 src_configure() {
58 local conf_add
59
60 use dbus || conf_add="${conf_add} no-dbus"
61 use debug && conf_add="${conf_add} symbols debug" || conf_add="${conf_add} release"
62 use ice || conf_add="${conf_add} no-ice"
63 use pch || conf_add="${conf_add} no-pch"
64 use zeroconf || conf_add="${conf_add} no-bonjour"
65
66 eqmake4 main.pro -recursive \
67 CONFIG+="${conf_add} no-client"
68 }
69
70 src_compile() {
71 # parallel make workaround, upstream bug #3190498
72 emake -j1
73 }
74
75 src_install() {
76 dodoc README CHANGES
77
78 docinto scripts
79 dodoc scripts/*.php scripts/*.pl
80
81 local dir
82 if use debug; then
83 dir=debug
84 else
85 dir=release
86 fi
87
88 dobin "${dir}"/murmurd
89
90 insinto /etc/murmur/
91 newins scripts/murmur.ini.system murmur.ini
92
93 insinto /etc/logrotate.d/
94 newins "${FILESDIR}"/murmur.logrotate murmur
95
96 insinto /etc/dbus-1/system.d/
97 doins scripts/murmur.conf
98
99 insinto /usr/share/murmur/
100 doins src/murmur/Murmur.ice
101
102 newinitd "${FILESDIR}"/murmur.initd-r1 murmur
103 newconfd "${FILESDIR}"/murmur.confd murmur
104 systemd_dounit "${FILESDIR}"/${PN}.service
105
106 keepdir /var/lib/murmur /var/log/murmur
107 fowners -R murmur /var/lib/murmur /var/log/murmur
108 fperms 750 /var/lib/murmur /var/log/murmur
109
110 doman man/murmurd.1
111 }
112
113 pkg_postinst() {
114 echo
115 elog "Useful scripts are located in /usr/share/doc/${PF}/scripts."
116 elog "Please execute:"
117 elog "murmurd -ini /etc/murmur/murmur.ini -supw <pw>"
118 elog "chown murmur:murmur /var/lib/murmur/murmur.sqlite"
119 elog "to set the build-in 'SuperUser' password before starting murmur."
120 elog "Please restart dbus before starting murmur, or else dbus"
121 elog "registration will fail."
122 echo
123 }

  ViewVC Help
Powered by ViewVC 1.1.20