Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 470930 - games-board/xfrisk-1.3 version bump
Summary: games-board/xfrisk-1.3 version bump
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All All
: Normal enhancement (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: EBUILD, PMASKED
Depends on:
Blocks:
 
Reported: 2013-05-22 01:33 UTC by tastytea
Modified: 2015-01-04 06:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild (xfrisk-1.3.ebuild,1.01 KB, text/plain)
2013-05-22 01:34 UTC, tastytea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tastytea 2013-05-22 01:33:11 UTC
Wrote an ebuild for games-board/xfrisk-1.3 and fixed Bug 409355.

Reproducible: Always
Comment 1 tastytea 2013-05-22 01:34:53 UTC
Created attachment 348870 [details]
Ebuild
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-22 01:50:22 UTC
Comment on attachment 348870 [details]
Ebuild

--- xfrisk-1.2.ebuild   2011-08-04 02:18:44.000000000 +0200
+++ -   2013-05-22 03:50:09.557407152 +0200
@@ -1,13 +1,13 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-board/xfrisk/xfrisk-1.2.ebuild,v 1.10 2011/08/02 05:46:50 mattst88 Exp $
+# $Header: $
 
 EAPI=2
 inherit games
 
 DESCRIPTION="The RISK board game"
-HOMEPAGE="http://tuxick.net/xfrisk/"
-SRC_URI="http://tuxick.net/xfrisk/files/XFrisk-${PV}.tar.gz"
+HOMEPAGE="http://old.tuxick.net/xfrisk/"
+SRC_URI="http://old.tuxick.net/xfrisk/files/xfrisk-${PV}-rc1.tar.gz"
 
 LICENSE="GPL-2"
 KEYWORDS="amd64 ppc sparc x86"
@@ -19,9 +19,11 @@
 DEPEND="${RDEPEND}
        x11-libs/libXaw"

-S=${WORKDIR}/XFrisk
+S=${WORKDIR}/xfrisk-${PV}-rc1

-src_prepare() {
+src_configure() {
+       CFLAGS=$(sed "s/-O[0-9]//g" <<< ${CFLAGS})
+       econf --prefix="${GAMES_PREFIX}"
        sed -i \
                -e '/^CC=/d' \
                -e '/^LDFLAGS=/d' \
@@ -32,7 +34,13 @@
 }
 
 src_install() {
-       emake PREFIX="${D}/${GAMES_PREFIX}" install || die
+       emake DESTDIR="${D}" install || die
        dodoc BUGS ChangeLog FAQ TODO
+
+       echo -e "[Desktop Entry]\nName=Xfrisk\nType=Application" >> xfrisk.desktop
+    echo -e "Comment=The RISK board game\nExec=risk\nCategories=Game;\n" >> xfrisk.desktop
+       insinto usr/share/applications
+       doins xfrisk.desktop
+       
        prepgamesdirs
 }
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2013-05-22 01:59:02 UTC
Why would be bump it to an rc version instead of just punting it when the package is clearly dead upstream?
Comment 4 tastytea 2013-05-22 02:37:09 UTC
Uh, didn't notice that, sorry
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2015-01-04 06:24:26 UTC
xfrisk masked for removal