diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2012-02-21 20:51:12 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2012-02-21 20:51:12 +0000 |
commit | 78bdf1a47be4e77c4b8eb950fb8ac9c15891033a (patch) | |
tree | 16e0561c23615bf23e86a8a92e04012d2d68b72b /games-arcade/performous | |
parent | marked x86 per bug 403405 (diff) | |
download | historical-78bdf1a47be4e77c4b8eb950fb8ac9c15891033a.tar.gz historical-78bdf1a47be4e77c4b8eb950fb8ac9c15891033a.tar.bz2 historical-78bdf1a47be4e77c4b8eb950fb8ac9c15891033a.zip |
Version bump to 0.6.1 and rename from ultrastar-ng to performous. Bug #245452
Package-Manager: portage-2.1.10.48/cvs/Linux i686
Diffstat (limited to 'games-arcade/performous')
-rw-r--r-- | games-arcade/performous/ChangeLog | 12 | ||||
-rw-r--r-- | games-arcade/performous/Manifest | 21 | ||||
-rw-r--r-- | games-arcade/performous/files/performous-0.6.1-ffmpeg.patch | 13 | ||||
-rw-r--r-- | games-arcade/performous/files/performous-0.6.1-gentoo.patch | 29 | ||||
-rw-r--r-- | games-arcade/performous/files/performous-0.6.1-libpng.patch | 11 | ||||
-rw-r--r-- | games-arcade/performous/metadata.xml | 15 | ||||
-rw-r--r-- | games-arcade/performous/performous-0.6.1.ebuild | 92 |
7 files changed, 193 insertions, 0 deletions
diff --git a/games-arcade/performous/ChangeLog b/games-arcade/performous/ChangeLog new file mode 100644 index 000000000000..7ff1f9647ea4 --- /dev/null +++ b/games-arcade/performous/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for games-arcade/performous +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-arcade/performous/ChangeLog,v 1.1 2012/02/21 20:51:12 tupone Exp $ + +*performous-0.6.1 (21 Feb 2012) + + 21 Feb 2012; Tupone Alfredo <tupone@gentoo.org> +performous-0.6.1.ebuild, + +files/performous-0.6.1-ffmpeg.patch, +files/performous-0.6.1-gentoo.patch, + +files/performous-0.6.1-libpng.patch, +metadata.xml: + Version bump to 0.6.1 and rename from ultrastar-ng to performous. Bug #245452 + by Vincent Le Ligeour + diff --git a/games-arcade/performous/Manifest b/games-arcade/performous/Manifest new file mode 100644 index 000000000000..534d2f11562d --- /dev/null +++ b/games-arcade/performous/Manifest @@ -0,0 +1,21 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX performous-0.6.1-ffmpeg.patch 795 RMD160 3ee572e484d960632c954e461e8131c0b69a703a SHA1 b78c3cbcd16b83581f75e86740e2d3cef8dd9599 SHA256 5d3eb46478096b15f982af3ed12bb6d00cb46011a5eb6435a333da4d2bb29399 +AUX performous-0.6.1-gentoo.patch 1445 RMD160 02b13db8ea0581d8d499e2f6e1a6b65fee6a914f SHA1 5bbc0fd310a7d0c42ae52ccb73ae4495b30e0ddd SHA256 82d8bfcf56a0c495e51130817dbe3d327a2fc86ca3d1a5887ee890dcf543897f +AUX performous-0.6.1-libpng.patch 678 RMD160 190b21b91c1875f140c02aa6be47b13909578d7e SHA1 bfecb26b58a600d8e8ad3abc0547456cc8b6abce SHA256 0c60e3d3ce1b05d5a64642f697dc81489f9f22eb7f55c15fe509d61d0d155d22 +DIST Performous-0.6.1-Source.tar.bz2 3745265 RMD160 5d3a95ae2ed4cbe8e874a328d086522823df4b55 SHA1 6dafb83568d34c66435fa626e73f07ebf82bffc8 SHA256 d210988f8d86797dc9ba5fbde2ffa237c5596eaa1daf9ddcd62bde7d1ab30c85 +DIST ultrastar-songs-jc-1.zip 242698201 RMD160 b541ad7df65a9280d1f5eb8b9891083ffff797d9 SHA1 baf4287e50b8fc4d43d9719b113d04d006a0460e SHA256 b3a6f980926c4f1ce40bc763a406040855600ad005f4daa54e0ac324ce99a9ba +DIST ultrastar-songs-libre-3.zip 5289866 RMD160 98e9c4ab2364c1c26cb0f51e61c4026f43199868 SHA1 10add8daf1767671eb8b7d10927e93ea5ab73d5f SHA256 739d1c678bb7c786499f5216faee420b9b56633142928aff60a7282dae755489 +DIST ultrastar-songs-restricted-3.zip 10242651 RMD160 7eb59b4db7968097db8f850f475e32a9ecbab889 SHA1 fd4e373104df543e44e273d294c39bd7baf6923b SHA256 e05d81333f85e2c6c271a67f90beac453d64eac78cd95eec7214721182257a82 +DIST ultrastar-songs-shearer-1.zip 50411551 RMD160 20ea920aa05c489903988bf31edff467012d4921 SHA1 49d64f914cfd77cc39dcaa14b00a5b4c5df3f112 SHA256 967c3dfae2da2915a66fd9dfee14da7191e13bb95e8b0820049d109c21f25628 +EBUILD performous-0.6.1.ebuild 2048 RMD160 34c87991815c095b20f1b9364b4a9c83953cfbb1 SHA1 f7e01b77143aa1e189a1a41056658965dfbe29bf SHA256 1a1da4a2496175995d0654f5d9c8abf78c5a145d3d6e1d8e2a28054fdbd313ae +MISC ChangeLog 566 RMD160 3cec8a96100f23b8bd099d231ec9113a0daf343c SHA1 df289c4562ea7d41faa124f21b547a99384f4d98 SHA256 5c98e4447568b3a9f2bbd3275f71835b7cb020ea6e8269d8a150f1dccea8be16 +MISC metadata.xml 536 RMD160 bcab16517c7f86266852d25efc7c79d527d54a48 SHA1 67ea3ae7852fca041a3ac5c9504224eb6a08d74a SHA256 316340057c29f5114bca4fef85389999055165713cd5ee32c957f5804d65e063 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.18 (GNU/Linux) + +iEYEARECAAYFAk9EA8sACgkQIY77eQFFFC3L6gCfR2m1TnUuUdF+uTv8k+hmIvMH +8/YAn2uM5Tudwr5bTUtXPZbE8M649lUh +=MVrK +-----END PGP SIGNATURE----- diff --git a/games-arcade/performous/files/performous-0.6.1-ffmpeg.patch b/games-arcade/performous/files/performous-0.6.1-ffmpeg.patch new file mode 100644 index 000000000000..38adb751d3b1 --- /dev/null +++ b/games-arcade/performous/files/performous-0.6.1-ffmpeg.patch @@ -0,0 +1,13 @@ +--- game/ffmpeg.cc.old 2012-02-19 09:01:01.086108323 +0100 ++++ game/ffmpeg.cc 2012-02-19 09:02:27.157984673 +0100 +@@ -60,8 +60,8 @@ + for (unsigned int i=0; i<pFormatCtx->nb_streams; i++) { + AVCodecContext* cc = pFormatCtx->streams[i]->codec; + cc->workaround_bugs = FF_BUG_AUTODETECT; +- if (videoStream == -1 && cc->codec_type==CODEC_TYPE_VIDEO) videoStream = i; +- if (audioStream == -1 && cc->codec_type==CODEC_TYPE_AUDIO) audioStream = i; ++ if (videoStream == -1 && cc->codec_type==AVMEDIA_TYPE_VIDEO) videoStream = i; ++ if (audioStream == -1 && cc->codec_type==AVMEDIA_TYPE_AUDIO) audioStream = i; + } + if (videoStream == -1 && decodeVideo) throw std::runtime_error("No video stream found"); + if (audioStream == -1 && decodeAudio) throw std::runtime_error("No audio stream found"); diff --git a/games-arcade/performous/files/performous-0.6.1-gentoo.patch b/games-arcade/performous/files/performous-0.6.1-gentoo.patch new file mode 100644 index 000000000000..e9a6fe316b95 --- /dev/null +++ b/games-arcade/performous/files/performous-0.6.1-gentoo.patch @@ -0,0 +1,29 @@ +--- game/CMakeLists.txt.old 2012-02-20 13:19:35.219635192 +0100 ++++ game/CMakeLists.txt 2012-02-20 13:20:06.025469808 +0100 +@@ -149,5 +149,5 @@ + configure_file("${CMAKE_CURRENT_SOURCE_DIR}/config.cmake.hh" "${CMAKE_CURRENT_BINARY_DIR}/config.hh" @ONLY) + include_directories("${CMAKE_CURRENT_BINARY_DIR}") + +-install(TARGETS performous DESTINATION bin) ++install(TARGETS performous DESTINATION @GENTOO_BINDIR@) + +--- game/fs.cc.old 2012-02-20 20:09:48.171892171 +0100 ++++ game/fs.cc 2012-02-20 20:16:14.197400202 +0100 +@@ -195,6 +195,7 @@ + if (root) config_list.push_back(std::string(root) + "/" SHARED_DATA_DIR + configFile.string()); + fs::path exec = plugin::execname(); + if (!exec.empty()) config_list.push_back(exec.parent_path().string() + "/../" SHARED_DATA_DIR + configFile.string()); ++ config_list.push_back(SHARED_DATA_DIR + configFile.string()); + ConfigList::const_iterator it = std::find_if(config_list.begin(), config_list.end(), static_cast<bool(&)(fs::path const&)>(fs::exists)); + if (it == config_list.end()) { + throw std::runtime_error("Could not find default config file " + configFile.string()); +--- game/fs.cc.old 2012-02-20 20:49:35.610728056 +0100 ++++ game/fs.cc 2012-02-20 20:57:03.117084432 +0100 +@@ -167,6 +167,7 @@ + + // Adding relative path from executable + dirs.push_back(plugin::execname().parent_path().parent_path() / shareDir); ++ dirs.push_back(shareDir); + #ifndef _WIN32 + // Adding XDG_DATA_DIRS + { diff --git a/games-arcade/performous/files/performous-0.6.1-libpng.patch b/games-arcade/performous/files/performous-0.6.1-libpng.patch new file mode 100644 index 000000000000..2633e77c0fbb --- /dev/null +++ b/games-arcade/performous/files/performous-0.6.1-libpng.patch @@ -0,0 +1,11 @@ +--- game/image.hh.old 2012-02-19 09:20:09.215987761 +0100 ++++ game/image.hh 2012-02-19 09:20:50.418077218 +0100 +@@ -26,7 +26,7 @@ + } + void loadPNG_internal(png_structp pngPtr, png_infop infoPtr, std::ifstream& file, std::vector<unsigned char>& image, std::vector<png_bytep>& rows, unsigned& w, unsigned& h) { + if (setjmp(png_jmpbuf(pngPtr))) throw std::runtime_error("Reading PNG failed"); +- png_set_read_fn(pngPtr,(voidp)&file, readPngHelper); ++ png_set_read_fn(pngPtr,(png_voidp)&file, readPngHelper); + png_read_info(pngPtr, infoPtr); + png_set_expand(pngPtr); // Expand everything to RGB(A) + png_set_strip_16(pngPtr); // Strip everything down to 8 bit/component diff --git a/games-arcade/performous/metadata.xml b/games-arcade/performous/metadata.xml new file mode 100644 index 000000000000..7b9492fcc181 --- /dev/null +++ b/games-arcade/performous/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>tupone@gentoo.org</email> + <name>Tupone Alfredo</name> + </maintainer> + <longdescription lang="en"> + Performous is an open-source rhythm/performance platform that contains singing, guitar/bass playing, drumming and dancing all in one game. + </longdescription> + <use> + <flag name="songs">Install a few demo songs</flag> + <flag name="tools">Install tools</flag> + </use> +</pkgmetadata> diff --git a/games-arcade/performous/performous-0.6.1.ebuild b/games-arcade/performous/performous-0.6.1.ebuild new file mode 100644 index 000000000000..324939e179b1 --- /dev/null +++ b/games-arcade/performous/performous-0.6.1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-arcade/performous/performous-0.6.1.ebuild,v 1.1 2012/02/21 20:51:12 tupone Exp $ + +EAPI=3 + +inherit flag-o-matic base cmake-utils games + +MY_PN=Performous +MY_P=${MY_PN}-${PV} +SONGS_PN=ultrastar-songs + +DESCRIPTION="SingStar GPL clone" +HOMEPAGE="http://sourceforge.net/projects/performous/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}-Source.tar.bz2 + songs? ( + mirror://sourceforge/${PN}/${SONGS_PN}-restricted-3.zip + mirror://sourceforge/${PN}/${SONGS_PN}-jc-1.zip + mirror://sourceforge/${PN}/${SONGS_PN}-libre-3.zip + mirror://sourceforge/${PN}/${SONGS_PN}-shearer-1.zip + )" + +LICENSE="GPL-2 + songs? ( + CCPL-Attribution-ShareAlike-NonCommercial-2.5 + CCPL-Attribution-NonCommercial-NoDerivs-2.5 + )" +SLOT="0" +KEYWORDS="~x86" +IUSE="songs tools" + +RDEPEND="dev-cpp/glibmm + dev-cpp/libxmlpp + media-libs/portaudio + dev-libs/boost + dev-libs/glib + dev-libs/libxml2 + gnome-base/librsvg + media-gfx/imagemagick + virtual/jpeg + media-libs/libpng + media-libs/libsdl + virtual/opengl + virtual/glu + media-video/ffmpeg + sys-libs/zlib + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/pango + !games-arcade/ultrastar-ng" +DEPEND="${RDEPEND} + media-libs/glew + sys-apps/help2man" + +S="${WORKDIR}"/${MY_P}-Source + +PATCHES=( + "${FILESDIR}"/${P}-ffmpeg.patch + "${FILESDIR}"/${P}-libpng.patch + "${FILESDIR}"/${P}-gentoo.patch +) +DOCS="docs/{Author,DeveloperReadme,instruments,TODO}.txt" +append-cppflags -DBOOST_FILESYSTEM_VERSION=2 + +src_prepare() { + base_src_prepare + sed -i \ + -e "s:@GENTOO_BINDIR@:${GAMES_BINDIR}:" \ + game/CMakeLists.txt \ + || die "sed failed" +} + +src_configure() { + local mycmakeargs=" + $(cmake-utils_use_enable tools TOOLS) + -DSHARE_INSTALL="${GAMES_DATADIR}"/${PN} + " + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + if use songs; then + insinto "${GAMES_DATADIR}"/${PN} + doins -r "${S}/songs" || die "doins failed" + fi + prepgamesdirs +} |