blob: cd2205dfe43f5ad34f5b592103e726f52b16d859 (
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-2004 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.6 2004/10/10 11:50:17 blubb 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="x86 ~amd64"
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
}
|