Summary: | EBUILD for games-board/gnomego | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Markus Gothe <nietzsche> |
Component: | New packages | Assignee: | Default Assignee for New Packages <maintainer-wanted> |
Status: | CONFIRMED --- | ||
Severity: | enhancement | CC: | chujoii, nietzsche |
Priority: | High | Keywords: | EBUILD |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://se-linux.inso.tuwien.ac.at/se2wiki/GnomeGo | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
ebuild
games-board/gnomego-0.5.ebuild games-board/gnomego/gnomego-0.5.ebuild games-board/gnomego/gnomego-0.5.ebuild |
Description
Markus Gothe
2006-02-06 12:59:26 UTC
Created attachment 79054 [details]
ebuild
Created attachment 109553 [details]
games-board/gnomego-0.5.ebuild
First ebuild for GnomeGo 0.5, still need some work.
Every file seems to be at the right place but the thumbnailer and the screensaver are not working. GnomeGo itself work fine though.
I tried to use the home page's URL to fetch the file but I could't manage to make it works so I decided to (temporaly) host it.
Created attachment 116961 [details]
games-board/gnomego/gnomego-0.5.ebuild
Updated ebuild:
thumbnailer and the screensaver now work.
I am don`t change distfile URL.
Created attachment 117148 [details]
games-board/gnomego/gnomego-0.5.ebuild
Updated ebuild:
remove unnecessary "/"
also you can add some visual changes for screensaver (optional remove numeration, add last_move lightred rectangle, delay 10s)
# visual changes
sed -i -e "s/board\ =\ gnomego.board.Board(pixmap,\ game,\ size,\ scale,\ False,\ True,\ False,\ pango_ctx,\ pref.installed_prefix)/board\ =\ gnomego.board.Board(pixmap,\ game,\ size,\ scale,\ False,\ False,\ False,\ pango_ctx,\ pref.installed_prefix)/" sgf-screensaver.py
sed -i -e "s/gc.set_rgb_fg_color(gtk.gdk.Color(0x8000,0x0000,0x0000))/gc.set_rgb_fg_color(gtk.gdk.Color(0xffff,0x0000,0x0000))/" gnomego/board.py
sed -i -e "s/import zipfile/import\ zipfile\nimport\ copy/" sgf-screensaver.py
sed -i -e "s/while\ True:/while\ True:\n\n\t\tnow_hist\ =\ game.get_move_history().copy()\n\t\tboard.clear_marks()\n\t\tfor\ item\ in\ now_hist.keys():\n\t\t\tif\ not\ prev_hist.has_key(item):\n\t\t\t\tboard.mark_stone(item)\n\t\t\telse:\n\t\t\t\tif\ (len(now_hist[item])\ !=\ len(prev_hist[item])):\n\t\t\t\t\tboard.mark_stone(item)\n\t\tprev_hist\ =\ copy.deepcopy(now_hist)\n\n/" sgf-screensaver.py
sed -i -e "s/time.sleep(1)/time.sleep(10)/" sgf-screensaver.py
|