summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conrad@kostecki.com>2018-06-19 19:57:15 +0200
committerMichał Górny <mgorny@gentoo.org>2018-06-19 20:58:05 +0200
commit4b77f7d0c0ae6aee7b78859fe2af557c33a00942 (patch)
tree87e67fe23283446230c31cd252e426ddfdb5f10f /dev-libs/spsdeclib/spsdeclib-5.1.ebuild
parentlicenses/Kryoflux-MAME: add license for dev-libs/spsdeclib (diff)
downloadgentoo-4b77f7d0c0ae6aee7b78859fe2af557c33a00942.tar.gz
gentoo-4b77f7d0c0ae6aee7b78859fe2af557c33a00942.tar.bz2
gentoo-4b77f7d0c0ae6aee7b78859fe2af557c33a00942.zip
dev-libs/spsdeclib: New package
Closes: https://bugs.gentoo.org/651480 Closes: https://github.com/gentoo/gentoo/pull/7612 Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'dev-libs/spsdeclib/spsdeclib-5.1.ebuild')
-rw-r--r--dev-libs/spsdeclib/spsdeclib-5.1.ebuild43
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-libs/spsdeclib/spsdeclib-5.1.ebuild b/dev-libs/spsdeclib/spsdeclib-5.1.ebuild
new file mode 100644
index 000000000000..22f948e91481
--- /dev/null
+++ b/dev-libs/spsdeclib/spsdeclib-5.1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools eutils
+
+DESCRIPTION="Kryoflux SPS Decoder Library"
+HOMEPAGE="https://www.kryoflux.com/"
+SRC_URI="https://www.kryoflux.com/download/${PN}_${PV}_source.zip"
+
+KEYWORDS="-* ~amd64 ~x86"
+LICENSE="Kryoflux-MAME"
+SLOT="0"
+
+DEPEND="app-arch/unzip"
+
+S="${WORKDIR}/capsimg_source_linux_macosx/CAPSImg"
+
+DOCS=( "${WORKDIR}/DONATIONS.txt" "${WORKDIR}/HISTORY.txt" "${WORKDIR}/RELEASE.txt" )
+
+PATCHES=( "${FILESDIR}"/add_symlink.patch )
+
+src_unpack() {
+ unpack ${A}
+
+ # Unpacked ZIP-file contains two ZIP files, use the one for Linux
+ unpack "${WORKDIR}"/capsimg_source_linux_macosx.zip
+}
+
+src_prepare() {
+ default
+
+ # Respect users CFLAGS and CXXFLAGS
+ sed -i -e 's/-g//' configure.in || die
+ sed -i -e 's/CXXFLAGS="${CFLAGS}/CXXFLAGS="${CXXFLAGS}/' configure.in || die
+
+ mv configure.in configure.ac || die
+ eautoconf
+
+ # Fix permissions, as configure is not marked executable
+ chmod +x configure || die
+}