diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-sound/sidplay |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/sidplay')
-rw-r--r-- | media-sound/sidplay/Manifest | 7 | ||||
-rw-r--r-- | media-sound/sidplay/files/sidplay-2.0.9-gcc43.patch | 48 | ||||
-rw-r--r-- | media-sound/sidplay/files/sidplay-2.0.9-gcc44.patch | 122 | ||||
-rw-r--r-- | media-sound/sidplay/metadata.xml | 11 | ||||
-rw-r--r-- | media-sound/sidplay/sidplay-2.0.9.ebuild | 28 |
5 files changed, 216 insertions, 0 deletions
diff --git a/media-sound/sidplay/Manifest b/media-sound/sidplay/Manifest new file mode 100644 index 000000000000..7d83cbdd292b --- /dev/null +++ b/media-sound/sidplay/Manifest @@ -0,0 +1,7 @@ +AUX sidplay-2.0.9-gcc43.patch 1097 SHA256 0cc4fd75e6745048e9868039f559720d093a7ee7db99dcffde2f83043412bcd5 SHA512 4e2c717389e9fa7aa7a459138a42f411342def25fa6f236f64e4c306419402d7d9ece7e9376ad492d7a3fa4db9fee3c9bbffd2d3d13669a0366da990fa8e38c6 WHIRLPOOL 421443d91edfcc18be6b8dcc5edb114ce3695201fd98f7f947209420da5003eb55b259d0373201a61ab043663f48eeb0b5b8fbaefef5fd5237d81a6c09c83ed5 +AUX sidplay-2.0.9-gcc44.patch 3726 SHA256 e7cbc2166cfd2a725a3193b037304f01ac4c596b9b8429cfe2b4eb4a3745dea9 SHA512 41f319b4e232d199478d586b8a397493e1cc6a8eaa6b4eb5bec272b520ff8ffa078ac72b3eddf4f2865614bfe1f8e28df5ad3f2699bc74684c476a24b7795f75 WHIRLPOOL c12618c8eca242444e7951707103ffb3fedee5a208ae4b1c95e0650995cb34e7caf3bf98b9957f9347bd4fafc025d7f8682752f4ea2b823f4431aa2e8029aedd +DIST sidplay-2.0.9.tar.gz 362140 SHA256 b850986ce9226cb6eecca50057967be313771b67aed721421e74e6c931e02215 SHA512 38d334b7e649d6043b48705edf3c4cd27d01283b95f42d1b46bb7cf266ca0d5f6fac4a7dfd398578a3278d293342e4d4d09cde8d443d60a8d50e4abbe127afe5 WHIRLPOOL 3ec493fdd57547c0c5400bfb2b7a142faa860480b0f4143fe487596a8cbfbea0798977b6a07a3fb9d8ffc8fe9238b1d0642c0ad0c3c9ffbf0cdb41eb9b0543cc +EBUILD sidplay-2.0.9.ebuild 615 SHA256 35c2be095ef6c65c2003b7c5fd001f766b3db662e26be0648294f326af362f74 SHA512 2b194897a1245620f622bbabb8b6cce24bf6f56d5d21d42185b5446c3b8039e6e4fa961803948c9fce69a5459984f373c50e230ddfc8c8a1baf61797b9d8ee8b WHIRLPOOL 8db026c95f3a15d88b4a30b2b98e359155d4aff4b29d53896d41546883f4fc47f2c8d8c138413d200bef03316855f9f534e58dfefbbaf81b55a786516aeccd9a +MISC ChangeLog 2500 SHA256 c51ebcb188e639b328f9c9fe5f6060b3e5f70ef7ab38299bc36439b0f7761d5d SHA512 f59375aacb3b58f1290aa726415fc72c3b9b717b4413d3bd060e7ee51e8adc652e18654578c7bbe99cf4abfcbd105b4ea4569d1988e4db976432c44996a67f50 WHIRLPOOL 90ad294557fa24be29ca502c52b63ce64a1bc4d184ba0fa3bfbeccf6876a0c011a515bd85afb99ab18879ad9a2823c1d8615cda59e31e48a7a18b36e50972c7a +MISC ChangeLog-2015 3268 SHA256 2c20a3f80984d5a6a9d0ed48dd30966b8d2b7ecf0d12de54ee11fb36735b0523 SHA512 8057848d42105d1d6f217c678ca1b49fb8fe9c5e00f6647ab52f59195a33b60b438def62ece3ff976e5d7652a77caf12c5a164a728681652052286b2f94dcc37 WHIRLPOOL 2eef3d20118b8ad9ecbd9dfc60e0bc3ce75fc919fd02fd19336776b7ee89c72e3271810238f370d1bcc6718c8e54b0b975a83f4206453e7bfc30ca4c0b2d711d +MISC metadata.xml 331 SHA256 c30b6228409b7dd2cc9fd1d07a6b785ba447763bf24178fda4bffa32825f8c16 SHA512 83c0e6c0f4c7a85a10c96db7cb2eadffab0ef5e4614b0a091a4e14bb9a37b90d0d509bec47bf75d03853ab39a06ca12bcb5cd89f89e09901340a76c7b5c392e8 WHIRLPOOL b482f09b269e567583bdfc7bc0d7f5448064702833a43169703ce17a85907f49de4419b6b0b4c0d1045fa643a2c14c9cf62548e0adf745e0bb52873614002f21 diff --git a/media-sound/sidplay/files/sidplay-2.0.9-gcc43.patch b/media-sound/sidplay/files/sidplay-2.0.9-gcc43.patch new file mode 100644 index 000000000000..b1a24e59b9a7 --- /dev/null +++ b/media-sound/sidplay/files/sidplay-2.0.9-gcc43.patch @@ -0,0 +1,48 @@ +Index: sidplay-2.0.9/configure +=================================================================== +--- sidplay-2.0.9.orig/configure ++++ sidplay-2.0.9/configure +@@ -19985,11 +19985,11 @@ _ACEOF + cat confdefs.h >>conftest.$ac_ext + cat >>conftest.$ac_ext <<_ACEOF + /* end confdefs.h. */ +-#include <new.h> ++#include <new> + int + main () + { +-char* buf = new(nothrow) char[1024]; ++char* buf = new(std::nothrow) char[1024]; + ; + return 0; + } +@@ -20052,11 +20052,11 @@ _ACEOF + cat confdefs.h >>conftest.$ac_ext + cat >>conftest.$ac_ext <<_ACEOF + /* end confdefs.h. */ +-#include <fstream.h> ++#include <fstream> + int + main () + { +-ifstream myTest(ios::in|ios::binary); ++std::ifstream myTest("test.txt", std::ios::in|std::ios::binary); + ; + return 0; + } +@@ -20118,12 +20118,12 @@ _ACEOF + cat confdefs.h >>conftest.$ac_ext + cat >>conftest.$ac_ext <<_ACEOF + /* end confdefs.h. */ +-#include <fstream.h> +- #include <iomanip.h> ++#include <fstream> ++ #include <iomanip> + int + main () + { +-ios::openmode myTest = ios::in; ++std::ios::openmode myTest = std::ios::in; + ; + return 0; + } diff --git a/media-sound/sidplay/files/sidplay-2.0.9-gcc44.patch b/media-sound/sidplay/files/sidplay-2.0.9-gcc44.patch new file mode 100644 index 000000000000..b5c4ab236007 --- /dev/null +++ b/media-sound/sidplay/files/sidplay-2.0.9-gcc44.patch @@ -0,0 +1,122 @@ +diff -Nur ori/src/IniConfig.cpp new/src/IniConfig.cpp +--- ori/src/IniConfig.cpp 2004-02-29 15:28:28.000000000 +0100 ++++ new/src/IniConfig.cpp 2009-07-20 21:17:56.926134851 +0200 +@@ -120,7 +120,7 @@ + } + + +-bool IniConfig::readInt (ini_fd_t ini, char *key, int &value) ++bool IniConfig::readInt (ini_fd_t ini, const char *key, int &value) + { + int i = value; + if (ini_locateKey (ini, key) < 0) +@@ -134,7 +134,7 @@ + } + + +-bool IniConfig::readString (ini_fd_t ini, char *key, char *&str) ++bool IniConfig::readString (ini_fd_t ini, const char *key, char *&str) + { + char *ret; + size_t length; +@@ -165,7 +165,7 @@ + } + + +-bool IniConfig::readBool (ini_fd_t ini, char *key, bool &boolean) ++bool IniConfig::readBool (ini_fd_t ini, const char *key, bool &boolean) + { + int b = boolean; + if (ini_locateKey (ini, key) < 0) +@@ -179,7 +179,7 @@ + } + + +-bool IniConfig::readChar (ini_fd_t ini, char *key, char &ch) ++bool IniConfig::readChar (ini_fd_t ini, const char *key, char &ch) + { + char *str, c = 0; + bool ret = readString (ini, key, str); +@@ -206,7 +206,7 @@ + } + + +-bool IniConfig::readTime (ini_fd_t ini, char *key, int &value) ++bool IniConfig::readTime (ini_fd_t ini, const char *key, int &value) + { + char *str, *sep; + int time; +diff -Nur ori/src/IniConfig.h new/src/IniConfig.h +--- ori/src/IniConfig.h 2001-07-03 19:49:27.000000000 +0200 ++++ new/src/IniConfig.h 2009-07-20 21:16:17.406144852 +0200 +@@ -98,11 +98,11 @@ + protected: + void clear (); + +- bool readInt (ini_fd_t ini, char *key, int &value); +- bool readString (ini_fd_t ini, char *key, char *&str); +- bool readBool (ini_fd_t ini, char *key, bool &boolean); +- bool readChar (ini_fd_t ini, char *key, char &ch); +- bool readTime (ini_fd_t ini, char *key, int &time); ++ bool readInt (ini_fd_t ini, const char *key, int &value); ++ bool readString (ini_fd_t ini, const char *key, char *&str); ++ bool readBool (ini_fd_t ini, const char *key, bool &boolean); ++ bool readChar (ini_fd_t ini, const char *key, char &ch); ++ bool readTime (ini_fd_t ini, const char *key, int &time); + + bool readSidplay2 (ini_fd_t ini); + bool readConsole (ini_fd_t ini); +diff -Nur ori/src/args.cpp new/src/args.cpp +--- ori/src/args.cpp 2004-05-06 01:49:20.000000000 +0200 ++++ new/src/args.cpp 2009-07-20 21:19:12.249460696 +0200 +@@ -77,6 +77,7 @@ + #include <stdlib.h> + #include <string.h> + #include <iostream> ++#include <string> + using std::cout; + using std::cerr; + using std::endl; +@@ -95,7 +96,7 @@ + // Convert time from integer + bool ConsolePlayer::parseTime (const char *str, uint_least32_t &time) + { +- char *sep; ++ const char *sep; + uint_least32_t _time; + + // Check for empty string +@@ -110,8 +111,7 @@ + else + { // Read in MM:SS format + int val; +- *sep = '\0'; +- val = atoi (str); ++ val = atoi (std::string(str, sep - str).c_str()); + if (val < 0 || val > 99) + return false; + _time = (uint_least32_t) val * 60; +diff -Nur ori/src/audio/AudioBase.h new/src/audio/AudioBase.h +--- ori/src/audio/AudioBase.h 2001-11-16 20:34:29.000000000 +0100 ++++ new/src/audio/AudioBase.h 2009-07-20 21:06:15.619538393 +0200 +@@ -43,7 +43,7 @@ + { + protected: + AudioConfig _settings; +- char *_errorString; ++ const char *_errorString; + void *_sampleBuffer; + + public: +diff -Nur ori/src/menu.cpp new/src/menu.cpp +--- ori/src/menu.cpp 2004-02-29 15:28:28.000000000 +0100 ++++ new/src/menu.cpp 2009-07-20 21:20:16.576120922 +0200 +@@ -353,7 +353,7 @@ + { + if ((m_iniCfg.console ()).ansi) + { +- char *mode = ""; ++ const char *mode = ""; + + switch (colour) + { diff --git a/media-sound/sidplay/metadata.xml b/media-sound/sidplay/metadata.xml new file mode 100644 index 000000000000..973cb291162c --- /dev/null +++ b/media-sound/sidplay/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sound@gentoo.org</email> + <name>Gentoo Sound project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">sidplay2</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-sound/sidplay/sidplay-2.0.9.ebuild b/media-sound/sidplay/sidplay-2.0.9.ebuild new file mode 100644 index 000000000000..4f38551f8ebd --- /dev/null +++ b/media-sound/sidplay/sidplay-2.0.9.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=2 +inherit eutils + +DESCRIPTION="C64 SID player" +HOMEPAGE="http://sidplay2.sourceforge.net/" +SRC_URI="mirror://sourceforge/sidplay2/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~hppa ppc ~sparc x86" +IUSE="" + +RDEPEND=">=media-libs/libsidplay-2.1" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-gcc44.patch +} + +src_install () { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc TODO AUTHORS ChangeLog +} |