From 44c90fae4fbfb5ea1f7354b62e64a8a6df8eb75f Mon Sep 17 00:00:00 2001 From: groni Date: Mon, 2 Nov 2015 21:42:47 +0100 Subject: [PATCH] djvu port from 1.2 version bump need for okular --- office/misc/djvu/actions.py | 34 ++++++++ .../djvu/files/djvulibre-3.5.22-cdefs.patch | 12 +++ office/misc/djvu/files/no-pthread.diff | 13 +++ office/misc/djvu/pspec.xml | 84 +++++++++++++++++++ office/misc/djvu/translations.xml | 13 +++ 5 files changed, 156 insertions(+) create mode 100644 office/misc/djvu/actions.py create mode 100644 office/misc/djvu/files/djvulibre-3.5.22-cdefs.patch create mode 100644 office/misc/djvu/files/no-pthread.diff create mode 100644 office/misc/djvu/pspec.xml create mode 100644 office/misc/djvu/translations.xml diff --git a/office/misc/djvu/actions.py b/office/misc/djvu/actions.py new file mode 100644 index 0000000000..82b91a4274 --- /dev/null +++ b/office/misc/djvu/actions.py @@ -0,0 +1,34 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +WorkDir = "djvulibre-%s" % get.srcVERSION() if len(get.srcVERSION().split(".")) < 4 else "djvulibre-%s" % get.srcVERSION()[:get.srcVERSION().rfind(".")] + +def setup(): + autotools.aclocal("-I config") + autotools.autoconf("-f") + + autotools.configure("--enable-threads \ + --disable-desktopfiles \ + --enable-xmltools \ + --enable-i18n \ + --with-jpeg \ + --with-tiff") +def build(): + autotools.make() + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + + pisitools.insinto("/usr/share/mime/packages", "desktopfiles/djvulibre-mime.xml") + + for size in ["22", "32", "48", "64"]: + pisitools.insinto("/usr/share/icons/hicolor/%sx%s/mimetypes" %(size, size), "desktopfiles/prebuilt-hi%s-djvu.png" % size, "image-vnd.djvu.png") + + pisitools.dodoc("COPY*", "README", "NEWS") diff --git a/office/misc/djvu/files/djvulibre-3.5.22-cdefs.patch b/office/misc/djvu/files/djvulibre-3.5.22-cdefs.patch new file mode 100644 index 0000000000..d62ef08eab --- /dev/null +++ b/office/misc/djvu/files/djvulibre-3.5.22-cdefs.patch @@ -0,0 +1,12 @@ +diff -up djvulibre-3.5.22/libdjvu/GSmartPointer.h.cdefs djvulibre-3.5.22/libdjvu/GSmartPointer.h +--- djvulibre-3.5.22/libdjvu/GSmartPointer.h.cdefs 2008-03-05 01:44:20.000000000 +0000 ++++ djvulibre-3.5.22/libdjvu/GSmartPointer.h 2011-01-31 13:43:37.595917364 +0000 +@@ -65,6 +65,8 @@ + # pragma interface + #endif + ++#include ++ + /** @name GSmartPointer.h + + Files #"GSmartPointer.h"# and #"GSmartPointer.cpp"# define a smart-pointer diff --git a/office/misc/djvu/files/no-pthread.diff b/office/misc/djvu/files/no-pthread.diff new file mode 100644 index 0000000000..b9845b23be --- /dev/null +++ b/office/misc/djvu/files/no-pthread.diff @@ -0,0 +1,13 @@ +Index: djvulibre-3.5.22/config/acinclude.m4 +=================================================================== +--- djvulibre-3.5.22.orig/config/acinclude.m4 ++++ djvulibre-3.5.22/config/acinclude.m4 +@@ -408,7 +408,7 @@ case "${host_os}-${GCC}" in + # On Linux/GCC, libtool uses -nostdlib for linking, which cancel part + # of the -pthread flag effect (libpthread is not automatically linked). + # So we'll try to link with both -pthread and -lpthread first: +- acx_pthread_flags="-pthread:pthread $acx_pthread_flags" ++ acx_pthread_flags="-lpthread -pthread:pthread $acx_pthread_flags" + ;; + esac + if test x"$acx_pthread_ok" = xno; then diff --git a/office/misc/djvu/pspec.xml b/office/misc/djvu/pspec.xml new file mode 100644 index 0000000000..35118c4916 --- /dev/null +++ b/office/misc/djvu/pspec.xml @@ -0,0 +1,84 @@ + + + + + djvu + http://djvu.sourceforge.net + + PisiLinux Community + admins@pisilinux.org + + GPLv2 + app:gui + library + DjVu viewers, encoders and utilities + DjVu is a web-centric format and software platform to distribute documents and images. + mirrors://sourceforge/djvu/djvulibre-3.5.27.tar.gz + + libjpeg-turbo-devel + tiff-devel + xdg-utils + libXt-devel + + + no-pthread.diff + djvulibre-3.5.22-cdefs.patch + + + + + djvu + + shared-mime-info + libjpeg-turbo + tiff + + + /usr/bin + /usr/lib + /usr/share/icons + /usr/share/applications + /usr/share/djvu + /usr/share/mime + /opt/netscape + /usr/share/doc + /usr/share/man + + + + + djvu-devel + Development files for djvu + + djvu + + + /usr/include + /usr/lib/pkgconfig + + + + + + 2015-11-02 + 3.5.27 + Version Bump. + Stefan Gronewold(groni) + groni@pisilinux.org + + + 2014-01-22 + 3.5.25.3 + Rebuild + Stefan Gronewold(groni) + groni@pisilinux.org + + + 2012-10-21 + 3.5.25.3 + First release + Marcin Bojara + marcin@pisilinux.org + + + \ No newline at end of file diff --git a/office/misc/djvu/translations.xml b/office/misc/djvu/translations.xml new file mode 100644 index 0000000000..3ac92063a3 --- /dev/null +++ b/office/misc/djvu/translations.xml @@ -0,0 +1,13 @@ + + + + djvu + DjVu görüntüleyicileri, sıkıştırıcı ve ekipmanları + Belgeleri, kitapları bilinen formatlardan çok daha yüksek sıkıştırma oranlarında sıkıştıran DjVu formatı ekipmanları. + + + + djvu-devel + djvu için geliştirme dosyaları + +