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 32C8313908F for ; Fri, 27 Jan 2017 19:44:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 71FF3E0D2D; Fri, 27 Jan 2017 19:44:28 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 55341E0D2A for ; Fri, 27 Jan 2017 19:44:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 28176341655 for ; Fri, 27 Jan 2017 19:44:27 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8C88B31F7 for ; Fri, 27 Jan 2017 19:44:25 +0000 (UTC) From: "Austin English" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Austin English" Message-ID: <1485546252.8dc1f6480a1ce8acaf17885632bac3d2844b5f45.wizardedit@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-action/rrootage/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-action/rrootage/rrootage-0.23a-r1.ebuild X-VCS-Directories: games-action/rrootage/ X-VCS-Committer: wizardedit X-VCS-Committer-Name: Austin English X-VCS-Revision: 8dc1f6480a1ce8acaf17885632bac3d2844b5f45 X-VCS-Branch: master Date: Fri, 27 Jan 2017 19:44:25 +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: 8f2b2102-55c9-4677-aa15-23d443c7461a X-Archives-Hash: 2789c9bcb1e490e0a02d2c3ece2684c3 commit: 8dc1f6480a1ce8acaf17885632bac3d2844b5f45 Author: Austin English gentoo org> AuthorDate: Thu Jan 26 22:49:00 2017 +0000 Commit: Austin English gentoo org> CommitDate: Fri Jan 27 19:44:12 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8dc1f648 games-action/rrootage: remove deprecated games eclass Also update to EAPI 6 Gentoo-Bug: https://bugs.gentoo.org/574082 Package-Manager: Portage-2.3.2, Repoman-2.3.1 games-action/rrootage/rrootage-0.23a-r1.ebuild | 73 ++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/games-action/rrootage/rrootage-0.23a-r1.ebuild b/games-action/rrootage/rrootage-0.23a-r1.ebuild new file mode 100644 index 00000000..00f1476 --- /dev/null +++ b/games-action/rrootage/rrootage-0.23a-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit eutils + +MY_PN="rRootage" +MY_P="${MY_PN}-${PV}" +DESCRIPTION="Abstract shooter - defeat auto-created huge battleships" +HOMEPAGE="http://www.asahi-net.or.jp/~cs8k-cyu/windows/rr_e.html + http://rrootage.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND=" + >=dev-libs/libbulletml-0.0.3 + media-libs/libsdl[video] + media-libs/sdl-mixer[vorbis] + virtual/glu + virtual/opengl" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${MY_PN}/src + +PATCHES=( + "${FILESDIR}/${P}"-gcc41.patch +) + +src_prepare() { + default + + sed \ + -e "s/-lglut/-lGL -lGLU -lm/" \ + -e "/^CC/d" \ + -e "/^CXX/d" \ + -e "/^LDFLAGS/s/=/+=/" \ + -e "/^CPPFLAGS/s/MORE_CFLAGS/MORE_CXXFLAGS/" \ + -e "/^CPPFLAGS/s/MORE_CFLAGS/MORE_CXXFLAGS/" \ + -e "s/ -mwindows//" \ + -e "s:-I./bulletml/:-I/usr/include/bulletml:" \ + makefile.lin > Makefile || die + + sed -i \ + -e "s:/usr/share/games:/usr/share:" \ + barragemanager.cc screen.c soundmanager.c || die +} + +src_compile() { + emake \ + MORE_CFLAGS="-DLINUX ${CFLAGS}" \ + MORE_CXXFLAGS="-DLINUX ${CXXFLAGS}" +} + +src_install() { + newbin rr ${PN} + dodir "/usr/share/${MY_PN}" + cp -r ../rr_share/* "${D}/usr/share/${MY_PN}" || die + dodoc ../readme* +} + +pkg_postinst() { + if ! has_version "media-libs/sdl-mixer[vorbis]" ; then + elog "${PN} will not have sound since sdl-mixer" + elog "is built with USE=-vorbis" + elog "Please emerge sdl-mixer with USE=vorbis" + elog "if you want sound support" + fi +}