diff options
author | 2006-12-05 22:56:57 +0000 | |
---|---|---|
committer | 2006-12-05 22:56:57 +0000 | |
commit | 3478432cb1fd5d6870cf1e44a148e2cebad39e68 (patch) | |
tree | 9c65fbfa079c39a7601a0fabace0c05c38c93af3 /media-video/goggles/goggles-0.9.1.ebuild | |
parent | Stable for HPPA (bug #156872). (diff) | |
download | historical-3478432cb1fd5d6870cf1e44a148e2cebad39e68.tar.gz historical-3478432cb1fd5d6870cf1e44a148e2cebad39e68.tar.bz2 historical-3478432cb1fd5d6870cf1e44a148e2cebad39e68.zip |
WANT_FOX added and version bump
Package-Manager: portage-2.1.1-r2
Diffstat (limited to 'media-video/goggles/goggles-0.9.1.ebuild')
-rw-r--r-- | media-video/goggles/goggles-0.9.1.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/media-video/goggles/goggles-0.9.1.ebuild b/media-video/goggles/goggles-0.9.1.ebuild new file mode 100644 index 000000000000..7812a9b9e2a7 --- /dev/null +++ b/media-video/goggles/goggles-0.9.1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/goggles/goggles-0.9.1.ebuild,v 1.1 2006/12/05 22:56:57 mabi Exp $ + +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="~amd64 ~ppc ~x86" +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 CFLAGS=/s:=.*:=\"${CFLAGS}\":" \ + -e "/^export CXXFLAGS=/s:=.*:=\"${CXXFLAGS}\":" \ + build/config.linux + + # comment out the default 'optimization' including a stripped binary + sed -i \ + -e "s/^export DEFS=\"-DNDEBUG\"/\# &/" \ + build/configdetect + + # and some seding to use the correct [[ ]] instead of [ ] + sed -i \ + -e "s/\[\(.*\)\]/\[\[\1\]\]/" \ + build/config.linux +} + +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 +} |