Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-sports/billardgl/
Date: Thu, 22 Sep 2016 19:28:16
Message-Id: 1474572476.6427012a1b36047ba632b12620ece0dafc83150e.wizardedit@gentoo
1 commit: 6427012a1b36047ba632b12620ece0dafc83150e
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 22 17:59:57 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 22 19:27:56 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6427012a
7
8 games-sports/billardgl: remove deprecated games eclass
9
10 Also update to EAPI 6
11
12 Gentoo-Bug: https://bugs.gentoo.org/574082
13
14 Package-Manager: portage-2.3.0
15
16 games-sports/billardgl/billardgl-1.75-r2.ebuild | 56 +++++++++++++++++++++++++
17 1 file changed, 56 insertions(+)
18
19 diff --git a/games-sports/billardgl/billardgl-1.75-r2.ebuild b/games-sports/billardgl/billardgl-1.75-r2.ebuild
20 new file mode 100644
21 index 00000000..f896f97
22 --- /dev/null
23 +++ b/games-sports/billardgl/billardgl-1.75-r2.ebuild
24 @@ -0,0 +1,56 @@
25 +# Copyright 1999-2016 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +# $Id$
28 +
29 +EAPI=6
30 +inherit eutils
31 +
32 +DESCRIPTION="an OpenGL billards game"
33 +HOMEPAGE="http://www.billardgl.de/"
34 +SRC_URI="mirror://sourceforge/${PN}/BillardGL-${PV}.tar.gz
35 + mirror://gentoo/${PN}.png"
36 +
37 +LICENSE="GPL-2"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~ppc ~x86"
40 +IUSE=""
41 +
42 +DEPEND="
43 + media-libs/freeglut
44 + x11-libs/libXi
45 + x11-libs/libXmu
46 + virtual/opengl
47 + virtual/glu"
48 +RDEPEND="${DEPEND}"
49 +
50 +S=${WORKDIR}/BillardGL-${PV}/src
51 +
52 +src_prepare() {
53 + default
54 + sed -i \
55 + -e "s:/usr/share/BillardGL/:/usr/share/${PN}/:" \
56 + Namen.h \
57 + || die "sed Namen.h failed"
58 + sed -i \
59 + -e '/^LINK/s:g++:$(CXX):' \
60 + -e '/^CXX[[:space:]]/d' \
61 + -e '/^CC[[:space:]]/d' \
62 + -e '/^CXXFLAGS/s:=.*\(-D.*\)-.*:+=\1:' \
63 + -e "/^LFLAGS/s:=:=${LDFLAGS}:" \
64 + Makefile \
65 + || die "sed Makefile failed"
66 + sed -i \
67 + -e 's:<iostream.h>:<iostream>:' \
68 + -e 's:<fstream.h>:<fstream>\nusing namespace std;:' \
69 + bmp.cpp \
70 + || die "sed bmp.cpp failed"
71 +}
72 +
73 +src_install() {
74 + newbin BillardGL ${PN}
75 + insinto /usr/share/${PN}
76 + doins -r lang Texturen
77 + dodoc README
78 + doicon "${DISTDIR}"/${PN}.png
79 + make_desktop_entry ${PN} BillardGL
80 +}