new package: poppler-glib

Alternate build of poppler - provides glib bindings.
This commit is contained in:
Leonid Pliushch 2019-01-24 19:52:33 +02:00 committed by Yaksh Bariya
parent 35ef643c3a
commit 7780c99802
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
3 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,23 @@
TERMUX_PKG_HOMEPAGE=https://poppler.freedesktop.org/
TERMUX_PKG_DESCRIPTION="PDF rendering library based on xpdf 3.0 (with glib bindings)"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"
TERMUX_PKG_VERSION=0.72.0
TERMUX_PKG_SRCURL=https://poppler.freedesktop.org/poppler-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=c1747eb8f26e9e753c4001ed951db2896edc1021b6d0f547a0bd2a27c30ada51
TERMUX_PKG_DEPENDS="fontconfig, glib, libcairo, libpng, libjpeg-turbo, libtiff, littlecms, openjpeg, freetype, libcurl"
TERMUX_PKG_CONFLICTS="poppler"
TERMUX_PKG_PROVIDES="poppler"
TERMUX_PKG_REPLACES="poppler"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DENABLE_GLIB=ON
-DENABLE_XPDF_HEADERS=ON
-DENABLE_QT5=OFF
-DFONT_CONFIGURATION=fontconfig
"
TERMUX_PKG_RM_AFTER_INSTALL="bin/poppler-glib-demo"
## TODO: Enable glib bindings in main repo ?

View File

@ -0,0 +1,26 @@
diff -u -r ../poppler-0.26.2/goo/gstrtod.cc ./goo/gstrtod.cc
--- ../poppler-0.26.2/goo/gstrtod.cc 2014-04-26 17:37:22.000000000 +0200
+++ ./goo/gstrtod.cc 2014-06-26 08:44:42.000000000 +0200
@@ -41,7 +41,9 @@
{
char *fail_pos;
double val;
+#ifndef __ANDROID__
struct lconv *locale_data;
+#endif
const char *decimal_point;
int decimal_point_len;
const char *p, *decimal_point_pos;
@@ -50,8 +52,12 @@
fail_pos = NULL;
+#ifdef __ANDROID__
+ decimal_point = ".";
+#else
locale_data = localeconv ();
decimal_point = locale_data->decimal_point;
+#endif
decimal_point_len = strlen (decimal_point);
decimal_point_pos = NULL;

View File

@ -0,0 +1,13 @@
Include <ctype.h> for isxdigit(3).
diff -u -r ../poppler-0.59.0/poppler/Form.cc ./poppler/Form.cc
--- ../poppler-0.59.0/poppler/Form.cc 2017-08-16 00:16:09.000000000 +0200
+++ ./poppler/Form.cc 2017-09-11 20:06:45.434163003 +0200
@@ -29,6 +29,7 @@
#include <set>
#include <limits>
+#include <ctype.h>
#include <stddef.h>
#include <string.h>
#include "goo/gmem.h"