forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
games-strategy/wargus: Version bump to 2.4.1
Package-Manager: Portage-2.3.20, Repoman-2.3.6
- Loading branch information
1 parent
08ebd03
commit 9962684
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST wargus-2.4.1.tar.gz 45981981 BLAKE2B 8d80e5d781a1be1edf602f13d77b84e85fe2592fb0a784f1b25b5c9656eaf10a11c3241dfa71388c9a01a9e8fad15b1805a67ddb3157c2a0e86d967f3852869a SHA512 d468d9ad08907fbbfd02af0bca069d6a95d5303cd4f3d838c12bbfe6af0d48f695f9f49d446dbddeae2a91deb1eaa17875954eefdfbe5e25cd840c4454dc6ea0 | ||
DIST wargus_2.3.0.orig.tar.gz 45006918 BLAKE2B b952d4b93a6aed22c201ce6caa2398a8d2ac60366882dd091c861733bf9f6baca409fcb4f0fd59a1c8673744c80b154cd6053ab81a89afef6e95737766c41e88 SHA512 79dbef5f86fafe7357c2911a16655c29bccef71dad39bfe6e02866c1734ee1598bb29a9005c8fa7c73d6f64e13fb7cdd3962214921b0b18c3868cb5abb2a0a87 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Copyright 1999-2018 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=6 | ||
|
||
inherit cmake-utils gnome2-utils | ||
|
||
DESCRIPTION="Warcraft II for the Stratagus game engine" | ||
HOMEPAGE="http://wargus.sourceforge.net/" | ||
SRC_URI="https://github.com/Wargus/wargus/archive/v${PV}.tar.gz -> ${P}.tar.gz" | ||
|
||
LICENSE="GPL-2+" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~x86" | ||
IUSE="" | ||
|
||
RDEPEND=" | ||
=games-engines/stratagus-${PV}*[theora] | ||
media-libs/libpng:0= | ||
sys-libs/zlib:= | ||
x11-libs/gtk+:2 | ||
x11-libs/libX11" | ||
DEPEND="${RDEPEND} | ||
virtual/pkgconfig" | ||
PDEPEND="games-strategy/wargus-data" | ||
|
||
src_configure() { | ||
local mycmakeargs=( | ||
-DGAMEDIR="${EPREFIX}/usr/bin" | ||
-DBINDIR="${EPREFIX}/usr/bin" | ||
-DSTRATAGUS="${EPREFIX}/usr/bin"/stratagus | ||
-DICONDIR=/usr/share/icons/hicolor/64x64/apps | ||
) | ||
cmake-utils_src_configure | ||
} | ||
|
||
pkg_preinst() { | ||
gnome2_icon_savelist | ||
} | ||
|
||
pkg_postinst() { | ||
elog "Enabling OpenGL in-game seems to cause segfaults/crashes." | ||
gnome2_icon_cache_update | ||
} | ||
|
||
pkg_postrm() { | ||
gnome2_icon_cache_update | ||
} |