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 E61D4138330 for ; Wed, 7 Sep 2016 22:16:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 517FC21C099; Wed, 7 Sep 2016 22:16:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9DAC721C099 for ; Wed, 7 Sep 2016 22:16:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 88993340B5D for ; Wed, 7 Sep 2016 22:16:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DB0702469 for ; Wed, 7 Sep 2016 22:16:21 +0000 (UTC) From: "Austin English" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Austin English" Message-ID: <1473286574.f8ea46cb18cfb355723793574d0f27f3b3a12347.wizardedit@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/gnubg/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-board/gnubg/gnubg-1.05.000-r1.ebuild X-VCS-Directories: games-board/gnubg/ X-VCS-Committer: wizardedit X-VCS-Committer-Name: Austin English X-VCS-Revision: f8ea46cb18cfb355723793574d0f27f3b3a12347 X-VCS-Branch: master Date: Wed, 7 Sep 2016 22:16:21 +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: 7d54d55a-9c48-4bce-b345-2005026e2e5f X-Archives-Hash: 6cbe5b0efe26652e3c10e1a24f42c3b0 commit: f8ea46cb18cfb355723793574d0f27f3b3a12347 Author: Austin English gentoo org> AuthorDate: Wed Sep 7 20:41:01 2016 +0000 Commit: Austin English gentoo org> CommitDate: Wed Sep 7 22:16:14 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8ea46cb games-board/gnubg: remove deprecated games eclass Also update to EAPI 6 Gentoo-Bug: https://bugs.gentoo.org/574082 Package-Manager: portage-2.3.0 games-board/gnubg/gnubg-1.05.000-r1.ebuild | 108 +++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) diff --git a/games-board/gnubg/gnubg-1.05.000-r1.ebuild b/games-board/gnubg/gnubg-1.05.000-r1.ebuild new file mode 100644 index 00000000..dff9238 --- /dev/null +++ b/games-board/gnubg/gnubg-1.05.000-r1.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) +inherit eutils python-single-r1 gnome2-utils + +DESCRIPTION="GNU BackGammon" +HOMEPAGE="http://www.gnubg.org/" +SRC_URI="http://gnubg.org/media/sources/${PN}-release-${PV}-sources.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd" +IUSE="cpu_flags_x86_avx gtk opengl python sqlite cpu_flags_x86_sse cpu_flags_x86_sse2 threads" + +RDEPEND=" + dev-db/sqlite:3 + dev-libs/glib:2 + dev-libs/gmp:0 + dev-libs/libxml2 + media-fonts/dejavu + media-libs/freetype:2 + media-libs/libcanberra + media-libs/libpng:0 + sys-libs/readline:0 + x11-libs/cairo + x11-libs/pango + gtk? ( x11-libs/gtk+:2 ) + opengl? ( + x11-libs/gtk+:2 + x11-libs/gtkglext + virtual/glu + ) + python? ( ${PYTHON_DEPS} ) + virtual/libintl" +DEPEND="${RDEPEND} + sys-devel/gettext + virtual/pkgconfig" + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_prepare() { + default + + # use ${T} instead of /tmp for constructing credits (bug #298275) + sed -i -e 's:/tmp:${T}:' credits.sh || die + sed -i -e 's/fonts //' Makefile.in || die # handle font install ourself to fix bug #335774 + sed -i \ + -e '/^localedir / s#=.*$#= @localedir@#' \ + -e '/^gnulocaledir / s#=.*$#= @localedir@#' \ + po/Makefile.in.in || die + sed -i \ + -e '/^gnubgiconsdir / s#=.*#= /usr/share#' \ + -e '/^gnubgpixmapsdir / s#=.*#= /usr/share/pixmaps#' \ + pixmaps/Makefile.in || die + sed -i \ + -e '1i#include ' \ + copying.c || die #551896 +} + +src_configure() { + local simd=no + local gtk_arg=--without-gtk + + if use gtk || use opengl ; then + gtk_arg=--with-gtk + fi + use cpu_flags_x86_sse && simd=sse + use cpu_flags_x86_sse2 && simd=sse2 + use cpu_flags_x86_avx && simd=avx + econf \ + --localedir=/usr/share/locale \ + --docdir=/usr/share/doc/${PF}/html \ + --disable-cputest \ + --enable-simd=${simd} \ + ${gtk_arg} \ + $(use_enable threads) \ + $(use_with python) \ + $(use_with sqlite sqlite) \ + $(use_with opengl board3d) +} + +src_install() { + default + insinto /usr/share/${PN} + doins ${PN}.weights *bd + dodir /usr/share/${PN}/fonts + dosym /usr/share/fonts/dejavu/DejaVuSans.ttf /usr/share/${PN}/fonts/Vera.ttf + dosym /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf /usr/share/${PN}/fonts/VeraBd.ttf + dosym /usr/share/fonts/dejavu/DejaVuSerif-Bold.ttf /usr/share/${PN}/fonts/VeraSeBd.ttf + make_desktop_entry "gnubg -w" "GNU Backgammon" +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +}