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

Contents of /media-sound/qmpdclient/qmpdclient-1.1.0-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Nov 8 16:53:11 2009 UTC (11 years ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Version bump to 1.1.2 . Remove old ebuild
(Portage version: 2.2_rc49/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.0-r3.ebuild,v 1.5 2009/06/09 19:10:38 fauli Exp $
4
5 EAPI="2"
6
7 inherit qt4
8
9 MY_PN="${PN}-ne"
10 MY_P="${MY_PN}-${PV}"
11
12 DESCRIPTION="QMPDClient with NBL additions, such as lyrics' display"
13 HOMEPAGE="http://bitcheese.net/wiki/QMPDClient"
14 SRC_URI="mirror://gentoo/${MY_P}.tar.gz"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="amd64 hppa ppc sparc x86"
19 IUSE="debug dbus"
20
21 DEPEND="x11-libs/qt-gui:4[dbus?]"
22 RDEPEND="${DEPEND}"
23
24 LANGS="de_DE fr_FR it_IT nl_NL nn_NO no_NO ru_RU sv_SE tr_TR uk_UA"
25 LANGSLONG="zh_CN zh_TW pt_BR"
26
27 for X in ${LANGS}; do
28 IUSE="${IUSE} linguas_${X%_*}"
29 done
30
31 for X in ${LANGSLONG};do
32 IUSE="${IUSE} linguas_${X}"
33 done
34
35 S="${WORKDIR}/${MY_P}"
36
37 src_prepare() {
38 # Fix the install path
39 sed -i -e "s:PREFIX = /usr/local:PREFIX = /usr:" qmpdclient.pro \
40 || die "sed failed (install path)"
41
42 # nostrip fix
43 sed -i -e "s:CONFIG += :CONFIG += nostrip :" qmpdclient.pro \
44 || die "sed failed (nostrip)"
45
46 sed -i -e "s:+= -O2 -g0 -s:+= -O2 -g0:" qmpdclient.pro \
47 || die "sed failed (nostrip)"
48
49 # fix installation folder name
50 sed -i "s/share\/QMPDClient/share\/qmpdclient/" src/config.cpp \
51 || die "failed to fix installation directory"
52
53 # check dbus
54 if ! use dbus; then
55 sed -i -e "s/message(DBus notifier:\ enabled)/message(DBus notifier:\ disabled)/" \
56 -e "s/CONFIG\ +=\ nostrip\ qdbus//" \
57 -e "s/SOURCES\ +=\ src\/notifications_dbus.cpp/SOURCES\ +=\ src\/notifications_nodbus.cpp/" \
58 ${PN}.pro || die "disabling dbus failed"
59 fi
60 }
61
62 src_configure() {
63 eqmake4 qmpdclient.pro
64 }
65
66 src_compile() {
67 emake || die "emake failed"
68 # generate translations
69 emake translate || die "failed to generate translations"
70 }
71
72 src_install() {
73 emake install INSTALL_ROOT="${D}" || die "emake install failed"
74 dodoc README AUTHORS THANKSTO Changelog || die "Installing docs failed"
75 for res in 16 22 64 ; do
76 insinto /usr/share/icons/hicolor/${res}x${res}/apps/
77 newins icons/qmpdclient${res}.png ${PN}.png || die "Installing icons failed"
78 done
79
80 make_desktop_entry qmpdclient "QMPDClient" ${PN} \
81 "Qt;AudioVideo;Audio;" || die "Installing desktop entry failed"
82
83 #install translations
84 insinto /usr/share/${PN}/translations/
85 local LANG=
86 for LANG in ${LINGUAS};do
87 for X in ${LANGS};do
88 if [[ ${LANG} == ${X%_*} ]];then
89 doins -r lang/${X}.qm || die "failed to install translations"
90 fi
91 done
92 for X in ${LANGSLONG};do
93 if [[ ${LANG} == ${X} ]]; then
94 doins -r lang/${X}.qm || die "failed to install translations"
95 fi
96 done
97 done
98 }

  ViewVC Help
Powered by ViewVC 1.1.20