* [gentoo-commits] proj/gamerlay:master commit in: games-action/descent1-data/
@ 2013-08-06 21:30 Vadim A. Misbakh-Soloviov
0 siblings, 0 replies; 3+ messages in thread
From: Vadim A. Misbakh-Soloviov @ 2013-08-06 21:30 UTC (permalink / raw
To: gentoo-commits
commit: c8e696ac3183c1665d7474685166e58368201ecf
Author: Alexander Turenko <alextux <AT> bk <DOT> ru>
AuthorDate: Mon Aug 5 20:39:40 2013 +0000
Commit: Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name>
CommitDate: Tue Aug 6 21:27:51 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=c8e696ac
[PATCH 1/2] [games-action/descent1-data] Fix/add comments.
Signed-off-by: Vadim A. Misbakh-Soloviov <mva <AT> mva.name>
---
games-action/descent1-data/descent1-data-1.0-r1.ebuild | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/games-action/descent1-data/descent1-data-1.0-r1.ebuild b/games-action/descent1-data/descent1-data-1.0-r1.ebuild
index 9d58c9e..4509d1b 100644
--- a/games-action/descent1-data/descent1-data-1.0-r1.ebuild
+++ b/games-action/descent1-data/descent1-data-1.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
@@ -7,6 +7,7 @@ EAPI=5
CDROM_OPTIONAL="yes"
inherit cdrom eutils games
+# For GOG install
MY_EXE="setup_descent_1_2.exe"
DESCRIPTION="Data files for Descent 1"
@@ -14,6 +15,7 @@ HOMEPAGE="http://www.interplay.com/games/support.php?id=263"
SRC_URI="http://www.dxx-rebirth.com/download/dxx/res/d1datapt.zip
!cdinstall? ( $MY_EXE )"
+# See readme.txt
LICENSE="${PN}"
SLOT="0"
KEYWORDS="amd64 x86"
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] proj/gamerlay:master commit in: games-action/descent1-data/
@ 2016-12-29 23:30 Alexander Turenko
0 siblings, 0 replies; 3+ messages in thread
From: Alexander Turenko @ 2016-12-29 23:30 UTC (permalink / raw
To: gentoo-commits
commit: b8fcc6973b4af6f150a468ade33ad6f58bf9a933
Author: Alexander Turenko <totktonada.ru <AT> gmail <DOT> com>
AuthorDate: Thu Dec 29 17:15:09 2016 +0000
Commit: Alexander Turenko <totktonada.ru <AT> gmail <DOT> com>
CommitDate: Thu Dec 29 22:28:43 2016 +0000
URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=b8fcc697
games-action/descent1-data: updated URL, fix GOG install
GOG setup file doesn't need the patch, but -cdinstall assumes
RESTRICT=fetch and it was required manual downloading for the patch.
games-action/descent1-data/descent1-data-1.0-r1.ebuild | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/games-action/descent1-data/descent1-data-1.0-r1.ebuild b/games-action/descent1-data/descent1-data-1.0-r1.ebuild
index 4509d1b..9b0cf82 100644
--- a/games-action/descent1-data/descent1-data-1.0-r1.ebuild
+++ b/games-action/descent1-data/descent1-data-1.0-r1.ebuild
@@ -12,7 +12,7 @@ MY_EXE="setup_descent_1_2.exe"
DESCRIPTION="Data files for Descent 1"
HOMEPAGE="http://www.interplay.com/games/support.php?id=263"
-SRC_URI="http://www.dxx-rebirth.com/download/dxx/res/d1datapt.zip
+SRC_URI="cdinstall? ( http://www.dxx-rebirth.com/download/dxx/misc/descent-game-content-10to14a-patch.zip )
!cdinstall? ( $MY_EXE )"
# See readme.txt
@@ -102,7 +102,10 @@ src_unpack() {
mv missions/descent.pig . || die 'descent.pig not found'
# Unpack data file patches
- unpack d1datapt.zip
+ if use cdinstall; then
+ mkdir d1datapt && cd d1datapt
+ unpack ../descent-game-content-10to14a-patch.zip
+ fi
mkdir doc || die "mkdir doc failed"
mv missions/*.txt missions/*.pdf doc/ # ignore fail
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] proj/gamerlay:master commit in: games-action/descent1-data/
@ 2017-04-29 20:04 James Le Cuirot
0 siblings, 0 replies; 3+ messages in thread
From: James Le Cuirot @ 2017-04-29 20:04 UTC (permalink / raw
To: gentoo-commits
commit: 14d0ccc985d57e82a0e8396c3b3163ef172dec65
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 29 19:59:08 2017 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Apr 29 19:59:08 2017 +0000
URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=14d0ccc9
games-action/descent1-data: Improved version in Gentoo repo, removing
.../descent1-data/descent1-data-1.0-r1.ebuild | 146 ---------------------
1 file changed, 146 deletions(-)
diff --git a/games-action/descent1-data/descent1-data-1.0-r1.ebuild b/games-action/descent1-data/descent1-data-1.0-r1.ebuild
deleted file mode 100644
index 9b0cf82..0000000
--- a/games-action/descent1-data/descent1-data-1.0-r1.ebuild
+++ /dev/null
@@ -1,146 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=5
-
-CDROM_OPTIONAL="yes"
-inherit cdrom eutils games
-
-# For GOG install
-MY_EXE="setup_descent_1_2.exe"
-
-DESCRIPTION="Data files for Descent 1"
-HOMEPAGE="http://www.interplay.com/games/support.php?id=263"
-SRC_URI="cdinstall? ( http://www.dxx-rebirth.com/download/dxx/misc/descent-game-content-10to14a-patch.zip )
- !cdinstall? ( $MY_EXE )"
-
-# See readme.txt
-LICENSE="${PN}"
-SLOT="0"
-KEYWORDS="amd64 x86"
-RESTRICT="!cdinstall? ( fetch )"
-IUSE="+cdinstall doc"
-
-RDEPEND=""
-DEPEND="app-arch/unzip
- !cdinstall? (
- app-arch/innoextract
- )"
-
-S=${WORKDIR}
-dir=${GAMES_DATADIR}/d1x
-
-# Function to handle copying and renaming files from installation directory;
-# Allows support of installation sources using capitalized file names
-copy_file() {
- local dest="${2}"
- local f=$(basename "${1}")
- if [ "${f:0:1}" == '*' ]; then
- return 0
- else
- echo "Copying '${f}'"
- local d=$(echo ${f} | tr "[:upper:]" "[:lower:]")
- cp -f "${1}" "${dest}/${d}" || die "copy ${1} failed"
- return 0
- fi
-}
-
-pkg_nofetch() {
- elog "You must place a copy of, or symlink to, the GOG setup package here:"
- elog "${DISTDIR}/${MY_EXE}"
- echo
- elog "If you wish to install from CD-ROM instead, please enable the cdinstall flag"
-}
-
-pkg_setup() {
- games_pkg_setup
-
- if use cdinstall; then
- # Check for Descent 1 CD or an existing install (eg., for GOG)
- CDROM_NAME_SET=( "CD-ROM Version" "Installed Version" "Installed Version" )
- cdrom_get_cds descent/descent.hog:descent.hog:DESCENT.HOG
- case ${CDROM_SET} in
- 0)
- F_ROOT="${CDROM_ROOT}/descent"
- einfo 'Found Descent I CD' ;;
- [12])
- F_ROOT="${CDROM_ROOT}"
- einfo 'Found Descent I Installation' ;;
- *)
- die 'Descent I CD or installation files not found' ;;
- esac
-
- else
- # Check for GOG installer
- if [ ! -e "${DISTDIR}/${MY_EXE}" ]; then
- ewarn "You must copy or symlink '${MY_EXE}' to your distfiles directory"
- die "GOG installer not found"
- fi
- F_ROOT="${WORKDIR}/gog/app/descent"
- fi
-}
-
-src_unpack() {
- mkdir "${WORKDIR}/missions" || die "mkdir missions failed"
-
- # Unpack GOG package if necessary
- if ! use cdinstall; then
- einfo "Unpacking ${MY_EXE}. This will take a while..."
- mkdir gog && cd gog || die "mkdir gog failed"
- innoextract -e -s -L "${DISTDIR}/${MY_EXE}" || die "innoextract failed"
- cd .. || die "cd .. failed"
- fi
-
- # Copy all (including optional) mission files
- for i in "${F_ROOT}"/*.{hog,HOG,msn,MSN,pig,PIG,txt,TXT,pdf,PDF}; do
- copy_file "$i" "${WORKDIR}/missions"
- done
-
- # Move and validate required files
- mv missions/descent.hog . || die 'descent.hog not found'
- mv missions/descent.pig . || die 'descent.pig not found'
-
- # Unpack data file patches
- if use cdinstall; then
- mkdir d1datapt && cd d1datapt
- unpack ../descent-game-content-10to14a-patch.zip
- fi
-
- mkdir doc || die "mkdir doc failed"
- mv missions/*.txt missions/*.pdf doc/ # ignore fail
-}
-
-src_prepare() {
- # Only try to apply patch if it's actually needed
- if [ "$(md5sum descent.hog | cut -f1 -d' ')" != "c792a21a30b869b1ec6d31ad64e9557e" ]; then
- einfo "Patching Descent 1 data files"
- patch -p0 descent.hog <d1datapt/descent.hog.diff
- patch -p0 descent.pig <d1datapt/descent.pig.diff
- fi
-}
-
-src_install() {
- insinto "${dir}"
- doins *
-
- insinto "${dir}/missions"
- doins missions/*
-
- if use doc; then
- dodoc doc/*.txt
- if [ $(ls doc/*.pdf 2>/dev/null | wc -l) -gt 0 ]; then
- insinto "/usr/share/doc/${PF}"
- doins doc/*.pdf
- fi
- fi
-
- prepgamesdirs
-}
-
-pkg_postinst() {
- games_pkg_postinst
-
- elog "A client is needed to run the game, e.g. games-action/d1x-rebirth."
- echo
-}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-04-29 20:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-29 23:30 [gentoo-commits] proj/gamerlay:master commit in: games-action/descent1-data/ Alexander Turenko
-- strict thread matches above, loose matches on Subject: below --
2017-04-29 20:04 James Le Cuirot
2013-08-06 21:30 Vadim A. Misbakh-Soloviov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox