Install menu entry, bug #160256
authorTristan Heaven <tristan@gentoo.org>
Thu, 15 Mar 2007 22:55:07 +0000 (22:55 +0000)
committerTristan Heaven <tristan@gentoo.org>
Thu, 15 Mar 2007 22:55:07 +0000 (22:55 +0000)
Package-Manager: portage-2.1.2.2

games-kids/tuxmath/ChangeLog
games-kids/tuxmath/Manifest
games-kids/tuxmath/tuxmath-20010907.ebuild

index 47d6249215b75dbeab22cda08815204c5ff6fbe8..72cefe6b88cab471c0c71ed73f8a060baa3b50d7 100644 (file)
@@ -1,6 +1,9 @@
 # ChangeLog for games-kids/tuxmath
 # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-kids/tuxmath/ChangeLog,v 1.7 2007/02/22 01:03:40 peper Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-kids/tuxmath/ChangeLog,v 1.8 2007/03/15 22:55:07 nyhm Exp $
+
+  15 Mar 2007; Tristan Heaven <nyhm@gentoo.org> tuxmath-20010907.ebuild:
+  Install menu entry, bug #160256
 
   22 Feb 2007; Piotr JaroszyƄski <peper@gentoo.org> ChangeLog:
   Transition to Manifest2.
index 1d2cb0dbc4b9511a48d49bb9ab267fc1f116cbe6..3459b859b6002226225c98cd26282060bc0ff5b8 100644 (file)
@@ -1,12 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
 DIST tuxmath-2001.09.07-0102.tar.gz 1339967 RMD160 86c3adc3b678a3a4f1276e85728201c4837ea6fd SHA1 bdc146f05a9c0b5785bb14c73da2973af16a2bfc SHA256 e2237bffa41bfd3b25733c44e9d72104879fcf5ea7267f02661af27983d12507
-EBUILD tuxmath-20010907.ebuild 1010 RMD160 e299ed71c93620c14c6d0e5ab454f1d8c1d222fd SHA1 bfaa33d59a5446e45ea3d4aaf490fa862ad578ea SHA256 a4255c8c035a1485f9f18be728c3359fa60254640c75f936a840fe167e898593
-MD5 01d1b40ed881821492a0236136cad21d tuxmath-20010907.ebuild 1010
-RMD160 e299ed71c93620c14c6d0e5ab454f1d8c1d222fd tuxmath-20010907.ebuild 1010
-SHA256 a4255c8c035a1485f9f18be728c3359fa60254640c75f936a840fe167e898593 tuxmath-20010907.ebuild 1010
-MISC ChangeLog 741 RMD160 fe032adaeb04754074fbdc5ba0989c7f5cd5d184 SHA1 a03c36d12ef5600f1dc3af8982546922adf449dd SHA256 ae7801f16310aa05a3b47c1cc20bb0215840f99653cb7aa48413d4e4439e5bfd
-MD5 d87027534879f9718ed3aca068f09725 ChangeLog 741
-RMD160 fe032adaeb04754074fbdc5ba0989c7f5cd5d184 ChangeLog 741
-SHA256 ae7801f16310aa05a3b47c1cc20bb0215840f99653cb7aa48413d4e4439e5bfd ChangeLog 741
+EBUILD tuxmath-20010907.ebuild 1168 RMD160 68dcc83f1bbd8a2e55230d18a0f09910facf12c0 SHA1 266c5e7669c0e00c1aa0792b7110aea90c3cc875 SHA256 43e650dbe16816848a55164000feca3fddc7221e0be48e56e76b78eeed8d5e41
+MD5 04b16889f5af249384f78dc7f5e1b7db tuxmath-20010907.ebuild 1168
+RMD160 68dcc83f1bbd8a2e55230d18a0f09910facf12c0 tuxmath-20010907.ebuild 1168
+SHA256 43e650dbe16816848a55164000feca3fddc7221e0be48e56e76b78eeed8d5e41 tuxmath-20010907.ebuild 1168
+MISC ChangeLog 848 RMD160 042e620e0a1ac1444ff01547ebe34d11c75c0bc7 SHA1 88c4a49811eb2baeb600e25667d5a38edfeae691 SHA256 8a84d22ff68de70ab7786a616be7407dd39b0aa419605fb072b82de0ea68ccef
+MD5 d415065cacd87fcd407aeca4e3d03c95 ChangeLog 848
+RMD160 042e620e0a1ac1444ff01547ebe34d11c75c0bc7 ChangeLog 848
+SHA256 8a84d22ff68de70ab7786a616be7407dd39b0aa419605fb072b82de0ea68ccef ChangeLog 848
 MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
 MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea metadata.xml 158
@@ -14,3 +17,10 @@ SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 metadata
 MD5 2099b32fe2442c8242643a59e20f9a9c files/digest-tuxmath-20010907 274
 RMD160 98aec58667835c5baa3d845a54aaf26898735abb files/digest-tuxmath-20010907 274
 SHA256 08e5e44a90b651477de5a8f6bdb9b744ff04f3a70c1abc44e85aeafef05e367c files/digest-tuxmath-20010907 274
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.3 (GNU/Linux)
+
+iD8DBQFF+c7Rdz7hIScOURERAiUCAKDw6B2ZzAlsj1MYNGcdJf+/RJsZ/ACeNzQo
+0++AERUDEKvsoF/1+ZM3vGQ=
+=79ct
+-----END PGP SIGNATURE-----
index f822aaab02aabface1b990addef59e1db7d816c4..1eb4b4c9b65046a44d5d17e82524a0e1dedb12c6 100644 (file)
@@ -1,41 +1,45 @@
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-kids/tuxmath/tuxmath-20010907.ebuild,v 1.8 2006/10/03 08:30:50 blubb Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-kids/tuxmath/tuxmath-20010907.ebuild,v 1.9 2007/03/15 22:55:07 nyhm Exp $
 
-inherit games
+inherit eutils toolchain-funcs games
 
 MY_P="${PN}-2001.09.07-0102"
 DESCRIPTION="Educational arcade game where you have to solve math problems"
-SRC_URI="mirror://sourceforge/tuxmath/${MY_P}.tar.gz"
 HOMEPAGE="http://www.newbreedsoftware.com/tuxmath/"
+SRC_URI="mirror://sourceforge/tuxmath/${MY_P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 ppc x86"
 IUSE=""
 
-DEPEND=">=media-libs/libsdl-1.1.5
-       >=media-libs/sdl-image-1.2.2
-       >=media-libs/sdl-mixer-1.2.4"
-
-S="${WORKDIR}/${PN}"
-
-src_compile() {
-       emake \
-               DATA_PREFIX=${GAMES_DATADIR}/${PN} \
-               BIN_PREFIX=${GAMES_BINDIR} \
-               || die "emake failed"
+DEPEND="media-libs/libsdl
+       media-libs/sdl-image
+       media-libs/sdl-mixer"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+       rm -rf $(find -name CVS -o -name .xvpics -type d)
+       rm -f docs/COPYING.txt
+       sed -i \
+               -e '/strip/d' \
+               -e "1i CC=$(tc-getCC)" \
+               -e "s/-O2/${CFLAGS}/" \
+               -e "s:\$(DATA_PREFIX):${GAMES_DATADIR}/${PN}:" \
+               Makefile \
+               || die "sed failed"
 }
 
 src_install() {
-       find -name CVS -type d -exec rm -rf '{}' \;
-
-       dogamesbin tuxmath || die "dogamesbin failed"
-
-       dodir "${GAMES_DATADIR}/${PN}"
-       cp -r data/{images,sounds} "${D}/${GAMES_DATADIR}/${PN}/" \
-               || die "cp failed"
-
+       dogamesbin ${PN} || die "dogamesbin failed"
+       insinto "${GAMES_DATADIR}"/${PN}
+       doins -r data/{images,sounds} || die "doins failed"
+       newicon data/images/icon.png ${PN}.png
+       make_desktop_entry ${PN} "Tux Math"
        dodoc docs/*.txt
        prepgamesdirs
 }