Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-sports/foobillard/, games-sports/foobillard/files/
Date: Tue, 01 May 2018 19:37:52
Message-Id: 1525203350.84207245c6718383b8013a8231ae532dcd80c7d9.pacho@gentoo
1 commit: 84207245c6718383b8013a8231ae532dcd80c7d9
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 1 18:38:58 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Tue May 1 19:35:50 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84207245
7
8 games-sports/foobillard: Stop using games.eclass
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11
12 .../files/foobillard-3.0a-no_nvidia.patch | 4 +-
13 games-sports/foobillard/foobillard-3.0a-r1.ebuild | 54 ++++++++++++++++++++++
14 2 files changed, 56 insertions(+), 2 deletions(-)
15
16 diff --git a/games-sports/foobillard/files/foobillard-3.0a-no_nvidia.patch b/games-sports/foobillard/files/foobillard-3.0a-no_nvidia.patch
17 index b43707bc403..8a9a33c43ea 100644
18 --- a/games-sports/foobillard/files/foobillard-3.0a-no_nvidia.patch
19 +++ b/games-sports/foobillard/files/foobillard-3.0a-no_nvidia.patch
20 @@ -1,5 +1,5 @@
21 ---- src/ball.c.orig 2004-06-02 07:00:57.000000000 -0400
22 -+++ src/ball.c 2004-06-02 07:03:52.000000000 -0400
23 +--- a/src/ball.c.orig 2004-06-02 07:00:57.000000000 -0400
24 ++++ b/src/ball.c 2004-06-02 07:03:52.000000000 -0400
25 @@ -1821,6 +1821,7 @@
26 } else if( options_cuberef && cuberef_binds!=0 ){
27 glBindTexture(GL_TEXTURE_CUBE_MAP_ARB, cuberef_binds[i]);
28
29 diff --git a/games-sports/foobillard/foobillard-3.0a-r1.ebuild b/games-sports/foobillard/foobillard-3.0a-r1.ebuild
30 new file mode 100644
31 index 00000000000..02844b26cb9
32 --- /dev/null
33 +++ b/games-sports/foobillard/foobillard-3.0a-r1.ebuild
34 @@ -0,0 +1,54 @@
35 +# Copyright 1999-2018 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +inherit autotools desktop flag-o-matic toolchain-funcs
40 +
41 +DESCRIPTION="8ball, 9ball, snooker and carambol game"
42 +HOMEPAGE="http://foobillard.sourceforge.net/"
43 +SRC_URI="mirror://gentoo/${P}.tar.gz"
44 +
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86 ~x86-fbsd"
48 +IUSE="sdl video_cards_nvidia"
49 +
50 +DEPEND="x11-libs/libXaw
51 + x11-libs/libXi
52 + virtual/opengl
53 + virtual/glu
54 + >=media-libs/freetype-2.0.9:2
55 + media-libs/libpng:0=
56 + sdl? ( media-libs/libsdl[video] )
57 + !sdl? ( media-libs/freeglut )
58 +"
59 +RDEPEND="${DEPEND}"
60 +
61 +src_prepare() {
62 + default
63 + eapply \
64 + "${FILESDIR}"/${P}-no_nvidia.patch \
65 + "${FILESDIR}"/${P}-fbsd.patch \
66 + "${FILESDIR}"/${P}-as-needed.patch \
67 + "${FILESDIR}"/${P}-gl-clamp.patch
68 + mv configure.{in,ac}
69 + rm aclocal.m4
70 +
71 + eautoreconf
72 +}
73 +
74 +src_configure() {
75 + use video_cards_nvidia && append-ldflags -L/usr/$(get_libdir)/opengl/nvidia/lib
76 + econf \
77 + --enable-sound \
78 + $(use_enable sdl SDL) \
79 + $(use_enable !sdl glut) \
80 + $(use_enable video_cards_nvidia nvidia)
81 +}
82 +
83 +src_install() {
84 + default
85 + doman foobillard.6
86 + newicon data/full_symbol.png foobillard.png
87 + make_desktop_entry foobillard Foobillard
88 +}