From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 C6E541396D9 for ; Sun, 19 Nov 2017 09:12:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E7B23E0D39; Sun, 19 Nov 2017 09:12:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B18E8E0D1A for ; Sun, 19 Nov 2017 09:12:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 00A1F34071C for ; Sun, 19 Nov 2017 09:12:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8BC929FF7 for ; Sun, 19 Nov 2017 09:12:41 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1511082730.b1e1b3de611d980a6f20e294c192474050e4a40e.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/hedgewars/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-strategy/hedgewars/hedgewars-0.9.22-r2.ebuild X-VCS-Directories: games-strategy/hedgewars/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: b1e1b3de611d980a6f20e294c192474050e4a40e X-VCS-Branch: master Date: Sun, 19 Nov 2017 09:12:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: fa2aa3a6-08da-49d4-885c-0ecb00213699 X-Archives-Hash: 91ade6d4da4602c313ab08f0e67d7dc4 commit: b1e1b3de611d980a6f20e294c192474050e4a40e Author: David Seifert gentoo org> AuthorDate: Sun Nov 19 09:10:31 2017 +0000 Commit: David Seifert gentoo 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 +}