# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header$ inherit eutils toolchain-funcs DESCRIPTION="User-friendly frontend for the Ogle DVD Player" HOMEPAGE="http://www.fifthplanet.net/goggles.html" SRC_URI="http://www.fifthplanet.net/files/goggles-${PV}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc ~amd64" IUSE="doc" DEPEND="=x11-libs/fox-1.6* >=media-video/ogle-0.9.2 media-libs/libpng" src_unpack() { unpack ${A} cd ${S} sed -i \ -e "/export CC=/s:=.*:=\"$(tc-getCC)\":" \ -e "/export CXX=/s:=.*:=\"$(tc-getCXX)\":" \ -e "/export LDFLAGS=/s:=.*:=\"${LDFLAGS}\":" \ build/config.* } src_compile() { export WANT_FOX=1.6 ./gb || die "build failed" # we do it now manually, to avoid calling 'gb install' sed "s|@location@|${DESTTREE}/bin|" scripts/goggles.in > scripts/goggles grep -e '[^$]@' scripts/goggles && die "missing substitution" } src_install() { dobin ${S}/scripts/goggles || die # the binary is no longer (statically) named "ogle_gui_goggles", but # (dynamically) after the package name which is "goggles" newbin ${S}/src/goggles ogle_gui_goggles || die if use doc; then dodoc ${S}/desktop/goggles_manual.pdf || die fi insinto /usr/share/applications doins ${S}/desktop/${PN}.desktop || die insinto /usr/share/pixmaps newins ${S}/icons/goggleslogosmall.png goggles.png || die }