debian/0000755000000000000000000000000012213721773007173 5ustar debian/watch0000644000000000000000000000132012171102115010202 0ustar # Example watch control file for uscan # Rename this file to "watch" and then you can run the "uscan" command # to check for upstream updates and more. # See uscan(1) for format # Compulsory line, this is a version 3 file version=3 # Uncomment to examine a Webpage # #http://www.example.com/downloads.php gcstar-(.*)\.tar\.gz # Uncomment to examine a Webserver directory http://download.gna.org/gcstar/gcstar-([\d\.]+)\.tar\.gz # Uncommment to examine a FTP server #ftp://ftp.example.com/pub/gcstar-(.*)\.tar\.gz debian uupdate # Uncomment to use Roland's hack for sourceforge based projects - YMMV! #http://people.debian.org/~lolando/sfdlr.php?project=gcstar gcstar-([\d.]*).tar.gz debian/gcstar.install0000644000000000000000000000023512171102115012030 0ustar share/applications/gcstar.desktop /usr/share/applications/ debian/gcstar_logo.xpm /usr/share/pixmaps/ share/applications/gcstar.xml /usr/share/mime/packages debian/gcstar.links0000644000000000000000000000104312171102115011500 0ustar usr/share/gcstar/icons/gcstar_16x16.png usr/share/icons/hicolor/16x16/apps/gcstar.png usr/share/gcstar/icons/gcstar_24x24.png usr/share/icons/hicolor/24x24/apps/gcstar.png usr/share/gcstar/icons/gcstar_32x32.png usr/share/icons/hicolor/32x32/apps/gcstar.png usr/share/gcstar/icons/gcstar_48x48.png usr/share/icons/hicolor/48x48/apps/gcstar.png usr/share/gcstar/icons/gcstar_64x64.png usr/share/icons/hicolor/64x64/apps/gcstar.png usr/share/fonts/truetype/ttf-liberation/LiberationSans-Regular.ttf usr/share/gcstar/fonts/LiberationSans-Regular.ttf debian/rules0000755000000000000000000000325412171104364010251 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. export DH_VERBOSE=0 export LANG=C export LC_ALL=C build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: dh_testdir touch build-stamp clean: clean1 clean1: dh_testdir dh_testroot rm -f build-stamp configure-stamp dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs ./install --text --prefix=$(CURDIR)/debian/gcstar/usr chmod +x debian/gcstar/usr/share/gcstar/xslt/applyXSLT.pl #this is also in the copyright file -rm debian/gcstar/usr/share/gcstar/LICENSE -rm debian/gcstar/usr/share/gcstar/fonts/License.txt -rm debian/gcstar/usr/share/gcstar/fonts/COPYING #we use the packages ttf-liberation -rm debian/gcstar/usr/share/gcstar/fonts/LiberationSans-Regular.ttf # Build architecture-independent files here. binary-arch: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-indep: build install dh_testdir dh_testroot dh_installchangelogs CHANGELOG dh_installdocs dh_installexamples dh_lintian dh_install dh_installmenu dh_installman dh_link dh_strip dh_compress dh_fixperms dh_perl dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/gcstar.lintian-overrides0000644000000000000000000000020512171102115014015 0ustar gcstar: script-not-executable ./usr/share/gcstar/helpers/xdg-open gcstar: script-not-executable ./usr/share/gcstar/xslt/applyXSLT.pl debian/menu0000644000000000000000000000034712171102115010050 0ustar ?package(gcstar):needs="X11" \ section="Applications/Data Management" \ hints="Gnome" \ title="GCstar" \ longtitle="Personal Collections Manager" \ command="/usr/bin/gcstar" \ icon="/usr/share/pixmaps/gcstar_logo.xpm" debian/gcstar_logo.xpm0000644000000000000000000001427612171102115012220 0ustar /* XPM */ static char *gcstar_logo[] = { /* columns rows colors chars-per-pixel */ "32 32 253 2", " c #05101A", ". c #195082", "X c #255683", "o c #2772B9", "O c #2872B9", "+ c #1A84EC", "@ c #1F89ED", "# c #2F85D5", "$ c #2A84DA", "% c #3884CC", "& c #3D88C8", "* c #3185D4", "= c #3189DD", "- c #388ED0", "; c #3B8EDF", ": c #3D91CC", "> c #2385E2", ", c #2087ED", "< c #238BED", "1 c #2887E1", "2 c #2C8AE1", "3 c #2A8DED", "4 c #2391ED", "5 c #2B91ED", "6 c #328EE6", "7 c #3293ED", "8 c #3399EE", "9 c #3E96E5", "0 c #3995EC", "q c #3B98E6", "w c #3C99ED", "e c #3799F0", "r c #3D9AF0", "t c #3FA0F1", "y c #4C86B8", "u c #5086B4", "i c #669D9E", "p c #738EA2", "a c #6DA09A", "s c #75A28D", "d c #71A298", "f c #60A0B6", "g c #4085C5", "h c #4389C9", "j c #4695CB", "k c #439ADF", "l c #4A9CDD", "z c #4095E2", "x c #459BE5", "c c #429CEC", "v c #4B9DE4", "b c #499EEA", "n c #409AF0", "m c #519DE1", "M c #509FE8", "N c #4EA0DE", "B c #55A2D3", "V c #51A0D9", "C c #5BA3D2", "Z c #5BA4DC", "A c #46A0ED", "S c #4CA1E4", "D c #4CA1EC", "F c #44A2F0", "G c #4BA3F0", "H c #52A1E3", "J c #53A5EC", "K c #5BA5E5", "L c #59A7EC", "P c #5EA9E5", "I c #5BA9EB", "U c #51A5F1", "Y c #56A9F2", "T c #59ACF2", "R c #62A7CC", "E c #60A7D3", "W c #61A5DE", "Q c #62A8D0", "! c #62A9D8", "~ c #6BADD5", "^ c #6AA9DC", "/ c #71AAD8", "( c #74B1D5", ") c #73B2DB", "_ c #7AB4D4", "` c #61A6E1", "' c #62A9E5", "] c #63ADEA", "[ c #69ADE0", "{ c #61ADF2", "} c #68AFF2", "| c #69B0EA", " . c #63B2F3", ".. c #6CB5F3", "X. c #6DB8F4", "o. c #75B4E4", "O. c #70B7F4", "+. c #73BAF4", "@. c #7AB7F0", "#. c #7DBEF4", "$. c #7DC0F5", "%. c #8C9576", "&. c #899379", "*. c #8AA277", "=. c #90A671", "-. c #AB8F55", ";. c #A5945B", ":. c #B28850", ">. c #BE9D41", ",. c #ADAB53", "<. c #BEA141", "1. c #B9A846", "2. c #BFBB41", "3. c #BBBA4A", "4. c #B4AF7E", "5. c #C1AE3E", "6. c #D6AF2D", "7. c #DCA322", "8. c #DEA12B", "9. c #ED9911", "0. c #FD8900", "q. c #FD8E0A", "w. c #F98F11", "e. c #F1950F", "r. c #FD9200", "t. c #FD9C00", "y. c #F79219", "u. c #FD9313", "i. c #E18F2B", "p. c #EE9D37", "a. c #F49421", "s. c #F09B32", "d. c #E2AF1C", "f. c #ECA118", "g. c #EABF13", "h. c #FDA300", "j. c #FDAC00", "k. c #FDB300", "l. c #FDBB00", "z. c #FDA133", "x. c #D19242", "c. c #D6A059", "v. c #D4BB5E", "b. c #C9A675", "n. c #DDB67A", "m. c #DDB87F", "M. c #E6A754", "N. c #FDAC48", "B. c #FBAF55", "V. c #FDB646", "C. c #FDBB4B", "Z. c #FDBD5A", "A. c #FCB661", "S. c #FDBA60", "D. c #DBC523", "F. c #EFCC0E", "G. c #EBC013", "H. c #E8C816", "J. c #FDC300", "K. c #FDCC00", "L. c #FDD000", "P. c #F7CA47", "I. c #FDC55A", "U. c #F7D357", "Y. c #F8C66D", "T. c #F9CC6C", "R. c #F9CC78", "E. c #F7D873", "W. c #909083", "Q. c #9FAF90", "!. c #8EB4A1", "~. c #87B3BE", "^. c #AEA488", "/. c #A5AF9E", "(. c #B0A185", "). c #BDBB9B", "_. c #87A7C2", "`. c #88B4CC", "'. c #8BB8CC", "]. c #80B7D9", "[. c #95BCC9", "{. c #81BDF3", "}. c #BAC7BD", "|. c #83C3F6", " X c #89C4F5", ".X c #89C8F6", "XX c #9AC6E5", "oX c #96CBF7", "OX c #94CDF8", "+X c #9ACCF5", "@X c #96D0F8", "#X c #9BD3F8", "$X c #A0C6DD", "%X c #A8CCD1", "&X c #BDC2C5", "*X c #B3D3D3", "=X c #A2CAE9", "-X c #A4D3F2", ";X c #A0D5F8", ":X c #A6D9F9", ">X c #ADD4F5", ",X c #A9D6F8", "XU 4 S LXLX", "LXLXr < U :XSXy.hXVXxXnXvXnXxXcXcXcXcXcXvXBXBXVXmX'.KX#.4 q LXLX", "LXLX6 < { 1XiXw.hXVXgXMXbXFXaXnXvXcXcXcXBXBXVXVXVXyXJX,X4 5 LXLX", "LXLX1 , ..8XwX0.Z.fXR.Y.[.) [ /.V.C.I.T.%X*XxXBXVXnXX5 5 LXLX", "LXLX6 , b 1XpXy.0.0.0.0.-.# > &.h.j.k.d.> > g.K.K.H.+X X8 5 LXLX", "LXLXe < n oXSXs.0.0.r.r.9.;.%.7.j.k.k.l.*.*.K.K.K.3.>X+.5 w LXLX", "LXLXr < 3 O.DXwXr.r.t.t.h.h.j.k.l.l.l.J.K.K.L.L.H.!.@XY 5 N LXLX", "LXLXb 3 , U on Sat, 14 Okt 2006 10:26:18 +0200. It was downloaded from http://download.gna.org/gcstar/ Copyright Holder: © 2005-2009 Tian License: This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. debian/docs0000644000000000000000000000003312171105251010030 0ustar README README.fr CHANGELOG debian/source/0000755000000000000000000000000012171103246010463 5ustar debian/source/format0000644000000000000000000000001412171103246011671 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012200562765010622 5ustar debian/patches/01-set_usr_lib.patch0000644000000000000000000000303712171103454014367 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 01-set_usr_lib.dpatch by Alexander Wirt ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: No description. @DPATCH@ Index: gcstar/bin/gcstar =================================================================== --- gcstar.orig/bin/gcstar 2013-07-15 19:35:06.351921136 -0400 +++ gcstar/bin/gcstar 2013-07-15 19:35:06.347921136 -0400 @@ -44,9 +44,9 @@ use POSIX qw(locale_h); $ENV{GCS_BIN_DIR} = $RealBin; -($ENV{GCS_LIB_DIR} = $ENV{GCS_BIN_DIR}) =~ s/bin\/?$/lib\/gcstar/; +($ENV{GCS_LIB_DIR} = $ENV{GCS_BIN_DIR}) =~ s/bin\/?$/share\/gcstar\/lib/; ($ENV{GCS_SHARE_DIR} = $ENV{GCS_BIN_DIR}) =~ s/bin\/?$/share\/gcstar/; -use lib File::Spec->canonpath("$RealBin/../lib/gcstar"); +use lib File::Spec->canonpath("$RealBin/../share/gcstar/lib"); if (exists $ENV{PAR_TEMP}) { unshift @INC, "$RealBin/../lib/gcstar"; Index: gcstar/install =================================================================== --- gcstar.orig/install 2013-07-15 19:35:06.351921136 -0400 +++ gcstar/install 2013-07-15 19:35:06.347921136 -0400 @@ -255,8 +255,8 @@ chmod 0755, $baseDir.'/bin/'.$binName; #Copying lib - verbosePrint $lang{InstallCopyDirectory}, $baseDir.'/lib/gcstar'; - recursiveCopy('lib/gcstar', $baseDir.'/lib/gcstar'); + verbosePrint $lang{InstallCopyDirectory}, $baseDir.'/share/gcstar/lib'; + recursiveCopy('lib/gcstar', $baseDir.'/share/gcstar/lib'); #Copying share verbosePrint $lang{InstallCopyDirectory}, $baseDir.'/share/gcstar'; debian/patches/12_fix_gamespot_images.patch0000644000000000000000000000174712200562765016170 0ustar Description: fix GameSport games plugin box image loading Author: Marc Deslauriers Forwarded: http://forums.gcstar.org/viewtopic.php?id=18073 Caution: this patch contains CRLF terminators, be careful when editing. Index: gcstar-1.7.0/lib/gcstar/GCPlugins/GCgames/GCGameSpot.pm =================================================================== --- gcstar-1.7.0.orig/lib/gcstar/GCPlugins/GCgames/GCGameSpot.pm 2013-08-07 16:53:27.752460660 -0400 +++ gcstar-1.7.0/lib/gcstar/GCPlugins/GCgames/GCGameSpot.pm 2013-08-07 20:19:30.932342756 -0400 @@ -102,7 +102,7 @@ { $self->{curInfo}->{boxpic} = ' ' if $attr->{src} =~ /no_preview/; - if ((! $self->{curInfo}->{boxpic}) && ($attr->{src} =~ /[^xo]boxs[^c]/)) + if ((! $self->{curInfo}->{boxpic}) && ($attr->{src} =~ /\/box\//)) { $self->{curInfo}->{boxpic} = $attr->{src}; } debian/patches/02gzip-manpage.patch0000644000000000000000000000126512171103467014365 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 02gzip-manpage.dpatch by Alexander Wirt ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: No description. @DPATCH@ Index: gcstar/install =================================================================== --- gcstar.orig/install 2013-07-15 19:35:15.871921435 -0400 +++ gcstar/install 2013-07-15 19:35:15.867921434 -0400 @@ -250,7 +250,7 @@ mkpath $baseDir.'/man/man1'; my $manPage = "$baseDir/man/man1/$binName.1"; copy 'man/gcstar.1', $manPage; - `gzip -f $manPage 2>&1 >/dev/null`; + `gzip -f -9 $manPage 2>&1 >/dev/null`; chmod 0755, $baseDir.'/bin/'.$binName; debian/patches/11_fix_gamespot_plugin.patch0000644000000000000000000002643612200531637016214 0ustar Description: fix GameSpot games plugin Origin: upstream, http://svn.gna.org/viewcvs/gcstar?view=revision&revision=2241 Caution: this patch contains CRLF terminators, be careful when editing. Index: gcstar-1.7.0/lib/gcstar/GCPlugins/GCgames/GCGameSpot.pm =================================================================== --- gcstar-1.7.0.orig/lib/gcstar/GCPlugins/GCgames/GCGameSpot.pm 2011-11-26 05:46:14.000000000 -0500 +++ gcstar-1.7.0/lib/gcstar/GCPlugins/GCgames/GCGameSpot.pm 2013-08-07 16:51:39.584461692 -0400 @@ -2,7 +2,7 @@ ################################################### # -# Copyright 2005-2011 Christian Jodar +# Copyright 2005-2013 Christian Jodar # # This file is part of GCstar. # @@ -40,21 +40,30 @@ $self->{inside}->{$tagname}++; if ($self->{parsingList}) { - if ($tagname eq 'div') + if (($tagname eq 'div') && ($attr->{class} eq 'result_title')) { - $self->{isGame} = 1 - if $attr->{class} =~ /result_title/; + $self->{isGame} = 1; } - elsif ($tagname eq 'tpfdatetpf') - { - $self->{isDate} = 1; - } - elsif (($tagname eq 'a') && ($self->{isGame})) + elsif (($tagname eq 'a') && ($self->{isGame}) && ($self->{isName} eq 0)) { $self->{itemIdx}++; $self->{itemsList}[$self->{itemIdx}]->{url} = $attr->{href}; $self->{isName} = 1; } + elsif (($tagname eq 'span') && ($attr->{class} eq 'release')) + { + $self->{isDate} = 1; + } + elsif (($tagname eq 'span') && ($attr->{class} eq 'platforms')) + { + $self->{isPlatform} = 1; + } + elsif (($tagname eq 'div') && ($attr->{class} eq 'clear') && ($self->{isGame})) + { + $self->{isGame} = 0; + $self->{isEnd} = 1; + $self->{isName} = 0; + } } elsif ($self->{parsingTips}) { @@ -97,17 +106,29 @@ { $self->{curInfo}->{boxpic} = $attr->{src}; } - if ($attr->{src} =~ /thumb/) + if ($attr->{src} =~ /thumb([0-9])/) { - my $pic = $attr->{src}; - $pic =~ s/thumb00([0-9])/screen00$1/; - if ($1 && ($1 <= 2)) + if (! $self->{curInfo}->{screenshot1}) + { + $self->{curInfo}->{screenshot1} = $attr->{src}; + $self->{curInfo}->{screenshot1} =~ s|thumb|screen|; + } + elsif (! $self->{curInfo}->{screenshot2}) { - $self->{curInfo}->{'screenshot'.$1} = $pic - if ! $self->{curInfo}->{'screenshot'.$1}; + $self->{curInfo}->{screenshot2} = $attr->{src}; + $self->{curInfo}->{screenshot2} =~ s|thumb|screen|; } } } + elsif ($tagname eq 'tpffiltertpf') + { + my $found = index($attr->{activefilter},"'site':'"); + if ( $found >= 0 ) + { + $self->{curInfo}->{platform} = substr($attr->{activefilter}, $found +length('\'site\':\''),length($attr->{activefilter})- $found -length('\'site\':\'')); + $self->{curInfo}->{platform} = substr($self->{curInfo}->{platform}, 0,index($self->{curInfo}->{platform},"'")); + } + } elsif (($tagname eq 'div') && ($attr->{class} eq 'boxshot')) { $self->{isBox} = 1; @@ -116,6 +137,7 @@ { my $html = $self->loadPage($self->getItemUrl($attr->{href}), 0, 1); my $found = index($html,"id=\"main_image\" src=\""); + my $found2 = index($html,"img=back"); if ( $found >= 0 ) { $html = substr($html, $found +length('id="main_image" src="'),length($html)- $found -length('id="main_image" src="')); @@ -126,8 +148,11 @@ { $self->{curInfo}->{boxpic} = $array[0]; } - $self->{curInfo}->{backpic} = $array[0]; - $self->{curInfo}->{backpic} =~ s/_front/_back/; + if ( $found2 >= 0 ) + { + $self->{curInfo}->{backpic} = $array[0]; + $self->{curInfo}->{backpic} =~ s/_front/_back/; + } } $self->{isBox} = 0; } @@ -135,11 +160,11 @@ { $self->{isName} = 1 if ! $self->{curInfo}->{name}; } - elsif (($tagname eq 'meta') && ($attr->{name} eq 'description')) + elsif (($tagname eq 'meta') && ($attr->{property} eq 'og:description')) { $self->{curInfo}->{description} = $attr->{content}; } - elsif (($tagname eq 'li') && ($attr->{class} =~ /activeFilter/)) + elsif (($tagname eq 'div') && ($attr->{class} eq 'availPlats')) { $self->{curInfo}->{exclusive} = 0; } @@ -188,7 +213,7 @@ { $self->{isReleased} = 1; } - elsif (($tagname eq 'a') && ($self->{isReleased} eq 1)) + elsif (($tagname eq 'span') && ($attr->{class} eq 'data') && ($self->{isReleased} eq 1)) { $self->{isReleased} = 2; } @@ -204,14 +229,6 @@ my ($self, $tagname) = @_; $self->{inside}->{$tagname}--; - if ($self->{parsingList}) - { - $self->{isGame} = 0 - if ($tagname eq 'div'); - } - elsif ($self->{parsingTips}) - { - } } sub text @@ -220,20 +237,53 @@ if ($self->{parsingList}) { - if ($self->{isName}) + if ($self->{isName} eq 1) { - $origtext =~ /^(.*?)\s*\((.*?)\)\s*$/; - $self->{itemsList}[$self->{itemIdx}]->{name} = $1; - $self->{itemsList}[$self->{itemIdx}]->{platform} = $2; - $self->{itemsList}[$self->{itemIdx}]->{url} = $self->{itemsList}[$self->{itemIdx}]->{url} . 'tpfplatformtpf' . $self->{itemsList}[$self->{itemIdx}]->{platform}; - $self->{isName} = 0; + $self->{itemsList}[$self->{itemIdx}]->{name} = $origtext; + $self->{isName} = 2; + } + elsif ($self->{isPlatform}) + { + $self->{itemsList}[$self->{itemIdx}]->{platform} = $origtext; + $self->{isPlatform} = 0; } elsif ($self->{isDate}) { - $origtext =~ /^\s*Release Date:\s*(.*?)\s*$/ms; - $self->{itemsList}[$self->{itemIdx}]->{released} = $1; + $self->{itemsList}[$self->{itemIdx}]->{released} = $origtext; $self->{isDate} = 0; } + elsif ($self->{isEnd}) + { + my @array = split(/,/,$self->{itemsList}[$self->{itemIdx}]->{platform}); + my $element; + + my $SaveName = $self->{itemsList}[$self->{itemIdx}]->{name}; + my $SaveDate = $self->{itemsList}[$self->{itemIdx}]->{released}; + my $SaveUrl = $self->{itemsList}[$self->{itemIdx}]->{url}; + $self->{itemIdx}--; + + foreach $element (@array) + { + # Enleve les blancs en debut de chaine + $element =~ s/^\s+//; + # Enleve les blancs en fin de chaine + $element =~ s/\s+$//; + # Pb : pas les memes noms de console entre l'affichage et l'url du jeu + $element =~ s/X360/XBOX360/i; + $element =~ s/WIIU/WII-U/i; + $element =~ s/AND/android/i; + $element =~ s/WINM/windows-mobile/i; + $element =~ s/GC/gamecube/i; + $element =~ s/FDS/famicomds/i; + + $self->{itemIdx}++; + $self->{itemsList}[$self->{itemIdx}]->{name} = $SaveName; + $self->{itemsList}[$self->{itemIdx}]->{released} = $SaveDate; + $self->{itemsList}[$self->{itemIdx}]->{url} = $SaveUrl . 'platform/' . $element .'/'; + $self->{itemsList}[$self->{itemIdx}]->{platform} = $element; + } + $self->{isEnd} = 0; + } } elsif ($self->{parsingTips}) { @@ -298,7 +348,6 @@ { $origtext =~ s/\n//g; $self->{curInfo}->{name} = $origtext; - $self->{curInfo}->{platform} = $self->{url_plateforme}; $self->{curInfo}->{exclusive} = 1; $self->{isName} = 0; } @@ -360,6 +409,8 @@ $self->{isName} = 0; $self->{isGame} = 0; $self->{isDate} = 0; + $self->{isPlatform} = 0; + $self->{isEnd} = 0; $self->{isCheat} = 0; $self->{isDesc} = 0; $self->{isTip} = 0; @@ -372,10 +423,7 @@ $self->{isReleased} = 0; $self->{isPlayers} = 0; $self->{isBox} = 0; - $self->{isExclu} = 0; - $self->{url_plateforme} = ''; $self->{urlTips} = ""; - $self->{SaveUrl} = ""; return $self; } @@ -393,11 +441,12 @@ } elsif ($self->{parsingList}) { - $html =~ s|Release Date|Release Date|g; } else { - my $found = index($html,"Similar Games"); + $html =~ s|Filter activeFilter|">Games You May Like<"); if ( $found >= 0 ) { $html = substr($html, 0, $found); @@ -440,19 +489,14 @@ my ($self, $word) = @_; #return 'http://www.gamespot.com/search.html?qs='.$word.'&sub=g&stype=11&type=11'; - return 'http://www.gamespot.com/pages/search/solr_search_ajax.php?q='.$word.'&type=game&offset=0&tags_only=false&sort=false'; + #return 'http://www.gamespot.com/pages/search/solr_search_ajax.php?q='.$word.'&type=game&offset=0&tags_only=false&sort=false'; + return 'http://www.gamespot.com/search/?qs='.$word.'&filter=summary'; #return 'http://www.gamespot.com/search.html?qs=' .$word. '&tag=masthead%3Bsearch'; } sub getItemUrl { my ($self, $url) = @_; - my $found = index($url,"tpfplatformtpf"); - if ( $found >= 0 ) - { - $self->{url_plateforme} = substr($url, $found +length('tpfplatformtpf'),length($url)- $found -length('tpfplatformtpf')); - $url = substr($url, 0,$found); - } return 'http://www.gamespot.com' . $url if $url !~ /gamespot\.com/; debian/patches/series0000644000000000000000000000026412200561756012040 0ustar 01-set_usr_lib.patch 02gzip-manpage.patch 03_change_default_browser.patch 07_fix_manpath.patch 10_fix_isbndb_plugin.patch 11_fix_gamespot_plugin.patch 12_fix_gamespot_images.patch debian/patches/07_fix_manpath.patch0000644000000000000000000000220012171103441014426 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 07_fix_manpath.dpatch by Alexander Wirt ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: No description. @DPATCH@ Index: gcstar/install =================================================================== --- gcstar.orig/install 2013-07-15 19:34:22.235919754 -0400 +++ gcstar/install 2013-07-15 19:34:22.231919754 -0400 @@ -107,7 +107,7 @@ } unlink $baseDir.'/bin/'.$binName; - unlink $baseDir.'/man/man1/'.$binName.'.1.gz'; + unlink $baseDir.'share/man/man1/'.$binName.'.1.gz'; # remove menu and mime items @@ -246,9 +246,9 @@ mkpath $baseDir.'/bin'; copy 'bin/gcstar', $baseDir.'/bin/'.$binName; - verbosePrint $lang{InstallCopyDirectory}, $baseDir.'/man/man1'; - mkpath $baseDir.'/man/man1'; - my $manPage = "$baseDir/man/man1/$binName.1"; + verbosePrint $lang{InstallCopyDirectory}, $baseDir.'/share/man/man1'; + mkpath $baseDir.'/share/man/man1'; + my $manPage = "$baseDir/share/man/man1/$binName.1"; copy 'man/gcstar.1', $manPage; `gzip -f -9 $manPage 2>&1 >/dev/null`; debian/patches/03_change_default_browser.patch0000644000000000000000000000153512171103506016634 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 03_change_default_browser.dpatch by Alexander Wirt ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: No description. @DPATCH@ Index: gcstar/lib/gcstar/GCOptions.pm =================================================================== --- gcstar.orig/lib/gcstar/GCOptions.pm 2013-07-15 19:35:29.111921849 -0400 +++ gcstar/lib/gcstar/GCOptions.pm 2013-07-15 19:35:29.103921849 -0400 @@ -127,7 +127,7 @@ autosave => 1, noautoload => 0, programs => "system", - browser => "firefox", + browser => "x-www-browser", player => "mplayer", audio => "xmms", imageEditor => "gimp", debian/patches/10_fix_isbndb_plugin.patch0000644000000000000000000002311012200562742015620 0ustar Description: fix ISBNdb book plugin Author: Marc Deslauriers Forwarded: http://forums.gcstar.org/viewtopic.php?id=18072 Index: gcstar-1.7.0/lib/gcstar/GCPlugins/GCbooks/GCISBNdb.pm =================================================================== --- gcstar-1.7.0.orig/lib/gcstar/GCPlugins/GCbooks/GCISBNdb.pm 2011-07-17 08:23:00.000000000 -0400 +++ gcstar-1.7.0/lib/gcstar/GCPlugins/GCbooks/GCISBNdb.pm 2013-08-07 16:47:41.752463960 -0400 @@ -42,49 +42,51 @@ if ($self->{parsingList}) { - if (($tagname eq 'div') && ($attr->{class} eq 'bookInfo') && ($self->{searchField} ne 'isbn')) + if (($tagname eq 'div') && ($attr->{class} eq 'bookSnippetBasic')) { $self->{isBook} = 1 ; } - elsif (($tagname eq 'a') && ( index($attr->{href},"/d/book/") >= 0) && ($self->{isBook})) + elsif (($tagname eq 'a') && ( index($attr->{href},"/book/") >= 0) && ($self->{isBook})) { $self->{itemIdx}++; - $self->{itemsList}[$self->{itemIdx}]->{url} = "http://isbndb.com" . $attr->{href}; + $self->{itemsList}[$self->{itemIdx}]->{url} = $attr->{href}; + } + elsif (($tagname eq 'h1') && ($self->{isBook})) + { $self->{isTitle} = 1 ; } - elsif (($tagname eq 'a') && ( index($attr->{href},"/d/person/") >= 0) && ($self->{isBook})) + elsif (($tagname eq 'a') && ( index($attr->{href},"/author/") >= 0) && ($self->{isBook})) { $self->{isAuthor} = 1 ; } - elsif (($tagname eq 'a') && ( index($attr->{href},"/d/publisher/") >= 0) && ($self->{isBook})) + elsif (($tagname eq 'a') && ( index($attr->{href},"/publisher/") >= 0) && ($self->{isBook})) { $self->{isPublisher} = 1 ; } - elsif (($tagname eq 'a') && ( index($attr->{onclick},"isbndbTrackBuy") >= 0) && ($self->{itemIdx} eq '-1')) - { - $self->{itemIdx}++; - $self->{itemsList}[$self->{itemIdx}]->{url} = $self->{loadedUrl} ; - } - elsif (($tagname eq 'span') && ($attr->{class} eq 'inactive')) + elsif ($tagname eq 'span') { $self->{isBook} = 0 ; } } else { - if ($tagname eq 'title') + if (($tagname eq 'div') && ($attr->{class} eq 'bookSnippetBasic')) + { + $self->{isBook} = 1 ; + } + if (($tagname eq 'h1') && ($self->{isBook})) { $self->{isTitle} = 1 ; } - elsif (($tagname eq 'a') && ( index($attr->{href},"/d/person/") >= 0)) + elsif (($tagname eq 'a') && ( index($attr->{href},"/author/") >= 0)) { $self->{isAuthor} = 1 ; } - elsif (($tagname eq 'a') && ( index($attr->{href},"/d/publisher/") >= 0)) + elsif (($tagname eq 'a') && ( index($attr->{href},"/publisher/") >= 0)) { $self->{isPublisher} = 1 ; } - elsif (($tagname eq 'a') && ( index($attr->{href},"/c/Library_Shelves/Dewey") >= 0)) + elsif (($tagname eq 'a') && ( index($attr->{href},"/subject/") >= 0)) { $self->{isGenre} = 1 ; } @@ -104,6 +106,10 @@ $self->{curInfo}->{cover} = $array[0]; } } + elsif (($tagname eq 'div') && ($attr->{id} eq 'rightColumn')) + { + $self->{isBook} = 0 ; + } } } @@ -127,14 +133,34 @@ } elsif ($self->{isAuthor}) { + my @nom_prenom = split(/,/,$origtext); + # Enleve les blancs en debut de chaine + $nom_prenom[0] =~ s/^\s//; + $nom_prenom[1] =~ s/^\s//; + # Enleve les blancs en fin de chaine + $nom_prenom[0] =~ s/\s+$//; + $nom_prenom[1] =~ s/\s+$//; if ($self->{itemsList}[$self->{itemIdx}]->{authors} eq '') { - $self->{itemsList}[$self->{itemIdx}]->{authors} = $origtext; + if ($nom_prenom[1] ne '') + { + $self->{itemsList}[$self->{itemIdx}]->{authors} = $nom_prenom[1] ." " . $nom_prenom[0]; + } + else + { + $self->{itemsList}[$self->{itemIdx}]->{authors} = $nom_prenom[0]; + } } else { - $self->{itemsList}[$self->{itemIdx}]->{authors} .= ', '; - $self->{itemsList}[$self->{itemIdx}]->{authors} .= $origtext; + if ($nom_prenom[1] ne '') + { + $self->{itemsList}[$self->{itemIdx}]->{authors} .= ", " . $nom_prenom[1] ." " . $nom_prenom[0]; + } + else + { + $self->{itemsList}[$self->{itemIdx}]->{authors} .= ", " . $nom_prenom[0]; + } } $self->{isAuthor} = 0 ; } @@ -157,8 +183,35 @@ } elsif ($self->{isAuthor}) { - $self->{curInfo}->{authors} .= $origtext; - $self->{curInfo}->{authors} .= ","; + my @nom_prenom = split(/,/,$origtext); + # Enleve les blancs en debut de chaine + $nom_prenom[0] =~ s/^\s//; + $nom_prenom[1] =~ s/^\s//; + # Enleve les blancs en fin de chaine + $nom_prenom[0] =~ s/\s+$//; + $nom_prenom[1] =~ s/\s+$//; + if ($self->{curInfo}->{authors} eq '') + { + if ($nom_prenom[1] ne '') + { + $self->{curInfo}->{authors} = $nom_prenom[1] ." " . $nom_prenom[0]; + } + else + { + $self->{curInfo}->{authors} = $nom_prenom[0]; + } + } + else + { + if ($nom_prenom[1] ne '') + { + $self->{curInfo}->{authors} .= ", " . $nom_prenom[1] ." " . $nom_prenom[0]; + } + else + { + $self->{curInfo}->{authors} .= ", " . $nom_prenom[0]; + } + } $self->{isAuthor} = 0 ; } elsif ($self->{isPublisher}) @@ -168,9 +221,9 @@ } elsif ($self->{isAnalyse}) { - $self->{isFormat} = 1 if ($origtext =~ m/Book Details:/i); - $self->{isDescription} = 1 if ($origtext =~ m/Notes:/i); - $self->{isDescription} = 1 if ($origtext =~ m/Summary:/i); + $self->{isFormat} = 1 if ($origtext =~ m/Book Details/i); + $self->{isDescription} = 1 if ($origtext =~ m/Notes/i); + $self->{isDescription} = 1 if ($origtext =~ m/Summary/i); $self->{isAnalyse} = 0 ; } @@ -233,14 +286,25 @@ } elsif ($self->{isGenre}) { - my @array = split(/--/,$origtext); + $origtext =~ s/ -- /\//gi; - $self->{curInfo}->{genre} = $array[1]; # Enleve les blancs en debut de chaine - $self->{curInfo}->{genre} =~ s/^\s+//; + $origtext =~ s/^\s+//; + # Enleve les blancs en fin de chaine + $origtext =~ s/\s+$//g; + + if ($self->{curInfo}->{genre} eq '') + { + $self->{curInfo}->{genre} = $origtext; + } + else + { + $self->{curInfo}->{genre} .= ", " . $origtext; + } $self->{isGenre} = 0 ; } - elsif (($origtext =~ m/ISBN:/i) && ($self->{curInfo}->{isbn} eq '')) + elsif ((($origtext =~ m/ISBN10:/i) && ($self->{curInfo}->{isbn} eq '')) || + ($origtext =~ m/ISBN13:/i)) { my @array = split(/:/,$origtext); @@ -297,7 +361,10 @@ else { $html =~ s|||gi; - $html =~ s|
  • |\n* |gi; + $html =~ s|
  • ||gi; + $html =~ s|
  • ||gi; + $html =~ s|
      ||gi; + $html =~ s|
    ||gi; $html =~ s|
    |\n|gi; $html =~ s|
    |\n|gi; $html =~ s|||gi; @@ -312,7 +379,7 @@ $html =~ s|…|...|gi; $html =~ s|\x{8C}|OE|gi; $html =~ s|\x{9C}|oe|gi; - + $html =~ s|\x{94}|\n|gi; } return $html; @@ -321,14 +388,13 @@ sub getSearchUrl { my ($self, $word) = @_; - if ($self->{searchField} eq 'isbn') { - return "http://isbndb.com/search-all.html?kw=" .$word; + return "http://isbndb.com/search/all?query=" .$word; } else { - return "http://isbndb.com/search-title.html?kw=" .$word ."&isn="; + return "http://isbndb.com/search/books/1?query=" .$word; } } @@ -348,7 +414,7 @@ sub getCharset { my $self = shift; - return "ISO-8859-15"; + return "UTF-8"; } sub getAuthor debian/compat0000644000000000000000000000000212171102115010353 0ustar 7 debian/control0000644000000000000000000000302412213721714010570 0ustar Source: gcstar Section: x11 Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Alexander Wirt Build-Depends-Indep: libgtk2-perl, libwww-perl, libxml-parser-perl, libxml-simple-perl, libmp3-tag-perl, libogg-vorbis-header-pureperl-perl Build-Depends: debhelper (>= 7) Standards-Version: 3.9.4 Homepage: http://www.gcstar.org/ Package: gcstar Architecture: all Depends: libgtk2-perl, libwww-perl, libarchive-tar-perl, libxml-simple-perl, libxml-parser-perl, libarchive-zip-perl, libmp3-tag-perl, libogg-vorbis-header-pureperl-perl, fonts-liberation, ${misc:Depends}, ${perl:Depends} Recommends: libgtk2-spell-perl, libnet-freedb-perl, libdatetime-format-strptime-perl, libmp3-info-perl Provides: gcfilms Replaces: gcfilms Conflicts: gcfilms (<= 6.4) Description: Manage your collections of movies, games, books, music and more GCstar is an application for managing your collections. It supports many types of collections, including movies, books, games, comics, stamps, coins, and many more. You can even create your own collection type for whatever unique thing it is that you collect. . Detailed information on each item can be automatically retrieved from the internet and you can store additional data, such as the location or who you've lent it to. You may also search and filter your collection by many criteria. . GCstar is the successor GCfilms and is compatible to its databases. As GCfilms isn't developed any more GCstars replaces GCfilms. debian/changelog0000644000000000000000000001422212213721773011046 0ustar gcstar (1.7.0-0ubuntu2) saucy; urgency=low * Depend on fonts-liberation rather than ttf-liberation (closes: #722409). -- Colin Watson Tue, 10 Sep 2013 23:58:02 +0100 gcstar (1.7.0-0ubuntu1) saucy; urgency=low * New upstream release 1.7.0 - converted to source format 3.0 - removed patches: 13_fix_gamespot_plugin, 14_fix_mobygames_plugin * debian/patches/10_fix_isbndb_plugin.patch: fix ISBNdb book plugin. * debian/patches/11_fix_gamespot_plugin.patch: fix GameSpot game plugin. * debian/patches/12_fix_gamespot_images.patch: fix GameSpot box image loading. -- Marc Deslauriers Wed, 07 Aug 2013 16:48:05 -0400 gcstar (1.6.2-1ubuntu2) precise; urgency=low * debian/patches/13_fix_gamespot_plugin.dpatch: Updated GameSpot videogame plugin to work with latest website changes. * debian/patches/14_fix_mobygames_plugin.dpatch: Updated MobyGames videogame plugin to work with latest website changes. -- Marc Deslauriers Tue, 03 Jan 2012 19:14:43 -0500 gcstar (1.6.2-1ubuntu1) precise; urgency=low * debian/patches/13_fix_gamespot_plugin.dpatch: updated GameSpot videogame plugin to work with latest website changes. (LP: #875911) -- Marc Deslauriers Sun, 16 Oct 2011 14:50:33 -0400 gcstar (1.6.2-1) unstable; urgency=low * [0a00985] Imported Upstream version 1.6.2 (Closes: #636168) - Fix imdb plugin (Closes: #630729) * [2968bd2] Add missing build-targets to rules file -- Alexander Wirt Tue, 09 Aug 2011 08:44:08 +0200 gcstar (1.6.1-1) unstable; urgency=low * [9c36c7f] Unset verbose in rules file * [483cffb] Initial upstream branch. * [e14af9e] Imported Upstream version 1.6.1 * [5cb1e7d] Bump standards version (no changes) * [46ae5fd] Use the packaged liberation font * [db19269] Remove obsolete license files * [e3c5b2a] Add debhelpers ${misc:Depends} to binary package * [266ec67] Add missing exectute bit to xslt script -- Alexander Wirt Thu, 26 May 2011 09:34:48 +0200 gcstar (1.5.0-1) unstable; urgency=low * New upstream release - Renaming of items is fixed (Closes: #356605) * Bump standards version * Remove dh_desktop, dh_clean -k * Add dh_lintian * Add README.source * Take sure the package is source 1.0 in the future * Integrate the packaging suggestions from Nyall Dawson (Closes: #549676) Thanks! -- Alexander Wirt Sun, 22 Nov 2009 09:14:23 +0100 gcstar (1.4.3-2) unstable; urgency=low * Add a fix for crashes in GCGraphicComponents.pm (Closes: #530821). Thanks rto David Weinehall for grabbing the patch -- Alexander Wirt Sat, 13 Jun 2009 09:33:59 +0200 gcstar (1.4.3-1) unstable; urgency=low [ Clément Hermann ] * New upstream release (Closes: #484629, #491545, #507100) * remove 10-fix-storable-crash.dpatch (fixed upstream) * adapt 01-set_usr_lib.dpatch * adapt 07_fix_manpath.dpatch * add 11_fix_allocine_plugin.dpatch: updated GCAllocine.pm module from upstream SVN [ Alexander Wirt ] * Bump standards version * Update copyright file * Call dh_desktop from rules file -- Alexander Wirt Sun, 22 Mar 2009 11:46:48 +0100 gcstar (1.3.2-2) unstable; urgency=low * Really activate 10-fix-storable-crash.dpatch this time. -- Alexander Wirt Mon, 12 Jan 2009 22:22:47 +0100 gcstar (1.3.2-1.1) unstable; urgency=low * Non-maintainer upload. * Backport Storage:::forgive_me change from new upstream version to prevent Gcstar freeze when trying to retrieve data from a website (Closes: #510685) -- Neil Williams Sun, 04 Jan 2009 15:44:40 +0000 gcstar (1.3.2-1) unstable; urgency=low * New upstream version * Add Homepage to control file * Dump debhelper compat to 5 (Closes: #451035) -- Alexander Wirt Sat, 26 Jan 2008 22:09:02 +0100 gcstar (1.3.1-1) unstable; urgency=low * New upstream version (Closes: #452032) * Removed 08_fix_desktop_file (adopted by upstream) * Bumpd standards version -- Alexander Wirt Tue, 11 Dec 2007 13:35:52 +0100 gcstar (1.2.2-1) unstable; urgency=low * Update menu icon * New upstream release * Backported desktop file from cvs * Removed 05_fix_xml_enoding (fixed upstream) -- Alexander Wirt Fri, 21 Sep 2007 13:59:27 +0200 gcstar (1.2.0-1) unstable; urgency=low * New upstream release - Fixes HTML output (Closes: #419791) * Updated 03_change_default_browser.dpatch * Removed 08_cvs_imdbplugin and 04_dont_check_permissions (adopted by upstream) * Fix desktop file (08_fix_desktop_file.dpatch) * Adapt menu file to new specification -- Alexander Wirt Sat, 08 Sep 2007 22:25:00 +0200 gcstar (1.1.1-2) unstable; urgency=low * Backport imdb plugin from cvs (Closes: #419792) -- Alexander Wirt Wed, 18 Apr 2007 07:51:20 +0200 gcstar (1.1.1-1) unstable; urgency=low * New upstream version (Closes: #411825) - Fixed a typo in the italian translation which caused segfault in gcstar (Closes: #405973, #403069) * Updated 03_change_default_browser.dpatch * 08_workaround_for_HTML::Parser.dpatch (included upstream) -- Alexander Wirt Wed, 21 Feb 2007 10:44:07 +0100 gcstar (1.0.0-1) unstable; urgency=low * New upstream release (Closes: #409273) * Backport a patch from CVS to get 1.0 work with HTML::Parser 3.56-1 (Closes: #409280) -- Alexander Wirt Thu, 1 Feb 2007 20:39:56 +0100 gcstar (0.5.0-1) unstable; urgency=low * New upstream release * Add dep on libxml-parser-perl (Closes: #398816) -- Alexander Wirt Sat, 18 Nov 2006 01:22:59 +0100 gcstar (0.4.1-2) unstable; urgency=low * Add libxml-parser-perl and libxml-simple-perl to build deps (Closes: #396887) -- Alexander Wirt Fri, 3 Nov 2006 15:58:04 +0100 gcstar (0.4.1-1) unstable; urgency=low * Initial release (Closes: #381669) -- Alexander Wirt Sat, 9 Jul 2005 17:26:18 +0200 debian/dirs0000644000000000000000000000001012171102115010030 0ustar usr/bin