diff options
author | Samuli Suominen <drac@gentoo.org> | 2007-10-07 15:15:43 +0000 |
---|---|---|
committer | Samuli Suominen <drac@gentoo.org> | 2007-10-07 15:15:43 +0000 |
commit | d23e350bb6b75033bec3f565f8ffed7c750fd4d1 (patch) | |
tree | 00fde1bcce1cdc6398dc7ae2100ce65d9a369908 /app-misc/mplinuxman/mplinuxman-1.5.ebuild | |
parent | stable x86, bug 187158 (diff) | |
download | gentoo-2-d23e350bb6b75033bec3f565f8ffed7c750fd4d1.tar.gz gentoo-2-d23e350bb6b75033bec3f565f8ffed7c750fd4d1.tar.bz2 gentoo-2-d23e350bb6b75033bec3f565f8ffed7c750fd4d1.zip |
Version bump for bug 190723, thanks to Arfrever Frehtes Taifersar Arahesis for reporting.
(Portage version: 2.1.3.12)
Diffstat (limited to 'app-misc/mplinuxman/mplinuxman-1.5.ebuild')
-rw-r--r-- | app-misc/mplinuxman/mplinuxman-1.5.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/app-misc/mplinuxman/mplinuxman-1.5.ebuild b/app-misc/mplinuxman/mplinuxman-1.5.ebuild new file mode 100644 index 000000000000..da2e5916cd1d --- /dev/null +++ b/app-misc/mplinuxman/mplinuxman-1.5.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/mplinuxman/mplinuxman-1.5.ebuild,v 1.1 2007/10/07 15:15:42 drac Exp $ + +inherit eutils toolchain-funcs + +DESCRIPTION="Manager for MPMan F60/55/50 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" + +RDEPEND=">=x11-libs/gtk+-2 + || ( media-sound/mpg123 media-sound/mpg321 )" +DEPEND="${RDEPEND} + dev-util/pkgconfig + nls? ( sys-devel/gettext )" + +S="${WORKDIR}"/${PN} + +# This is ugly and someone should write upstream a patch, +# but it's not me. - drac +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${P}-stringh.patch + + sed -e "s:CFLAGS = :CFLAGS = ${CFLAGS} :" \ + -e 's:/usr/local/share/locale:$(DESTDIR)/usr/share/locale:' \ + -i makefile + + use nls || sed -i -e 's:-D NLS="1"::' makefile +} + +src_compile() { + emake CC="$(tc-getCC)" || die "emake failed." + cd extra/mp_util + emake CC="$(tc-getCC)" || die "emake failed." +} + +src_install() { + dobin ${PN} extra/mp_util/{mputil,mputil_smart} + + if use nls; then + dodir /usr/share/locale/{de,es,fr,ja,nl}/LC_MESSAGES + DESTDIR="${D}" emake install-po + fi + + newicon logo.xpm ${PN}.xpm + make_desktop_entry ${PN} ${PN} ${PN} "AudioVideo;Audio;GTK;" + + dodoc CHANGES README extra/mp_util/USAGE.txt +} |