[gentoo-commits] repo/gentoo:master commit in: games-strategy/defcon-demo/

2019-09-23 Thread Michał Górny
commit: be933f09729f0d2a01be36bc9fffed5ef09ed4e0
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Sep 23 17:10:35 2019 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Sep 23 17:16:08 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be933f09

games-strategy/defcon-demo: Add RESTRICT=bindist

Signed-off-by: Michał Górny  gentoo.org>

 games-strategy/defcon-demo/defcon-demo-1.60-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/games-strategy/defcon-demo/defcon-demo-1.60-r1.ebuild 
b/games-strategy/defcon-demo/defcon-demo-1.60-r1.ebuild
index 486a654236b..4d2f1544bc8 100644
--- a/games-strategy/defcon-demo/defcon-demo-1.60-r1.ebuild
+++ b/games-strategy/defcon-demo/defcon-demo-1.60-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -18,7 +18,7 @@ LICENSE="Introversion"
 SLOT="0"
 KEYWORDS="-* ~amd64 ~x86"
 IUSE="+system-libs"
-RESTRICT="mirror strip"
+RESTRICT="bindist mirror strip"
 
 # glibc discussion:
 # http://forums.introversion.co.uk/defcon/viewtopic.php?t=4016



[gentoo-commits] repo/gentoo:master commit in: games-strategy/defcon-demo/

2017-12-20 Thread David Seifert
commit: 5148c03f7fb40bf10bf8359cb239f31997ecb3c7
Author: David Seifert  gentoo  org>
AuthorDate: Wed Dec 20 21:30:32 2017 +
Commit: David Seifert  gentoo  org>
CommitDate: Thu Dec 21 01:55:07 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5148c03f

games-strategy/defcon-demo: Remove old

Package-Manager: Portage-2.3.16, Repoman-2.3.6

 games-strategy/defcon-demo/defcon-demo-1.60.ebuild | 98 --
 1 file changed, 98 deletions(-)

diff --git a/games-strategy/defcon-demo/defcon-demo-1.60.ebuild 
b/games-strategy/defcon-demo/defcon-demo-1.60.ebuild
deleted file mode 100644
index 8dde409344d..000
--- a/games-strategy/defcon-demo/defcon-demo-1.60.ebuild
+++ /dev/null
@@ -1,98 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-inherit eutils toolchain-funcs gnome2-utils games
-
-MY_PN=defcon
-MY_PV=${PV:0:3}
-MY_PVR=1
-MY_P=defcon_${MY_PV}-${MY_PVR}
-
-DESCRIPTION="Global thermonuclear war simulation with multiplayer support"
-HOMEPAGE="http://www.introversion.co.uk/defcon/;
-SRC_URI="x86? ( 
http://www.introversion.co.uk/defcon/downloads/${MY_P}_i386.deb )
-   amd64? ( 
http://www.introversion.co.uk/defcon/downloads/${MY_P}_amd64.deb )"
-
-LICENSE="Introversion"
-SLOT="0"
-KEYWORDS="-* ~amd64 ~x86"
-IUSE="+system-libs"
-RESTRICT="mirror strip"
-
-# glibc discussion:
-# http://forums.introversion.co.uk/defcon/viewtopic.php?t=4016
-RDEPEND="
-   media-libs/libogg
-   media-libs/libvorbis
-   >=sys-libs/glibc-2.3
-   x11-libs/libX11
-   x11-libs/libXau
-   x11-libs/libXext
-   x11-libs/libXdmcp
-   system-libs? ( media-libs/libsdl[sound,video] )"
-DEPEND=""
-
-QA_PREBUILT="${GAMES_PREFIX_OPT:1}/${PN}/lib/${MY_PN}.bin.x86"
-
-S=${WORKDIR}/usr/local/games/${MY_PN}
-
-src_unpack() {
-   default
-   unpack ./data.tar.gz
-
-   cd "${S}" || die
-   # maintain compatibility with old installation/script
-   [[ -e lib64 ]] && { mv lib64 lib || die ;}
-   [[ -e ${MY_PN}.bin.x86_64 ]] && { mv ${MY_PN}.bin.x86_64 
${MY_PN}.bin.x86 || die ;}
-}
-
-src_prepare() {
-   # FindPath scripts are ugly and unnecessary
-   if use system-libs ; then
-   rm -f lib/lib*
-   fi
-   sed \
-   -e "s:GAMEDIR:${GAMES_PREFIX_OPT}/${PN}:g" \
-   "${FILESDIR}"/${MY_PN} > "${T}"/${MY_PN} || die
-   echo "int chdir(const char *d) { return 0; }" > chdir.c || die
-}
-
-src_compile() {
-   echo "$(tc-getCC) ${CFLAGS} ${LDFLAGS} -fPIC -shared -o lib/chdir.so 
chdir.c"
-   $(tc-getCC) ${CFLAGS} ${LDFLAGS} -fPIC -shared -o lib/chdir.so chdir.c 
|| die
-}
-
-src_install() {
-   local dir=${GAMES_PREFIX_OPT}/${PN}
-
-   insinto "${dir}/lib"
-   doins *.dat
-
-   exeinto "${dir}"/lib
-   doexe lib/*.so
-   doexe ${MY_PN}.bin.x86
-
-   doicon -s 128 ${MY_PN}.png
-
-   # Can be upgraded to full version, so is not installed as "demo"
-   dogamesbin "${T}"/${MY_PN}
-   make_desktop_entry ${MY_PN} "Defcon"
-
-   prepgamesdirs
-}
-
-pkg_preinst() {
-   games_pkg_preinst
-   gnome2_icon_savelist
-}
-
-pkg_postinst() {
-   games_pkg_postinst
-   gnome2_icon_cache_update
-   elog "Screenshots will appear in ~/.${MY_PN}/lib"
-}
-
-pkg_postrm() {
-   gnome2_icon_cache_update
-}



[gentoo-commits] repo/gentoo:master commit in: games-strategy/defcon-demo/

2017-09-07 Thread Austin English
commit: f9e3f47429bf581bac277323e4d5cfe3012da3c1
Author: Austin English  gentoo  org>
AuthorDate: Thu Sep  7 18:11:04 2017 +
Commit: Austin English  gentoo  org>
CommitDate: Thu Sep  7 21:04:16 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9e3f474

games-strategy/defcon-demo: remove deprecated games eclass

Also update to EAPI 6

Gentoo-Bug: https://bugs.gentoo.org/574082
Package-Manager: Portage-2.3.6, Repoman-2.3.2

 .../defcon-demo/defcon-demo-1.60-r1.ebuild | 96 ++
 1 file changed, 96 insertions(+)

diff --git a/games-strategy/defcon-demo/defcon-demo-1.60-r1.ebuild 
b/games-strategy/defcon-demo/defcon-demo-1.60-r1.ebuild
new file mode 100644
index 000..486a654236b
--- /dev/null
+++ b/games-strategy/defcon-demo/defcon-demo-1.60-r1.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils toolchain-funcs gnome2-utils
+
+MY_PN=defcon
+MY_PV=${PV:0:3}
+MY_PVR=1
+MY_P=defcon_${MY_PV}-${MY_PVR}
+
+DESCRIPTION="Global thermonuclear war simulation with multiplayer support"
+HOMEPAGE="http://www.introversion.co.uk/defcon/;
+SRC_URI="x86? ( 
http://www.introversion.co.uk/defcon/downloads/${MY_P}_i386.deb )
+   amd64? ( 
http://www.introversion.co.uk/defcon/downloads/${MY_P}_amd64.deb )"
+
+LICENSE="Introversion"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="+system-libs"
+RESTRICT="mirror strip"
+
+# glibc discussion:
+# http://forums.introversion.co.uk/defcon/viewtopic.php?t=4016
+RDEPEND="
+   media-libs/libogg
+   media-libs/libvorbis
+   >=sys-libs/glibc-2.3
+   x11-libs/libX11
+   x11-libs/libXau
+   x11-libs/libXdmcp
+   x11-libs/libXext
+   system-libs? ( media-libs/libsdl[sound,video] )"
+DEPEND=""
+
+QA_PREBUILT="/opt/${PN}/lib/${MY_PN}.bin.x86"
+
+S="${WORKDIR}/usr/local/games/${MY_PN}"
+
+src_unpack() {
+   default
+   unpack ./data.tar.gz
+
+   cd "${S}" || die
+   # maintain compatibility with old installation/script
+   [[ -e lib64 ]] && { mv lib64 lib || die ;}
+   [[ -e ${MY_PN}.bin.x86_64 ]] && { mv ${MY_PN}.bin.x86_64 
${MY_PN}.bin.x86 || die ;}
+}
+
+src_prepare() {
+   default
+
+   # FindPath scripts are ugly and unnecessary
+   if use system-libs ; then
+   rm -f lib/lib*
+   fi
+   sed \
+   -e "s:GAMEDIR:/opt/${PN}:g" \
+   "${FILESDIR}"/${MY_PN} > "${T}"/${MY_PN} || die
+   echo "int chdir(const char *d) { return 0; }" > chdir.c || die
+}
+
+src_compile() {
+   echo "$(tc-getCC) ${CFLAGS} ${LDFLAGS} -fPIC -shared -o lib/chdir.so 
chdir.c"
+   $(tc-getCC) ${CFLAGS} ${LDFLAGS} -fPIC -shared -o lib/chdir.so chdir.c 
|| die
+}
+
+src_install() {
+   local dir="/opt/${PN}"
+
+   insinto "${dir}/lib"
+   doins *.dat
+
+   exeinto "${dir}"/lib
+   doexe lib/*.so
+   doexe ${MY_PN}.bin.x86
+
+   doicon -s 128 ${MY_PN}.png
+
+   # Can be upgraded to full version, so is not installed as "demo"
+   dobin "${T}"/${MY_PN}
+   make_desktop_entry ${MY_PN} "Defcon"
+}
+
+pkg_preinst() {
+   gnome2_icon_savelist
+}
+
+pkg_postinst() {
+   gnome2_icon_cache_update
+   elog "Screenshots will appear in ~/.${MY_PN}/lib"
+}
+
+pkg_postrm() {
+   gnome2_icon_cache_update
+}



[gentoo-commits] repo/gentoo:master commit in: games-strategy/defcon-demo/

2015-12-29 Thread Michael Sterrett
commit: 778a2190f783058901a615d9483438fa41834443
Author: Michael Sterrett  gentoo  org>
AuthorDate: Tue Dec 29 18:50:43 2015 +
Commit: Michael Sterrett  gentoo  org>
CommitDate: Tue Dec 29 20:31:37 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=778a2190

games-strategy/defcon-demo: add libsdl use deps; tidy

Package-Manager: portage-2.2.24

 games-strategy/defcon-demo/defcon-demo-1.60.ebuild | 8 +++-
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/games-strategy/defcon-demo/defcon-demo-1.60.ebuild 
b/games-strategy/defcon-demo/defcon-demo-1.60.ebuild
index 174b6fc..811ba4a 100644
--- a/games-strategy/defcon-demo/defcon-demo-1.60.ebuild
+++ b/games-strategy/defcon-demo/defcon-demo-1.60.ebuild
@@ -31,7 +31,7 @@ RDEPEND="
x11-libs/libXau
x11-libs/libXext
x11-libs/libXdmcp
-   system-libs? ( media-libs/libsdl )"
+   system-libs? ( media-libs/libsdl[sound,video] )"
 DEPEND=""
 
 QA_PREBUILT="${GAMES_PREFIX_OPT:1}/${PN}/lib/${MY_PN}.bin.x86"
@@ -55,10 +55,8 @@ src_prepare() {
fi
sed \
-e "s:GAMEDIR:${GAMES_PREFIX_OPT}/${PN}:g" \
-   "${FILESDIR}"/${MY_PN} > "${T}"/${MY_PN} \
-   || die "sed failed"
-   echo "int chdir(const char *d) { return 0; }" > chdir.c \
-   || die "echo failed"
+   "${FILESDIR}"/${MY_PN} > "${T}"/${MY_PN} || die
+   echo "int chdir(const char *d) { return 0; }" > chdir.c || die
 }
 
 src_compile() {