diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-03-07 21:02:07 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-03-07 21:02:07 +0000 |
commit | 9690dcc556f6d6f8db819cc488b625f300d45ece (patch) | |
tree | d1055db2ec765500e5b704f02805fae1d7fcd5a6 /games-board | |
parent | Moved to EAPI=3 for PREFIX support, imported prefix patches from overlay, key... (diff) | |
download | historical-9690dcc556f6d6f8db819cc488b625f300d45ece.tar.gz historical-9690dcc556f6d6f8db819cc488b625f300d45ece.tar.bz2 historical-9690dcc556f6d6f8db819cc488b625f300d45ece.zip |
Initial commit wrt #253200, thanks to Arthur Nascimento, Gary Hunt, Joshua Rich and others.
Package-Manager: portage-2.2_rc63/cvs/Linux x86_64
Diffstat (limited to 'games-board')
-rw-r--r-- | games-board/pysolfc/ChangeLog | 10 | ||||
-rw-r--r-- | games-board/pysolfc/Manifest | 5 | ||||
-rw-r--r-- | games-board/pysolfc/metadata.xml | 9 | ||||
-rw-r--r-- | games-board/pysolfc/pysolfc-2.0.ebuild | 76 |
4 files changed, 100 insertions, 0 deletions
diff --git a/games-board/pysolfc/ChangeLog b/games-board/pysolfc/ChangeLog new file mode 100644 index 000000000000..fa590565d377 --- /dev/null +++ b/games-board/pysolfc/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for games-board/pysolfc +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-board/pysolfc/ChangeLog,v 1.1 2010/03/07 21:02:07 ssuominen Exp $ + +*pysolfc-2.0 (07 Mar 2010) + + 07 Mar 2010; Samuli Suominen <ssuominen@gentoo.org> +pysolfc-2.0.ebuild: + Initial commit wrt #253200, thanks to Arthur Nascimento, Gary Hunt, Joshua + Rich and others. + diff --git a/games-board/pysolfc/Manifest b/games-board/pysolfc/Manifest new file mode 100644 index 000000000000..1bc27adfa279 --- /dev/null +++ b/games-board/pysolfc/Manifest @@ -0,0 +1,5 @@ +DIST PySolFC-2.0.tar.bz2 4208776 RMD160 ea846061cdf2630257322b2e9eb7289b71d47705 SHA1 7a11aa04b3f5147396c8b5011228094c10ddc257 SHA256 dbcb8e7e6d0479c230745a2be91c0c9b9e8524407cd2075f2dae144e5d441b6c +DIST PySolFC-Cardsets-2.0.tar.bz2 30687905 RMD160 a51c2e1ef0276a4bb9783ae880a731b9e30bebc4 SHA1 cbf26b7e282c242a2080dfd06e3847abbaf67303 SHA256 c388d6360191b3b7e463d84e5a64260c4e3ed36e791a85227d7e8923f3f47ca7 +EBUILD pysolfc-2.0.ebuild 1705 RMD160 04f1daeb5c2164b65ad1afa6b29937f69ea70459 SHA1 52f84e7645b10126f04548c7652c1fbf6ee1a34b SHA256 8505d80036ccb7285a5f8e1b689f3121fa01e8312b3dc6b6ef6cc85a5333e725 +MISC ChangeLog 414 RMD160 66ae7ddd55b2c11badc7c3ac7c1c69da6e1b5568 SHA1 dc7924ca1d8f18a85b2b5ea5210679578cdcfc12 SHA256 dcd9d6878365a725e1e510343e938cf9a0f9aef331f4401e72afc00ec386d213 +MISC metadata.xml 321 RMD160 997cd3e212ca8a6a04fe3a2115ef92b1531e755c SHA1 144dc25f3e96c7ce37d89ba0d003240efde690e4 SHA256 7a0166ac42f4253898e83c09a83bf60d5ba19f57e8c6d565e162b93335a02935 diff --git a/games-board/pysolfc/metadata.xml b/games-board/pysolfc/metadata.xml new file mode 100644 index 000000000000..47c84415dba1 --- /dev/null +++ b/games-board/pysolfc/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name="extra-cardsets">Install extra cardsets</flag> + <flag name="sound">Enable sound support using<pkg>dev-python/pygame</pkg></flag> + </use> +</pkgmetadata> diff --git a/games-board/pysolfc/pysolfc-2.0.ebuild b/games-board/pysolfc/pysolfc-2.0.ebuild new file mode 100644 index 000000000000..56e917ccd71f --- /dev/null +++ b/games-board/pysolfc/pysolfc-2.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-board/pysolfc/pysolfc-2.0.ebuild,v 1.1 2010/03/07 21:02:07 ssuominen Exp $ + +EAPI=2 + +PYTHON_USE_WITH="tk" +PYTHON_DEPEND="2:2.6" +RESTRICT_PYTHON_ABIS="3.*" + +inherit distutils eutils games + +MY_PN=PySolFC +SOL_URI="mirror://sourceforge/${PN}" + +DESCRIPTION="A collection of more than 1000 solitaire card games" +HOMEPAGE="http://pysolfc.sourceforge.net/" +SRC_URI="${SOL_URI}/${MY_PN}-${PV}.tar.bz2 + extra-cardsets? ( ${SOL_URI}/${MY_PN}-Cardsets-${PV}.tar.bz2 )" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="extra-cardsets minimal +sound" + +S=${WORKDIR}/${MY_PN}-${PV} + +RDEPEND="sound? ( dev-python/pygame ) + !minimal? ( dev-python/imaging[tk] + dev-tcltk/tktable )" + +src_prepare() { + distutils_src_prepare + + sed -i \ + -e "/pysol.desktop/d" \ + -e "s:share/icons:share/pixmaps:" \ + -e "s:data_dir =.*:data_dir = \'share/games/${PN}\':" \ + setup.py || die +} + +# Avoid running emake on shipped Makefile +src_compile() { :; } + +src_install() { + distutils_src_install + + mv -vf "${D}"/usr/bin/pysol.py "${D}${GAMES_DATADIR}"/${PN} || die + games_make_wrapper ${PN} ./pysol.py "${GAMES_DATADIR}"/${PN} + + make_desktop_entry ${PN} "PySol Fan Club Edition" pysol01 + + if use extra-cardsets; then + insinto "${GAMES_DATADIR}"/${PN} + doins -r "${WORKDIR}"/${MY_PN}-Cardsets-${PV}/* || die + fi + + doman docs/*.6 + dohtml docs/*.html + + dodoc AUTHORS README + + docinto docs + dodoc docs/README* + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + python_mod_optimize $(python_get_sitedir)/pysollib +} + +pkg_postrm() { + python_mod_cleanup $(python_get_sitedir)/pysollib +} |