File diff 000000000000 → 000000000000
media-plugins/gst-spc/gst-spc-0.5.ebuild
Show inline comments
 
new file 100644
 
# Copyright 1999-2007 Gentoo Foundation
 
# Distributed under the terms of the GNU General Public License v2
 
# $Header: $
 

	
 
inherit eutils
 

	
 
SLOT=0
 
LICENSE="LGPL-2"
 
KEYWORDS="~x86 ~amd64"
 
DESCRIPTION="gstreamer plugin to play Super Nintendo SPC music files."
 
HOMEPAGE="http://bugzilla.gnome.org/show_bug.cgi?id=348220"
 

	
 
# We'll be using source from gstreamer release, which is why we're using an
 
# exact version
 
SRC_URI="http://hg.c133.org/~clee/${P}.tar.bz2"
 
DEPEND=">=media-libs/gstreamer-0.10.4
 
        >=media-libs/libopenspc-0.3.99"
 

	
 
src_unpack() {
 
	unpack ${A}
 
	cd ${S}
 

	
 
	# Update gst-spc to way it is in gstreamer-plugins-bad-0.10.4
 
	epatch "${FILESDIR}/${P}-fix-gstspc.h.patch.gz"
 
	epatch "${FILESDIR}/${P}-fix-gstspc.c.patch.gz"
 

	
 
	# Autogen is evil and will try to automatically run configure,
 
	# so stop it. /foo/d just deletes the line in question.
 
	sed -i -e "/.\/configure/d" autogen.sh
 
}
 

	
 
src_compile() {
 
	./autogen.sh
 
	econf || die "econf failed"
 
	emake || die "emake failed"
 
}
 

	
 
src_install() {
 
	emake DESTDIR="${D}" install || die "emake install failed"
 
}