summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2021-03-15 16:23:01 +0000
committerMarek Szuba <marecki@gentoo.org>2021-03-18 13:44:41 +0000
commit185d0bcd193162f50dcf501eb504e4e138c8eb54 (patch)
tree309d58c38fa0bcd4d19450d7f58ee897add91d15 /app-emulation/libspectrum
parentnet-proxy/haproxy: Version bumps to 2.1.12 and 2.2.11 (diff)
downloadgentoo-185d0bcd193162f50dcf501eb504e4e138c8eb54.tar.gz
gentoo-185d0bcd193162f50dcf501eb504e4e138c8eb54.tar.bz2
gentoo-185d0bcd193162f50dcf501eb504e4e138c8eb54.zip
app-emulation/libspectrum: bump to 1.5.0 and EAPI-7
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'app-emulation/libspectrum')
-rw-r--r--app-emulation/libspectrum/Manifest1
-rw-r--r--app-emulation/libspectrum/libspectrum-1.5.0.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/app-emulation/libspectrum/Manifest b/app-emulation/libspectrum/Manifest
index 975b3240ae85..f5e4ed8bbe5b 100644
--- a/app-emulation/libspectrum/Manifest
+++ b/app-emulation/libspectrum/Manifest
@@ -1 +1,2 @@
DIST libspectrum-1.4.4.tar.gz 568684 BLAKE2B b6ab4fc4173e7de9a7c3b14fda03420a56f02c5c590770158443bc37bee99a55dd3bdf6864f8ca33adb5ed59f4abd5c5b97736456ba2e6e6aaa2b49e07097cc4 SHA512 83bb9242010d49898531bb62e0d4d55439b0b6a548b57a7932f074429aca70cf252dfb195e9751384510b08c98bd6bc8eefd8cb3f82b0c8d07fa245ba66e9fe2
+DIST libspectrum-1.5.0.tar.gz 602354 BLAKE2B fc62437ececfe2c86b475efa512bf7aa7c5af182e16a00f75f77f78656fca01d46a71ac90b38008ff46e5fd0710b1c671b283d65544b5556d98e8c5b66525c35 SHA512 55f4cf623bc6c469a0fd80751ada694259d834c19d98400ba244aabf2ac21fed7cdd6de069d9ed7326e099bd3bd62c42cfb8a669b64ae002f90a52563fa2dcd1
diff --git a/app-emulation/libspectrum/libspectrum-1.5.0.ebuild b/app-emulation/libspectrum/libspectrum-1.5.0.ebuild
new file mode 100644
index 000000000000..aec492d2edec
--- /dev/null
+++ b/app-emulation/libspectrum/libspectrum-1.5.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="Spectrum emulation library"
+HOMEPAGE="http://fuse-emulator.sourceforge.net/libspectrum.php"
+SRC_URI="mirror://sourceforge/fuse-emulator/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="audiofile bzip2 gcrypt zlib"
+
+RDEPEND="dev-libs/glib:2
+ audiofile? ( >=media-libs/audiofile-0.3.6 )
+ bzip2? ( >=app-arch/bzip2-1.0 )
+ gcrypt? ( dev-libs/libgcrypt:0 )
+ zlib? ( sys-libs/zlib )"
+DEPEND="${RDEPEND}"
+BDEPEND="dev-lang/perl
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/remove-local-prefix.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myconf=(
+ --disable-static
+ $(use_with audiofile libaudiofile)
+ $(use_with bzip2)
+ $(use_with gcrypt libgcrypt)
+ $(use_with zlib)
+ )
+ econf "${myconf[@]}"
+}
+
+src_test() {
+ # check only builds test executable but doesn't run it
+ emake check
+ ./test/test || die
+}
+
+src_install() {
+ default
+ dodoc doc/*.txt *.txt
+}