diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-emulation/m64py | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'games-emulation/m64py')
-rw-r--r-- | games-emulation/m64py/Manifest | 1 | ||||
-rw-r--r-- | games-emulation/m64py/m64py-0.2.1-r1.ebuild | 72 | ||||
-rw-r--r-- | games-emulation/m64py/m64py-0.2.1.ebuild | 74 | ||||
-rw-r--r-- | games-emulation/m64py/metadata.xml | 15 |
4 files changed, 162 insertions, 0 deletions
diff --git a/games-emulation/m64py/Manifest b/games-emulation/m64py/Manifest new file mode 100644 index 000000000000..ece95c8dc3aa --- /dev/null +++ b/games-emulation/m64py/Manifest @@ -0,0 +1 @@ +DIST m64py-0.2.1.tar.gz 304897 SHA256 6461b494291f22c10ccd60cda4d4750da3c1514e1d5bc2354bad95a9f4cc1525 SHA512 02d5bc4a501f3c9a5851f242119ad6436be9a59b832f27483591353cfad6975da677a124e61330a4430f1813259f5a423bc8413423ee43a3570d74239e33b487 WHIRLPOOL 5998dd86de565e09c392cef6a9bb94978c6ebbfb3169fc30ae075d291ded187efc16fcf0d380c3ae7a85ae74f3b333de786a202a17320348a0d75595f7e5c024 diff --git a/games-emulation/m64py/m64py-0.2.1-r1.ebuild b/games-emulation/m64py/m64py-0.2.1-r1.ebuild new file mode 100644 index 000000000000..e20ece8b9d1d --- /dev/null +++ b/games-emulation/m64py/m64py-0.2.1-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="A frontend for Mupen64Plus" +HOMEPAGE="http://m64py.sourceforge.net/" +SRC_URI="mirror://sourceforge/m64py/${P}.tar.gz" + +LICENSE="GPL-3 LGPL-3 public-domain GPL-2 BSD CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# SDL & libmupen64plus are through ctypes, so they rely on specific ABI +RDEPEND="media-libs/libsdl:0/0[joystick] + dev-python/PyQt4[opengl,${PYTHON_USEDEP}] + >=games-emulation/mupen64plus-core-2.0-r1:0/2" + +python_prepare_all() { + # set the correct search path + cat >> src/m64py/platform.py <<-_EOF_ + SEARCH_DIRS = ["/usr/$(get_libdir)/mupen64plus"] +_EOF_ + + # comment out SDL2 support since our mupen64plus uses SDL1 + sed -e '/from m64py\.SDL2/s:^:#:' \ + -e '/QT2SDL2\[/s:^:#:' \ + -e '/KEYCODE2SCANCODE\[/s:^:#:' \ + -e '/SCANCODE2KEYCODE\[/s:^:#:' \ + -i src/m64py/frontend/keymap.py || die + sed -e '/--sdl2/d' \ + -e '/SDL2/s:=.*$:= False:' \ + -i src/m64py/opts.py || die + + distutils-r1_python_prepare_all +} + +pkg_postinst() { + local vr + for vr in ${REPLACING_VERSIONS}; do + if ! version_is_at_least 0.2.1-r1 ${vr}; then + ewarn + ewarn "Starting with mupen64plus-2.0-r1, the plugin install path has changed." + ewarn "In order for m64py to find mupen64plus, you will either need to set" + ewarn "new paths in configuration dialog or remove your configuration file." + ewarn "The new paths are:" + ewarn + ewarn " Library file: /usr/$(get_libdir)/libmupen64plus.so.2.0.0" + ewarn " Plugins directory: /usr/$(get_libdir)/mupen64plus" + ewarn " Data directory: /usr/share/mupen64plus" + fi + done + + if ! type -P rar >/dev/null && ! type -P unrar >/dev/null; then + elog + elog "In order to gain RAR archive support, please install either app-arch/rar" + elog "or app-arch/unrar." + fi + + if ! type -P 7z >/dev/null \ + && ! has_version "dev-python/pylzma[${PYTHON_USEDEP}]"; then + elog + elog "In order to gain 7z archive support, please install either app-arch/p7zip" + elog "or dev-python/pylzma." + fi +} diff --git a/games-emulation/m64py/m64py-0.2.1.ebuild b/games-emulation/m64py/m64py-0.2.1.ebuild new file mode 100644 index 000000000000..38ffbbff3e05 --- /dev/null +++ b/games-emulation/m64py/m64py-0.2.1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 games + +DESCRIPTION="A frontend for Mupen64Plus" +HOMEPAGE="http://m64py.sourceforge.net/" +SRC_URI="mirror://sourceforge/m64py/${P}.tar.gz" + +LICENSE="GPL-3 LGPL-3 public-domain GPL-2 BSD CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# SDL & libmupen64plus are through ctypes, so they rely on specific ABI +RDEPEND="media-libs/libsdl:0/0[joystick] + dev-python/PyQt4[opengl,${PYTHON_USEDEP}] + games-emulation/mupen64plus-core:0/2" + +python_prepare_all() { + # set the correct search path + cat >> src/m64py/platform.py <<-_EOF_ + SEARCH_DIRS = ["$(games_get_libdir)/mupen64plus"] +_EOF_ + + # comment out SDL2 support since our mupen64plus uses SDL1 + sed -e '/from m64py\.SDL2/s:^:#:' \ + -e '/QT2SDL2\[/s:^:#:' \ + -e '/KEYCODE2SCANCODE\[/s:^:#:' \ + -e '/SCANCODE2KEYCODE\[/s:^:#:' \ + -i src/m64py/frontend/keymap.py || die + sed -e '/--sdl2/d' \ + -e '/SDL2/s:=.*$:= False:' \ + -i src/m64py/opts.py || die + + distutils-r1_python_prepare_all +} + +python_install() { + distutils-r1_python_install \ + --install-scripts="${GAMES_BINDIR}" +} + +# games.eclass ABSOLUTELY MUST come last, so we need to clean up the mess +src_prepare() { distutils-r1_src_prepare; } +src_configure() { distutils-r1_src_configure; } +src_compile() { distutils-r1_src_compile; } +src_test() { distutils-r1_src_test; } + +src_install() { + distutils-r1_src_install + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + + if ! type -P rar >/dev/null && ! type -P unrar >/dev/null; then + elog + elog "In order to gain RAR archive support, please install either app-arch/rar" + elog "or app-arch/unrar." + fi + + if ! type -P 7z >/dev/null \ + && ! has_version "dev-python/pylzma[${PYTHON_USEDEP}]"; then + elog + elog "In order to gain 7z archive support, please install either app-arch/p7zip" + elog "or dev-python/pylzma." + fi +} diff --git a/games-emulation/m64py/metadata.xml b/games-emulation/m64py/metadata.xml new file mode 100644 index 000000000000..666b089d291d --- /dev/null +++ b/games-emulation/m64py/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>mgorny@gentoo.org</email> + <name>Michał Górny</name> + </maintainer> + <maintainer> + <email>joker@gentoo.org</email> + <name>Christian Birchinger</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">m64py</remote-id> + </upstream> +</pkgmetadata> |