From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 9E1061384B4 for ; Fri, 6 Nov 2015 07:24:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2B39B21C00D; Fri, 6 Nov 2015 07:24:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B25EF21C00D for ; Fri, 6 Nov 2015 07:24:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BD27133D3CA for ; Fri, 6 Nov 2015 07:24:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A797221B9 for ; Fri, 6 Nov 2015 07:24:30 +0000 (UTC) From: "Michael Sterrett" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Sterrett" Message-ID: <1446794636.6fe7401f7bb16e44528581621da38a989b3a1a17.mr_bones_@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-roguelike/crossfire-client/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-roguelike/crossfire-client/crossfire-client-1.71.0-r1.ebuild X-VCS-Directories: games-roguelike/crossfire-client/ X-VCS-Committer: mr_bones_ X-VCS-Committer-Name: Michael Sterrett X-VCS-Revision: 6fe7401f7bb16e44528581621da38a989b3a1a17 X-VCS-Branch: master Date: Fri, 6 Nov 2015 07:24:30 +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: a85d0fbc-3d3d-4271-8b9f-f182979599f4 X-Archives-Hash: 8ec4365a086de50f9372a56624bed674 commit: 6fe7401f7bb16e44528581621da38a989b3a1a17 Author: Michael Sterrett gentoo org> AuthorDate: Fri Nov 6 07:23:27 2015 +0000 Commit: Michael Sterrett gentoo org> CommitDate: Fri Nov 6 07:23:56 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fe7401f fix sound and lua config options; dep fixups Package-Manager: portage-2.2.20.1 .../crossfire-client-1.71.0-r1.ebuild | 81 ++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/games-roguelike/crossfire-client/crossfire-client-1.71.0-r1.ebuild b/games-roguelike/crossfire-client/crossfire-client-1.71.0-r1.ebuild new file mode 100644 index 0000000..0a17233 --- /dev/null +++ b/games-roguelike/crossfire-client/crossfire-client-1.71.0-r1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools toolchain-funcs gnome2-utils games + +DESCRIPTION="Client for the nethack-style but more in the line of UO" +HOMEPAGE="http://crossfire.real-time.com/" +SRC_URI="mirror://sourceforge/crossfire/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="lua opengl sdl sound" + +RDEPEND=" + sound? ( media-libs/sdl-mixer[vorbis] ) + opengl? ( virtual/opengl + media-libs/freeglut ) + sdl? ( media-libs/libsdl[video] + media-libs/sdl-image[png] ) + lua? ( dev-lang/lua:0= ) + x11-libs/gtk+:2 + net-misc/curl + media-libs/libpng:0 + sys-libs/zlib" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + sed -ri -e '/^.TH/s:$: 6:' $(find . -name "*man") || die + sed -i -e 's/lua-5.1/lua/' configure.ac || die + eautoreconf +} + +src_configure() { + # bugs in configure script so we cant use $(use_enable ...) + local myconf + + use lua && myconf="${myconf} --enable-lua" + use sdl || myconf="${myconf} --disable-sdl" + use opengl || myconf="${myconf} --disable-opengl" + use sound || myconf="${myconf} --disable-sound" + + egamesconf ${myconf} +} + +src_compile() { + # bug 139785 + if use sound ; then + emake -C sound-src AR="$(tc-getAR)" + fi + emake AR="$(tc-getAR)" +} + +src_install() { + local s + + default + domenu gtk-v2/crossfire-client.desktop + for s in 16 32 48 + do + newicon -s ${s} pixmaps/${s}x${s}.png ${PN}.png + done + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +}