Skip to content

Commit

Permalink
games-strategy/ufoai: Drop USE=editor to avoid dead gtkglext dependency
Browse files Browse the repository at this point in the history
Now I can undo last-rites.

Package-Manager: Portage-2.3.85, Repoman-2.3.20
Signed-off-by: James Le Cuirot <[email protected]>
  • Loading branch information
chewi committed Jan 25, 2020
1 parent 32373ab commit 00ddbd2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 39 deletions.
1 change: 0 additions & 1 deletion games-strategy/ufoai/Manifest
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
DIST ufoai-2.5-data.tar 1277143040 BLAKE2B 20795ec6ebc976087f28fd0e912190bd9094494cc1b206bcc8e1956dec148cb7ab96f244db22e4836b91c0ecfae794cd206296e898015453d8ad6625d4e4ab32 SHA512 9a7be359c82cd633db657c8619cb488b5d41b9f93cd10bdeffd5896d8a1ba3bb828b5969acd14c2a69abb3f53f18113af4ca19435aea80ded94d8df68b11deec
DIST ufoai-2.5-mappack.tar.bz2 12200150 BLAKE2B d20f96f74a4b71a4ff55e4e3f81380ee35a71c6e34d35e6300487c916f2d836e240428e8f8529cca13d46ccd5440e7f59d5bfe5f451a2cd84469f8f1e85dc796 SHA512 0f44cc3d99ceb80f91e5df0f7cbd57ce3170f5635feb082c002ab9a0f4f81216b05c346c698475c33e88f97032186f4620bad71d02bfa95ecb5c5d4f68c71994
DIST ufoai-code-8b4533e85fdc0665889ff285e1521432084ee784.zip 33194032 BLAKE2B caebfe5ca0eaa6376659d4aa69132c29aa4af870135a769af3541bd919164d79ab9dfe8007a40bb95507a443f6f1d968bb85b1befe8b6999f9033a0d74d7a7fb SHA512 825ca6f8ac76a3a60746ac1be4406445dd18bab80372c21c2ddfcf4d999db8549614df41386e94197013bb7b4b342ac6d9be8c969b5e1be79e8ee25cf45719c6
1 change: 0 additions & 1 deletion games-strategy/ufoai/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
</maintainer>
<use>
<flag name="client">Build the main game client</flag>
<flag name="editor">Build the map editor and compiler</flag>
<flag name="server">Build the dedicated server</flag>
</use>
<upstream>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
Expand All @@ -19,15 +19,14 @@ HOMEPAGE="https://ufoai.org/"
SRC_URI="
https://dev.gentoo.org/~chewi/distfiles/${PN}-code-${COMMIT}.zip
mirror://sourceforge/${PN}/${PN}-${DIST_VERSION}-data.tar
editor? ( mirror://sourceforge/${PN}/${PN}-${DIST_VERSION}-mappack.tar.bz2 )
"

# https://ufoai.org/licenses/
LICENSE="GPL-2 GPL-3 public-domain CC-BY-3.0 CC-BY-SA-3.0 MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+client cpu_flags_x86_sse debug editor server"
REQUIRED_USE="|| ( client editor server )"
IUSE="+client cpu_flags_x86_sse debug server"
REQUIRED_USE="|| ( client server )"

RDEPEND="
dev-libs/mxml
Expand All @@ -47,22 +46,6 @@ RDEPEND="
virtual/opengl
)
editor? (
dev-libs/glib:2
dev-libs/libxml2:2
media-libs/libogg
media-libs/libpng:0=
media-libs/libsdl2[joystick,opengl,sound,threads,video]
media-libs/libvorbis
media-libs/openal
virtual/glu
virtual/jpeg:0
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:2
x11-libs/gtkglext
x11-libs/gtksourceview:2.0
)
server? (
media-libs/libsdl2[threads]
)
Expand All @@ -83,7 +66,6 @@ PATCHES=(
)

src_unpack() {
use editor && unpack ${PN}-${DIST_VERSION}-mappack.tar.bz2
unpack ${PN}-code-${COMMIT}.zip
cd "${S}" || die
unpack ${PN}-${DIST_VERSION}-data.tar
Expand Down Expand Up @@ -120,8 +102,8 @@ src_configure() {
$(use_enable !debug release)
$(use_enable server ufoded)
$(use_enable client ufo)
$(use_enable editor uforadiant)
$(use_enable editor ufo2map)
--disable-uforadiant
--disable-ufo2map
)

if use client || use server; then
Expand Down Expand Up @@ -153,18 +135,4 @@ src_install() {
doman debian/ufoded.6
make_desktop_entry ufoded "UFO: Alien Invasion Server" ${PN} "Game;StrategyGame" "Terminal=true"
fi

if use editor; then
doman debian/ufo{2map,radiant}.6
make_desktop_entry uforadiant "UFO: Alien Invasion Map editor" ${PN}

# Install map editor data (without the binary)
rm radiant/uforadiant || die
insinto "${DATADIR}"
doins -r radiant

# Install map sources
insinto "${DATADIR}"/base/maps
doins -r "${WORKDIR}"/${PN}-${DIST_VERSION}-mappack/*
fi
}

0 comments on commit 00ddbd2

Please sign in to comment.