public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/hedgewars/
Date: Sun, 19 Nov 2017 09:12:41 +0000 (UTC)	[thread overview]
Message-ID: <1511082730.b1e1b3de611d980a6f20e294c192474050e4a40e.soap@gentoo> (raw)

commit:     b1e1b3de611d980a6f20e294c192474050e4a40e
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 19 09:10:31 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Nov 19 09:12:10 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1e1b3de

games-strategy/hedgewars: Update to EAPI 6

* Remove games.eclass
* Unbundle dev-games/physfs

Closes: https://bugs.gentoo.org/496074
Closes: https://bugs.gentoo.org/636724
Package-Manager: Portage-2.3.14, Repoman-2.3.6

 .../hedgewars/hedgewars-0.9.22-r2.ebuild           | 82 ++++++++++++++++++++++
 1 file changed, 82 insertions(+)

diff --git a/games-strategy/hedgewars/hedgewars-0.9.22-r2.ebuild b/games-strategy/hedgewars/hedgewars-0.9.22-r2.ebuild
new file mode 100644
index 00000000000..d7016bea411
--- /dev/null
+++ b/games-strategy/hedgewars/hedgewars-0.9.22-r2.ebuild
@@ -0,0 +1,82 @@
+# 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
+
+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}_${PV}-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/freeglut
+	media-libs/libpng:0=
+	media-libs/libsdl[sound,opengl,video]
+	media-libs/sdl-image[png]
+	media-libs/sdl-mixer[vorbis]
+	media-libs/sdl-net
+	media-libs/sdl-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}
+
+src_prepare() {
+	while IFS="" read -r f ; do
+		PATCHES+=( "${WORKDIR}/debian/patches/${f}" )
+	done < <(cat "${WORKDIR}/debian/patches/series")
+
+	cmake-utils_src_prepare
+}
+
+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
+	)
+	cmake-utils_src_configure
+}
+
+src_install() {
+	cmake-utils_src_install
+
+	rm -f "${ED%/}"/usr/share/games/hedgewars/Data/Fonts/{DejaVuSans-Bold.ttf,wqy-zenhei.ttc} || die
+	dosym ../../../fonts/dejavu/DejaVuSans-Bold.ttf \
+		/usr/share/${PN}/Data/Fonts/DejaVuSans-Bold.ttf
+	dosym ../../../fonts/wqy-zenhei/wqy-zenhei.ttc \
+		/usr/share/${PN}/Data/Fonts/wqy-zenhei.ttc
+	doicon misc/hedgewars.png
+	make_desktop_entry ${PN} Hedgewars
+	doman man/${PN}.6
+}


             reply	other threads:[~2017-11-19  9:12 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-19  9:12 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-03-11 16:26 [gentoo-commits] repo/gentoo:master commit in: games-strategy/hedgewars/ Sam James
2021-01-30 12:11 Sergei Trofimovich
2021-01-30 12:11 Sergei Trofimovich
2020-04-26  7:44 Mikle Kolyada
2019-10-18 22:09 James Le Cuirot
2019-10-14 13:59 Lars Wendler
2019-01-09 11:52 Andreas Sturmlechner
2019-01-03 14:40 Andreas Sturmlechner
2019-01-03 14:40 Andreas Sturmlechner
2019-01-03 14:40 Andreas Sturmlechner
2018-04-19  8:00 Lars Wendler
2018-04-17  9:39 Lars Wendler
2018-03-29 18:57 Andreas Sturmlechner
2018-03-29 18:57 Andreas Sturmlechner
2018-03-07 12:58 Andreas Sturmlechner
2018-03-07 12:58 Andreas Sturmlechner
2018-03-07 12:58 Andreas Sturmlechner
2018-02-27 21:06 Andreas Sturmlechner
2017-12-21  1:57 David Seifert
2017-11-19 18:24 David Seifert
2017-11-19 10:50 David Seifert
2017-11-19  9:12 David Seifert
2017-06-13  3:33 NP Hardass
2016-11-03  9:54 Michael Palimaka
2016-05-13 14:51 Agostino Sarubbo
2016-04-06 19:08 Michael Sterrett
2015-12-29  7:41 Michael Sterrett
2015-12-07 10:02 Agostino Sarubbo
2015-11-05  5:45 Michael Sterrett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1511082730.b1e1b3de611d980a6f20e294c192474050e4a40e.soap@gentoo \
    --to=soap@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox