blob: 8cc2b9578ff332bf378c91906e2c8f01dbb2dc69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/mplinuxman/mplinuxman-1.4.ebuild,v 1.9 2005/07/21 17:24:04 dholm Exp $
DESCRIPTION="A gtk2 frontend and drivers for mpman f50/55/60 mp3 players"
HOMEPAGE="http://mplinuxman.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${PN}-source-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE="nls"
DEPEND=">=x11-libs/gtk+-2.2.4-r1
>=sys-apps/sed-4
nls? ( >=sys-devel/gettext-0.12.1 )"
S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A} && cd ${S} || die "unpack failed"
sed -i -e "s,^CFLAGS = ,CFLAGS = ${CFLAGS} ," makefile
sed -i -e "s,export LOCALE_DIR=/usr/local/share/locale,export LOCALE_DIR=${D}/usr/share/locale," makefile
if ! use nls ; then
sed -i -e "s,-D NLS=1,," makefile
fi
}
src_compile() {
emake || die "emake failed"
}
src_install() {
dobin mplinuxman || die "dobin failed"
if use nls ; then
dodir /usr/share/locale/es/LC_MESSAGES
dodir /usr/share/locale/fr/LC_MESSAGES
dodir /usr/share/locale/ja/LC_MESSAGES
dodir /usr/share/locale/nl/LC_MESSAGES
dodir /usr/share/locale/de/LC_MESSAGES
DESTDIR="${D}" make install-po
fi
dodoc CHANGES README
}
|