Date: Sun, 20 Jun 2004 22:15:10 +0200 (CEST) From: Jean-Yves Lefort <jylefort@brutele.be> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/68156: New port: games/gnome-music-quiz, a game similar to the tv show 'Name That Tune' Message-ID: <20040620201510.996E922E28@jsite.lefort.net> Resent-Message-ID: <200406202020.i5KKKRAe071041@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 68156 >Category: ports >Synopsis: New port: games/gnome-music-quiz, a game similar to the tv show 'Name That Tune' >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jun 20 20:20:27 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Jean-Yves Lefort >Release: FreeBSD 4.10-RELEASE i386 >Organization: >Environment: System: FreeBSD jsite.lefort.net 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Thu May 27 14:42:30 CEST 2004 jylefort@jsite.lefort.net:/usr/obj/usr/src/sys/JSITE i386 >Description: >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # gnome-music-quiz # gnome-music-quiz/distinfo # gnome-music-quiz/pkg-descr # gnome-music-quiz/files # gnome-music-quiz/files/patch-src::mq.c # gnome-music-quiz/Makefile # gnome-music-quiz/pkg-plist # echo c - gnome-music-quiz mkdir -p gnome-music-quiz > /dev/null 2>&1 echo x - gnome-music-quiz/distinfo sed 's/^X//' >gnome-music-quiz/distinfo << 'END-of-gnome-music-quiz/distinfo' XMD5 (mq-0.1.tar.gz) = 8f2051612c0a1dcecbd6cd0b2f30d397 XSIZE (mq-0.1.tar.gz) = 817333 END-of-gnome-music-quiz/distinfo echo x - gnome-music-quiz/pkg-descr sed 's/^X//' >gnome-music-quiz/pkg-descr << 'END-of-gnome-music-quiz/pkg-descr' XGNOME Music Quiz is a game similar to the television show 'Name That XTune'. Players are quizzed on songs from their Rhythmbox music Xlibrary. The faster a player identifies a song the more points he or Xshe receives. Great for parties or to learn your music and impress Xyour friends. X XWWW: http://ishamael.tunkeymicket.com/mq.php X X- Jean-Yves Lefort Xjylefort@brutele.be END-of-gnome-music-quiz/pkg-descr echo c - gnome-music-quiz/files mkdir -p gnome-music-quiz/files > /dev/null 2>&1 echo x - gnome-music-quiz/files/patch-src::mq.c sed 's/^X//' >gnome-music-quiz/files/patch-src::mq.c << 'END-of-gnome-music-quiz/files/patch-src::mq.c' X--- src/mq.c.orig Sun Jun 20 20:21:26 2004 X+++ src/mq.c Sun Jun 20 21:58:03 2004 X@@ -440,15 +440,30 @@ X X static gboolean round_entries_desensitize_timeout(gpointer data) X { X- gint32 i = 0; X+ int i; X+ int entries_left = 0; X+ int n; X+ int j = 0; X X- do { X- i = g_random_int_range(0,5); X- } while (round_entries_sensitive[i] == FALSE || i == round_answer); X- X- round_entries_sensitive[i] = FALSE; X- gtk_widget_set_sensitive(GTK_WIDGET(game_buttons[i]),FALSE); X+ for (i = 0; i < 5; i++) X+ if (round_entries_sensitive[i] && i != round_answer) X+ entries_left++; X X+ if (entries_left == 0) { X+ round_entries_desensitize_timeout_id = -1; X+ return FALSE; X+ } X+ X+ n = g_random_int_range(0, entries_left); X+ for (i = 0; i < 5; i++) X+ if (round_entries_sensitive[i] && i != round_answer) { X+ if (j++ == n) { X+ round_entries_sensitive[i] = FALSE; X+ gtk_widget_set_sensitive(GTK_WIDGET(game_buttons[i]), FALSE); X+ break; X+ } X+ } X+ X return TRUE; X } X END-of-gnome-music-quiz/files/patch-src::mq.c echo x - gnome-music-quiz/Makefile sed 's/^X//' >gnome-music-quiz/Makefile << 'END-of-gnome-music-quiz/Makefile' X# New ports collection makefile for: GNOME Music Quiz X# Date created: 20 Jun 2004 X# Whom: Jean-Yves Lefort <jylefort@brutele.be> X# X# $FreeBSD$ X# X XPORTNAME= gnome-music-quiz XPORTVERSION= 0.1 XCATEGORIES= games audio XMASTER_SITES= http://ishamael.tunkeymicket.com/tarballs/ XDISTNAME= mq-${PORTVERSION} X XMAINTAINER= jylefort@brutele.be XCOMMENT= A game similar to the television show 'Name That Tune' X XRUN_DEPENDS= rhythmbox:${PORTSDIR}/audio/rhythmbox X XUSE_X_PREFIX= yes XUSE_GNOME= gnomeprefix libgnomeui gstreamerplugins XUSE_LIBTOOL_VER= 15 X Xpost-extract: X @${RM} -f \ X ${WRKSRC}/intltool-extract.in \ X ${WRKSRC}/intltool-merge.in \ X ${WRKSRC}/intltool-update.in X @${CP} -f \ X ${LOCALBASE}/share/intltool/intltool-extract.in \ X ${LOCALBASE}/share/intltool/intltool-merge.in \ X ${LOCALBASE}/share/intltool/intltool-update.in \ X ${WRKSRC} X X.include <bsd.port.mk> END-of-gnome-music-quiz/Makefile echo x - gnome-music-quiz/pkg-plist sed 's/^X//' >gnome-music-quiz/pkg-plist << 'END-of-gnome-music-quiz/pkg-plist' Xbin/mq Xshare/gnome/applications/mq.desktop Xshare/gnome/pixmaps/gnome-mq.png END-of-gnome-music-quiz/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040620201510.996E922E28>