/[gentoo-x86]/media-sound/qmpdclient/qmpdclient-1.1.1.ebuild
Gentoo

Contents of /media-sound/qmpdclient/qmpdclient-1.1.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Jun 29 20:44:03 2010 UTC (10 years, 5 months ago) by angelos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Removed old
(Portage version: 2.1.8.3/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/qmpdclient/qmpdclient-1.1.1.ebuild,v 1.5 2009/10/07 18:37:53 nixnut Exp $
4
5 EAPI="2"
6
7 inherit qt4
8
9 DESCRIPTION="QMPDClient with NBL additions, such as lyrics' display"
10 HOMEPAGE="http://bitcheese.net/wiki/QMPDClient"
11 SRC_URI="mirror://gentoo/${P}.tar.gz
12 http://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="amd64 ~hppa ppc ~sparc x86"
17 IUSE="debug dbus"
18
19 DEPEND="x11-libs/qt-gui:4[dbus?,debug?]"
20 RDEPEND="${DEPEND}"
21
22 LANGSLONG="cs_CZ de_DE fr_FR it_IT nl_NL nn_NO no_NO ru_RU sv_SE tr_TR uk_UA"
23 LANGS="zh_CN zh_TW pt_BR "
24
25 for X in ${LANGSLONG}; do
26 IUSE="${IUSE} linguas_${X%_*}"
27 done
28
29 for X in ${LANGS};do
30 IUSE="${IUSE} linguas_${X}"
31 done
32
33 src_prepare() {
34 # Fix the install path
35 sed -i -e "s:PREFIX = /usr/local:PREFIX = /usr:" qmpdclient.pro \
36 || die "sed failed (install path)"
37
38 # nostrip fix
39 sed -i -e "s:CONFIG += :CONFIG += nostrip :" qmpdclient.pro \
40 || die "sed failed (nostrip)"
41
42 sed -i -e "s:+= -O2 -g0 -s:+= -O2 -g0:" qmpdclient.pro \
43 || die "sed failed (nostrip)"
44
45 # fix installation folder name
46 sed -i "s/share\/QMPDClient/share\/qmpdclient/" src/config.cpp \
47 || die "failed to fix installation directory"
48
49 # check dbus
50 if ! use dbus; then
51 sed -i -e "s/message(DBus notifier:\ enabled)/message(DBus notifier:\ disabled)/" \
52 -e "s/CONFIG\ +=\ nostrip\ qdbus//" \
53 -e "s/SOURCES\ +=\ src\/notifications_dbus.cpp/SOURCES\ +=\ src\/notifications_nodbus.cpp/" \
54 ${PN}.pro || die "disabling dbus failed"
55 fi
56 }
57
58 src_configure() {
59 eqmake4 qmpdclient.pro
60 }
61
62 src_compile() {
63 emake || die "emake failed"
64 # generate translations
65 emake translate || die "failed to generate translations"
66 }
67
68 src_install() {
69 emake install INSTALL_ROOT="${D}" || die "emake install failed"
70 dodoc README AUTHORS THANKSTO Changelog || die "Installing docs failed"
71 for res in 16 22 64 ; do
72 insinto /usr/share/icons/hicolor/${res}x${res}/apps/
73 newins icons/qmpdclient${res}.png ${PN}.png || die "Installing icons failed"
74 done
75
76 #install translations
77 insinto /usr/share/${PN}/translations/
78 local LANG=
79 for LANG in ${LINGUAS};do
80 for X in ${LANGS};do
81 if [[ ${LANG} == ${X%_*} ]];then
82 doins -r lang/${X}.qm || die "failed to install translations"
83 fi
84 done
85 for X in ${LANGSLONG};do
86 if [[ ${LANG} == ${X} ]]; then
87 doins -r lang/${X}.qm || die "failed to install translations"
88 fi
89 done
90 done
91 }

  ViewVC Help
Powered by ViewVC 1.1.20