diff options
Diffstat (limited to 'games-misc/OilWar')
-rw-r--r-- | games-misc/OilWar/Manifest | 4 | ||||
-rw-r--r-- | games-misc/OilWar/OilWar-1.2.1-r2.ebuild | 60 | ||||
-rw-r--r-- | games-misc/OilWar/metadata.xml | 8 |
3 files changed, 72 insertions, 0 deletions
diff --git a/games-misc/OilWar/Manifest b/games-misc/OilWar/Manifest new file mode 100644 index 000000000000..c7dee6f042e9 --- /dev/null +++ b/games-misc/OilWar/Manifest @@ -0,0 +1,4 @@ +DIST OilWar-1.2.1.tar.gz 515013 BLAKE2B 44c7950168e9ba9d7cc0c068ca0abeba4249bbab43d89663bcf2e752e10e680a7ea8a09eb2c983ce5948e65e0609cd9de920997eddf45702e54109819c019137 SHA512 303581caf1cb59a4623b136595e0c1af6f682ae4c059a8848b481b42dee622083d436edb86ca9073edcf4c573f8a73b284dddea89cb8013943ef4ec81b3e17a1 +DIST OilWar.png 2961 BLAKE2B c7270884148e8712b93c44de532a902e807a58507ba5fd509ad020556d90d9a54d24a3243ced7c1de3d41635654397747cbd79d93e82ad6fa231c7eb9c0fb14e SHA512 75bd4c18791593f0bb81b51d87f6f033e2ebebe6de3653276b14e852d3625f01a61fb34257eb3d15ebf265908563f2820793b84196138b39c9329839e8fefe2d +EBUILD OilWar-1.2.1-r2.ebuild 1151 BLAKE2B 6305f09b29baca9f586e1a442caec98792a5a09e702a2ea2adb367ae1611e9a4f3b7f9309fc0c29bfb769fd0ab26c1c688c67ad0d0a0a42e3c40a2e380c67c6f SHA512 fdf072c461e7fc59b418d5db568204b3cf3fd916785734d67e0eda7a038b84c1271a6ba58029c5b50dd1abee49d1833a18d135579c09f056d394c71b07771a15 +MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 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 000000000000..4b1a9829d608 --- /dev/null +++ b/games-misc/OilWar/OilWar-1.2.1-r2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 ~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 +} diff --git a/games-misc/OilWar/metadata.xml b/games-misc/OilWar/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-misc/OilWar/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> |