/[gentoo-x86]/app-text/poppler/poppler-0.24.5.ebuild
Gentoo

Contents of /app-text/poppler/poppler-0.24.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sun Jan 12 13:15:31 2014 UTC (18 months, 3 weeks ago) by ago
Branch: MAIN
Changes since 1.9: +2 -2 lines
Stable for ia64, wrt bug #496770

(Portage version: 2.2.7/cvs/Linux ppc64, RepoMan options: --include-arches="ia64", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/poppler/poppler-0.24.5.ebuild,v 1.9 2014/01/05 09:37:44 ago Exp $
4
5 EAPI=5
6
7 inherit cmake-utils toolchain-funcs
8
9 DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base"
10 HOMEPAGE="http://poppler.freedesktop.org/"
11 SRC_URI="http://poppler.freedesktop.org/${P}.tar.xz"
12
13 LICENSE="GPL-2"
14 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"
15 SLOT="0/44"
16 IUSE="cairo cjk curl cxx debug doc +introspection +jpeg jpeg2k +lcms png qt4 tiff +utils"
17
18 # No test data provided
19 RESTRICT="test"
20
21 COMMON_DEPEND="
22 >=media-libs/fontconfig-2.6.0
23 >=media-libs/freetype-2.3.9
24 sys-libs/zlib
25 cairo? (
26 dev-libs/glib:2
27 >=x11-libs/cairo-1.10.0
28 introspection? ( >=dev-libs/gobject-introspection-1.32.1 )
29 )
30 curl? ( net-misc/curl )
31 jpeg? ( virtual/jpeg:0 )
32 jpeg2k? ( media-libs/openjpeg:0 )
33 lcms? ( media-libs/lcms:2 )
34 png? ( media-libs/libpng:0= )
35 qt4? (
36 dev-qt/qtcore:4
37 dev-qt/qtgui:4
38 )
39 tiff? ( media-libs/tiff:0 )
40 "
41 DEPEND="${COMMON_DEPEND}
42 virtual/pkgconfig
43 "
44 RDEPEND="${COMMON_DEPEND}
45 cjk? ( >=app-text/poppler-data-0.4.4 )
46 "
47
48 DOCS=(AUTHORS NEWS README README-XPDF TODO)
49
50 src_configure() {
51 # this is needed for multilib, see bug 459394
52 local ft_libdir ft_includedir
53 ft_libdir="$($(tc-getPKG_CONFIG) freetype2 --variable=libdir)"
54 ft_includedir="$($(tc-getPKG_CONFIG) freetype2 --variable=includedir)"
55 export FREETYPE_DIR="${ft_libdir}:${ft_includedir%/include}"
56 einfo "Detected FreeType at ${FREETYPE_DIR}"
57
58 mycmakeargs=(
59 -DBUILD_GTK_TESTS=OFF
60 -DBUILD_QT4_TESTS=OFF
61 -DBUILD_QT5_TESTS=OFF
62 -DBUILD_CPP_TESTS=OFF
63 -DENABLE_SPLASH=ON
64 -DENABLE_ZLIB=ON
65 -DENABLE_XPDF_HEADERS=ON
66 $(cmake-utils_use_enable curl LIBCURL)
67 $(cmake-utils_use_enable cxx CPP)
68 $(cmake-utils_use_enable jpeg2k LIBOPENJPEG)
69 $(cmake-utils_use_enable utils)
70 $(cmake-utils_use_with cairo)
71 $(cmake-utils_use_with introspection GObjectIntrospection)
72 $(cmake-utils_use_with jpeg)
73 $(cmake-utils_use_with png)
74 $(cmake-utils_use_with qt4)
75 -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Core=ON
76 $(cmake-utils_use_with tiff)
77 )
78 if use lcms; then
79 mycmakeargs+=(-DENABLE_CMS=lcms2)
80 else
81 mycmakeargs+=(-DENABLE_CMS=)
82 fi
83
84 cmake-utils_src_configure
85 }
86
87 src_install() {
88 cmake-utils_src_install
89
90 if use cairo && use doc; then
91 # For now install gtk-doc there
92 insinto /usr/share/gtk-doc/html/poppler
93 doins -r "${S}"/glib/reference/html/*
94 fi
95 }

  ViewVC Help
Powered by ViewVC 1.1.20