Commit b1142880 authored by Natanael Copa's avatar Natanael Copa
Browse files

testing/cups-filters: new aport

OpenPrinting CUPS filters and backends
http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdf_as_standard_print_job_format
parent 4079c977
# 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"
--- ./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;
}
// }}}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment