aboutsummaryrefslogtreecommitdiff
path: root/graphics/qcomicbook
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2009-01-16 04:31:32 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2009-01-16 04:31:32 +0000
commitc4adff48e42fcc857624639d4d5cb23c689643d4 (patch)
tree12f44091ddae439d08ae5e36a57c3c357cd9c602 /graphics/qcomicbook
parentd3d49b9c54cd6fbedba069334c48b30c533ba8bf (diff)
downloadports-c4adff48e42fcc857624639d4d5cb23c689643d4.tar.gz
ports-c4adff48e42fcc857624639d4d5cb23c689643d4.zip
Notes
Diffstat (limited to 'graphics/qcomicbook')
-rw-r--r--graphics/qcomicbook/Makefile15
-rw-r--r--graphics/qcomicbook/files/patch-help__qcomicbook.111
-rw-r--r--graphics/qcomicbook/files/patch-src__imgarchivesink.cpp10
3 files changed, 33 insertions, 3 deletions
diff --git a/graphics/qcomicbook/Makefile b/graphics/qcomicbook/Makefile
index 7badd47b399e..d1c89ea2afef 100644
--- a/graphics/qcomicbook/Makefile
+++ b/graphics/qcomicbook/Makefile
@@ -7,11 +7,11 @@
PORTNAME= qcomicbook
PORTVERSION= 0.4.0
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= graphics
MASTER_SITES= http://linux.bydg.org/~yogin/qcomicbook/
-MAINTAINER= makc@issp.ac.ru
+MAINTAINER= lioux@FreeBSD.org
COMMENT= QT-based comic book archive viewer
RUN_DEPENDS= unzip:${PORTSDIR}/archivers/unzip \
@@ -30,4 +30,13 @@ DESKTOP_ENTRIES="QComicBook" "Comic Book Viewer" \
"${DATADIR}/${PORTNAME}.png" \
"qcomicbook" "" false
-.include <bsd.port.mk>
+OPTIONS= 7ZIP "Enable support for 7-Zip (.cb7) comic book archives" on
+
+.include <bsd.port.pre.mk>
+
+# 7-Zip (.cb7) support
+.if !defined(WITHOUT_7ZIP)
+RUN_DEPENDS+= 7z:${PORTSDIR}/archivers/p7zip
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/graphics/qcomicbook/files/patch-help__qcomicbook.1 b/graphics/qcomicbook/files/patch-help__qcomicbook.1
new file mode 100644
index 000000000000..da006ec23046
--- /dev/null
+++ b/graphics/qcomicbook/files/patch-help__qcomicbook.1
@@ -0,0 +1,11 @@
+--- ./help/qcomicbook.1.orig 2009-01-06 01:06:54.000000000 -0200
++++ ./help/qcomicbook.1 2009-01-06 01:07:40.000000000 -0200
+@@ -10,7 +10,7 @@
+ QComicBook is a viewer for comic book archives containing jpeg/png/xpm/gif images, which aims at convenience and simplicity.
+ .PP
+ Features include:
+- \- automatic decompression of zip (cbz), rar (cbr), ace (cba), targzipped (cbg) and tarbzip2ped (cbb) archives
++ \- automatic decompression of zip (cbz), rar (cbr), ace (cba), 7-Zip (cb7), targzipped (cbg) and tarbzip2ped (cbb) archives
+ \- full\-screen mode
+ \- two\-pages viewing
+ \- page scaling
diff --git a/graphics/qcomicbook/files/patch-src__imgarchivesink.cpp b/graphics/qcomicbook/files/patch-src__imgarchivesink.cpp
new file mode 100644
index 000000000000..cccde13594b9
--- /dev/null
+++ b/graphics/qcomicbook/files/patch-src__imgarchivesink.cpp
@@ -0,0 +1,10 @@
+--- ./src/imgarchivesink.cpp.orig 2009-01-06 01:05:14.000000000 -0200
++++ ./src/imgarchivesink.cpp 2009-01-06 01:06:26.000000000 -0200
+@@ -471,6 +471,7 @@
+ inf.type = SEVENZIP_ARCHIVE;
+ inf.name = "7z";
+ inf.extensions.append(".7z");
++ inf.extensions.append(".cb7");
+ if (which("7z") != QString::null)
+ {
+ inf.extractopts.append("7z");