diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-03 14:51:55 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-03 14:51:55 +0000 |
commit | b1142880156f5cf96352a4e511fa5dd373852f5a (patch) | |
tree | febb52d95d32d748740bd9770d52223d030f29a1 /testing | |
parent | 4079c977573ad4bf49f1e83a95adff26009101e7 (diff) | |
download | aports-b1142880156f5cf96352a4e511fa5dd373852f5a.tar.bz2 aports-b1142880156f5cf96352a4e511fa5dd373852f5a.tar.xz |
testing/cups-filters: new aport
OpenPrinting CUPS filters and backends
http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdf_as_standard_print_job_format
Diffstat (limited to 'testing')
-rw-r--r-- | testing/cups-filters/APKBUILD | 58 | ||||
-rw-r--r-- | testing/cups-filters/isnan.patch | 17 |
2 files changed, 75 insertions, 0 deletions
diff --git a/testing/cups-filters/APKBUILD b/testing/cups-filters/APKBUILD new file mode 100644 index 0000000000..a29bfa1146 --- /dev/null +++ b/testing/cups-filters/APKBUILD @@ -0,0 +1,58 @@ +# Contributor: +# Maintainer: +pkgname=cups-filters +pkgver=1.0.24 +pkgrel=0 +pkgdesc="OpenPrinting CUPS filters and backends" +url="http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdf_as_standard_print_job_format" +arch="all" +license="GPLv2 and GPLv2+ and GPLv3 and MIT" +depends="poppler-utils" +depends_dev="" +makedepends="$depends_dev cups-dev jpeg-dev poppler-dev zlib-dev libpng-dev + tiff-dev lcms-dev freetype-dev ghostscript-dev fontconfig-dev + qpdf-dev" +install="" +subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" +patches="isnan.patch" +source="http://www.openprinting.org/download/cups-filters/cups-filters-$pkgver.tar.xz + $patches" + +_builddir="$srcdir"/cups-filters-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --disable-static \ + --with-pdftops=pdftops \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make -j1 DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +libs() { + pkgdesc="OpenPrinting CUPS filters and backends - cupsfilters and fontembed libraries" + install -d "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/lib*.so.* "$subpkgdir"/usr/lib/ +} + +md5sums="4c638c1f1875c984c3d97179e89380c8 cups-filters-1.0.24.tar.xz +63dc308cb6e650a5c3dc2a3fbdab5057 isnan.patch" diff --git a/testing/cups-filters/isnan.patch b/testing/cups-filters/isnan.patch new file mode 100644 index 0000000000..187201fb98 --- /dev/null +++ b/testing/cups-filters/isnan.patch @@ -0,0 +1,17 @@ +--- ./filter/pdftopdf/pptypes.cc.orig ++++ ./filter/pdftopdf/pptypes.cc +@@ -163,10 +163,10 @@ + + void PageRect::set(const PageRect &rhs) // {{{ + { +- if (!isnan(rhs.top)) top=rhs.top; +- if (!isnan(rhs.left)) left=rhs.left; +- if (!isnan(rhs.right)) right=rhs.right; +- if (!isnan(rhs.bottom)) bottom=rhs.bottom; ++ if (!std::isnan(rhs.top)) top=rhs.top; ++ if (!std::isnan(rhs.left)) left=rhs.left; ++ if (!std::isnan(rhs.right)) right=rhs.right; ++ if (!std::isnan(rhs.bottom)) bottom=rhs.bottom; + } + // }}} + |