Files @ df976a178b95
Branch filter:

Location: portage-overlay.git/media-libs/libopenspc/libopenspc-0.3.99a.ebuild

df976a178b95 783 B application/vnd.gentoo.ebuild Show Annotation Show as Raw Download as Raw
chain
Bump EAPI to 5 for whole overlay
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="5"

inherit eutils

SLOT=0
LICENSE="LGPL-2.1"
KEYWORDS="~x86 ~amd64"
DESCRIPTION="Library to play Super Nintendo SPC music files."
HOMEPAGE="http://web.archive.org/web/20040930224420/web.umr.edu/~bmartin"
SRC_URI="http://ftp.debian.org/debian/pool/main/libo/libopenspc/${PN}_${PV}.orig.tar.gz"
IUSE="examples"
DEPEND=">=sys-libs/zlib-1.2"
S="${WORKDIR}/${P}.orig"

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

	# If not using examples, patch them out
	use examples || sed -i -e 's/examples//' Makefile.am
}

src_compile() {
	econf || die "econf failed"
	emake || die "emake failed"
}

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