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 E19A81396D1 for ; Tue, 5 Sep 2017 23:50:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 30769E0E4C; Tue, 5 Sep 2017 23:50:46 +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-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F156BE0E4C for ; Tue, 5 Sep 2017 23:50:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 B007A33D3CE for ; Tue, 5 Sep 2017 23:50:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D05F58E33 for ; Tue, 5 Sep 2017 23:50:40 +0000 (UTC) From: "Austin English" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Austin English" Message-ID: <1504655427.3bd223b80a4fe4006a8bc10f02fdd61f02005cca.wizardedit@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-rpg/lure/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-rpg/lure/lure-1.1-r1.ebuild X-VCS-Directories: games-rpg/lure/ X-VCS-Committer: wizardedit X-VCS-Committer-Name: Austin English X-VCS-Revision: 3bd223b80a4fe4006a8bc10f02fdd61f02005cca X-VCS-Branch: master Date: Tue, 5 Sep 2017 23:50:40 +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: 1607c3b5-d741-4a59-8b18-54f34c948835 X-Archives-Hash: 1c2fbcdd0b1b768c9de0894fb767eb31 commit: 3bd223b80a4fe4006a8bc10f02fdd61f02005cca Author: Austin English gentoo org> AuthorDate: Tue Sep 5 21:19:42 2017 +0000 Commit: Austin English gentoo org> CommitDate: Tue Sep 5 23:50:27 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3bd223b8 games-rpg/lure: 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 games-rpg/lure/lure-1.1-r1.ebuild | 110 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) diff --git a/games-rpg/lure/lure-1.1-r1.ebuild b/games-rpg/lure/lure-1.1-r1.ebuild new file mode 100644 index 00000000000..7aeff31daca --- /dev/null +++ b/games-rpg/lure/lure-1.1-r1.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils + +DAT_PV=0.13.1 +DESCRIPTION="Lure of the Temptress" +HOMEPAGE="http://www.revolution.co.uk/_display.php?id=10" +SRC_URI=" + https://raw.githubusercontent.com/scummvm/scummvm/266aef932a8a052df897e4d79b4572e5d169916f/dists/engine-data/lure.dat -> lure-${DAT_PV}.dat + !linguas_en? ( !linguas_es? ( !linguas_fr? ( !linguas_de? ( !linguas_it? + ( mirror://sourceforge/scummvm/${P}.zip -> ${PN}-en-${PV}.zip ) ) ) ) ) + linguas_en? ( mirror://sourceforge/scummvm/${P}.zip -> ${PN}-en-${PV}.zip ) + linguas_es? ( mirror://sourceforge/scummvm/${PN}-es-${PV}.zip ) + linguas_fr? ( mirror://sourceforge/scummvm/${PN}-fr-${PV}.zip ) + linguas_de? ( mirror://sourceforge/scummvm/${PN}-de-${PV}.zip ) + linguas_it? ( mirror://sourceforge/scummvm/${PN}-it-${PV}.zip )" + +LICENSE="lure" +SLOT="0" +KEYWORDS="~amd64 ~x86" +LANGS_IUSE="linguas_en linguas_es linguas_de linguas_fr linguas_it" +IUSE=${LANGS_IUSE} +RESTRICT="mirror" + +RDEPEND=">=games-engines/scummvm-0.13.1" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR} + +any_linguas() { + use linguas_en || use linguas_es || use linguas_de || use linguas_fr || use linguas_it +} + +src_unpack() { + local lang + + if any_linguas ; then + for lang in ${LANGS_IUSE} + do + use ${lang} && unpack ${PN}-${lang/linguas_}-${PV}.zip + done + mv lure lure-en 2> /dev/null + else + unpack ${PN}-en-${PV}.zip + fi +} + +src_prepare() { + local lang f + + default + + find . \ + \( -iname "*exe" \ + -o -iname "*ega" \ + -o -iname LICENSE.txt \) \ + -exec rm -f '{}' + + mkdir docs + if any_linguas ; then + for lang in ${LANGS_IUSE} + do + mkdir docs/${lang} + find lure-${lang/linguas_} \ + \( -iname "*pdf" \ + -o -iname README \ + -o -iname "*txt" \) \ + -exec mv '{}' docs/${lang} \; 2> /dev/null + done + else + find lure \ + \( -iname "*pdf" \ + -o -iname README \ + -o -iname "*txt" \) \ + -exec mv '{}' docs \; 2> /dev/null + fi + for f in $(find docs -type f) + do + mv ${f} ${f%.*}.$(echo ${f#*.} | tr '[[:upper:]]' '[[:lower:]]') 2> /dev/null + done +} + +src_install() { + local lang + + if any_linguas ; then + for lang in ${LANGS_IUSE} + do + if use ${lang} ; then + lang=${lang/linguas_} + insinto "/usr/share/${PN}-${lang}" + newins "${DISTDIR}"/lure-${DAT_PV}.dat lure.dat + doins -r ${PN}-${lang}/* + make_wrapper ${PN}-${lang} "scummvm -q ${lang} -f -p \"/usr/share/${PN}-${lang}\" lure" . + make_desktop_entry ${PN}-${lang} "Lure of the Temptress (${lang})" ${PN} + docinto linguas_${lang} + dodoc docs/linguas_${lang}/* + fi + done + else + insinto "/usr/share/${PN}" + newins "${DISTDIR}"/lure-${DAT_PV}.dat lure.dat + doins -r ${PN}/* + make_wrapper ${PN} "scummvm -f -p \"/usr/share/${PN}\" lure" . + make_desktop_entry ${PN} "Lure of the Temptress" + fi +}