| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libspectrum/libspectrum-0.5.0.1.ebuild,v 1.2 2009/01/25 17:38:35 darkside Exp $
|
| 4 |
|
| 5 |
inherit eutils autotools
|
| 6 |
|
| 7 |
DESCRIPTION="Spectrum emulation library"
|
| 8 |
HOMEPAGE="http://fuse-emulator.sourceforge.net/libspectrum.php"
|
| 9 |
SRC_URI="mirror://sourceforge/fuse-emulator/${P}.tar.gz"
|
| 10 |
|
| 11 |
LICENSE="GPL-2"
|
| 12 |
SLOT="0"
|
| 13 |
KEYWORDS="~amd64 ~ppc ~x86"
|
| 14 |
IUSE="audiofile bzip2 zlib"
|
| 15 |
|
| 16 |
RDEPEND="zlib? ( sys-libs/zlib )
|
| 17 |
bzip2? ( >=app-arch/bzip2-1.0 )
|
| 18 |
>=dev-libs/glib-2
|
| 19 |
audiofile? ( >=media-libs/audiofile-0.2.3 )"
|
| 20 |
DEPEND="${RDEPEND}
|
| 21 |
dev-lang/perl
|
| 22 |
virtual/pkgconfig"
|
| 23 |
|
| 24 |
src_unpack() {
|
| 25 |
unpack ${A}
|
| 26 |
cd "${S}"
|
| 27 |
#submitted upstream at:
|
| 28 |
# http://sf.net/tracker/index.php?func=detail&aid=2533274&group_id=91293&atid=596650
|
| 29 |
epatch "${FILESDIR}/${P}-without-bzip2_zlib.patch"
|
| 30 |
eautoreconf
|
| 31 |
}
|
| 32 |
|
| 33 |
src_compile() {
|
| 34 |
econf --with-glib \
|
| 35 |
$(use_with zlib zlib) \
|
| 36 |
$(use_with bzip2 bzip2) \
|
| 37 |
$(use_with audiofile libaudiofile) \
|
| 38 |
|| die "econf failed!"
|
| 39 |
emake || die "emake failed!"
|
| 40 |
}
|
| 41 |
|
| 42 |
src_install() {
|
| 43 |
emake install DESTDIR="${D}" || die
|
| 44 |
dodoc AUTHORS ChangeLog README THANKS doc/*.txt *.txt
|
| 45 |
doman doc/libspectrum.3
|
| 46 |
}
|