From 1230a3532ca4513545211b0cf106aedb8297cba5 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Thu, 7 Feb 2013 17:45:33 +0000 Subject: migrate to python-single-r1, version bump (Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key E73C35B3) --- games-board/gnubg/ChangeLog | 8 +- games-board/gnubg/files/gnubg-20130203-build.patch | 36 +++++++++ games-board/gnubg/gnubg-20130203.ebuild | 93 ++++++++++++++++++++++ 3 files changed, 136 insertions(+), 1 deletion(-) create mode 100644 games-board/gnubg/files/gnubg-20130203-build.patch create mode 100644 games-board/gnubg/gnubg-20130203.ebuild (limited to 'games-board') diff --git a/games-board/gnubg/ChangeLog b/games-board/gnubg/ChangeLog index 663b39012cba..45e9b4d9172a 100644 --- a/games-board/gnubg/ChangeLog +++ b/games-board/gnubg/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-board/gnubg # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-board/gnubg/ChangeLog,v 1.69 2013/01/24 19:31:58 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-board/gnubg/ChangeLog,v 1.70 2013/02/07 17:45:32 hasufell Exp $ + +*gnubg-20130203 (07 Feb 2013) + + 07 Feb 2013; Julian Ospald +gnubg-20130203.ebuild, + +files/gnubg-20130203-build.patch: + migrate to python-single-r1, version bump 24 Jan 2013; Michael Sterrett -files/gnubg-20101126-build.patch, -files/gnubg-20120806-build.patch, diff --git a/games-board/gnubg/files/gnubg-20130203-build.patch b/games-board/gnubg/files/gnubg-20130203-build.patch new file mode 100644 index 000000000000..2ada67ca7424 --- /dev/null +++ b/games-board/gnubg/files/gnubg-20130203-build.patch @@ -0,0 +1,36 @@ +diff -ru gnubg.orig/Makefile.am gnubg/Makefile.am +--- gnubg.orig/Makefile.am 2012-10-08 22:40:06.000000000 -0400 ++++ gnubg/Makefile.am 2012-12-04 15:39:12.871440413 -0500 +@@ -21,7 +21,7 @@ + AM_CPPFLAGS += @PYTHON_INCLUDES@ + endif + +-AM_CPPFLAGS += -DAC_DOCDIR='"$(datadir)/doc/gnubg/"' -DAC_DATADIR='"$(datadir)"' -DAC_PKGDATADIR='"$(datadir)/gnubg"' ++AM_CPPFLAGS += -DAC_DOCDIR='"@docdir@"' -DAC_DATADIR='"$(datadir)"' -DAC_PKGDATADIR='"$(datadir)/gnubg"' + + OTHER_LIBS = + if WIN32 +diff -ru gnubg.orig/doc/Makefile.am gnubg/doc/Makefile.am +--- gnubg.orig/doc/Makefile.am 2011-08-16 04:27:54.000000000 -0400 ++++ gnubg/doc/Makefile.am 2012-12-04 15:39:58.373743258 -0500 +@@ -1,6 +1,6 @@ +-AM_CPPFLAGS = -DAC_DOCDIR='"$(datadir)/doc/gnubg/"' -DAC_DATADIR='"$(datadir)"' -DAC_PKGDATADIR='"$(datadir)/gnubg"' +-gnubg_helpdir = $(datadir)/doc/gnubg/ +-gnubg_imagedir = $(datadir)/doc/gnubg/images ++AM_CPPFLAGS = -DAC_DOCDIR='"@docdir@"' -DAC_DATADIR='"$(datadir)"' -DAC_PKGDATADIR='"$(datadir)/gnubg"' ++gnubg_helpdir = @docdir@ ++gnubg_imagedir = @docdir@/images + gnubg_help_DATA = gnubg.html allabout.html + gnubg_image_DATA = images/1540d81e.png images/16d7944c.png images/1805dc7d.png \ + images/20bc52ca.png images/20d56757.png images/234924dc.png images/26e34ea5.png \ +diff -ru gnubg.orig/pixmaps/Makefile.am gnubg/pixmaps/Makefile.am +--- gnubg.orig/pixmaps/Makefile.am 2012-10-07 22:40:05.000000000 -0400 ++++ gnubg/pixmaps/Makefile.am 2012-12-04 15:40:37.812274970 -0500 +@@ -1,5 +1,5 @@ +-gnubgiconsdir = $(datadir) +-gnubgpixmapsdir = $(pkgdatadir)/pixmaps ++gnubgiconsdir = /usr/share ++gnubgpixmapsdir = /usr/share/pixmaps + + ICONS_16_SCALABLE = icons/hicolor/16x16/apps/scalable/gnubg.svg + ICONS_16 = icons/hicolor/16x16/apps/gnubg.png diff --git a/games-board/gnubg/gnubg-20130203.ebuild b/games-board/gnubg/gnubg-20130203.ebuild new file mode 100644 index 000000000000..18aafaeb8870 --- /dev/null +++ b/games-board/gnubg/gnubg-20130203.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-board/gnubg/gnubg-20130203.ebuild,v 1.1 2013/02/07 17:45:32 hasufell Exp $ + +EAPI=5 +PYTHON_COMPAT=( python2_5 python2_6 python2_7 ) +inherit autotools eutils python-single-r1 gnome2-utils games + +DESCRIPTION="GNU BackGammon" +HOMEPAGE="http://www.gnubg.org/" +SRC_URI="http://www.gnubg.org/media/sources/${PN}-source-SNAPSHOT-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd" +IUSE="gtk opengl python threads" + +GTK_DEPS=" + x11-libs/gtk+:2 + x11-libs/cairo + x11-libs/pango" +RDEPEND="dev-libs/glib:2 + media-libs/libpng:0 + dev-libs/libxml2 + media-libs/freetype:2 + media-libs/libcanberra + gtk? ( ${GTK_DEPS} ) + opengl? ( + ${GTK_DEPS} + x11-libs/gtkglext + >=media-libs/ftgl-2.1.2-r1 + ) + sys-libs/readline + python? ( ${PYTHON_DEPS} ) + media-fonts/ttf-bitstream-vera + virtual/libintl + dev-db/sqlite:3" +DEPEND="${RDEPEND} + virtual/pkgconfig + sys-devel/gettext" + +S=${WORKDIR}/${PN} + +pkg_setup() { + games_pkg_setup + python-single-r1_pkg_setup +} + +src_prepare() { + # use ${T} instead of /tmp for constructing credits (bug #298275) + sed -i -e 's:/tmp:${T}:' credits.sh || die + epatch "${FILESDIR}"/${P}-build.patch + eautoreconf + sed -i \ + -e 's#^localedir =.*$#localedir = @localedir@#' \ + -e 's#^gnulocaledir =.*$#gnulocaledir = @localedir@#' \ + po/Makefile.in.in || die +} + +src_configure() { + egamesconf \ + --localedir=/usr/share/locale \ + --docdir=/usr/share/doc/${PF}/html \ + $(use_enable threads) \ + $(use_with python) \ + $(use gtk || use opengl && echo --with-gtk) \ + $(use_with opengl board3d) +} + +src_install() { + default + insinto "${GAMES_DATADIR}/${PN}" + doins ${PN}.weights *bd + rm -rf "${D}${GAMES_DATADIR}/${PN}/fonts" + dosym /usr/share/fonts/ttf-bitstream-vera "${GAMES_DATADIR}"/${PN}/fonts + newicon -s 128 textures/logo.png gnubg.png + make_desktop_entry "gnubg -w" "GNU Backgammon" + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} -- cgit v1.2.3-65-gdbad