summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-02-27 22:04:29 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2018-02-27 22:05:46 +0100
commitddf0c4af6f0f612a7452c559570cb2ac62659d62 (patch)
treeeb01fe1c6c5f92c8fa30735b6b321396005ef97f /games-strategy
parentgames-strategy/hedgewars: Add upstream patch to build w/ Qt5 (diff)
downloadgentoo-ddf0c4af6f0f612a7452c559570cb2ac62659d62.tar.gz
gentoo-ddf0c4af6f0f612a7452c559570cb2ac62659d62.tar.bz2
gentoo-ddf0c4af6f0f612a7452c559570cb2ac62659d62.zip
games-strategy/hedgewars: Drop old Qt4-based
Closes: https://bugs.gentoo.org/645504 Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/hedgewars/hedgewars-0.9.23.ebuild86
1 files changed, 0 insertions, 86 deletions
diff --git a/games-strategy/hedgewars/hedgewars-0.9.23.ebuild b/games-strategy/hedgewars/hedgewars-0.9.23.ebuild
deleted file mode 100644
index 39c51648164e..000000000000
--- a/games-strategy/hedgewars/hedgewars-0.9.23.ebuild
+++ /dev/null
@@ -1,86 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-CMAKE_MAKEFILE_GENERATOR=emake
-
-inherit cmake-utils eutils xdg-utils
-
-MY_P=${PN}-src-${PV}
-DEB_PATCH_VER=7
-
-DESCRIPTION="A turn-based strategy, artillery, action and comedy game"
-HOMEPAGE="https://www.hedgewars.org/"
-SRC_URI="https://www.hedgewars.org/download/releases/${MY_P}.tar.bz2
- mirror://debian/pool/main/h/${PN}/${PN}_0.9.22-dfsg-${DEB_PATCH_VER}.debian.tar.xz"
-
-LICENSE="GPL-2 Apache-2.0 FDL-1.3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="libav"
-
-QA_FLAGS_IGNORED="/usr/bin/hwengine" # pascal sucks
-QA_PRESTRIPPED="/usr/bin/hwengine" # pascal sucks
-
-CDEPEND="
- >=dev-games/physfs-3.0.1
- dev-lang/lua:0=
- dev-qt/qtcore:4
- dev-qt/qtgui:4
- media-libs/libpng:0=
- media-libs/libsdl2:=
- media-libs/sdl2-image:=
- media-libs/sdl2-mixer:=
- media-libs/sdl2-net:=
- media-libs/sdl2-ttf:=
- sys-libs/zlib:=
- libav? ( media-video/libav:= )
- !libav? ( media-video/ffmpeg:= )"
-DEPEND="${CDEPEND}
- >=dev-lang/fpc-2.4"
-RDEPEND="${CDEPEND}
- app-arch/xz-utils
- media-fonts/wqy-zenhei
- >=media-fonts/dejavu-2.28"
-
-S=${WORKDIR}/${MY_P}
-PATCHES=( "${FILESDIR}"/${PN}-0.9.22-rpath-fix.patch )
-
-src_configure() {
- local mycmakeargs=(
- -DMINIMAL_FLAGS=ON
- -DDATA_INSTALL_DIR="${EPREFIX}/usr/share/${PN}"
- -Dtarget_binary_install_dir="${EPREFIX}/usr/bin"
- -Dtarget_library_install_dir="${EPREFIX}/usr/$(get_libdir)"
- -DNOSERVER=TRUE
- -DCMAKE_VERBOSE_MAKEFILE=TRUE
- -DPHYSFS_SYSTEM=ON
- # Need to tell the build system where the fonts are located
- # as it uses PhysFS' symbolic link protection mode which
- # prevents us from symlinking the fonts into the right directory
- # https://hg.hedgewars.org/hedgewars/rev/76ad55807c24
- # https://icculus.org/physfs/docs/html/physfs_8h.html#aad451d9b3f46f627a1be8caee2eef9b7
- -DFONTS_DIRS="${EPREFIX}/usr/share/fonts/wqy-zenhei;${EPREFIX}/usr/share/fonts/dejavu"
- # upstream sets RPATH that leads to weird breakage
- # https://bugzilla.redhat.com/show_bug.cgi?id=1200193
- -DCMAKE_SKIP_RPATH=ON
- )
- cmake-utils_src_configure
-}
-
-src_install() {
- cmake-utils_src_install
-
- doicon misc/hedgewars.png
- make_desktop_entry ${PN} Hedgewars
- doman man/${PN}.6
-}
-
-pkg_postinst() {
- xdg_desktop_database_update
-}
-
-pkg_postrm() {
- xdg_desktop_database_update
-}