debian/0000755000000000000000000000000011745212703007170 5ustar debian/rules0000755000000000000000000000211711745212703010251 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 SVNREPO := http://svn.openstreetmap.org/applications/editors/josm/webgrabber/ DATE := $(shell date +%Y%m%d) ifdef SVNREV VERSION := 0.0.svn${SVNREV} else VERSION := 0.0.0.${DATE} endif DESTDIR := webkit-image-${VERSION} DESTTGZ := webkit-image_${VERSION}.orig.tar.gz %: dh $@ override_dh_auto_build: moc webkit-image.cpp >webkit-image.h g++ -o webkit-image-qt -W -O2 $(shell pkg-config --cflags QtCore QtGui QtWebKit QtNetwork) \ $(shell pkg-config --libs-only-L QtCore QtGui QtWebKit QtNetwork) \ webkit-image.cpp \ $(shell pkg-config --libs-only-l QtCore QtGui QtWebKit QtNetwork) gcc -o webkit-image-gtk webkit-image-gtk.c $(shell pkg-config --cflags --libs webkit-1.0 gio-unix-2.0) get-orig-source: @echo Downloading webkit-image from ${SVNREPO} svn export -r ${SVNREV} ${SVNREPO} ${DESTDIR} tar czf ${DESTTGZ} -C `dirname ${DESTDIR}` `basename ${DESTDIR}` @echo Cleaning up rm -rf ${DESTDIR} @echo . @echo To update debian/changelog type @echo dch -v ${VERSION}-1 @echo . debian/webkit-image-qt.10000644000000000000000000000116111745212703012240 0ustar .TH WEBKIT-IMAGE-QT 1 "Oct, 2010" .SH NAME webkit-image-qt \- generate images from webpages - Qt version .SH SYNOPSIS \fBwebkit-image-qt url > output\fR .SH DESCRIPTION This manual page documents briefly the \fBwebkit-image-qt\fR command. .PP \fBwebkit-image-qt\fR is a small tool that lets you generate images from web page snapshots. .PP \fBwebkit-image-qt\fR first tries to save in \fBJPEG\fR; if it fails, it tries to save the image in \fBPNG\fR format. .SH SEE ALSO .BR webkit-image-gtk (1) .SH AUTHOR This manual page was written by David Paleino , for the Debian project (and may be used by others). debian/webkit-image-gtk.prerm0000644000000000000000000000060611745212703013371 0ustar #!/bin/sh # prerm script for webkit-image-gtk # # see: dh_installdeb(1) set -e case "$1" in remove|upgrade|deconfigure) if [ -f /usr/bin/webkit-image-gtk ]; then update-alternatives --remove webkit-image /usr/bin/webkit-image-gtk fi ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/control0000644000000000000000000000164511745212703010601 0ustar Source: webkit-image Section: utils Priority: optional Maintainer: David Paleino Build-Depends: debhelper (>= 8~) , libqt4-dev , qt4-qmake , libwebkitgtk-dev , libglib2.0-dev , libqtwebkit-dev Standards-Version: 3.9.3 Vcs-Git: git://git.debian.org/collab-maint/webkit-image.git Vcs-Browser: http://git.debian.org/?p=collab-maint/webkit-image.git;a=summary Package: webkit-image-qt Architecture: any Depends: ${shlibs:Depends} , ${misc:Depends} Description: generate images from webpages - Qt version webkit-image is a small tool that lets you generate images from web page snapshots. . This package contains the Qt version. Package: webkit-image-gtk Architecture: any Depends: ${shlibs:Depends} , ${misc:Depends} Description: generate images from webpages - GTK+ version webkit-image is a small tool that lets you generate images from web page snapshots. . This package contains the GTK+ version. debian/changelog0000644000000000000000000000173711745212703011052 0ustar webkit-image (0.0.svn25399-3) unstable; urgency=low * Build-Depend on libwebkitgtk-dev instead of libwebkit-dev (Closes: #635430) * Standards-Version bump to 3.9.3, no changes needed * Updated debian/copyright -- David Paleino Mon, 23 Apr 2012 10:41:33 +0200 webkit-image (0.0.svn25399-2) unstable; urgency=low * Add Build-Depends on libqtwebkit-dev (Closes: #618249) -- David Paleino Sun, 13 Mar 2011 19:16:00 +0100 webkit-image (0.0.svn25399-1) unstable; urgency=low * New SVN snapshot * Fix get-orig-source target in debian/rules -- David Paleino Tue, 08 Mar 2011 09:56:59 +0100 webkit-image (0.0.svn24933-1) unstable; urgency=low * Initial release. New source tarball, because of source re-organization on josm-plugins' side. The binaries provided by this package were previously provided by the josm-plugins source. -- David Paleino Sat, 01 Jan 2011 23:58:01 +0100 debian/copyright0000644000000000000000000000203111745212703011117 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: http://svn.openstreetmap.org/applications/editors/josm/webgrabber/ Files: * License: PD Files: debian/* Copyright: © 2011-2012, David Paleino License: GPL-3+ License: GPL-3+ This program 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 3 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 program. If not, see . X-Comment: on Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". debian/webkit-image-gtk.10000644000000000000000000000110111745212703012373 0ustar .TH WEBKIT-IMAGE-GTK 1 "Oct, 2010" .SH NAME webkit-image-gtk \- generate images from webpages - GTK+ version .SH SYNOPSIS \fBwebkit-image-gtk url > output\fR .SH DESCRIPTION This manual page documents briefly the \fBwebkit-image-gtk\fR command. .PP \fBwebkit-image-gtk\fR is a small tool that lets you generate images from web page snapshots. .PP \fBwebkit-image-gtk\fR only outputs images in \fBPNG\fR format. .SH SEE ALSO .BR webkit-image-qt (1) .SH AUTHOR This manual page was written by David Paleino , for the Debian project (and may be used by others). debian/webkit-image-qt.prerm0000644000000000000000000000060311745212703013225 0ustar #!/bin/sh # prerm script for webkit-image-qt # # see: dh_installdeb(1) set -e case "$1" in remove|upgrade|deconfigure) if [ -f /usr/bin/webkit-image-qt ]; then update-alternatives --remove webkit-image /usr/bin/webkit-image-qt fi ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/webkit-image-qt.install0000644000000000000000000000003111745212703013541 0ustar webkit-image-qt usr/bin/ debian/source/0000755000000000000000000000000011745212703010470 5ustar debian/source/format0000644000000000000000000000001411745212703011676 0ustar 3.0 (quilt) debian/webkit-image-qt.manpages0000644000000000000000000000003111745212703013666 0ustar debian/webkit-image-qt.1 debian/clean0000644000000000000000000000006011745212703010171 0ustar webkit-image-qt webkit-image-gtk webkit-image.h debian/patches/0000755000000000000000000000000011745212703010617 5ustar debian/patches/01-fix_webkitimagegtk.patch0000644000000000000000000000146411745212703015727 0ustar From: David Paleino Subject: don't use a fixed width/height for the output Origin: vendor Forwarded: no --- webkit-image/webkit-image-gtk.c | 3 --- 1 file changed, 3 deletions(-) --- webkit-image.orig/webkit-image-gtk.c +++ webkit-image/webkit-image-gtk.c @@ -5,8 +5,6 @@ #include #include -#define WIDTH 2000 - /* compile with: * gcc -o webkit-image-gtk webkit-image-gtk.c `pkg-config --cflags --libs webkit-1.0 gio-unix-2.0` * Requires GTK+ 2.20 and WebKitGtk+ 1.1.1 @@ -44,7 +42,6 @@ main (int argc, view = webkit_web_view_new (); webkit_web_view_load_uri (WEBKIT_WEB_VIEW (view), argv[1]); - gtk_widget_set_size_request (view, WIDTH, WIDTH); gtk_container_add (GTK_CONTAINER (window), view); gtk_widget_show_all (window); debian/patches/series0000644000000000000000000000003411745212703012031 0ustar 01-fix_webkitimagegtk.patch debian/webkit-image-gtk.install0000644000000000000000000000003211745212703013703 0ustar webkit-image-gtk usr/bin/ debian/webkit-image-gtk.manpages0000644000000000000000000000003211745212703014030 0ustar debian/webkit-image-gtk.1 debian/webkit-image-gtk.postinst0000644000000000000000000000107711745212703014132 0ustar #!/bin/sh # postinst script for webkit-image-gtk # # see: dh_installdeb(1) set -e mandir=/usr/share/man case "$1" in configure) if [ -f /usr/bin/webkit-image-gtk ]; then update-alternatives --install /usr/bin/webkit-image \ webkit-image /usr/bin/webkit-image-gtk 100 \ --slave $mandir/man1/webkit-image.1.gz webkit-image.1.gz \ $mandir/man1/webkit-image-gtk.1.gz fi ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/webkit-image-qt.postinst0000644000000000000000000000107311745212703013765 0ustar #!/bin/sh # postinst script for webkit-image-qt # # see: dh_installdeb(1) set -e mandir=/usr/share/man case "$1" in configure) if [ -f /usr/bin/webkit-image-qt ]; then update-alternatives --install /usr/bin/webkit-image \ webkit-image /usr/bin/webkit-image-qt 100 \ --slave $mandir/man1/webkit-image.1.gz webkit-image.1.gz \ $mandir/man1/webkit-image-qt.1.gz fi ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/compat0000644000000000000000000000000211745212703010366 0ustar 8