Gentoo Archives: gentoo-commits

From: Michael Sterrett <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-games/crystalspace/
Date: Tue, 29 Dec 2015 07:41:33
Message-Id: 1451374852.c7fc38eb23e10723ca3a93168fb93e196c766588.mr_bones_@gentoo
1 commit: c7fc38eb23e10723ca3a93168fb93e196c766588
2 Author: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 29 05:14:14 2015 +0000
4 Commit: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 29 07:40:52 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7fc38eb
7
8 old
9
10 Package-Manager: portage-2.2.24
11
12 dev-games/crystalspace/crystalspace-2.0.ebuild | 129 -------------------------
13 1 file changed, 129 deletions(-)
14
15 diff --git a/dev-games/crystalspace/crystalspace-2.0.ebuild b/dev-games/crystalspace/crystalspace-2.0.ebuild
16 deleted file mode 100644
17 index 657cd1b..0000000
18 --- a/dev-games/crystalspace/crystalspace-2.0.ebuild
19 +++ /dev/null
20 @@ -1,129 +0,0 @@
21 -# Copyright 1999-2015 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -# $Id$
24 -
25 -EAPI=5
26 -inherit eutils flag-o-matic multilib java-pkg-opt-2 autotools wxwidgets versionator multiprocessing
27 -
28 -MY_P=${PN}-src-${PV}
29 -PATH_P=${PN}-$(get_version_component_range 1-2)
30 -
31 -DESCRIPTION="Portable 3D Game Development Kit written in C++"
32 -HOMEPAGE="http://crystal.sourceforge.net/"
33 -SRC_URI="mirror://sourceforge/crystal/${MY_P}.tar.bz2"
34 -
35 -LICENSE="LGPL-2.1"
36 -SLOT="0"
37 -KEYWORDS="amd64 x86"
38 -IUSE="3ds alsa bullet cal3d cegui cg doc java jpeg mng ode png speex truetype vorbis wxwidgets"
39 -
40 -COMMON_DEP="virtual/opengl
41 - media-libs/openal
42 - x11-libs/libXt
43 - x11-libs/libXxf86vm
44 - sys-libs/zlib
45 - cg? ( media-gfx/nvidia-cg-toolkit )
46 - ode? ( <dev-games/ode-0.12 )
47 - cal3d? ( >=media-libs/cal3d-0.11 )
48 - jpeg? ( virtual/jpeg )
49 - bullet? ( sci-physics/bullet )
50 - vorbis? ( media-libs/libvorbis )
51 - speex? ( media-libs/libogg
52 - media-libs/speex )
53 - truetype? ( >=media-libs/freetype-2.1 )
54 - alsa? ( media-libs/alsa-lib )
55 - mng? ( media-libs/libmng )
56 - png? ( media-libs/libpng:0 )
57 - wxwidgets? ( x11-libs/wxGTK:2.8[X,opengl] )
58 - cegui? ( >=dev-games/cegui-0.5.0 )
59 - 3ds? ( media-libs/lib3ds )"
60 -
61 -RDEPEND="${COMMON_DEP}
62 - java? ( >=virtual/jre-1.5 )"
63 -
64 -DEPEND="${COMMON_DEP}
65 - java? ( >=virtual/jdk-1.5
66 - dev-java/ant-core )
67 - dev-util/ftjam
68 - dev-lang/swig
69 - virtual/pkgconfig"
70 -
71 -S=${WORKDIR}/${MY_P}
72 -
73 -src_prepare() {
74 - # Installing doc conflict with dodoc on src_install
75 - # Removing conflicting target
76 - sed -i \
77 - -e "/^InstallDoc/d" \
78 - Jamfile.in \
79 - docs/Jamfile || die
80 - epatch "${FILESDIR}"/${P}-gcc47.patch
81 - AT_M4DIR=mk/autoconf
82 - eautoreconf
83 -}
84 -
85 -src_configure() {
86 - if use wxwidgets; then
87 - WX_GTK_VER="2.8"
88 - need-wxwidgets unicode
89 - fi
90 -
91 - econf \
92 - --disable-as-needed \
93 - --enable-cpu-specific-optimizations=no \
94 - --disable-separate-debug-info \
95 - --without-lcms \
96 - --without-jackasyn \
97 - --without-perl \
98 - $(use_with java) \
99 - --disable-make-emulation \
100 - $(use_with bullet) \
101 - --without-python \
102 - $(use_with png) \
103 - $(use_with jpeg) \
104 - $(use_with mng) \
105 - $(use_with vorbis) \
106 - $(use_with speex) \
107 - $(use_with 3ds) \
108 - $(use_with ode) \
109 - $(use_with truetype freetype2) \
110 - $(use_with cal3d) \
111 - $(use_with wxwidgets wx) \
112 - $(use_with cegui CEGUI) \
113 - $(use_with cg Cg) \
114 - $(use_with alsa asound)
115 - #remove unwanted CFLAGS added by ./configure
116 - sed -i -e '/COMPILER\.CFLAGS\.optimize/d' \
117 - Jamconfig || die
118 -}
119 -
120 -src_compile() {
121 - jam -q -dx -j$(makeopts_jobs) || die
122 -}
123 -
124 -src_install() {
125 - for installTarget in bin plugin lib include data config bindings
126 - do
127 - jam -q -s DESTDIR="${D}" install_${installTarget} || die
128 - done
129 - if use doc; then
130 - jam -q -s DESTDIR="${D}" install_doc || die
131 - fi
132 - dodoc README docs/history*
133 -
134 - echo "CRYSTAL_PLUGIN=/usr/$(get_libdir)/${PATH_P}" > 90crystalspace
135 - echo "CRYSTAL_CONFIG=/etc/${PATH_P}" >> 90crystalspace
136 - doenvd 90crystalspace
137 -}
138 -
139 -pkg_postinst() {
140 - elog "Examples coming with this package, need correct light calculation"
141 - elog "Do the following commands, with the root account, to fix that:"
142 - # Fill cache directory for the examples
143 - local dir
144 - for dir in castle flarge isomap parallaxtest partsys r3dtest stenciltest \
145 - terrain terrainf;
146 - do
147 - elog "cslight -video=null /usr/share/${PATH_P}/data/maps/${dir}"
148 - done
149 -}