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 8C3B713832E for ; Fri, 5 Aug 2016 16:35:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3D069E0A9D; Fri, 5 Aug 2016 16:35:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 80F40E0A9D for ; Fri, 5 Aug 2016 16:35:37 +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 A50CE340A6A for ; Fri, 5 Aug 2016 16:35:36 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B3D862449 for ; Fri, 5 Aug 2016 16:35:33 +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: <1470414921.dabb47a2d55c10bc5259ff119722ad81ff38fedd.wizardedit@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-kids/pytraffic/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-kids/pytraffic/pytraffic-2.5.4-r2.ebuild X-VCS-Directories: games-kids/pytraffic/ X-VCS-Committer: wizardedit X-VCS-Committer-Name: Austin English X-VCS-Revision: dabb47a2d55c10bc5259ff119722ad81ff38fedd X-VCS-Branch: master Date: Fri, 5 Aug 2016 16:35:33 +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: 2eca7d0d-868d-47ec-aa13-b0e03d6437cc X-Archives-Hash: 5847345cbdc7bcf76a4bb8c83446b7df commit: dabb47a2d55c10bc5259ff119722ad81ff38fedd Author: Austin English gentoo org> AuthorDate: Fri Aug 5 16:19:33 2016 +0000 Commit: Austin English gentoo org> CommitDate: Fri Aug 5 16:35:21 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dabb47a2 games-kids/pytraffic: remove deprecated games eclass Also update to EAPI 6 Gentoo-Bug: https://bugs.gentoo.org/574082 Package-Manager: portage-2.3.0 games-kids/pytraffic/pytraffic-2.5.4-r2.ebuild | 83 ++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/games-kids/pytraffic/pytraffic-2.5.4-r2.ebuild b/games-kids/pytraffic/pytraffic-2.5.4-r2.ebuild new file mode 100644 index 0000000..b82c62e --- /dev/null +++ b/games-kids/pytraffic/pytraffic-2.5.4-r2.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils gnome2-utils python-utils-r1 python-r1 distutils-r1 + +DESCRIPTION="Python version of the board game Rush Hour" +HOMEPAGE="http://freecode.com/projects/pytraffic" +SRC_URI="http://alpha.uhasselt.be/Research/Algebra/Members/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND="media-libs/libsdl:0[sound] + media-libs/sdl-mixer" +RDEPEND="${DEPEND} + dev-python/pygtk" + +python_prepare_all() { + distutils-r1_python_prepare_all + + # FHS compliance + sed -i \ + -e 's#return os.path.join(exec_dir,path)#return os.path.join(os.getcwd(),path)#' \ + Misc.py || die + + sed \ + -e "s#@GAMES_DATADIR@#/usr/share/${PN}#" \ + "${FILESDIR}"/${PN} > "${T}"/${PN} || die +} + +python_install() { + # install modules manually, build system broken + python_moduleinto ${PN} + python_domodule "${BUILD_DIR}"/lib/. + + # allow to import the stuff as module + touch "${D}$(python_get_sitedir)"/${PN}/__init__.py || die + + # install python wrapper script to handle multiple ABI properly + python_scriptinto /usr/bin + python_doscript "${T}"/${PN} +} + +python_install_all() { + distutils-r1_python_install_all + + insinto /usr/share/${PN} + doins -r doc config.db extra_themes icons libglade music sound_test themes ttraffic.levels + + doicon -s 64 icons/64x64/${PN}.png + make_desktop_entry ${PN} PyTraffic +} + +src_prepare() { + distutils-r1_src_prepare +} + +src_compile() { + distutils-r1_src_compile +} + +src_install() { + distutils-r1_src_install +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +}