--- gcstar-1.6.2.orig/debian/docs +++ gcstar-1.6.2/debian/docs @@ -0,0 +1,3 @@ +README +README.fr +CHANGELOG.fr --- gcstar-1.6.2.orig/debian/gcstar.links +++ gcstar-1.6.2/debian/gcstar.links @@ -0,0 +1,6 @@ +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 --- gcstar-1.6.2.orig/debian/copyright +++ gcstar-1.6.2/debian/copyright @@ -0,0 +1,27 @@ +This package was debianized by Alexander Wirt 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'. + --- gcstar-1.6.2.orig/debian/menu +++ gcstar-1.6.2/debian/menu @@ -0,0 +1,8 @@ +?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" + --- gcstar-1.6.2.orig/debian/control +++ gcstar-1.6.2/debian/control @@ -0,0 +1,30 @@ +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), dpatch +Standards-Version: 3.9.2 +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, ttf-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. --- gcstar-1.6.2.orig/debian/rules +++ gcstar-1.6.2/debian/rules @@ -0,0 +1,86 @@ +#!/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: patch build-arch build-indep + +build-arch: build-stamp +build-indep: build-stamp + +build-stamp: + dh_testdir + + touch build-stamp + +clean: clean1 unpatch + +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 patch + 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 + +patch: patch-stamp +patch-stamp: + dpatch apply-all + #dpatch call-all -a=pkg-info >patch-stamp #I don't understand this one. + echo patched > patch-stamp + +unpatch: + dpatch deapply-all + rm -rf patch-stamp debian/patched + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- gcstar-1.6.2.orig/debian/watch +++ gcstar-1.6.2/debian/watch @@ -0,0 +1,22 @@ +# 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 + + --- gcstar-1.6.2.orig/debian/README.source +++ gcstar-1.6.2/debian/README.source @@ -0,0 +1,2 @@ +We use dpatch for patch handling inside our nagios packages. Please see +/usr/share/doc/dpatch/README.source.gz (if you have installed dpatch) for documentation about dpatch. --- gcstar-1.6.2.orig/debian/gcstar.install +++ gcstar-1.6.2/debian/gcstar.install @@ -0,0 +1,3 @@ +share/applications/gcstar.desktop /usr/share/applications/ +debian/gcstar_logo.xpm /usr/share/pixmaps/ +share/applications/gcstar.xml /usr/share/mime/packages --- gcstar-1.6.2.orig/debian/changelog +++ gcstar-1.6.2/debian/changelog @@ -0,0 +1,163 @@ +gcstar (1.6.2-1ubuntu0.1) oneiric-proposed; 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 + --- gcstar-1.6.2.orig/debian/dirs +++ gcstar-1.6.2/debian/dirs @@ -0,0 +1 @@ +usr/bin --- gcstar-1.6.2.orig/debian/gcstar_logo.xpm +++ gcstar-1.6.2/debian/gcstar_logo.xpm @@ -0,0 +1,291 @@ +/* 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 +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad gcstar-1.4.3~/install gcstar-1.4.3/install +--- gcstar-1.4.3~/install 2009-02-28 18:56:29.674198841 +0100 ++++ gcstar-1.4.3/install 2009-02-28 18:58:05.402193838 +0100 +@@ -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 + +@@ -187,9 +187,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`; + --- gcstar-1.6.2.orig/debian/patches/11_fix_allocine_plugin.dpatch +++ gcstar-1.6.2/debian/patches/11_fix_allocine_plugin.dpatch @@ -0,0 +1,245 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 11_fix_allocine_plugin.dpatch by Clément Hermann (nodens) +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad gcstar-1.4.3~/lib/gcstar/GCPlugins/GCfilms/GCAllocine.pm gcstar-1.4.3/lib/gcstar/GCPlugins/GCfilms/GCAllocine.pm +--- gcstar-1.4.3~/lib/gcstar/GCPlugins/GCfilms/GCAllocine.pm 2008-08-15 13:55:14.000000000 +0200 ++++ gcstar-1.4.3/lib/gcstar/GCPlugins/GCfilms/GCAllocine.pm 2009-03-01 01:35:05.622195296 +0100 +@@ -2,7 +2,7 @@ + + ################################################### + # +-# Copyright 2005-2007 Tian ++# Copyright 2005-2009 Tian + # + # This file is part of GCstar. + # +@@ -54,11 +54,16 @@ + } + else + { +- if ($tagname eq "h4") ++ if ($tagname eq "h3") + { + $self->{insideActors} = 0; + $self->{insideDirector} = 0; +- if ($attr->{style} =~ /color:#D20000/) ++ $self->{insideCast}=0; ++ $self->{insideCastLine}=0; ++ $self->{insideRole}=0; ++ $self->{insideActor}=0; ++ $self->{insideDate}=0; ++ if ($attr->{style} =~ /color:\s*#D20000/) + { + $self->{insideAge} = 1; + } +@@ -70,7 +75,11 @@ + elsif ($tagname eq "img") + { + my $src = $attr->{src}; +- if (!$self->{curInfo}->{image}) ++ if($self->{insidePressRating} == 1 && $attr->{class}=~/etoile_(\d)/){ ++ $self->{curInfo}->{ratingpress}=2+2*$1; ++ $self->{insidePressRating} = 0; ++ } ++ elsif (!$self->{curInfo}->{image}) + { + if ($src =~ /\/nmedia\//) + { +@@ -78,9 +87,9 @@ + { + my $pageUrl = $self->{loadedUrl}; + $pageUrl =~ s/fichefilm_/galerievignette_/; +- my $page = $self->loadPage($pageUrl); ++ my $page = $self->loadPage($pageUrl, 0, 1); + $page =~ m/{curInfo}->{image} = $src; + } +@@ -90,6 +99,23 @@ + } + } + } ++ elsif (($tagname eq "table") && ($attr->{cast} eq "1")) ++ { ++ $self->{insideCast}=1; ++ } ++ elsif (($tagname eq "tr") && ($self->{insideCast})) ++ { ++ $self->{insideCastLine}=1; ++ } ++ elsif (($tagname eq "h5") && ($self->{insideCastLine})) ++ { ++ $self->{insideRole}=1; ++ } ++ elsif (($tagname eq "a") && ($self->{insideCastLine})) ++ { ++ $self->{insideRole}=0; ++ $self->{insideActor}=1; ++ } + elsif ($tagname eq "br") + { + if ($self->{insideSynopsis}) +@@ -109,6 +135,24 @@ + { + $self->{insideSynopsis} = 0; + } ++ elsif (($tagname eq "td") && ($self->{isInfo})) ++ { ++ #work around bad date for last search result ++ $self->{isInfo}=0; ++ } ++ elsif (($tagname eq "td") && ($self->{insideCastLine})) ++ { ++ $self->{insideRole}=0; ++ $self->{insideActor}=0; ++ } ++ elsif (($tagname eq "tr") && ($self->{insideCastLine})) ++ { ++ $self->{insideCastLine}=0; ++ } ++ elsif (($tagname eq "table") && ($self->{insideCast})) ++ { ++ $self->{insideCast}=0; ++ } + } + + sub text +@@ -153,21 +197,46 @@ + $origtext =~ s/[\r\n]//g; + $self->{curInfo}->{title} = $origtext if length($origtext) > 2; + } +- if ($self->{inside}->{h3}) ++ if ($self->{inside}->{h2}) + { +- $self->{insideSynopsis} = 1 if $origtext =~ /Synopsis/ ++ $self->{insideSynopsis} = 1 if $origtext =~ /Synopsis/; + } +- if ($self->{inside}->{h4}) +- { +- if ($self->{insideSynopsis}) ++ if ($self->{inside}->{h4}){ ++ if ($self->{insideActors}) + { + $self->{curInfo}->{synopsis} .= $origtext; + } +- elsif ($self->{insideActors}) ++ elsif ($self->{insideSynopsis}) ++ { ++ $self->{curInfo}->{synopsis} .= $origtext; ++ } ++ elsif ( $origtext =~ /^Saga /) + { ++ $origtext =~ s/Saga //; ++ $self->{curInfo}->{serie}=$origtext; ++ } ++ } ++ elsif ($self->{inside}->{h3}) ++ { ++ if ($self->{insideActors}) ++ { ++ #Actors from fichefilm page + $self->{curInfo}->{actors} .= $origtext; + $self->{curInfo}->{actors} =~ s/^\s*//; + } ++ elsif ($self->{insideRole}) ++ { ++ #Roles from casting page ++ push @{$self->{curInfo}->{actors}}, [$origtext,$origtext] ++ if ($self->{actorsCounter} <= $GCPlugins::GCfilms::GCfilmsCommon::MAX_ACTORS); ++ } ++ elsif ($self->{insideActor}) ++ { ++ #Actors from casting page ++ $self->{curInfo}->{actors}->[$self->{actorsCounter}]->[0]=$origtext ++ if ($self->{actorsCounter} <= $GCPlugins::GCfilms::GCfilmsCommon::MAX_ACTORS); ++ $self->{actorsCounter}++; ++ } + elsif ($self->{insideDirector}) + { + $self->{curInfo}->{director} .= $origtext; +@@ -177,6 +246,18 @@ + $origtext =~ s/.*?([0-9]+).*/$1/; + $self->{curInfo}->{age} = $origtext; + } ++ elsif ($self->{insideDate}) ++ { ++ $origtext =~ s/^[\s\n]*//; ++ $origtext =~ s/\s*$//; ++ $self->{curInfo}->{date} = $origtext; ++ $self->{insideDate}=0; ++ } ++ elsif (( $origtext =~ /^Date de sortie/ ) ++ && ( !$self->{curInfo}->{date} ) ) ++ { ++ $self->{insideDate}=1; ++ } + elsif ( $origtext =~ /^Genre/ ) + { + $origtext =~ s/^Genre : //; +@@ -193,14 +274,6 @@ + $origtext =~ s/^Durée : (.*)?/$1/; + $self->{curInfo}->{time} = $origtext; + } +- elsif (( $origtext =~ /Date de sortie/ ) +- && ( !$self->{curInfo}->{date} ) ) +- { +- $origtext =~ s/Date de sortie : (.*)/$1/; +- $origtext =~ s/^[\s\n]*//; +- $origtext =~ s/\s*$//; +- $self->{curInfo}->{date} = $origtext; +- } + elsif ( $origtext =~ /^Titre original/ ) + { + $origtext =~ s/^Titre original : .*?/$1/; +@@ -208,13 +281,18 @@ + } + elsif (($origtext =~ /^Avec/ ) && (! $self->{curInfo}->{actors})) + { ++ #Detecting actors from fichefilm page + $self->{insideActors} = 1; + } + elsif ( $origtext =~ /^Réalisé par/ ) + { + $self->{insideDirector} = 1; + } +- } ++ } ++ elsif ( $origtext =~ /^Presse$/ ) ++ { ++ $self->{insidePressRating} = 1; ++ } + } + } + +@@ -235,6 +313,7 @@ + $self->{isMovie} = 0; + $self->{curName} = undef; + $self->{curUrl} = undef; ++ $self->{actorsCounter}=0; + + bless ($self, $class); + return $self; +@@ -252,8 +331,15 @@ + + if (!$self->{parsingList}) + { +- # Remove link "Plus" in list of actors +- $html =~ s|canonpath("$RealBin/../share/gcstar/lib"); + if (exists $ENV{PAR_TEMP}) + { + unshift @INC, "$RealBin/../lib/gcstar"; +diff -urNad gcstar-1.4.3~/install gcstar-1.4.3/install +--- gcstar-1.4.3~/install 2008-07-17 19:31:01.000000000 +0200 ++++ gcstar-1.4.3/install 2009-02-28 18:55:56.710196397 +0100 +@@ -196,8 +196,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'; --- gcstar-1.6.2.orig/debian/patches/12_Fix_GCGraphicComponents.pm.dpatch +++ gcstar-1.6.2/debian/patches/12_Fix_GCGraphicComponents.pm.dpatch @@ -0,0 +1,26 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 12_Fix_GCGraphicComponents.pm.dpatch by Alexander Wirt +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Grabbed from upstreams bts. Fixes a crash in CGraphicComponents.pm (#530821) + +@DPATCH@ +diff -urNad gcstar-1.4.3~/lib/gcstar/GCGraphicComponents.pm gcstar-1.4.3/lib/gcstar/GCGraphicComponents.pm +--- gcstar-1.4.3~/lib/gcstar/GCGraphicComponents.pm 2008-08-15 16:42:28.000000000 +0200 ++++ gcstar-1.4.3/lib/gcstar/GCGraphicComponents.pm 2009-06-13 09:20:37.000000000 +0200 +@@ -2379,6 +2379,8 @@ + + $self->signal_connect('query_tooltip' => sub { + my ($window, $x, $y, $keyboard_mode, $tip) = @_; ++ return if $self->{settingTip}; ++ $self->{settingTip} = 1; + if ($self->{flipActivated} && ($x > $self->{flipX}) && ($y > $self->{flipY})) + { + $self->{tooltips}->set_tip($self, $self->{flipped} ? +@@ -2389,6 +2391,7 @@ + { + $self->{tooltips}->set_tip($self, $self->{tip}); + } ++ $self->{settingTip} = 0; + return 0; + }); --- gcstar-1.6.2.orig/debian/patches/03_change_default_browser.dpatch +++ gcstar-1.6.2/debian/patches/03_change_default_browser.dpatch @@ -0,0 +1,19 @@ +#! /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@ +diff -urNad gcstar-1.2.0~/lib/gcstar/GCOptions.pm gcstar-1.2.0/lib/gcstar/GCOptions.pm +--- gcstar-1.2.0~/lib/gcstar/GCOptions.pm 2007-08-18 14:41:14.000000000 +0200 ++++ gcstar-1.2.0/lib/gcstar/GCOptions.pm 2007-09-08 22:33:51.000000000 +0200 +@@ -122,7 +122,7 @@ + autosave => 1, + noautoload => 0, + programs => "system", +- browser => "firefox", ++ browser => "x-www-browser", + player => "mplayer", + audio => "xmms", + file => "", --- gcstar-1.6.2.orig/debian/patches/13_fix_gamespot_plugin.dpatch +++ gcstar-1.6.2/debian/patches/13_fix_gamespot_plugin.dpatch @@ -0,0 +1,92 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +# Description: update GameSpot plugin to work with latest website changes +# Author: Marc Deslauriers +# Forwarded: yes, http://forums.gcstar.org/viewtopic.php?pid=7699 +# Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/gcstar/+bug/875911 +# +# Warning! There are crlf line endings in this patch, editing it may +# cause them to go missing. + +@DPATCH@ +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' gcstar-1.6.2~/lib/gcstar/GCPlugins/GCgames/GCGameSpot.pm gcstar-1.6.2/lib/gcstar/GCPlugins/GCgames/GCGameSpot.pm +--- gcstar-1.6.2~/lib/gcstar/GCPlugins/GCgames/GCGameSpot.pm 2010-07-26 15:51:42.000000000 -0400 ++++ gcstar-1.6.2/lib/gcstar/GCPlugins/GCgames/GCGameSpot.pm 2011-10-16 17:44:04.932092464 -0400 +@@ -124,7 +124,7 @@ + } + $self->{isBox} = 0; + } +- elsif ($tagname eq 'h2') ++ elsif ($tagname eq 'h2' && ($attr->{class} eq 'product_title')) + { + $self->{isName} = 1 if ! $self->{curInfo}->{name}; + } +@@ -132,21 +132,29 @@ + { + $self->{isInfo} = 1; + } ++ elsif (($tagname eq 'div') && ($attr->{class} eq 'module_title_more plat_name')) ++ { ++ $self->{isPlatform} = 1; ++ } + elsif (($tagname eq 'p') && ($self->{isPlayers} eq 1)) + { + $self->{isPlayers} = 2; + } +- elsif ($tagname eq 'p') ++ elsif (($tagname eq 'p') && ($attr->{class} eq 'review deck')) + { +- $self->{isDesc} = 1 if $attr->{class} eq 'review deck'; ++ $self->{isDesc} = 1; + } +- elsif ($tagname eq 'div') ++ elsif (($tagname eq 'div') && ($attr->{class} eq 'product deck')) + { +- $self->{isDesc} = 1 if $attr->{class} eq 'f12 dots pb5 mb5'; ++ $self->{isDesc} = 1; + } +- elsif ($tagname eq 'title') ++ elsif (($tagname eq 'span') && ($self->{isDesc} eq 1)) + { +- $self->{isPlatform} = 1; ++ $self->{isDesc} = 2; ++ } ++ elsif (($tagname eq 'span') && ($attr->{class} eq 'hideDeck')) ++ { ++ $self->{isDescLong} = 1; + } + elsif (($tagname eq 'li') && ($attr->{class} eq 'publisher')) + { +@@ -274,13 +282,20 @@ + $self->{curInfo}->{name} = $origtext; + $self->{isName} = 0; + } +- elsif ($self->{isDesc}) ++ elsif ($self->{isDesc} eq 2) + { + $origtext =~ s/^\s*//; + $origtext =~ s/\s*$//; + $self->{curInfo}->{description} = $origtext; + $self->{isDesc} = 0; + } ++ elsif ($self->{isDescLong}) ++ { ++ $origtext =~ s/^\s*//; ++ $origtext =~ s/\s*$//; ++ $self->{curInfo}->{description} .= "\n\n".$origtext; ++ $self->{isDescLong} = 0; ++ } + elsif ($self->{isInfo}) + { + $self->{isPlayers} = 1 if $origtext =~ /Number of Players:\s*/; +@@ -288,8 +303,9 @@ + } + elsif ($self->{isPlatform}) + { +- $origtext =~ /^.*?for\s*(.*?)\s*-/; +- $self->{curInfo}->{platform} = $1; ++ $origtext =~ s/\(//g; ++ $origtext =~ s/\)//g; ++ $self->{curInfo}->{platform} = $origtext; + $self->{isPlatform} = 0; + } + else --- gcstar-1.6.2.orig/debian/patches/02gzip-manpage.dpatch +++ gcstar-1.6.2/debian/patches/02gzip-manpage.dpatch @@ -0,0 +1,19 @@ +#! /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@ +diff -urNad gcstar-0.4.1~/install gcstar-0.4.1/install +--- gcstar-0.4.1~/install 2006-10-14 09:25:28.000000000 +0200 ++++ gcstar-0.4.1/install 2006-10-14 09:25:36.000000000 +0200 +@@ -145,7 +145,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; +