From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 40E74139695 for ; Sat, 29 Apr 2017 20:04:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 08236E0D88; Sat, 29 Apr 2017 20:04:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BD442E0D88 for ; Sat, 29 Apr 2017 20:04:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3C36634105A for ; Sat, 29 Apr 2017 20:04:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EFABC7443 for ; Sat, 29 Apr 2017 20:04:38 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1493496070.d867d05bce3d2967a44caf850fec051fbbc5ffae.chewi@gentoo> Subject: [gentoo-commits] proj/gamerlay:master commit in: games-action/descent2-vertigo/ X-VCS-Repository: proj/gamerlay X-VCS-Files: games-action/descent2-vertigo/descent2-vertigo-1.0.ebuild X-VCS-Directories: games-action/descent2-vertigo/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: d867d05bce3d2967a44caf850fec051fbbc5ffae X-VCS-Branch: master Date: Sat, 29 Apr 2017 20:04:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 798c45af-f1fa-4037-913e-f3a438aae204 X-Archives-Hash: b633cbf35b14b740d83e7592dc59203c commit: d867d05bce3d2967a44caf850fec051fbbc5ffae Author: James Le Cuirot gentoo org> AuthorDate: Sat Apr 29 20:01:10 2017 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Sat Apr 29 20:01:10 2017 +0000 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=d867d05b games-action/descent2-vertigo: Improved version in Gentoo, removing .../descent2-vertigo/descent2-vertigo-1.0.ebuild | 111 --------------------- 1 file changed, 111 deletions(-) diff --git a/games-action/descent2-vertigo/descent2-vertigo-1.0.ebuild b/games-action/descent2-vertigo/descent2-vertigo-1.0.ebuild deleted file mode 100644 index 4726c2b..0000000 --- a/games-action/descent2-vertigo/descent2-vertigo-1.0.ebuild +++ /dev/null @@ -1,111 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 - -inherit cdrom eutils games - -DESCRIPTION="Data files for Descent 2: The Vertigo Series" -HOMEPAGE="http://www.interplay.com/games/support.php?id=103" -SRC_URI="" - -# See readme.txt -LICENSE="${PN}" -SLOT="0" -KEYWORDS="amd64 ppc x86" -IUSE="doc videos" - -RDEPEND="" -DEPEND="" - -S=${WORKDIR} -dir=${GAMES_DATADIR}/d2x - -# Function to handle copying and renaming files from installation directory -copy_file() { - local dest="${2}" - local f=$(basename "${1}") - if [ "${f:0:1}" == '*' -o ! -f "${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_setup() { - games_pkg_setup - - # The Descent 2 CD, or an existing install (eg., for GOG), is needed - CDROM_NAME_SET=( "CD-ROM Version" "CD-ROM" ) - cdrom_get_cds vertigo/d2x.hog:VERTIGO/D2X.HOG - case ${CDROM_SET} in - [01]) F_SOURCE='cd' - F_ROOT="${CDROM_ROOT}/vertigo" - einfo 'Found Descent II Vertigo Series CD' ;; - *) die "Vertigo Series CD or files not found" ;; - esac -} - -src_unpack() { - mkdir "${WORKDIR}/missions" || die "mkdir missions failed" - - # Copy index files - for i in "${F_ROOT}"/{{hoard.ham,HOARD.HAM},*.{txt,TXT}}; do - copy_file "$i" "${WORKDIR}" - done - - # Copy mission files - for i in "${F_ROOT}"/{d2x,D2X}.{hog,HOG,mn2,MN2}; do - copy_file "$i" "${WORKDIR}/missions" - done - - # Copy optional mission files - for i in "${F_ROOT}"/{missions,MISSIONS}/*; do - copy_file "$i" "${WORKDIR}/missions" - done - - # Also copy video files if desired - if use videos; then - # Require high resolution movie files - for i in "${F_ROOT}"/*-{h.mvl,H.MVL}; do - copy_file "$i" "${WORKDIR}" - done - if [ ! -f "${WORKDIR}/d2x-h.mvl" ] ; then - die "videos not found" - fi - - # Also copy low resolution movie files (not available from GOG) - # Would anyone really want low-res videos at this point? Probably not. - #for i in "${F_ROOT}"/*-{l.mvl,L.MVL}; do - # copy_file "$i" "${WORKDIR}" - #done - fi - - mkdir doc || die "mkdir doc failed" - mv *.txt doc/ # ignore fail -} - -src_install() { - insinto "${dir}" - doins * - - insinto "${dir}/missions" - doins missions/* - - if use doc; then - dodoc doc/*.txt - fi - - prepgamesdirs -} - -pkg_postinst() { - games_pkg_postinst - - elog "A client is needed to run the game, e.g. games-action/d2x-rebirth." - echo -}