wok-6.x rev 14128

comical, cpu-g: move from undigest wok
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Feb 28 09:47:02 2013 +0000 (2013-02-28)
parents 65e1d71b872f
children 48b4aa56e08e
files comical/description.txt comical/receipt comical/stuff/comical-0.8_wx-2.8.patch comical/stuff/comical.desktop comical/stuff/comical.png cpu-g/description.txt cpu-g/receipt cpu-g/stuff/cpu-g.desktop
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/comical/description.txt	Thu Feb 28 09:47:02 2013 +0000
     1.3 @@ -0,0 +1,3 @@
     1.4 +Comical is a portable CBR and CBZ viewer written in C++ using wxWidgets.
     1.5 +It supports multiple image formats and uses high-quality image scaling
     1.6 +algorithms to fit pages onscreen.
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/comical/receipt	Thu Feb 28 09:47:02 2013 +0000
     2.3 @@ -0,0 +1,27 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="comical"
     2.7 +VERSION="0.8"
     2.8 +CATEGORY="graphics"
     2.9 +SHORT_DESC="Comic book reader"
    2.10 +MAINTAINER="al.bobylev@gmail.com"
    2.11 +WEB_SITE="http://comical.sourceforge.net/"
    2.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.13 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    2.14 +
    2.15 +DEPENDS="wxWidgets"
    2.16 +BUILD_DEPENDS="wxWidgets-dev"
    2.17 +
    2.18 +# Rules to configure and make the package.
    2.19 +compile_rules()
    2.20 +{
    2.21 +	patch -p1 -i $stuff/comical-0.8_wx-2.8.patch
    2.22 +	make -j 1
    2.23 +}
    2.24 +
    2.25 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.26 +genpkg_rules()
    2.27 +{
    2.28 +	mkdir -p $fs/usr/bin
    2.29 +	cp -a $src/comical $fs/usr/bin
    2.30 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/comical/stuff/comical-0.8_wx-2.8.patch	Thu Feb 28 09:47:02 2013 +0000
     3.3 @@ -0,0 +1,51 @@
     3.4 +--- "a/Comical Icons/comical.xpm"
     3.5 ++++ "b/Comical Icons/comical.xpm"
     3.6 +@@ -1,5 +1,5 @@
     3.7 + /* XPM */
     3.8 +-static char *comical_xpm[]={
     3.9 ++static const char *comical_xpm[]={
    3.10 + "128 128 131 2",
    3.11 + "Qt c None",
    3.12 + ".8 c #080000",
    3.13 +--- a/src/ComicalApp.cpp
    3.14 ++++ b/src/ComicalApp.cpp
    3.15 +@@ -28,6 +28,8 @@
    3.16 + #include "ComicalApp.h"
    3.17 + #include "ComicalFrame.h"
    3.18 + #include <wx/log.h>
    3.19 ++#include <wx/icon.h>
    3.20 ++#include <wx/numdlg.h>
    3.21 + 
    3.22 + #if !defined(__WXMAC__) && !defined(__WXCOCOA__) && !defined(__WXMSW__) && !defined(__WXPM__)
    3.23 + #include "../Comical Icons/comical.xpm"
    3.24 +--- a/src/ComicBook.cpp
    3.25 ++++ b/src/ComicBook.cpp
    3.26 +@@ -537,7 +537,8 @@
    3.27 + 			if (curr > 0) {	// ftw and fth scaling requires previous page to
    3.28 + 				target--;	// do FitWithoutScrollbars.
    3.29 + 				if (target > high)
    3.30 +-					target = curr - (++target - high);
    3.31 ++					// target = curr - (++target - high); // will cause 'target' uninitialized warning
    3.32 ++					target = curr - ((target + 1) - high);
    3.33 + 			} else if (target > high)
    3.34 + 				target = curr - (target - high);
    3.35 + 			try {
    3.36 +--- a/Makefile
    3.37 ++++ b/Makefile
    3.38 +@@ -1,8 +1,8 @@
    3.39 + CC = `wx-config --cxx`
    3.40 +-LDFLAGS = `wx-config --libs` -Lunrar -lunrar -Lunzip -lminiunzip
    3.41 ++LDFLAGS = `wx-config --libs` -Lunrar -lunrar -Lunzip -lminiunzip -lz
    3.42 + INSTALL = install
    3.43 + INSTALL_PROGRAM = $(INSTALL)
    3.44 +-prefix = /usr/local
    3.45 ++prefix = /usr
    3.46 + exec_prefix = $(prefix)
    3.47 + bindir = $(exec_prefix)/bin
    3.48 + 
    3.49 +@@ -43,4 +43,4 @@
    3.50 + 	$(MAKE) clean -C unzip
    3.51 + 	rm -f $(DEPS) bin2h src/bin2h.o
    3.52 + 
    3.53 +-.PHONY : install install-strip uninstall clean distclean
    3.54 ++.PHONY : all install install-strip uninstall clean distclean
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/comical/stuff/comical.desktop	Thu Feb 28 09:47:02 2013 +0000
     4.3 @@ -0,0 +1,10 @@
     4.4 +[Desktop Entry]
     4.5 +Type=Application
     4.6 +Name=Comical
     4.7 +Comment=Comic book reader
     4.8 +Icon=alarm-clock
     4.9 +Exec=comical
    4.10 +Terminal=false
    4.11 +StartupNotify=true
    4.12 +Categories=Graphics;Viewer;
    4.13 +MimeType=application/x-cbz;application/x-cbr;
     5.1 Binary file comical/stuff/comical.png has changed
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/cpu-g/description.txt	Thu Feb 28 09:47:02 2013 +0000
     6.3 @@ -0,0 +1,3 @@
     6.4 +CPU-G is an application that shows useful information about your hardware. It
     6.5 +collects and displays information about your CPU, RAM, Motherboard, some
     6.6 +general information about your system and more.
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/cpu-g/receipt	Thu Feb 28 09:47:02 2013 +0000
     7.3 @@ -0,0 +1,30 @@
     7.4 +# SliTaz package receipt.
     7.5 +
     7.6 +PACKAGE="cpu-g"
     7.7 +VERSION="0.9.0"
     7.8 +CATEGORY="utilities"
     7.9 +SHORT_DESC="Shows useful information about your hardware"
    7.10 +MAINTAINER="al.bobylev@gmail.com"
    7.11 +LICENSE="GPL-3"
    7.12 +WEB_SITE="http://cpug.sourceforge.net/"
    7.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    7.14 +WGET_URL="$SF_MIRROR/cpug/$TARBALL"
    7.15 +
    7.16 +DEPENDS="pygtk"
    7.17 +
    7.18 +# Rules to gen a SliTaz package suitable for Tazpkg.
    7.19 +genpkg_rules()
    7.20 +{
    7.21 +	sed -i 's|data/logos/|/usr/share/cpu-g/logos/|' $src/cpu-g
    7.22 +	sed -i 's|cpu-g.glade|/usr/share/cpu-g/cpu-g.glade|' $src/cpu-g
    7.23 +	sed -i 's|data/cpu-g.png|/usr/share/pixmaps/cpu-g.png|' $src/cpu-g.glade
    7.24 +	mkdir -p \
    7.25 +		$fs/usr/bin \
    7.26 +		$fs/usr/share/applications \
    7.27 +		$fs/usr/share/cpu-g \
    7.28 +		$fs/usr/share/pixmaps
    7.29 +	cp -a $src/cpu-g $fs/usr/bin
    7.30 +	cp -a $src/cpu-g.glade $fs/usr/share/cpu-g
    7.31 +	cp -a $src/data/logos $fs/usr/share/cpu-g
    7.32 +	cp -a $src/data/cpu-g.png $fs/usr/share/pixmaps
    7.33 +}
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/cpu-g/stuff/cpu-g.desktop	Thu Feb 28 09:47:02 2013 +0000
     8.3 @@ -0,0 +1,8 @@
     8.4 +[Desktop Entry]
     8.5 +Type=Application
     8.6 +Name=CPU-G
     8.7 +Exec=/usr/bin/cpu-g
     8.8 +Terminal=false
     8.9 +Icon=cpu-g
    8.10 +StartupNotify=true
    8.11 +Categories=System;Monitor;