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 D1E181396DA for ; Sun, 19 Nov 2017 09:12:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F2036E0CAB; Sun, 19 Nov 2017 09:12:44 +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 C1A9CE0CAB for ; Sun, 19 Nov 2017 09:12:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 184A1340806 for ; Sun, 19 Nov 2017 09:12:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 667C09FF3 for ; Sun, 19 Nov 2017 09:12:41 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1511082717.bb5563b8c08a584d4e186027eba7469aa5c89ac0.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-arcade/jvgs/, games-arcade/jvgs/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-arcade/jvgs/files/jvgs-0.5-fix-build-system.patch games-arcade/jvgs/jvgs-0.5-r1.ebuild X-VCS-Directories: games-arcade/jvgs/ games-arcade/jvgs/files/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: bb5563b8c08a584d4e186027eba7469aa5c89ac0 X-VCS-Branch: master Date: Sun, 19 Nov 2017 09:12:41 +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: 50c1b3ca-9b2d-4d0c-abb1-10700d623f37 X-Archives-Hash: f25d75a97e5c311e267ff2561e37a50e commit: bb5563b8c08a584d4e186027eba7469aa5c89ac0 Author: David Seifert gentoo org> AuthorDate: Sat Nov 18 22:12:33 2017 +0000 Commit: David Seifert gentoo org> CommitDate: Sun Nov 19 09:11:57 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb5563b8 games-arcade/jvgs: Update to EAPI 6 * Remove games.eclass * Allow out-of-source building Closes: https://bugs.gentoo.org/636820 Package-Manager: Portage-2.3.14, Repoman-2.3.6 .../jvgs/files/jvgs-0.5-fix-build-system.patch | 43 ++++++++++++++++++++++ games-arcade/jvgs/jvgs-0.5-r1.ebuild | 39 ++++++++++++++++++++ 2 files changed, 82 insertions(+) diff --git a/games-arcade/jvgs/files/jvgs-0.5-fix-build-system.patch b/games-arcade/jvgs/files/jvgs-0.5-fix-build-system.patch new file mode 100644 index 00000000000..5f5ba191bb7 --- /dev/null +++ b/games-arcade/jvgs/files/jvgs-0.5-fix-build-system.patch @@ -0,0 +1,43 @@ +* Respect user CXXFLAGS +* Build out-of-source + +--- a/src/bind/CMakeLists.txt ++++ b/src/bind/CMakeLists.txt +@@ -1,16 +1,25 @@ +-ADD_CUSTOM_TARGET( +- swig +- ${SWIG_EXECUTABLE} -lua -c++ -o ${JVGS_BINARY_DIR}/src/bind/jvgslua.cpp ${JVGS_BINARY_DIR}/src/bind/jvgslua.i ++ADD_CUSTOM_COMMAND( ++ OUTPUT ++ ${CMAKE_CURRENT_BINARY_DIR}/jvgslua.cpp ++ COMMAND ++ ${SWIG_EXECUTABLE} -lua -c++ -o ${CMAKE_CURRENT_BINARY_DIR}/jvgslua.cpp ${CMAKE_CURRENT_SOURCE_DIR}/jvgslua.i ++ VERBATIM + ) + + ADD_LIBRARY( + bind STATIC +- jvgslua.cpp ++ ${CMAKE_CURRENT_BINARY_DIR}/jvgslua.cpp + ScriptManager.cpp + ) + + ADD_DEPENDENCIES( bind swig ) + ++TARGET_INCLUDE_DIRECTORIES( ++ bind ++ PRIVATE ++ ${CMAKE_CURRENT_SOURCE_DIR} ++) ++ + TARGET_LINK_LIBRARIES( + bind + ${LUA_LIBRARIES} +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -1,4 +1,4 @@ +-SET( CMAKE_CXX_FLAGS "-DTIXML_USE_STL -ggdb" ) ++SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTIXML_USE_STL" ) + + INCLUDE_DIRECTORIES( + ${SDL_INCLUDE_DIR} diff --git a/games-arcade/jvgs/jvgs-0.5-r1.ebuild b/games-arcade/jvgs/jvgs-0.5-r1.ebuild new file mode 100644 index 00000000000..779b57dd740 --- /dev/null +++ b/games-arcade/jvgs/jvgs-0.5-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils eutils + +DESCRIPTION="An open-source platform game with a sketched and minimalistic look" +HOMEPAGE="http://jvgs.sourceforge.net/" +SRC_URI="mirror://sourceforge/jvgs/${P}-src.tar.gz" + +LICENSE="WTFPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-lang/lua:0 + media-libs/libsdl[video] + media-libs/sdl-mixer[vorbis] + media-libs/freetype:2 + sys-libs/zlib:= + virtual/opengl" +DEPEND="${RDEPEND} + dev-lang/swig" + +S=${WORKDIR}/${P}-src +PATCHES=( "${FILESDIR}"/${PN}-0.5-fix-build-system.patch ) + +src_install() { + dobin src/${PN} + + insinto /usr/share/${PN} + doins -r main.lua resources + + newicon resources/drawing.svg ${PN}.svg + make_desktop_entry ${PN} ${PN} + + einstalldocs +}