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 18A42139694 for ; Thu, 20 Jul 2017 08:51:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 46C63E0BCF; Thu, 20 Jul 2017 08:51:48 +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 15AD2E0BCF for ; Thu, 20 Jul 2017 08:51:48 +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 B6E4D3418EA for ; Thu, 20 Jul 2017 08:51:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5B358291E for ; Thu, 20 Jul 2017 08:51:45 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1500540699.6ef0dfdabdc00439b6d46ff2bd67b8976f660d60.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/mgba/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-emulation/mgba/Manifest games-emulation/mgba/mgba-0.6.0.ebuild X-VCS-Directories: games-emulation/mgba/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 6ef0dfdabdc00439b6d46ff2bd67b8976f660d60 X-VCS-Branch: master Date: Thu, 20 Jul 2017 08:51:45 +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: d95652b3-f68d-4502-9496-fff48c12fd2f X-Archives-Hash: af6c79d2f4053e4a0eabca9ec0934752 commit: 6ef0dfdabdc00439b6d46ff2bd67b8976f660d60 Author: Lars Wendler gentoo org> AuthorDate: Thu Jul 20 08:50:43 2017 +0000 Commit: Lars Wendler gentoo org> CommitDate: Thu Jul 20 08:51:39 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ef0dfda games-emulation/mgba: Bump to version 0.6.0 Package-Manager: Portage-2.3.6, Repoman-2.3.3 games-emulation/mgba/Manifest | 1 + games-emulation/mgba/mgba-0.6.0.ebuild | 115 +++++++++++++++++++++++++++++++++ 2 files changed, 116 insertions(+) diff --git a/games-emulation/mgba/Manifest b/games-emulation/mgba/Manifest index 4784709a049..90c7709350e 100644 --- a/games-emulation/mgba/Manifest +++ b/games-emulation/mgba/Manifest @@ -1 +1,2 @@ DIST mgba-0.5.2.tar.gz 5343635 SHA256 3d9fda762e6e0dd26ffbd3cbaa5365dc7ca7ed324cee5c65b7c85eaa3c37c4f3 SHA512 8d3ef901bae9b503f8d5afff63c23be9af4b519f86cc6f3656c51374756107e4852bc0472cb7393cb04c8f0ff2f134367a81e32a5ff3dab8ae0c6cbd7d3858da WHIRLPOOL 977da5589b6e04fd67d32295befccf76988b3f23d13d0d92ab525deb51c58aae18ae1d40d0849b8bd2b3fc9e8c15703367458812404ca797b4f0eedbc26f1272 +DIST mgba-0.6.0.tar.gz 7434157 SHA256 d8cf01befd7f452415a9191b058bc21e47e39c7f2c865257cd93c2780b17fe07 SHA512 24a9c75370465246e467f03498994e2f142bed18435658aa75ee8dc7ad9f8fa649b476b7846c0f3c4be474ca1d3b7c36e34af05b4088fa3a7a11e3edb0074308 WHIRLPOOL 26588a452d9c2ae8456f0f8be63246ae8a637b6d0bce7b90ba2a11813682ae9402652a99b2d4844f8eddd5c07347f63dbbeb857887448cd328bb27e38939da07 diff --git a/games-emulation/mgba/mgba-0.6.0.ebuild b/games-emulation/mgba/mgba-0.6.0.ebuild new file mode 100644 index 00000000000..7ba7da1f895 --- /dev/null +++ b/games-emulation/mgba/mgba-0.6.0.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils gnome2-utils xdg-utils + +DESCRIPTION="A new Game Boy Advance emulator written in C." +HOMEPAGE="https://mgba.io" +SRC_URI="https://github.com/${PN}-emu/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug ffmpeg imagemagick opengl qt5 +sdl" +REQUIRED_USE="|| ( qt5 sdl ) + qt5? ( opengl )" + +RDEPEND=" + dev-db/sqlite:3 + media-libs/libpng:0= + sys-libs/zlib[minizip] + ffmpeg? ( virtual/ffmpeg ) + imagemagick? ( media-gfx/imagemagick:= ) + opengl? ( virtual/opengl ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtmultimedia:5 + dev-qt/qtwidgets:5 + opengl? ( dev-qt/qtopengl:5 ) + ) + sdl? ( media-libs/libsdl2[X,sound,joystick,video,opengl?] ) +" +DEPEND="${RDEPEND}" + +src_prepare() { + default + + # Get rid of any bundled stuff we don't want + for pkg in libpng lzma sqlite3 zlib ; do + rm -r "${S}"/src/third-party/${pkg} || die + done +} + +src_configure() { + local mycmakeargs=( + -DBUILD_GL="$(usex opengl)" + -DBUILD_GLES=OFF + -DBUILD_PYTHON=OFF + -DBUILD_QT="$(usex qt5)" + -DBUILD_SDL="$(usex sdl)" + -DBUILD_SHARED=ON + # test suite fails to build (0.6.0) + -DBUILD_SUITE=OFF + -DBUILD_TEST=OFF + -DM_CORE_GB=ON + -DM_CORE_GBA=ON + -DUSE_DEBUGGERS="$(usex debug)" + -DUSE_EDITLINE="$(usex debug)" + -DUSE_EPOXY=OFF + -DUSE_FFMPEG="$(usex ffmpeg)" + -DUSE_GDB_STUB="$(usex debug)" + -DUSE_LIBZIP=OFF + -DUSE_LZMA=OFF + -DUSE_MAGICK="$(usex imagemagick)" + -DUSE_MINIZIP=ON + -DUSE_PNG=ON + # build fails with sqlite being disabled (0.6.0) + -DUSE_SQLITE3=ON + -DUSE_ZLIB=ON + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + if use qt5 ; then + for size in 16 24 32 48 64 96 128 256; do + newicon -s ${size} res/${PN}-${size}.png ${PN}.png + done + doman doc/${PN}-qt.6 + domenu res/${PN}-qt.desktop + dobin ../${P}_build/qt/${PN}-qt + fi + if use sdl ; then + doman doc/${PN}.6 + newbin ../${P}_build/sdl/${PN} ${PN}-sdl + fi + + dolib.so ../${P}_build/lib${PN}.so* +} + +pkg_preinst() { + if use qt5 ; then + gnome2_icon_savelist + fi +} + +pkg_postinst() { + if use qt5 ; then + xdg_desktop_database_update + gnome2_icon_cache_update + fi +} + +pkg_postrm() { + if use qt5 ; then + xdg_desktop_database_update + gnome2_icon_cache_update + fi +}