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-strategy/uqm/
Date: Wed, 02 May 2018 19:28:48
Message-Id: 1525289300.e1861c4ae2a69d733cc3461c7deb64e42376d0c9.pacho@gentoo
1 commit: e1861c4ae2a69d733cc3461c7deb64e42376d0c9
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 2 19:20:13 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Wed May 2 19:28:20 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1861c4a
7
8 games-strategy/uqm: Drop old
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11
12 games-strategy/uqm/uqm-0.7.0-r3.ebuild | 111 ---------------------------------
13 1 file changed, 111 deletions(-)
14
15 diff --git a/games-strategy/uqm/uqm-0.7.0-r3.ebuild b/games-strategy/uqm/uqm-0.7.0-r3.ebuild
16 deleted file mode 100644
17 index 0d0264e8f7a..00000000000
18 --- a/games-strategy/uqm/uqm-0.7.0-r3.ebuild
19 +++ /dev/null
20 @@ -1,111 +0,0 @@
21 -# Copyright 1999-2017 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=5
25 -inherit eutils multilib toolchain-funcs games
26 -
27 -DESCRIPTION="The Ur-Quan Masters: Port of Star Control 2"
28 -HOMEPAGE="http://sc2.sourceforge.net/"
29 -SRC_URI="mirror://sourceforge/sc2/${P}-source.tgz
30 - mirror://sourceforge/sc2/${P}-content.uqm
31 - music? ( mirror://sourceforge/sc2/${P}-3domusic.uqm )
32 - voice? ( mirror://sourceforge/sc2/${P}-voice.uqm )
33 - remix? ( mirror://sourceforge/sc2/${PN}-remix-disc1.uqm \
34 - mirror://sourceforge/sc2/${PN}-remix-disc2.uqm \
35 - mirror://sourceforge/sc2/${PN}-remix-disc3.uqm \
36 - mirror://sourceforge/sc2/${PN}-remix-disc4.uqm )"
37 -
38 -LICENSE="GPL-2+"
39 -SLOT="0"
40 -KEYWORDS="~amd64 ~ppc64 ~x86"
41 -IUSE="music opengl remix voice"
42 -
43 -RDEPEND="media-libs/libmikmod
44 - media-libs/libogg
45 - >=media-libs/libpng-1.4:0
46 - media-libs/libsdl[X,sound,joystick,video]
47 - media-libs/libvorbis
48 - media-libs/sdl-image[png]
49 - sys-libs/zlib
50 - opengl? ( virtual/opengl )"
51 -DEPEND="${RDEPEND}
52 - virtual/pkgconfig"
53 -
54 -src_prepare() {
55 - local myopengl
56 -
57 - use opengl \
58 - && myopengl=opengl \
59 - || myopengl=pure
60 -
61 - epatch \
62 - "${FILESDIR}"/${P}-tempdir.patch \
63 - "${FILESDIR}"/${P}-warning.patch
64 -
65 - cat <<-EOF > config.state
66 - CHOICE_debug_VALUE='nodebug'
67 - CHOICE_graphics_VALUE='${myopengl}'
68 - CHOICE_sound_VALUE='mixsdl'
69 - CHOICE_accel_VALUE='plainc'
70 - INPUT_install_prefix_VALUE='${GAMES_PREFIX}'
71 - INPUT_install_bindir_VALUE='\$prefix/bin'
72 - INPUT_install_libdir_VALUE='\$prefix/lib'
73 - INPUT_install_sharedir_VALUE='${GAMES_DATADIR}/'
74 - EOF
75 -
76 - # Take out the read so we can be non-interactive.
77 - sed -i \
78 - -e '/read CHOICE/d' build/unix/menu_functions || die
79 -
80 - # respect CFLAGS
81 - sed -i \
82 - -e "s/-O3//" build/unix/build.config || die
83 -
84 - sed -i \
85 - -e "s:@INSTALL_LIBDIR@:$(games_get_libdir)/:g" \
86 - build/unix/uqm-wrapper.in || die
87 -
88 - # respect CC
89 - sed -i \
90 - -e "s/PROG_gcc_FILE=\"gcc\"/PROG_gcc_FILE=\"$(tc-getCC)\"/" \
91 - build/unix/config_proginfo_build || die
92 -}
93 -
94 -src_compile() {
95 - MAKE_VERBOSE=1 ./build.sh uqm || die
96 -}
97 -
98 -src_install() {
99 - # Using the included install scripts seems quite painful.
100 - # This manual install is totally fragile but maybe they'll
101 - # use a sane build system for the next release.
102 - newgamesbin uqm-wrapper uqm
103 - exeinto "$(games_get_libdir)"/${PN}
104 - doexe uqm
105 -
106 - insinto "${GAMES_DATADIR}"/${PN}/content/packages
107 - doins "${DISTDIR}"/${P}-content.uqm
108 - echo ${P} > "${D}${GAMES_DATADIR}"/${PN}/content/version || die
109 -
110 - insinto "${GAMES_DATADIR}"/${PN}/content/addons
111 - if use music; then
112 - doins "${DISTDIR}"/${P}-3domusic.uqm
113 - fi
114 -
115 - if use voice; then
116 - doins "${DISTDIR}"/${P}-voice.uqm
117 - fi
118 -
119 - if use remix; then
120 - insinto "${GAMES_DATADIR}"/${PN}/content/addons
121 - doins "${DISTDIR}"/${PN}-remix-disc{1,2,3,4}.uqm
122 - fi
123 -
124 - dodoc AUTHORS ChangeLog Contributing README WhatsNew doc/users/manual.txt
125 - docinto devel
126 - dodoc doc/devel/[!n]*
127 - docinto devel/netplay
128 - dodoc doc/devel/netplay/*
129 - make_desktop_entry uqm "The Ur-Quan Masters"
130 - prepgamesdirs
131 -}