public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in games-board/pysolfc: metadata.xml ChangeLog pysolfc-2.0.ebuild
@ 2010-03-07 21:02 Samuli Suominen (ssuominen)
  0 siblings, 0 replies; only message in thread
From: Samuli Suominen (ssuominen) @ 2010-03-07 21:02 UTC (permalink / raw
  To: gentoo-commits

ssuominen    10/03/07 21:02:08

  Added:                metadata.xml ChangeLog pysolfc-2.0.ebuild
  Log:
  Initial commit wrt #253200, thanks to Arthur Nascimento, Gary Hunt, Joshua Rich and others.
  (Portage version: 2.2_rc63/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  games-board/pysolfc/metadata.xml

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/pysolfc/metadata.xml?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/pysolfc/metadata.xml?rev=1.1&content-type=text/plain

Index: metadata.xml
===================================================================
<?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>



1.1                  games-board/pysolfc/ChangeLog

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/pysolfc/ChangeLog?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/pysolfc/ChangeLog?rev=1.1&content-type=text/plain

Index: ChangeLog
===================================================================
# 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.




1.1                  games-board/pysolfc/pysolfc-2.0.ebuild

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/pysolfc/pysolfc-2.0.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/pysolfc/pysolfc-2.0.ebuild?rev=1.1&content-type=text/plain

Index: pysolfc-2.0.ebuild
===================================================================
# 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
}






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-03-07 21:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-07 21:02 [gentoo-commits] gentoo-x86 commit in games-board/pysolfc: metadata.xml ChangeLog pysolfc-2.0.ebuild Samuli Suominen (ssuominen)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox