diff options
author | BlackNoxis <steven.darklight@gmail.com> | 2015-01-17 12:42:17 +0200 |
---|---|---|
committer | BlackNoxis <steven.darklight@gmail.com> | 2015-01-17 12:42:17 +0200 |
commit | d9b2b543ecb113ba5deeb37fca59d54beac1a3e7 (patch) | |
tree | bfec2913837c2455b95e0771b45452431d773e0d /app-text/poppler-glib/poppler-glib-0.24.5.ebuild | |
parent | 68b805cc946254e49672177551d7239589465441 (diff) |
Added poppler splitted, pastebunz for us (we need to create a pastebin), calibre, epdf
Diffstat (limited to 'app-text/poppler-glib/poppler-glib-0.24.5.ebuild')
-rw-r--r-- | app-text/poppler-glib/poppler-glib-0.24.5.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/app-text/poppler-glib/poppler-glib-0.24.5.ebuild b/app-text/poppler-glib/poppler-glib-0.24.5.ebuild new file mode 100644 index 00000000..b666c2bd --- /dev/null +++ b/app-text/poppler-glib/poppler-glib-0.24.5.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit eutils libtool multilib autotools + +DESCRIPTION="Glib bindings for poppler" +HOMEPAGE="http://poppler.freedesktop.org/" +SRC_URI="http://poppler.freedesktop.org/poppler-${PV}.tar.xz" + +LICENSE="GPL-2" +KEYWORDS="alpha amd64 arm hppa ~ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +SLOT="0/43" + +IUSE="cairo doc +introspection" +S="${WORKDIR}/poppler-${PV}" + +# No test data provided +RESTRICT="test" + +COMMON_DEPEND=" + cairo? ( + dev-libs/glib:2 + >=x11-libs/cairo-1.10.0 + introspection? ( >=dev-libs/gobject-introspection-1.32.1 ) + ) +" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig +" +RDEPEND="${COMMON_DEPEND} + ~app-text/poppler-base-${PV} +" + +src_configure() { + local intro=$(use introspection && echo "yes" || echo "no") + econf \ + --enable-introspection="${intro}" \ + --enable-poppler-glib \ + --enable-zlib \ + --enable-splash-output \ + --disable-gtk-test \ + --disable-poppler-qt4 \ + --disable-poppler-qt5 \ + --disable-xpdf-headers \ + --disable-libjpeg \ + --disable-libopenjpeg \ + --disable-libpng \ + --disable-utils || die "econf failed" +} + +src_install() { + cd "${S}/glib" || die + emake DESTDIR="${ED}" install || die "cannot install" + + # install pkg-config data + insinto /usr/$(get_libdir)/pkgconfig + doins "${S}"/poppler-glib.pc + use cairo && doins "${S}"/poppler-cairo.pc + + if use cairo && use doc; then + # For now install gtk-doc there + insinto /usr/share/gtk-doc/html/poppler + doins -r "${S}"/glib/reference/html/* \ + || die "failed to install API documentation" + fi +} |