djvu port from 1.2 version bump need for okular
This commit is contained in:
@@ -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")
|
||||
@@ -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 <cstddef>
|
||||
+
|
||||
/** @name GSmartPointer.h
|
||||
|
||||
Files #"GSmartPointer.h"# and #"GSmartPointer.cpp"# define a smart-pointer
|
||||
@@ -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
|
||||
@@ -0,0 +1,84 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>djvu</Name>
|
||||
<Homepage>http://djvu.sourceforge.net</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2</License>
|
||||
<IsA>app:gui</IsA>
|
||||
<IsA>library</IsA>
|
||||
<Summary>DjVu viewers, encoders and utilities</Summary>
|
||||
<Description>DjVu is a web-centric format and software platform to distribute documents and images.</Description>
|
||||
<Archive sha1sum="99c4f2c621c063bf8c8a1626030539fe5a8675f9" type="targz">mirrors://sourceforge/djvu/djvulibre-3.5.27.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>libjpeg-turbo-devel</Dependency>
|
||||
<Dependency>tiff-devel</Dependency>
|
||||
<Dependency>xdg-utils</Dependency>
|
||||
<Dependency>libXt-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">no-pthread.diff</Patch>
|
||||
<Patch level="1">djvulibre-3.5.22-cdefs.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>djvu</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>shared-mime-info</Dependency>
|
||||
<Dependency>libjpeg-turbo</Dependency>
|
||||
<Dependency>tiff</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="data">/usr/share/icons</Path>
|
||||
<Path fileType="data">/usr/share/applications</Path>
|
||||
<Path fileType="data">/usr/share/djvu</Path>
|
||||
<Path fileType="data">/usr/share/mime</Path>
|
||||
<Path fileType="data">/opt/netscape</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>djvu-devel</Name>
|
||||
<Summary>Development files for djvu</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">djvu</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="3">
|
||||
<Date>2015-11-02</Date>
|
||||
<Version>3.5.27</Version>
|
||||
<Comment>Version Bump.</Comment>
|
||||
<Name>Stefan Gronewold(groni)</Name>
|
||||
<Email>groni@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2014-01-22</Date>
|
||||
<Version>3.5.25.3</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>Stefan Gronewold(groni)</Name>
|
||||
<Email>groni@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-10-21</Date>
|
||||
<Version>3.5.25.3</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>djvu</Name>
|
||||
<Summary xml:lang="tr">DjVu görüntüleyicileri, sıkıştırıcı ve ekipmanları</Summary>
|
||||
<Description xml:lang="tr">Belgeleri, kitapları bilinen formatlardan çok daha yüksek sıkıştırma oranlarında sıkıştıran DjVu formatı ekipmanları.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>djvu-devel</Name>
|
||||
<Summary xml:lang="tr">djvu için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user