Package: goplay
Version: 0.3-1
Severity: wishlist
Tags: patch

Hi,

Could you add a goscience browser that would be of interest to the
Debian Science CDD (http://wiki.debian.org/DebianScience).

Best regards,
Frédéric Lehobey
(Thanks to the Debian Edu worksession held in Extremadura, April 2008)

(Note to Jonas: patch sent again as it seems my previous attempt
yesterday has not reached the BTS.)

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-6-k7 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages goplay depends on:
ii  apt [libapt-pkg-libc6. 0.7.11            Advanced front-end for dpkg
ii  debtags                1.7.5             Enables support for package tags
ii  ept-cache              0.5.17            Commandline tool to search the pac
ii  games-thumbnails       20080227          thumbnails of games in Debian
ii  libc6                  2.7-8             GNU C Library: Shared libraries
ii  libept0                0.5.17            High-level library for managing De
ii  libfltk1.1             1.1.7-7           Fast Light Toolkit - shared librar
ii  libgcc1                1:4.3-20080219-1  GCC support library
ii  libstdc++6             4.3-20080219-1    The GNU Standard C++ Library v3
ii  libxapian15            1.0.5-1           Search engine library
ii  zlib1g                 1:1.2.3.3.dfsg-11 compression library - runtime

goplay recommends no packages.

-- no debconf information
diff --unidirectional-new-file -ru goplay-0.3/debian/control 
goplay-0.3-fdl/debian/control
--- goplay-0.3/debian/control   2008-04-05 20:48:46.000000000 +0000
+++ goplay-0.3-fdl/debian/control       2008-04-05 21:04:20.000000000 +0000
@@ -22,7 +22,8 @@
  and libept as the backend for retrieving the data.
  .
  GoPlay! is also a generic yet simple to use DebTags-based package browser.
- Prepackaged browsers GoLearn!, GoAdmin!, GoNet!, GoOffice!, GoSafe!, and
- GoWeb! show applications (and for some of them also documentation) packages
- related to education, administration, network, office, safety and web.  You
- can also roll your own custom browsers using commandline options.
+ Prepackaged browsers GoLearn!, GoAdmin!, GoNet!, GoOffice!, GoSafe!, GoWeb!
+ and GoScience! show applications (and for some of them also documentation)
+ packages related to education, administration, network, office, safety, web
+ and science.  You can also roll your own custom browsers using commandline
+ options.
diff --unidirectional-new-file -ru goplay-0.3/debian/goplay.links 
goplay-0.3-fdl/debian/goplay.links
--- goplay-0.3/debian/goplay.links      2008-04-05 20:48:46.000000000 +0000
+++ goplay-0.3-fdl/debian/goplay.links  2008-04-05 20:25:05.000000000 +0000
@@ -4,15 +4,18 @@
 usr/bin/goplay usr/bin/gooffice
 usr/bin/goplay usr/bin/gosafe
 usr/bin/goplay usr/bin/goweb
+usr/bin/goplay usr/bin/goscience
 usr/share/pixmaps/goplay.xpm usr/share/pixmaps/golearn.xpm
 usr/share/pixmaps/goplay.xpm usr/share/pixmaps/goadmin.xpm
 usr/share/pixmaps/goplay.xpm usr/share/pixmaps/gonet.xpm
 usr/share/pixmaps/goplay.xpm usr/share/pixmaps/gooffice.xpm
 usr/share/pixmaps/goplay.xpm usr/share/pixmaps/gosafe.xpm
 usr/share/pixmaps/goplay.xpm usr/share/pixmaps/goweb.xpm
+usr/share/pixmaps/goplay.xpm usr/share/pixmaps/goscience.xpm
 usr/share/man/man1/goplay.1.gz usr/share/man/man1/golearn.1.gz
 usr/share/man/man1/goplay.1.gz usr/share/man/man1/goadmin.1.gz
 usr/share/man/man1/goplay.1.gz usr/share/man/man1/gonet.1.gz
 usr/share/man/man1/goplay.1.gz usr/share/man/man1/gooffice.1.gz
 usr/share/man/man1/goplay.1.gz usr/share/man/man1/gosafe.1.gz
 usr/share/man/man1/goplay.1.gz usr/share/man/man1/goweb.1.gz
+usr/share/man/man1/goplay.1.gz usr/share/man/man1/goscience.1.gz
diff --unidirectional-new-file -ru goplay-0.3/debian/goscience.desktop 
goplay-0.3-fdl/debian/goscience.desktop
--- goplay-0.3/debian/goscience.desktop 1970-01-01 00:00:00.000000000 +0000
+++ goplay-0.3-fdl/debian/goscience.desktop     2008-04-05 20:22:15.000000000 
+0000
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Encoding=UTF-8
+Name=GoScience!
+GenericName=goscience
+Comment=Science packages browser
+Icon=goscience
+Exec=goscience
+Terminal=false
+Categories=Utility;
+MimeType=
diff --unidirectional-new-file -ru goplay-0.3/goplay.1 goplay-0.3-fdl/goplay.1
--- goplay-0.3/goplay.1 2008-02-18 19:58:15.000000000 +0000
+++ goplay-0.3-fdl/goplay.1     2008-04-05 20:36:14.000000000 +0000
@@ -1,4 +1,4 @@
-.TH GOPLAY 1 "February 18, 2008" "0.3"
+.TH GOPLAY 1 "April 05, 2008" "0.3"
 .SH NAME
 goplay \- Debian game browser
 .SH SYNOPSIS
@@ -32,7 +32,7 @@
 enable debugging output (including verbose output).
 .TP
 .B \-\-go=\fIwhere\fP
-change the interface flavour. Available flavours are: play, learn, admin, net, 
office, safe, web.
+change the interface flavour. Available flavours are: play, learn, admin, net, 
office, safe, web, science.
 .TP
 .B \-\-primary=\fIfacet\fP
 use the given facet instead of 'games'.
diff --unidirectional-new-file -ru goplay-0.3/src/GamesOptions.h 
goplay-0.3-fdl/src/GamesOptions.h
--- goplay-0.3/src/GamesOptions.h       2008-02-18 19:33:45.000000000 +0000
+++ goplay-0.3-fdl/src/GamesOptions.h   2008-04-05 20:27:50.000000000 +0000
@@ -51,7 +51,7 @@
                                                "enable debugging output 
(including verbose output)");
                gowhere = add<StringOption>("go", 0, "go", "where",
                                                "change the interface flavour. "
-                                               "Available flavours are: play, 
learn, admin, net, office, safe, web");
+                                               "Available flavours are: play, 
learn, admin, net, office, safe, web, science");
                mainFacet = add<StringOption>("primary", 0, "primary", "facet",
                                                "use the given facet instead of 
'games'");
                secondaryFacet = add<StringOption>("secondary", 0, "secondary", 
"facet",
diff --unidirectional-new-file -ru goplay-0.3/src/goplay.cpp 
goplay-0.3-fdl/src/goplay.cpp
--- goplay-0.3/src/goplay.cpp   2008-02-18 19:33:45.000000000 +0000
+++ goplay-0.3-fdl/src/goplay.cpp       2008-04-05 19:02:43.000000000 +0000
@@ -397,6 +397,12 @@
                        engine.globalFilter = 
Xapian::Query(Xapian::Query::OP_OR,
                                                                                
Xapian::Query("XTrole::documentation"),
                                                                                
Xapian::Query("XTrole::program"));
+               } else if (wibble::str::endsWith(argv[0], "science") || 
opts.gowhere->stringValue() == "science") {
+                       engine.mainFacet = "field";
+                       engine.secondaryFacet = "interface";
+                       engine.globalFilter = 
Xapian::Query(Xapian::Query::OP_OR,
+                                                                               
Xapian::Query("XTrole::documentation"),
+                                                                               
Xapian::Query("XTrole::program"));
                } else {
                        engine.mainFacet = "game";
                        engine.secondaryFacet = "interface";
_______________________________________________
Pkg-games-devel mailing list
Pkg-games-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-devel

Reply via email to