* [gentoo-commits] repo/gentoo:master commit in: games-action/rune/
@ 2017-01-27 19:44 Austin English
0 siblings, 0 replies; 2+ messages in thread
From: Austin English @ 2017-01-27 19:44 UTC (permalink / raw
To: gentoo-commits
commit: 0bcaa85b99c8c86b97a69e7cc3aec4718814d76f
Author: Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 26 22:46:23 2017 +0000
Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Fri Jan 27 19:44:12 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bcaa85b
games-action/rune: remove deprecated games eclass
Also update to EAPI 6
Gentoo-Bug: https://bugs.gentoo.org/574082
Package-Manager: Portage-2.3.2, Repoman-2.3.1
games-action/rune/rune-1.07-r3.ebuild | 130 ++++++++++++++++++++++++++++++++++
1 file changed, 130 insertions(+)
diff --git a/games-action/rune/rune-1.07-r3.ebuild b/games-action/rune/rune-1.07-r3.ebuild
new file mode 100644
index 00000000..efd46df
--- /dev/null
+++ b/games-action/rune/rune-1.07-r3.ebuild
@@ -0,0 +1,130 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils cdrom
+
+DESCRIPTION="Viking hack and slay game"
+HOMEPAGE="http://www.runegame.com"
+SRC_URI="mirror://gentoo/rune-all-0.2.tar.bz2"
+
+LICENSE="LOKI-EULA"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="strip"
+
+RDEPEND="dev-util/xdelta:0
+ >=media-libs/libsdl-1.2.9-r1[abi_x86_32(-)]
+ x11-libs/libXext[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ virtual/opengl[abi_x86_32(-)]"
+
+S=${WORKDIR}
+
+dir=/opt/${PN}
+Ddir=${D}/${dir}
+
+src_unpack() {
+ export CDROM_SET_NAMES=("Linux Rune CD" "Windows Rune CD")
+ cdrom_get_cds System/rune-bin:System/Rune.exe
+ dodir "${dir}"
+ if [[ ${CDROM_SET} -eq 0 ]]
+ then
+ # unpack the data files
+ tar xzf "${CDROM_ROOT}"/data.tar.gz || die
+ elif [[ ${CDROM_SET} -eq 1 ]]
+ then
+ # unpack the runelinuxfiles.tar.gz
+ unpack ${A}
+ fi
+}
+
+src_install() {
+ insinto "${dir}"
+ exeinto "${dir}"
+ einfo "Copying files... this may take a while..."
+
+ case ${CDROM_SET} in
+ 0)
+ for x in Help Maps Meshes Sounds System Textures Web
+ do
+ doins -r $x
+ done
+
+ # copy linux specific files
+ doins -r "${CDROM_ROOT}"/System
+
+ # the most important things: rune and ucc :)
+ doexe "${CDROM_ROOT}"/bin/x86/rune
+ fperms 750 "${dir}"/System/{ucc{,-bin},rune-bin}
+
+ # installing documentation/icon
+ dodoc "${CDROM_ROOT}"/{README,CREDITS}
+ newicon "${CDROM_ROOT}"/icon.xpm rune.xpm
+ ;;
+ 1)
+ # copying Maps Sounds and Web
+ for x in Maps Sounds Web
+ do
+ doins -r "${CDROM_ROOT}"/$x
+ done
+
+ # copying the texture files
+ dodir "${dir}"/Textures
+ for x in $(find "${CDROM_ROOT}"/Textures/ -type f -printf '%f ')
+ do
+ echo -ne '\271\325\036\214' | cat - "${CDROM_ROOT}"/Textures/$x \
+ | sed -e '1 s/\(....\)..../\1/' > "${Ddir}"/Textures/$x \
+ || die
+ done
+
+ doins -r "${S}"/System
+ doins -r "${S}"/Help
+ sed -e "s:.*\(\w+/\w+\)\w:\1:"
+ for x in $(ls "${S}"/patch/{System,Maps,Meshes} | sed -e \
+ "s:.*/\([^/]\+/[^/]\+\).patch$:\1:")
+ do
+ xdelta patch "${S}"/patch/${x}.patch "${CDROM_ROOT}"/${x} "${S}"/patch/${x}
+ doins "${S}"/patch/${x}
+ done
+
+ insinto "${dir}"/System
+
+ # copying system files from the Windows CD
+ for x in "${CDROM_ROOT}"/System/*.{int,u,url}; do
+ doins $x
+ done
+
+ # modify the files
+ mv "${Ddir}"/System/OpenGlDrv.int "${Ddir}"/System/OpenGLDrv.int \
+ || die
+ mv "${Ddir}"/Textures/bloodFX.utx "${Ddir}"/Textures/BloodFX.utx \
+ || die
+ mv "${Ddir}"/Textures/RUNESTONES.UTX "${Ddir}"/Textures/RUNESTONES.utx \
+ || die
+ mv "${Ddir}"/Textures/tedd.utx "${Ddir}"/Textures/Tedd.utx \
+ || die
+ mv "${Ddir}"/Textures/UNDERANCIENT.utx "${Ddir}"/Textures/UnderAncient.utx \
+ || die
+ rm "${Ddir}"/System/{Setup.int,SGLDrv.int,MeTaLDrv.int,Manifest.int,D3DDrv.int,Galaxy.int,SoftDrv.int,WinDrv.int,Window.int} \
+ || die
+
+ # the most important things: rune and ucc :)
+ doexe "${S}"/bin/x86/rune
+ fperms 750 "${dir}"/System/{ucc,ucc-bin,rune-bin}
+
+ # installing documentation/icon
+ dodoc "${S}"/{README,CREDITS}
+ doicon "${S}"/rune.xpm rune.xpm
+ ;;
+ esac
+
+ use amd64 && mv "${Ddir}"/System/libSDL-1.2.so.0 \
+ "${Ddir}"/System/libSDL-1.2.so.0.backup
+
+ make_wrapper rune ./rune "${dir}" "${dir}"
+ make_desktop_entry rune "Rune" rune
+ find "${Ddir}" -exec touch '{}' \; || die
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: games-action/rune/
@ 2019-05-31 8:24 Ulrich Müller
0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Müller @ 2019-05-31 8:24 UTC (permalink / raw
To: gentoo-commits
commit: 7b34e38dc81491d019d1d3731c6de25a0be375c4
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri May 31 07:51:39 2019 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri May 31 08:24:06 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b34e38d
games-action/rune: Add mirror and bindist restrictions.
Bug: https://bugs.gentoo.org/665108
Package-Manager: Portage-2.3.67, Repoman-2.3.13
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
games-action/rune/rune-1.07-r3.ebuild | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/games-action/rune/rune-1.07-r3.ebuild b/games-action/rune/rune-1.07-r3.ebuild
index 2f649202e4e..253554d25b6 100644
--- a/games-action/rune/rune-1.07-r3.ebuild
+++ b/games-action/rune/rune-1.07-r3.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
@@ -12,7 +12,7 @@ LICENSE="LOKI-EULA"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
-RESTRICT="strip"
+RESTRICT="strip mirror bindist"
RDEPEND="dev-util/xdelta:0
>=media-libs/libsdl-1.2.9-r1[abi_x86_32(-)]
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-31 8:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-27 19:44 [gentoo-commits] repo/gentoo:master commit in: games-action/rune/ Austin English
-- strict thread matches above, loose matches on Subject: below --
2019-05-31 8:24 Ulrich Müller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox