From bcdeb674ee58a25b25675a62e143e9f8646a6c10 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 21 Oct 2011 22:01:45 +0200 Subject: [PATCH] New package: djvulibre-3.5.24. --- srcpkgs/djvulibre-devel | 1 + srcpkgs/djvulibre/depends | 2 ++ srcpkgs/djvulibre/djvulibre-devel.template | 15 ++++++++ srcpkgs/djvulibre/libdjvulibre.template | 15 ++++++++ .../patches/djvu-3.5.23-gcc-4.6.patch | 12 +++++++ srcpkgs/djvulibre/template | 34 +++++++++++++++++++ srcpkgs/libdjvulibre | 1 + xbps-src/common/mapping_shlib_binpkg.txt | 1 + 8 files changed, 81 insertions(+) create mode 120000 srcpkgs/djvulibre-devel create mode 100644 srcpkgs/djvulibre/depends create mode 100644 srcpkgs/djvulibre/djvulibre-devel.template create mode 100644 srcpkgs/djvulibre/libdjvulibre.template create mode 100644 srcpkgs/djvulibre/patches/djvu-3.5.23-gcc-4.6.patch create mode 100644 srcpkgs/djvulibre/template create mode 120000 srcpkgs/libdjvulibre diff --git a/srcpkgs/djvulibre-devel b/srcpkgs/djvulibre-devel new file mode 120000 index 00000000000..8bff0a18784 --- /dev/null +++ b/srcpkgs/djvulibre-devel @@ -0,0 +1 @@ +djvulibre \ No newline at end of file diff --git a/srcpkgs/djvulibre/depends b/srcpkgs/djvulibre/depends new file mode 100644 index 00000000000..c9abcc77b45 --- /dev/null +++ b/srcpkgs/djvulibre/depends @@ -0,0 +1,2 @@ +abi_depends=">=3.5.24" +api_depends="${abi_depends}" diff --git a/srcpkgs/djvulibre/djvulibre-devel.template b/srcpkgs/djvulibre/djvulibre-devel.template new file mode 100644 index 00000000000..e27f5a3f545 --- /dev/null +++ b/srcpkgs/djvulibre/djvulibre-devel.template @@ -0,0 +1,15 @@ +# Template file for 'djvulibre-devel'. +# +short_desc="Development files for the DjVu image format" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run jpeg-devel +Add_dependency run libdjvulibre + +do_install() +{ + vmove usr/include usr + vmove usr/lib/pkgconfig usr/lib +} diff --git a/srcpkgs/djvulibre/libdjvulibre.template b/srcpkgs/djvulibre/libdjvulibre.template new file mode 100644 index 00000000000..0b5c027c9d7 --- /dev/null +++ b/srcpkgs/djvulibre/libdjvulibre.template @@ -0,0 +1,15 @@ +# Template file for 'libdjvulibre'. +# +short_desc="Runtime support for the DjVu image format" +long_desc="${long_desc} + + This package contains the DjVu runtime library." + +Add_dependency run libgcc +Add_dependency run glibc +Add_dependency run libstdc++ + +do_install() +{ + vmove "usr/lib/*.so*" usr/lib +} diff --git a/srcpkgs/djvulibre/patches/djvu-3.5.23-gcc-4.6.patch b/srcpkgs/djvulibre/patches/djvu-3.5.23-gcc-4.6.patch new file mode 100644 index 00000000000..afd59f0f2a0 --- /dev/null +++ b/srcpkgs/djvulibre/patches/djvu-3.5.23-gcc-4.6.patch @@ -0,0 +1,12 @@ +--- libdjvu/GSmartPointer.h~ 2011-03-29 12:35:05.000000000 +0400 ++++ libdjvu/GSmartPointer.h 2011-03-29 12:35:25.000000000 +0400 +@@ -58,6 +58,9 @@ + + #ifndef _GSMARTPOINTER_H_ + #define _GSMARTPOINTER_H_ ++ ++#include ++ + #ifdef HAVE_CONFIG_H + #include "config.h" + #endif diff --git a/srcpkgs/djvulibre/template b/srcpkgs/djvulibre/template new file mode 100644 index 00000000000..5f402d8390c --- /dev/null +++ b/srcpkgs/djvulibre/template @@ -0,0 +1,34 @@ +# Template file for 'djvulibre' +pkgname=djvulibre +version=3.5.24 +homepage="http://djvu.sourceforge.net/" +distfiles="${SOURCEFORGE_SITE}/djvu/$pkgname-$version.tar.gz" +build_style=gnu_configure +configure_args="--disable-desktopfiles" +short_desc="Utilities for the DjVu image format" +maintainer="Juan RP " +license="GPL-2" +checksum=c0734c81d22a0e458c3fb5efd4c3eab051bcb6ad8740f5a5784c1f5699482534 +long_desc=" + DjVu is a set of compression technologies, a file format, and a software + platform for the delivery over the Web of digital documents, scanned + documents, and high resolution images. + + DjVu documents download and display extremely quickly, and look exactly the + same on all platforms. DjVu can be seen as a superior alternative to PDF + and Postscript for digital documents, to TIFF (and PDF) for scanned documents, + to JPEG for photographs and pictures, and to GIF for large palettized images. + DjVu is the only Web format that is practical for distributing high-resolution + scanned documents in color." + +subpackages="lib${pkgname} ${pkgname}-devel" + +Add_dependency run libgcc +Add_dependency run glibc +Add_dependency run libstdc++ +Add_dependency run tiff +Add_dependency run libdjvulibre + +Add_dependency build pkg-config +Add_dependency build tiff-devel + diff --git a/srcpkgs/libdjvulibre b/srcpkgs/libdjvulibre new file mode 120000 index 00000000000..8bff0a18784 --- /dev/null +++ b/srcpkgs/libdjvulibre @@ -0,0 +1 @@ +djvulibre \ No newline at end of file diff --git a/xbps-src/common/mapping_shlib_binpkg.txt b/xbps-src/common/mapping_shlib_binpkg.txt index 48cf28f2801..900d19b5957 100644 --- a/xbps-src/common/mapping_shlib_binpkg.txt +++ b/xbps-src/common/mapping_shlib_binpkg.txt @@ -892,3 +892,4 @@ libdmapsharing-3.0.so.2 libdmapsharing libdmapsharing-devel libgexiv2.so.0 libgexiv2 libgexiv2-devel libraw.so.5 libraw libraw-devel libraw_r.so.5 libraw libraw-devel +libdjvulibre.so.21 libdjvulibre djvulibre-devel