From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-892550-garchives=archives.gentoo.org@lists.gentoo.org> 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 0CB9313832E for <garchives@archives.gentoo.org>; Tue, 19 Jul 2016 00:06:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 670C5E0B10; Tue, 19 Jul 2016 00:06:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 06438E0B10 for <gentoo-commits@lists.gentoo.org>; Tue, 19 Jul 2016 00:06:00 +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 7806C340AE0 for <gentoo-commits@lists.gentoo.org>; Tue, 19 Jul 2016 00:05:59 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EBF5B7CB for <gentoo-commits@lists.gentoo.org>; Tue, 19 Jul 2016 00:05:56 +0000 (UTC) From: "Austin English" <wizardedit@gentoo.org> 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" <wizardedit@gentoo.org> Message-ID: <1468886750.fe8ae96aab9938fce8c3e5b155026980ce192ba9.wizardedit@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-misc/OilWar/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-misc/OilWar/OilWar-1.2.1-r2.ebuild X-VCS-Directories: games-misc/OilWar/ X-VCS-Committer: wizardedit X-VCS-Committer-Name: Austin English X-VCS-Revision: fe8ae96aab9938fce8c3e5b155026980ce192ba9 X-VCS-Branch: master Date: Tue, 19 Jul 2016 00:05:56 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9d613742-43db-4d25-b99d-15944a67a2cc X-Archives-Hash: c3ac8535f43a865cd6ef22a0b8d1fe26 commit: fe8ae96aab9938fce8c3e5b155026980ce192ba9 Author: Austin English <wizardedit <AT> gentoo <DOT> org> AuthorDate: Tue Jul 19 00:05:28 2016 +0000 Commit: Austin English <wizardedit <AT> gentoo <DOT> org> CommitDate: Tue Jul 19 00:05:50 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe8ae96a games-misc/OilWar: remove deprecated games eclass Also update to EAPI 6 Gentoo-Bug: https://bugs.gentoo.org/574082 Package-Manager: portage-2.3.0 games-misc/OilWar/OilWar-1.2.1-r2.ebuild | 61 ++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/games-misc/OilWar/OilWar-1.2.1-r2.ebuild b/games-misc/OilWar/OilWar-1.2.1-r2.ebuild new file mode 100644 index 0000000..62f7000 --- /dev/null +++ b/games-misc/OilWar/OilWar-1.2.1-r2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit eutils gnome2-utils user + +DESCRIPTION="Evil army is attacking your country and tries to steal your oil" +HOMEPAGE="http://linux.softpedia.com/get/GAMES-ENTERTAINMENT/RTS/OilWar-15354.shtml" +SRC_URI="mirror://gentoo/${P}.tar.gz + mirror://gentoo/${PN}.png" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND="media-libs/libsdl[video] + media-libs/sdl-image[png] + media-libs/sdl-mixer" +RDEPEND="${DEPEND}" + +pkg_setup(){ + enewgroup gamestat 36 +} + +src_prepare() { + default + + sed -i \ + -e '/^CXXCOMPILE/s:$(CPPFLAGS):$(SDL_CFLAGS):' \ + -e '/install-data-am:/s:\\::' \ + -e '/install-data-local$/d' \ + Makefile.in || die +} + +src_configure() { + econf --enable-sound +} + +src_install() { + default + doicon "${DISTDIR}"/${PN}.png + make_desktop_entry oilwar ${PN} + + fowners root:gamestat /usr/bin/oilwar /var/games/oilwar.scores + fperms 664 /var/games/oilwar.scores + fperms 2755 /usr/bin/oilwar +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +}