From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C213A1382C5 for ; Mon, 23 Apr 2018 19:17:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 12179E0BEE; Mon, 23 Apr 2018 19:17:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D06CEE0BEB for ; Mon, 23 Apr 2018 19:17:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DDD55335C74 for ; Mon, 23 Apr 2018 19:17:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 25E8A29D for ; Mon, 23 Apr 2018 19:17:30 +0000 (UTC) From: "Pacho Ramos" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pacho Ramos" Message-ID: <1524511022.70f2ce2b6c0ae353823adb46c5f884e4876e2b6f.pacho@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-arcade/performous/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-arcade/performous/performous-1.1-r1.ebuild X-VCS-Directories: games-arcade/performous/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: 70f2ce2b6c0ae353823adb46c5f884e4876e2b6f X-VCS-Branch: master Date: Mon, 23 Apr 2018 19:17:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ce92d40a-1554-40e1-87d2-9ec81a71feac X-Archives-Hash: 97d77c02fce08a58d0431a9be42beb46 commit: 70f2ce2b6c0ae353823adb46c5f884e4876e2b6f Author: Pacho Ramos gentoo org> AuthorDate: Mon Apr 23 18:19:30 2018 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Mon Apr 23 19:17:02 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70f2ce2b games-arcade/performous: Stop using games.eclass Package-Manager: Portage-2.3.31, Repoman-2.3.9 games-arcade/performous/performous-1.1-r1.ebuild | 118 +++++++++++++++++++++++ 1 file changed, 118 insertions(+) diff --git a/games-arcade/performous/performous-1.1-r1.ebuild b/games-arcade/performous/performous-1.1-r1.ebuild new file mode 100644 index 00000000000..6b8850506d5 --- /dev/null +++ b/games-arcade/performous/performous-1.1-r1.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +CMAKE_REMOVE_MODULES="yes" +CMAKE_REMOVE_MODULES_LIST="FindALSA FindBoost FindFreetype FindGettext FindJpeg FindPng FindTiff FindZ" + +inherit desktop cmake-utils epatch gnome2-utils + +MY_PN="Performous" +MY_P="${MY_PN}-${PV}" +SONGS_PN="ultrastar-songs" + +DESCRIPTION="SingStar GPL clone" +HOMEPAGE="https://performous.org/" +SRC_URI=" + https://github.com/performous/performous/archive/${PV}.tar.gz -> ${P}.tar.gz + songs? ( + mirror://sourceforge/performous/${SONGS_PN}-restricted-3.zip + mirror://sourceforge/performous/${SONGS_PN}-jc-1.zip + mirror://sourceforge/performous/${SONGS_PN}-libre-3.zip + mirror://sourceforge/performous/${SONGS_PN}-shearer-1.zip + ) +" + +LICENSE=" + GPL-2 + songs? ( + CC-BY-NC-SA-2.5 + CC-BY-NC-ND-2.5 + ) +" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="midi songs tools webcam" + +RDEPEND=" + dev-cpp/glibmm:2 + dev-cpp/libxmlpp:2.6 + media-libs/portaudio + dev-libs/boost[threads(+)] + dev-libs/glib:2 + dev-libs/libxml2:2 + gnome-base/librsvg:2 + media-gfx/imagemagick:0= + virtual/jpeg:0 + media-libs/libpng:0= + media-libs/libsdl2[joystick,video] + virtual/ffmpeg + virtual/opengl + virtual/glu + sys-libs/zlib + virtual/libintl + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/pango + media-libs/libepoxy + midi? ( media-libs/portmidi ) + webcam? ( media-libs/opencv ) +" +DEPEND="${RDEPEND} + sys-apps/help2man + sys-devel/gettext +" + +src_prepare() { + cmake-utils_src_prepare + epatch \ + "${FILESDIR}"/${P}-gentoo.patch \ + "${FILESDIR}"/${P}-linguas.patch + sed -i \ + -e "s:@GENTOO_BINDIR@:/usr/bin:" \ + -e '/ Z /s/ Z/ ZLIB/g' \ + -e 's/Z_FOUND/ZLIB_FOUND/g' \ + -e 's/Z_LIBRARIES/ZLIB_LIBRARIES/g' \ + -e 's/Jpeg/JPEG/' \ + -e 's/Png/PNG/' \ + {game,tools}/CMakeLists.txt || die + + strip-linguas -u lang +} + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_enable tools TOOLS) + $(cmake-utils_use_enable webcam WEBCAM) + $(cmake-utils_use_enable midi MIDI) + -DCMAKE_VERBOSE_MAKEFILE=TRUE + -DSHARE_INSTALL="/usr/share/${PN}" + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + if use songs ; then + insinto "/usr/share/${PN}" + doins -r "${WORKDIR}/songs" + fi + dodoc docs/{Authors,instruments}.txt + newicon -s scalable data/themes/default/icon.svg ${PN}.svg +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +}