Gentoo Archives: gentoo-commits

From: "Azamat H. Hackimov" <winterheart@××××××.ru>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gamerlay:master commit in: games-engines/bbge/
Date: Fri, 05 Feb 2021 19:26:44
Message-Id: 1612553164.0446bdb18c618c3cd7d0b88fcd1c61fbd07d403f.winterheart@gentoo
1 commit: 0446bdb18c618c3cd7d0b88fcd1c61fbd07d403f
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Fri Feb 5 18:03:00 2021 +0000
4 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
5 CommitDate: Fri Feb 5 19:26:04 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=0446bdb1
7
8 games-engines/bbge: remove package
9
10 Dependency for removed aquaria package.
11 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
12
13 games-engines/bbge/bbge-9999.ebuild | 91 -------------------------------------
14 games-engines/bbge/metadata.xml | 8 ----
15 2 files changed, 99 deletions(-)
16
17 diff --git a/games-engines/bbge/bbge-9999.ebuild b/games-engines/bbge/bbge-9999.ebuild
18 deleted file mode 100644
19 index d68e6ae..0000000
20 --- a/games-engines/bbge/bbge-9999.ebuild
21 +++ /dev/null
22 @@ -1,91 +0,0 @@
23 -# Copyright 1999-2017 Gentoo Foundation
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI=6
27 -EHG_REPO_URI="http://hg.icculus.org/icculus/aquaria"
28 -EHG_PROJECT="aquaria"
29 -
30 -inherit flag-o-matic cmake-utils mercurial
31 -
32 -DESCRIPTION="The Bit-Blot Game Engine, used by Aquaria"
33 -HOMEPAGE="http://www.bit-blot.com/"
34 -
35 -LICENSE="GPL-2"
36 -SLOT="0"
37 -KEYWORDS=""
38 -IUSE="static-libs"
39 -
40 -RDEPEND="
41 - >=dev-libs/tinyxml-2.6.1-r1[stl]
42 - media-libs/freetype:2
43 - media-libs/ftgl
44 - media-libs/glpng
45 - media-libs/libsdl
46 - media-libs/libvorbis
47 - media-libs/openal
48 - sys-libs/zlib
49 - virtual/opengl
50 -"
51 -
52 -DEPEND="${RDEPEND}"
53 -
54 -S="${WORKDIR}/aquaria"
55 -
56 -#PATCHES=("${FILESDIR}/patches")
57 -
58 -src_prepare() {
59 - # Remove bundled stuff to ensure it's not used.
60 - rm -r BBGE/{GL,glext} || die "Removing bundled stuff failed"
61 -
62 - # Remove bundled sources.
63 - # Don't build Aquaria.
64 - sed -i \
65 - -e '/glpng/d' -e '/tinyxml/d' \
66 - -e '/TARGET_LINK_LIBRARIES/d' \
67 - -e '/ADD_EXECUTABLE[(]/,/[)]/d' \
68 - CMakeLists.txt || die "No Aquaria patch failed"
69 -
70 -# # Set the data prefix directory.
71 -# echo "ADD_DEFINITIONS(-DBBGE_DATA_PREFIX=\"${GAMES_DATADIR}\")" >> CMakeLists.txt || die ""
72 -
73 - # Always build shared.
74 - echo 'ADD_LIBRARY(BBGE SHARED ${BBGE_SRCS})' >> CMakeLists.txt || die "Always-shared patch failed"
75 -
76 - # Optionally build static.
77 - if use static-libs; then
78 - echo 'ADD_LIBRARY(BBGE_Static STATIC ${BBGE_SRCS})' >> CMakeLists.txt || die "Static libs patch failed"
79 - echo 'SET_TARGET_PROPERTIES(BBGE_Static PROPERTIES OUTPUT_NAME BBGE)' >> CMakeLists.txt || die "Static libs patch failed"
80 - fi
81 -
82 - # Resolve symbols now, not later.
83 - echo 'TARGET_LINK_LIBRARIES(BBGE ftgl glpng openal SDL tinyxml vorbisfile z)' >> CMakeLists.txt || die "Now-Resolve patch failed"
84 -
85 - # Use system headers.
86 - ln -snf ../ExternalLibs/glfont2 BBGE/glfont2 || die "system-headers patch failed"
87 - sed -i 's:\.\./ExternalLibs/::' BBGE/*.{cpp,h} || die "system-headers patch failed"
88 - sed -i -r 's:["<](gl[a-z]*\.h)[">]:<GL/\1>:' BBGE/Base.h BBGE/Texture.cpp || die "system-headers patch failed"
89 - sed -i -e 's:"FTGL\.h":<FTGL/ftgl.h>:' -e '/FTGLTextureFont\.h/d' BBGE/TTFFont.h || die "system-headers patch failed"
90 -
91 - sed -i -e '1i#include <unistd.h>' BBGE/Joystick.cpp || die "Joystick unistd sed-patch failed"
92 -
93 - default
94 -}
95 -
96 -src_configure() {
97 - # The bundled glpng.h defines this.
98 - append-cppflags -DPNG_LUMINANCEALPHA=-4
99 -
100 - append-cppflags -I/usr/include/freetype2
101 - append-ldflags -Wl,-z -Wl,defs
102 - cmake-utils_src_configure
103 -}
104 -
105 -src_install() {
106 - dolib "${CMAKE_BUILD_DIR}"/libBBGE.* || die
107 -
108 - insinto /usr/include/BBGE
109 - doins BBGE/*.h || die
110 -
111 - insinto /usr/include/BBGE/glfont2
112 - doins BBGE/glfont2/*.h || die
113 -}
114
115 diff --git a/games-engines/bbge/metadata.xml b/games-engines/bbge/metadata.xml
116 deleted file mode 100644
117 index d3009e1..0000000
118 --- a/games-engines/bbge/metadata.xml
119 +++ /dev/null
120 @@ -1,8 +0,0 @@
121 -<?xml version="1.0" encoding="UTF-8"?>
122 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
123 -<pkgmetadata>
124 - <maintainer type="person">
125 - <email>wizzleby@×××××.com</email>
126 - <name>Locke Shinseiko</name>
127 - </maintainer>
128 -</pkgmetadata>