Mercurial > hg > portage
changeset 389:4c7b804e2d37
new ebuild for evas_generic_loaders that works with latest stable poppler
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Fri, 24 Apr 2015 15:25:49 +0200 |
parents | f43f356f7c65 |
children | 5c7895abbaa6 |
files | media-plugins/evas_generic_loaders/Manifest media-plugins/evas_generic_loaders/evas_generic_loaders-1.13.0-r1.ebuild media-plugins/evas_generic_loaders/files/v1.13.0-build_with_poppler_greater_or_equal_to_0.31.patch |
diffstat | 3 files changed, 136 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media-plugins/evas_generic_loaders/Manifest Fri Apr 24 15:25:49 2015 +0200 @@ -0,0 +1,3 @@ +AUX v1.13.0-build_with_poppler_greater_or_equal_to_0.31.patch 2736 SHA256 652056f35e70d3a47ad8fc414289513479b545037ace994e47c693749754aa76 SHA512 6c32e63635caeabdd038d4a4905ff0a2d9e1c1d65233a066f560ac57d3a8de356b0f7818d9dc0c482c08156c1b1a8464c83343292fba565a6120dfb6b1d1c752 WHIRLPOOL 6dc45c67b2c96158780a8833d2f562e606ab5960c7ef70a00d490b4ce88342ad9d264191a70e022450f290e38d32076233bdd6e259b401cb1277b51b525a4e65 +DIST evas_generic_loaders-1.13.0.tar.xz 186960 SHA256 390cc4a6e80351d918a53a372e0dac37e0e427c08e957cebcd8c3c686ae74398 SHA512 3ba370b64d676a109316dc26d6061fc5b4f1b1729d399d29f490d214d83dc5e7d639ab841f6b9128d69664eff4bab2fa52499272188d4c5fb3891276519750ea WHIRLPOOL 8352b334ba6865492d167d5fa6bce6c77b9586a7607ba8aa40ee93f0c5d3c5aa31362bdd9e5920551bd060afef1d603200ccd6a42de07f7588ccc004e0abbb06 +EBUILD evas_generic_loaders-1.13.0-r1.ebuild 1228 SHA256 955a5d73c6ed72dea2c3cba95b1d1292643c6da7e5e4cbf8a70918f286ca702d SHA512 02fcf504e21940acc8bd954977f5167f5c5582e3f3a59c7958d7259e779ea801e4364b679cec21effc87cb14d6cc459be02326b32303cd0ce07ead4ff778ff14 WHIRLPOOL c5d508c3c7496f8777a497a2044a57bd30b68ce0dd794f832fc5047e777dcfd8a388edcf218ec648d0a3ba3a5448caa0edaf93c3149ce8cdbaaebc7b48f387ea
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media-plugins/evas_generic_loaders/evas_generic_loaders-1.13.0-r1.ebuild Fri Apr 24 15:25:49 2015 +0200 @@ -0,0 +1,47 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/evas_generic_loaders/evas_generic_loaders-1.12.0.ebuild,v 1.2 2014/12/27 19:41:13 tommy Exp $ + +EAPI=5 + +inherit enlightenment + +MY_P=${PN}-${PV/_/-} + +DESCRIPTION="Provides external applications as generic loaders for Evas" +HOMEPAGE="http://www.enlightenment.org/" +SRC_URI="http://download.enlightenment.org/rel/libs/${PN}/${MY_P}.tar.xz" + +LOCENSE="GPL-2" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="gstreamer pdf postscript raw svg" + +S=${WORKDIR}/${MY_P} + +RDEPEND=" + >=dev-libs/efl-1.12.2 + sys-devel/automake:1.14 + gstreamer? ( media-libs/gstreamer:1.0 + media-libs/gst-plugins-base:1.0 ) + pdf? ( app-text/poppler ) + postscript? ( app-text/libspectre ) + raw? ( media-libs/libraw ) + svg? ( gnome-base/librsvg + x11-libs/cairo )" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/v1.13.0-build_with_poppler_greater_or_equal_to_0.31.patch +} + +src_configure() { + local MY_ECONF="$(use_enable gstreamer gstreamer1) + $(use_enable pdf poppler) + $(use_enable postscript spectre) + $(use_enable raw libraw) + $(use_enable svg) + + --disable-gstreamer" + + enlightenment_src_configure +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media-plugins/evas_generic_loaders/files/v1.13.0-build_with_poppler_greater_or_equal_to_0.31.patch Fri Apr 24 15:25:49 2015 +0200 @@ -0,0 +1,86 @@ +From 1e1a1e6fffc1805aadf75467e72af71391636075 Mon Sep 17 00:00:00 2001 +From: Stefan Schmidt <s.schmidt@samsung.com> +Date: Fri, 6 Mar 2015 10:44:50 +0100 +Subject: pdf: Add support for changes with poppler >= 0.31 + +With 0.31 poppler removed some parts of GlobalParams +which they do not consider a public API. The antialias +setting can now be done over the output device. + +Fixes T2184 +@fix + +diff --git a/configure.ac b/configure.ac +index 7e13584..1079c6e 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -73,15 +73,25 @@ if test "x${want_poppler}" = "xyes" ; then + [have_poppler="no"]) + + if test "x${have_poppler}" = "xno" ; then +- PKG_CHECK_EXISTS([poppler >= 0.20], ++ PKG_CHECK_EXISTS([poppler >= 0.20 poppler < 0.31], + [ +- poppler_pc="poppler >= 0.20" ++ poppler_pc="poppler >= 0.20 poppler < 0.31" + AC_DEFINE(HAVE_POPPLER_020, 1, [Have poppler 0.20]) + have_poppler="yes" + ], + [have_poppler="no"]) + fi + ++ if test "x${have_poppler}" = "xno" ; then ++ PKG_CHECK_EXISTS([poppler >= 0.31], ++ [ ++ poppler_pc="poppler >= 0.31" ++ AC_DEFINE(HAVE_POPPLER_031, 1, [Have poppler 0.31]) ++ have_poppler="yes" ++ ], ++ [have_poppler="no"]) ++ fi ++ + if test "x${have_poppler}" = "xyes" ; then + PKG_CHECK_MODULES([POPPLER], [${poppler_pc}], + [have_poppler="yes"], +diff --git a/src/bin/pdf/main.cpp b/src/bin/pdf/main.cpp +index a68b21f..78f918e 100644 +--- a/src/bin/pdf/main.cpp ++++ b/src/bin/pdf/main.cpp +@@ -62,10 +62,12 @@ Eina_Bool poppler_init(const char *file, int page_nbr, int size_w, int size_h) + if (!eina_init()) + goto del_global_param; + ++#ifndef HAVE_POPPLER_031 + if (globalParams->getAntialias()) + globalParams->setAntialias((char *)"yes"); + if (globalParams->getVectorAntialias()) + globalParams->setVectorAntialias((char *)"yes"); ++#endif + + pdfdoc = new PDFDoc(new GooString(file), NULL); + if (!pdfdoc) +@@ -161,7 +163,7 @@ void poppler_load_image(int size_w, int size_h) + if (!output_dev) + return; + +-#ifdef HAVE_POPPLER_020 ++#if defined(HAVE_POPPLER_020) || defined(HAVE_POPPLER_031) + output_dev->startDoc(pdfdoc); + #else + output_dev->startDoc(pdfdoc->getXRef()); +@@ -169,8 +171,12 @@ void poppler_load_image(int size_w, int size_h) + + if (dpi <= 0.0) dpi = DEF_DPI; + ++#ifdef HAVE_POPPLER_031 ++ output_dev->setFontAntialias(EINA_TRUE); ++ output_dev->setVectorAntialias(EINA_TRUE); ++#endif + +-#ifdef HAVE_POPPLER_020 ++#if defined(HAVE_POPPLER_020) || defined(HAVE_POPPLER_031) + page->displaySlice(output_dev, dpi, dpi, + 0, false, false, + 0, 0, width, height, +-- +cgit v0.10.1