diff options
author | lioux <lioux@FreeBSD.org> | 2009-01-16 12:31:32 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2009-01-16 12:31:32 +0800 |
commit | d7b8b00d26439b7394e987e35c85497fc93b8efc (patch) | |
tree | dad5d8aaff189a36ce94fda24c0050c01a1f64fe /graphics | |
parent | b84403a73ace64d67bd491ab9f914c68f77482f6 (diff) | |
download | freebsd-ports-gnome-d7b8b00d26439b7394e987e35c85497fc93b8efc.tar.gz freebsd-ports-gnome-d7b8b00d26439b7394e987e35c85497fc93b8efc.tar.zst freebsd-ports-gnome-d7b8b00d26439b7394e987e35c85497fc93b8efc.zip |
o Add support for 7-Zip .cb7 comic book archive extension WITH_7ZIP
option which defaults to on
o Bump PORTREVISION
o Take over maintainership
PR: 130235
Approved by: maintainer (previous)
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/qcomicbook/Makefile | 15 | ||||
-rw-r--r-- | graphics/qcomicbook/files/patch-help__qcomicbook.1 | 11 | ||||
-rw-r--r-- | graphics/qcomicbook/files/patch-src__imgarchivesink.cpp | 10 |
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"); |