Gentoo Archives: gentoo-commits

From: "Santiago M. Mola (coldwind)" <coldwind@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-p2p/museek+: ChangeLog museek+-0.1.13-r1.ebuild museek+-0.1.13.ebuild
Date: Sun, 23 Sep 2007 12:28:34
Message-Id: E1IZQRi-0007cA-KD@stork.gentoo.org
1 coldwind 07/09/23 12:20:22
2
3 Modified: ChangeLog
4 Added: museek+-0.1.13-r1.ebuild
5 Removed: museek+-0.1.13.ebuild
6 Log:
7 Make optional deps configurable.
8 (Portage version: 2.1.3.9)
9
10 Revision Changes Path
11 1.7 net-p2p/museek+/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/museek+/ChangeLog?rev=1.7&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/museek+/ChangeLog?rev=1.7&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/museek+/ChangeLog?r1=1.6&r2=1.7
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-p2p/museek+/ChangeLog,v
20 retrieving revision 1.6
21 retrieving revision 1.7
22 diff -u -r1.6 -r1.7
23 --- ChangeLog 22 Sep 2007 19:26:08 -0000 1.6
24 +++ ChangeLog 23 Sep 2007 12:20:22 -0000 1.7
25 @@ -1,6 +1,14 @@
26 # ChangeLog for net-p2p/museek+
27 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/museek+/ChangeLog,v 1.6 2007/09/22 19:26:08 coldwind Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/museek+/ChangeLog,v 1.7 2007/09/23 12:20:22 coldwind Exp $
30 +
31 +*museek+-0.1.13-r1 (23 Sep 2007)
32 +
33 + 23 Sep 2007; Santiago M. Mola <coldwind@g.o>
34 + +files/museek+-0.1.13-optional-deps.patch,
35 + files/museek+-0.1.13-post_release_fixes.patch, -museek+-0.1.13.ebuild,
36 + +museek+-0.1.13-r1.ebuild:
37 + Make optional deps configurable.
38
39 *museek+-0.1.13 (22 Sep 2007)
40
41
42
43
44 1.1 net-p2p/museek+/museek+-0.1.13-r1.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/museek+/museek+-0.1.13-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/museek+/museek+-0.1.13-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: museek+-0.1.13-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2007 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/net-p2p/museek+/museek+-0.1.13-r1.ebuild,v 1.1 2007/09/23 12:20:22 coldwind Exp $
54
55 inherit qt3 eutils distutils multilib
56
57 DESCRIPTION="A SoulSeek client which uses a daemon and multiple gui clients."
58 HOMEPAGE="http://www.museek-plus.org"
59 SRC_URI="mirror://sourceforge/museek-plus/${P}.tar.bz2"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~x86"
64 IUSE="debug fam gtk ncurses qsa qt3 trayicon vorbis"
65
66 RDEPEND=">=dev-cpp/libxmlpp-1.0.2
67 gtk? ( >=dev-python/pygtk-2.6.1 )
68 qt3? ( $(qt_min_version 3.3) )
69 qsa? ( >=dev-libs/qsa-1.1.1 )
70 vorbis? ( media-libs/libvorbis
71 media-libs/libogg )
72 fam? ( virtual/fam )"
73 DEPEND="${RDEPEND}
74 dev-lang/swig"
75
76 pkg_setup() {
77 if use ncurses && ! built_with_use dev-lang/python ncurses ; then
78 eerror "In order to build Mucous (museek ncurses client)"
79 eerror "you need dev-lang/python built with ncurses USE flag enabled."
80 die "no ncurses support in Python"
81 fi
82 }
83
84 src_unpack() {
85 unpack ${A}
86 cd "${S}"
87 epatch "${FILESDIR}/${P}-optional-deps.patch"
88 epatch "${FILESDIR}/${P}-post_release_fixes.patch"
89 sed -i -e "s:join('lib':join('$(get_libdir)':g" \
90 */CMakeLists.txt || die "sed failed"
91 }
92
93 my_use() {
94 use $1 && echo "1" || echo "0"
95 }
96
97 my_not_use() {
98 use $1 && echo "0" || echo "1"
99 }
100
101 src_compile() {
102 # Build museekd, mucous, murmur, python bindings and clients
103 local myconf="-DPREFIX=/usr -DMANDIR=share/man -DBINDINGS=1 -DCLIENTS=1"
104 myconf="${myconf} -DSWIG_DIR='$(swig -swiglib)'" # bug #192594
105 myconf="${myconf} -DMUCOUS=$(my_use ncurses)
106 -DMURMUR=$(my_use gtk)
107 -DNO_MUSEEQ=$(my_not_use qt3)
108 -DTRAYICON=$(my_use trayicon)
109 -DQSA=$(my_use qsa)
110 -DNO_MUSCAND=$(my_not_use fam)
111 -DVORBIS=$(my_use vorbis)"
112 if ! use debug ; then
113 myconf="${myconf} -DMULOG=none"
114 fi
115
116 cmake ${myconf} || die "cmake failed"
117 emake || die "emake failed"
118
119 # Build setup tools
120 cd "${S}/setup"
121 distutils_src_compile
122 }
123
124 src_install() {
125 # Install main stuff
126 emake DESTDIR="${D}" install || die "emake install failed"
127 dodoc README CREDITS CHANGELOG TODO
128
129 # Install setup tools
130 cd "${S}/setup"
131 distutils_src_install
132 }
133
134 pkg_postinst() {
135 distutils_pkg_postinst
136
137 elog "In order to configure ${PN} execute musetup, musetup-gtk,"
138 elog "or musetup-qt with your user."
139 elog "Then you can launch ${PN} daemon with 'museekd' and use"
140 elog "any of the provided clients."
141 }
142
143
144
145 --
146 gentoo-commits@g.o mailing list