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 5A622139082 for ; Tue, 31 Jan 2017 00:59:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 739D321C060; Tue, 31 Jan 2017 00:59:36 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 5162121C060 for ; Tue, 31 Jan 2017 00:59:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 52E96341671 for ; Tue, 31 Jan 2017 00:59:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 95E063B76 for ; Tue, 31 Jan 2017 00:59:32 +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: <1485824360.b156aea2bacb9fa268b1f52f996b6b8af43fe94a.wizardedit@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-action/trine-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-action/trine-bin/trine-bin-1.08-r1.ebuild X-VCS-Directories: games-action/trine-bin/ X-VCS-Committer: wizardedit X-VCS-Committer-Name: Austin English X-VCS-Revision: b156aea2bacb9fa268b1f52f996b6b8af43fe94a X-VCS-Branch: master Date: Tue, 31 Jan 2017 00:59:32 +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: 1012b15d-3414-4e5c-ba77-689cf397e626 X-Archives-Hash: 3bfbcea16de09262663afe4848b03fe5 commit: b156aea2bacb9fa268b1f52f996b6b8af43fe94a Author: Austin English gentoo org> AuthorDate: Mon Jan 30 23:41:47 2017 +0000 Commit: Austin English gentoo org> CommitDate: Tue Jan 31 00:59:20 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b156aea2 games-action/trine-bin: 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/trine-bin/trine-bin-1.08-r1.ebuild | 67 +++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/games-action/trine-bin/trine-bin-1.08-r1.ebuild b/games-action/trine-bin/trine-bin-1.08-r1.ebuild new file mode 100644 index 00000000..c673584 --- /dev/null +++ b/games-action/trine-bin/trine-bin-1.08-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# these are ELFs that include a ZIP (504b0304) appended to it +# dd if=Trine.64.run of=Trine.64.zip ibs=$((0x342a8)) skip=1 +# dd if=Trine.32.run of=Trine.32.zip ibs=$((0x31c24)) skip=1 +# but `unzip` will skip the ELF at the start. both ELFs contain +# the same zip appended, so only need to hash one of them. + +EAPI=6 +inherit unpacker eutils + +DESCRIPTION="A physics-based action game where diff characters allow diff solutions to challenges" +HOMEPAGE="http://trine-thegame.com/" +SRC_URI="Trine.64.run" + +LICENSE="frozenbyte-eula" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="" +RESTRICT="fetch strip" + +DEPEND="app-arch/unzip" +RDEPEND=" + dev-libs/libx86 + gnome-base/libglade + >=sys-devel/gcc-4.3.0 + >=sys-libs/glibc-2.4" + +S=${WORKDIR} + +d=/opt/${PN} +QA_PREBUILT="${d#/}/trine-launcher ${d#/}/trine-bin ${d#/}/lib*/lib*.so*" + +pkg_nofetch() { + einfo "Fetch ${SRC_URI} and put it into ${DISTDIR}" + einfo "See http://www.humblebundle.com/ for more info." +} + +src_unpack() { + # manually run unzip as the initial seek causes it to exit(1) + unpack_zip ${A} + rm lib*/lib{gcc_s,m,rt,selinux}.so.? || die +} + +src_install() { + local b bb + local sfx=$(usex x86 32 64) + + doicon Trine.xpm + for b in bin launcher ; do + bb="trine-${b}" + exeinto ${d} + newexe ${bb}${sfx} ${bb} + make_wrapper ${bb} "./${bb}" "${d}" + make_desktop_entry ${bb} "Trine ${b}" Trine + done + + exeinto ${d}/lib${sfx} + doexe lib${sfx}/* + + insinto ${d} + doins -r binds config data dev profiles *.fbz *.glade trine-logo.png + + dodoc Trine_Manual_linux.pdf Trine_updates.txt +}