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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue May 19 21:22:24 2009 UTC (10 years, 5 months ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Fix dbus automagic dependency check. Remove old ebuild
(Portage version: 2.2_rc33/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-r2.ebuild,v 1.1 2009/05/18 18:18:30 hwoarang 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
54 src_configure() {
55 eqmake4 qmpdclient.pro
56 }
57
58 src_compile() {
59 emake || die "emake failed"
60 # generate translations
61 emake translate || die "failed to generate translations"
62 }
63
64 src_install() {
65 emake install INSTALL_ROOT="${D}" || die "emake install failed"
66 dodoc README AUTHORS THANKSTO Changelog || die "Installing docs failed"
67 for res in 16 22 64 ; do
68 insinto /usr/share/icons/hicolor/${res}x${res}/apps/
69 newins icons/qmpdclient${res}.png ${PN}.png || die "Installing icons failed"
70 done
71
72 make_desktop_entry qmpdclient "QMPDClient" ${PN} \
73 "Qt;AudioVideo;Audio;" || die "Installing desktop entry failed"
74
75 #install translations
76 insinto /usr/share/${PN}/translations/
77 local LANG=
78 for LANG in ${LINGUAS};do
79 for X in ${LANGS};do
80 if [[ ${LANG} == ${X%_*} ]];then
81 doins -r lang/${X}.qm || die "failed to install translations"
82 fi
83 done
84 for X in ${LANGSLONG};do
85 if [[ ${LANG} == ${X} ]]; then
86 doins -r lang/${X}.qm || die "failed to install translations"
87 fi
88 done
89 done
90 }

  ViewVC Help
Powered by ViewVC 1.1.20