tupone      15/02/02 17:24:16

  Modified:             ChangeLog
  Added:                tuxmathscrabble-7.4-r1.ebuild
  Log:
  migrate to python-single-r1
  
  (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 
0145142D)

Revision  Changes    Path
1.20                 games-kids/tuxmathscrabble/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-kids/tuxmathscrabble/ChangeLog?rev=1.20&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-kids/tuxmathscrabble/ChangeLog?rev=1.20&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-kids/tuxmathscrabble/ChangeLog?r1=1.19&r2=1.20

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/games-kids/tuxmathscrabble/ChangeLog,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- ChangeLog   4 Mar 2011 12:58:07 -0000       1.19
+++ ChangeLog   2 Feb 2015 17:24:16 -0000       1.20
@@ -1,6 +1,11 @@
 # ChangeLog for games-kids/tuxmathscrabble
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-kids/tuxmathscrabble/ChangeLog,v 1.19 
2011/03/04 12:58:07 ranger Exp $
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-kids/tuxmathscrabble/ChangeLog,v 1.20 
2015/02/02 17:24:16 tupone Exp $
+
+*tuxmathscrabble-7.4-r1 (02 Feb 2015)
+
+  02 Feb 2015; Tupone Alfredo <[email protected]> 
+tuxmathscrabble-7.4-r1.ebuild:
+  Port to python-single-r1 class
 
   04 Mar 2011; Brent Baude <[email protected]> tuxmathscrabble-7.4.ebuild:
   stable ppc, bug 353821



1.1                  games-kids/tuxmathscrabble/tuxmathscrabble-7.4-r1.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-kids/tuxmathscrabble/tuxmathscrabble-7.4-r1.ebuild?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-kids/tuxmathscrabble/tuxmathscrabble-7.4-r1.ebuild?rev=1.1&content-type=text/plain

Index: tuxmathscrabble-7.4-r1.ebuild
===================================================================
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: 
/var/cvsroot/gentoo-x86/games-kids/tuxmathscrabble/tuxmathscrabble-7.4-r1.ebuild,v
 1.1 2015/02/02 17:24:16 tupone Exp $

EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit eutils python-single-r1 multilib games

MY_PN=TuxMathScrabble
MY_P=${PN}-0.${PV}
DESCRIPTION="math-version of the popular board game for children 4-10"
HOMEPAGE="http://www.asymptopia.org/";
SRC_URI="mirror://gentoo/${MY_P}.zip"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""

CDEPEND="${PYTHON_DEPS}
        dev-python/wxpython[${PYTHON_USEDEP}]"
DEPEND="${CDEPEND}
        app-arch/unzip"
RDEPEND="${CDEPEND}
        dev-python/pygame[${PYTHON_USEDEP}]"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

S=${WORKDIR}/${MY_P}

pkg_setup() {
        python-single-r1_pkg_setup
        games_pkg_setup
}

src_prepare() {
        rm -f $(find . -name '*.pyc')
        epatch "${FILESDIR}"/${P}-gentoo.patch
        sed -i \
                -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${MY_PN}:" \
                ${MY_PN}/tms.py \
                .tms_config_master \
                || die "sed failed"
        python_fix_shebang .
}

src_install() {
        newgamesbin ${PN}.py ${PN}

        insinto $(python_get_sitedir)
        doins -r ${MY_PN}

        insinto "${GAMES_DATADIR}"/${MY_PN}
        doins -r .tms_config_master Font

        python_optimize

        newicon tms.ico ${PN}.ico
        make_desktop_entry ${PN} ${PN} /usr/share/pixmaps/${PN}.ico

        dodoc CHANGES README
        prepgamesdirs
}




Reply via email to