diff options
author | 2012-02-01 16:20:55 +0700 | |
---|---|---|
committer | 2012-02-01 16:20:55 +0700 | |
commit | 37e92c1abffd4d3fcfe818b27bcec7a450a3f93e (patch) | |
tree | fd71b874ecb7f70d59c90f2657cb2888bf422141 | |
parent | papagayo-1.1 (diff) | |
download | gentoo-vn-37e92c1abffd4d3fcfe818b27bcec7a450a3f93e.tar.gz gentoo-vn-37e92c1abffd4d3fcfe818b27bcec7a450a3f93e.tar.bz2 gentoo-vn-37e92c1abffd4d3fcfe818b27bcec7a450a3f93e.zip |
performous
l--------- | games-arcade/performous | 1 | ||||
-rw-r--r-- | games-arcade/performous/Manifest | 12 | ||||
-rw-r--r-- | games-arcade/performous/files/performous-gentoopaths.patch | 51 | ||||
-rw-r--r-- | games-arcade/performous/performous-0.4.0.ebuild | 100 | ||||
-rw-r--r-- | games-arcade/performous/performous-0.5.1.ebuild | 102 | ||||
-rw-r--r-- | games-arcade/performous/performous-0.6.0.ebuild | 111 | ||||
-rw-r--r-- | games-arcade/performous/performous-9999.ebuild | 111 |
7 files changed, 487 insertions, 1 deletions
diff --git a/games-arcade/performous b/games-arcade/performous deleted file mode 120000 index 2d11aca..0000000 --- a/games-arcade/performous +++ /dev/null @@ -1 +0,0 @@ -/home/thang/Projects/performous/portage-overlay/games-arcade/performous
\ No newline at end of file diff --git a/games-arcade/performous/Manifest b/games-arcade/performous/Manifest new file mode 100644 index 0000000..c87bf08 --- /dev/null +++ b/games-arcade/performous/Manifest @@ -0,0 +1,12 @@ +AUX performous-gentoopaths.patch 2221 RMD160 022dad2c9b43bacdc3440d600c9a082c331a25d1 SHA1 4c80d00de213b0ab53b7fe0756527c1ce668de5c SHA256 c16f93491528774861571258463f480ec2d2f55759fd49ae2adfa2ae9af533e3 +DIST Performous-0.4.0-Source.tar.bz2 3718022 RMD160 155607c7a640196aaf537efcecd88da84b886127 SHA1 44bcc39618cb08957da3815ed9f13af6d90f93ed SHA256 4688546a70b09837311e428c233bac091ce5301c7dd4efe21137ca8867af8be0 +DIST Performous-0.5.1-Source.tar.bz2 3735453 RMD160 0fba1289770058800df1b4364fc2451a7a528a9c SHA1 bd8a76f0629e9366daa907d32ff76365f4b8b4a8 SHA256 6b7bee1301b0f2b1e0feaf4864f5d51bbe709810898dc0de5e5f9c332effa1e6 +DIST Performous-0.6.0-Source.tar.bz2 3749230 RMD160 53095b64599d8a7368656b77e96cc7893b571eac SHA1 6c7a26354421fdfa3e2a87fdc0702efbec024186 SHA256 8eaefaeff64aa44628de96c9bd5de85e09c3657a62d17b32f92dbb9eba809c6c +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.4.0.ebuild 2722 RMD160 2d03a69b4455acd1c9e8d2e8b1e0a457f05158e2 SHA1 35e94a734d9896cd5673bc14006bb68fb2945c48 SHA256 da3f86e4b42d4fc4e3ea4e0d6c64f72322ae2bd92259a47f05d7d9e3adbb98d0 +EBUILD performous-0.5.1.ebuild 2716 RMD160 38e2d8de6f3ca2a4fb072b54aee850d2cb20fb32 SHA1 90a5d6f67afef35799d955fc4444cfaf303544d7 SHA256 8cca5f71be01458e2bdcf192966ca0b32fc70e8e6338b5f02961cd388759c244 +EBUILD performous-0.6.0.ebuild 2852 RMD160 3be7345812310e921b9d5e85d1b8de82ad53fae7 SHA1 9d31f669e82b43597010a897565d20458c8e932c SHA256 5f879ea0901b784e4d4481cf3eb85006dd3f9e72050e19b31252ca73d9266ad8 +EBUILD performous-9999.ebuild 2852 RMD160 3be7345812310e921b9d5e85d1b8de82ad53fae7 SHA1 9d31f669e82b43597010a897565d20458c8e932c SHA256 5f879ea0901b784e4d4481cf3eb85006dd3f9e72050e19b31252ca73d9266ad8 diff --git a/games-arcade/performous/files/performous-gentoopaths.patch b/games-arcade/performous/files/performous-gentoopaths.patch new file mode 100644 index 0000000..a62bef8 --- /dev/null +++ b/games-arcade/performous/files/performous-gentoopaths.patch @@ -0,0 +1,51 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c887394..941369e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -24,6 +24,9 @@ else(WIN32) + if(NOT SHARE_INSTALL) + set(SHARE_INSTALL "share/games/performous" CACHE STRING "Data file install path. Must be a relative path (from CMAKE_INSTALL_PREFIX), with no trailing slash.") + endif(NOT SHARE_INSTALL) ++ if(NOT GENTOO_DATA_DIR) ++ SET (GENTOO_DATA_DIR "/usr/share/games/performous" CACHE PATH "data directory prefix") ++ endif(NOT GENTOO_DATA_DIR) + endif(WIN32) + + mark_as_advanced(SHARE_INSTALL) +diff --git a/game/config.cmake.hh b/game/config.cmake.hh +index 300ba05..83b38d2 100644 +--- a/game/config.cmake.hh ++++ b/game/config.cmake.hh +@@ -10,6 +10,7 @@ + #define VERSION "@PROJECT_VERSION@" + + #define SHARED_DATA_DIR "@SHARE_INSTALL@" ++#define GENTOO_DATA_DIR "@GENTOO_DATA_DIR@" + + // FFMPEG libraries use changing include file names... Get them from CMake. + #define AVCODEC_INCLUDE <@AVCodec_INCLUDE@> +diff --git a/game/fs.cc b/game/fs.cc +index 5e74c77..faa96f9 100644 +--- a/game/fs.cc ++++ b/game/fs.cc +@@ -165,6 +165,9 @@ Paths const& getPaths(bool refresh) { + // Adding users data dir + dirs.push_back(getDataDir()); + ++ // Adding gentoo path ++ dirs.push_back(std::string(GENTOO_DATA_DIR)); ++ + // Adding relative path from executable + dirs.push_back(plugin::execname().parent_path().parent_path() / shareDir); + #ifndef _WIN32 +@@ -192,7 +195,9 @@ fs::path getDefaultConfig(fs::path const &configFile) { + typedef std::vector<std::string> ConfigList; + ConfigList config_list; + char const* root = getenv("PERFORMOUS_ROOT"); +- if (root) config_list.push_back(std::string(root) + "/" SHARED_DATA_DIR + configFile.string()); ++ if (root) config_list.push_back(std::string(root) + "/" + configFile.string()); ++ // Adding gentoo specific directory (keeping PERFORMOUS_ROOT first) ++ config_list.push_back(std::string(GENTOO_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()); + ConfigList::const_iterator it = std::find_if(config_list.begin(), config_list.end(), static_cast<bool(&)(fs::path const&)>(fs::exists)); diff --git a/games-arcade/performous/performous-0.4.0.ebuild b/games-arcade/performous/performous-0.4.0.ebuild new file mode 100644 index 0000000..33a0f51 --- /dev/null +++ b/games-arcade/performous/performous-0.4.0.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /cvsroot/ultrastar-ng/UltraStar-ng/portage-overlay/games-arcade/performous/performous-9999.ebuild,v 1.10 2007/09/29 13:04:19 yoda-jm Exp $ + +EAPI=2 +inherit cmake-utils games + +RESTRICT="nostrip" + +SONGS_PN=ultrastar-songs +MY_PN=Performous +MY_P=${MY_PN}-${PV}-Source +SONGS_PN=ultrastar-songs + +DESCRIPTION="Karaoke game similar to Singstar" +HOMEPAGE="http://performous.org" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2 + songs? ( + mirror://sourceforge/${PN}/${SONGS_PN}-jc-1.zip + mirror://sourceforge/${PN}/${SONGS_PN}-libre-3.zip + mirror://sourceforge/${PN}/${SONGS_PN}-restricted-3.zip + mirror://sourceforge/${PN}/${SONGS_PN}-shearer-1.zip + )" + +EGIT_REPO_URI="git://performous.git.sourceforge.net/gitroot/performous/performous" + +LICENSE="GPL-2 + songs? ( + CCPL-Attribution-ShareAlike-NonCommercial-2.5 + CCPL-Attribution-NonCommercial-NoDerivs-2.5 + )" +SLOT="0" +KEYWORDS="~x86 ~amd64 ~ppc ~ppc64" + +IUSE="debug alsa portaudio pulseaudio jack songs gstreamer tools editor" + +RDEPEND="gnome-base/librsvg + >=dev-libs/boost-1.36.0 + x11-libs/pango + dev-cpp/libxmlpp + media-libs/glew + media-libs/libsdl[joystick,opengl] + media-gfx/imagemagick[png] + >=media-video/ffmpeg-0.4.9_p20070616-r20 + alsa? ( media-libs/alsa-lib ) + jack? ( media-sound/jack-audio-connection-kit ) + portaudio? ( media-libs/portaudio ) + gstreamer? ( media-libs/gstreamer ) + pulseaudio? ( media-sound/pulseaudio ) + sys-apps/help2man + !games-arcade/ultrastar-ng" +DEPEND="${RDEPEND} + >=dev-util/cmake-2.6.0" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack "${MY_P}.tar.bz2" + if use songs; then + cd "${S}" + unpack "${SONGS_PN}-jc-1.zip" + unpack "${SONGS_PN}-libre-3.zip" + unpack "${SONGS_PN}-restricted-3.zip" + unpack "${SONGS_PN}-shearer-1.zip" + fi +} + +src_configure() { + local mycmakeargs=" + $(cmake-utils_use alsa LIBDA_PLUGIN_ALSA) + $(cmake-utils_use jack LIBDA_PLUGIN_JACK) + $(cmake-utils_use gstreamer LIBDA_PLUGIN_GSTREAMER) + $(cmake-utils_use portaudio LIBDA_PLUGIN_PORTAUDIO) + $(cmake-utils_use pulseaudio LIBDA_PLUGIN_PULSEAUDIO) + $(cmake-utils_use_enable tools TOOLS) + $(cmake-utils_use_enable editor EDITOR) + -DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX} + -DSHARE_INSTALL=share/performous/ + -DLIBDA_AUTODETECT_PLUGINS=false + -DLIBDA_PLUGIN_TESTING=false + -DCMAKE_BUILD_TYPE=Release" + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + DOCS="docs/*.txt" cmake-utils_src_install + + if use songs; then + insinto "/usr/share/games/ultrastar" + doins -r "${S}/songs" || die "doins songs failed" + fi + doicon "${S}/data/${PN}.xpm" + domenu "${S}/data/${PN}.desktop" + prepgamesdirs +} diff --git a/games-arcade/performous/performous-0.5.1.ebuild b/games-arcade/performous/performous-0.5.1.ebuild new file mode 100644 index 0000000..1af2d4b --- /dev/null +++ b/games-arcade/performous/performous-0.5.1.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /cvsroot/ultrastar-ng/UltraStar-ng/portage-overlay/games-arcade/performous/performous-9999.ebuild,v 1.10 2007/09/29 13:04:19 yoda-jm Exp $ + +EAPI=2 +inherit games cmake-utils + +RESTRICT="nostrip" + +SONGS_PN=ultrastar-songs + +MY_PN=Performous +MY_P=${MY_PN}-${PV}-Source +SONGS_PN=ultrastar-songs + +DESCRIPTION="Karaoke game similar to Singstar" +HOMEPAGE="http://performous.org" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2 + songs? ( + mirror://sourceforge/${PN}/${SONGS_PN}-jc-1.zip + mirror://sourceforge/${PN}/${SONGS_PN}-libre-3.zip + mirror://sourceforge/${PN}/${SONGS_PN}-restricted-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 ~amd64 ~ppc ~ppc64" + +IUSE="debug alsa portaudio pulseaudio jack songs gstreamer tools editor" + +RDEPEND="gnome-base/librsvg + dev-libs/boost + x11-libs/pango + dev-cpp/libxmlpp + media-libs/glew + media-libs/libsdl[joystick,opengl] + media-libs/libpng + media-libs/jpeg + tools? ( media-gfx/imagemagick[png] ) + editor? ( media-gfx/imagemagick[png] ) + >=media-video/ffmpeg-0.4.9_p20070616-r20 + alsa? ( media-libs/alsa-lib ) + jack? ( media-sound/jack-audio-connection-kit ) + portaudio? ( media-libs/portaudio ) + gstreamer? ( media-libs/gstreamer ) + pulseaudio? ( media-sound/pulseaudio ) + sys-apps/help2man + !games-arcade/ultrastar-ng" +DEPEND="${RDEPEND} + >=dev-util/cmake-2.6.0" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack "${MY_P}.tar.bz2" + if use songs; then + cd "${S}" + unpack "${SONGS_PN}-jc-1.zip" + unpack "${SONGS_PN}-libre-3.zip" + unpack "${SONGS_PN}-restricted-3.zip" + unpack "${SONGS_PN}-shearer-1.zip" + fi +} + +src_configure() { + local mycmakeargs=" + $(cmake-utils_use alsa LIBDA_PLUGIN_ALSA) + $(cmake-utils_use jack LIBDA_PLUGIN_JACK) + $(cmake-utils_use gstreamer LIBDA_PLUGIN_GSTREAMER) + $(cmake-utils_use portaudio LIBDA_PLUGIN_PORTAUDIO) + $(cmake-utils_use pulseaudio LIBDA_PLUGIN_PULSEAUDIO) + $(cmake-utils_use_enable tools TOOLS) + $(cmake-utils_use_enable editor EDITOR) + -DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX} + -DSHARE_INSTALL=share/performous + -DLIBDA_AUTODETECT_PLUGINS=false + -DLIBDA_PLUGIN_TESTING=false + -DCMAKE_BUILD_TYPE=Release" + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + DOCS="docs/*.txt" cmake-utils_src_install + + if use songs; then + insinto "/usr/share/games/ultrastar" + doins -r "${S}/songs" || die "doins songs failed" + fi + doicon "${S}/data/${PN}.xpm" + domenu "${S}/data/${PN}.desktop" + prepgamesdirs +} diff --git a/games-arcade/performous/performous-0.6.0.ebuild b/games-arcade/performous/performous-0.6.0.ebuild new file mode 100644 index 0000000..7eb426c --- /dev/null +++ b/games-arcade/performous/performous-0.6.0.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /cvsroot/ultrastar-ng/UltraStar-ng/portage-overlay/games-arcade/performous/performous-9999.ebuild,v 1.10 2007/09/29 13:04:19 yoda-jm Exp $ + +[[ ${PV} = 9999 ]] && GIT="git" +EAPI=2 + +inherit cmake-utils ${GIT} games + +SONGS_PN=ultrastar-songs + +DESCRIPTION="Party game similar to Singstar, RockBand, Guitar Hero and Stepmania" +HOMEPAGE="http://performous.org" +SRC_URI="songs? ( + mirror://sourceforge/${PN}/${SONGS_PN}-jc-1.zip + mirror://sourceforge/${PN}/${SONGS_PN}-libre-3.zip + mirror://sourceforge/${PN}/${SONGS_PN}-restricted-3.zip + mirror://sourceforge/${PN}/${SONGS_PN}-shearer-1.zip + )" + +if [ "$PV" != "9999" ]; then + MY_PN=Performous + MY_P=${MY_PN}-${PV}-Source + SRC_URI=" mirror://sourceforge/${PN}/${MY_P}.tar.bz2 + $SRC_URI" +else + EGIT_REPO_URI="git://performous.git.sourceforge.net/gitroot/performous/performous" + EGIT_BRANCH="master" +fi + +LICENSE="GPL-2 + songs? ( + CCPL-Attribution-ShareAlike-NonCommercial-2.5 + CCPL-Attribution-NonCommercial-NoDerivs-2.5 + )" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="debug midi songs tools webcam" + +RDEPEND="gnome-base/librsvg + >=dev-libs/boost-1.39.0 + x11-libs/pango + dev-cpp/libxmlpp + media-libs/glew + media-libs/libsdl[joystick,opengl] + media-libs/libpng + media-libs/jpeg + tools? ( media-gfx/imagemagick[png] ) + webcam? ( media-libs/opencv[v4l] ) + >=media-video/ffmpeg-0.4.9_p20070616-r20 + media-libs/portaudio + sys-apps/help2man + !games-arcade/ultrastar-ng" +# Waiting for portmidi to enter portage (#90614) +#RDEPEND="${RDEPEND} +# midi? ( media-libs/portmidi )" +DEPEND="${RDEPEND} + >=dev-util/cmake-2.6.0" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + if [ "${PV}" != "9999" ]; then + unpack "${MY_P}.tar.bz2" + else + git_src_unpack + fi + cd "${S}" + if use songs; then + unpack "${SONGS_PN}-jc-1.zip" "${SONGS_PN}-libre-3.zip" "${SONGS_PN}-restricted-3.zip" "${SONGS_PN}-shearer-1.zip" + fi +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-gentoopaths.patch +} + +src_configure() { + local mycmakeargs=" + $(cmake-utils_use_enable tools TOOLS) + $(cmake-utils_use_no webcam WEBCAM) + -DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX} + -DGENTOO_DATA_DIR=${GAMES_DATADIR}/${PN} + -DLOCALE_DIR=/usr/share + -DCMAKE_BUILD_TYPE=Release" +# local mycmakeargs=" +# $(cmake-utils_use_no midi MIDI) +# ${mycmakeargs}" + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + DOCS="docs/*.txt" cmake-utils_src_install + mv -f "${D}/${GAMES_PREFIX}/share/man" "${D}/usr/share/" + mkdir -p "${D}/${GAMES_DATADIR}/${PN}" + mv -f "${D}/${GAMES_PREFIX}/share/games/performous" "${D}/${GAMES_DATADIR}/" + + if use songs; then + insinto "${GAMES_DATADIR}/${PN}" + doins -r "${S}/songs" || die "doins songs failed" + fi + doicon "${S}/data/${PN}.xpm" + domenu "${S}/data/${PN}.desktop" + prepgamesdirs +} diff --git a/games-arcade/performous/performous-9999.ebuild b/games-arcade/performous/performous-9999.ebuild new file mode 100644 index 0000000..7eb426c --- /dev/null +++ b/games-arcade/performous/performous-9999.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /cvsroot/ultrastar-ng/UltraStar-ng/portage-overlay/games-arcade/performous/performous-9999.ebuild,v 1.10 2007/09/29 13:04:19 yoda-jm Exp $ + +[[ ${PV} = 9999 ]] && GIT="git" +EAPI=2 + +inherit cmake-utils ${GIT} games + +SONGS_PN=ultrastar-songs + +DESCRIPTION="Party game similar to Singstar, RockBand, Guitar Hero and Stepmania" +HOMEPAGE="http://performous.org" +SRC_URI="songs? ( + mirror://sourceforge/${PN}/${SONGS_PN}-jc-1.zip + mirror://sourceforge/${PN}/${SONGS_PN}-libre-3.zip + mirror://sourceforge/${PN}/${SONGS_PN}-restricted-3.zip + mirror://sourceforge/${PN}/${SONGS_PN}-shearer-1.zip + )" + +if [ "$PV" != "9999" ]; then + MY_PN=Performous + MY_P=${MY_PN}-${PV}-Source + SRC_URI=" mirror://sourceforge/${PN}/${MY_P}.tar.bz2 + $SRC_URI" +else + EGIT_REPO_URI="git://performous.git.sourceforge.net/gitroot/performous/performous" + EGIT_BRANCH="master" +fi + +LICENSE="GPL-2 + songs? ( + CCPL-Attribution-ShareAlike-NonCommercial-2.5 + CCPL-Attribution-NonCommercial-NoDerivs-2.5 + )" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="debug midi songs tools webcam" + +RDEPEND="gnome-base/librsvg + >=dev-libs/boost-1.39.0 + x11-libs/pango + dev-cpp/libxmlpp + media-libs/glew + media-libs/libsdl[joystick,opengl] + media-libs/libpng + media-libs/jpeg + tools? ( media-gfx/imagemagick[png] ) + webcam? ( media-libs/opencv[v4l] ) + >=media-video/ffmpeg-0.4.9_p20070616-r20 + media-libs/portaudio + sys-apps/help2man + !games-arcade/ultrastar-ng" +# Waiting for portmidi to enter portage (#90614) +#RDEPEND="${RDEPEND} +# midi? ( media-libs/portmidi )" +DEPEND="${RDEPEND} + >=dev-util/cmake-2.6.0" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + if [ "${PV}" != "9999" ]; then + unpack "${MY_P}.tar.bz2" + else + git_src_unpack + fi + cd "${S}" + if use songs; then + unpack "${SONGS_PN}-jc-1.zip" "${SONGS_PN}-libre-3.zip" "${SONGS_PN}-restricted-3.zip" "${SONGS_PN}-shearer-1.zip" + fi +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-gentoopaths.patch +} + +src_configure() { + local mycmakeargs=" + $(cmake-utils_use_enable tools TOOLS) + $(cmake-utils_use_no webcam WEBCAM) + -DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX} + -DGENTOO_DATA_DIR=${GAMES_DATADIR}/${PN} + -DLOCALE_DIR=/usr/share + -DCMAKE_BUILD_TYPE=Release" +# local mycmakeargs=" +# $(cmake-utils_use_no midi MIDI) +# ${mycmakeargs}" + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + DOCS="docs/*.txt" cmake-utils_src_install + mv -f "${D}/${GAMES_PREFIX}/share/man" "${D}/usr/share/" + mkdir -p "${D}/${GAMES_DATADIR}/${PN}" + mv -f "${D}/${GAMES_PREFIX}/share/games/performous" "${D}/${GAMES_DATADIR}/" + + if use songs; then + insinto "${GAMES_DATADIR}/${PN}" + doins -r "${S}/songs" || die "doins songs failed" + fi + doicon "${S}/data/${PN}.xpm" + domenu "${S}/data/${PN}.desktop" + prepgamesdirs +} |