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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon May 18 11:31:55 2015 UTC (3 years, 1 month ago) by dilfridge
Branch: MAIN
Changes since 1.5: +5 -4 lines
Minor updates to live ebuild; version bump

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 94BFDF4484AD142F)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/poppler/poppler-9999.ebuild,v 1.5 2015/03/20 15:18:23 dilfridge Exp $
4
5 EAPI=5
6
7 inherit cmake-utils toolchain-funcs
8
9 if [[ "${PV}" == "9999" ]] ; then
10 inherit git-r3
11 EGIT_REPO_URI="git://git.freedesktop.org/git/${PN}/${PN}"
12 SLOT="0/9999"
13 else
14 SRC_URI="http://poppler.freedesktop.org/${P}.tar.xz"
15 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"
16 SLOT="0/52" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION
17 fi
18
19 DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base"
20 HOMEPAGE="http://poppler.freedesktop.org/"
21
22 LICENSE="GPL-2"
23 IUSE="cairo cjk curl cxx debug doc +introspection +jpeg jpeg2k +lcms png qt4 qt5 tiff +utils"
24
25 # No test data provided
26 RESTRICT="test"
27
28 COMMON_DEPEND="
29 >=media-libs/fontconfig-2.6.0
30 >=media-libs/freetype-2.3.9
31 sys-libs/zlib
32 cairo? (
33 dev-libs/glib:2
34 >=x11-libs/cairo-1.10.0
35 introspection? ( >=dev-libs/gobject-introspection-1.32.1 )
36 )
37 curl? ( net-misc/curl )
38 jpeg? ( virtual/jpeg:0 )
39 jpeg2k? ( media-libs/openjpeg:0 )
40 lcms? ( media-libs/lcms:2 )
41 png? ( media-libs/libpng:0= )
42 qt4? (
43 dev-qt/qtcore:4
44 dev-qt/qtgui:4
45 )
46 qt5? (
47 dev-qt/qtcore:5
48 dev-qt/qtgui:5
49 dev-qt/qtxml:5
50 )
51 tiff? ( media-libs/tiff:0 )
52 "
53 DEPEND="${COMMON_DEPEND}
54 virtual/pkgconfig
55 "
56 RDEPEND="${COMMON_DEPEND}
57 cjk? ( >=app-text/poppler-data-0.4.4 )
58 "
59
60 DOCS=(AUTHORS NEWS README README-XPDF TODO)
61
62 PATCHES=(
63 "${FILESDIR}/${PN}-0.26.0-qt5-dependencies.patch"
64 "${FILESDIR}/${PN}-0.28.1-fix-multilib-configuration.patch"
65 "${FILESDIR}/${PN}-0.28.1-respect-cflags.patch"
66 )
67
68 src_configure() {
69 local mycmakeargs=(
70 -DBUILD_GTK_TESTS=OFF
71 -DBUILD_QT4_TESTS=OFF
72 -DBUILD_QT5_TESTS=OFF
73 -DBUILD_CPP_TESTS=OFF
74 -DENABLE_SPLASH=ON
75 -DENABLE_ZLIB=ON
76 -DENABLE_XPDF_HEADERS=ON
77 $(cmake-utils_use_enable curl LIBCURL)
78 $(cmake-utils_use_enable cxx CPP)
79 $(cmake-utils_use_enable utils)
80 $(cmake-utils_use_with cairo)
81 $(cmake-utils_use_with introspection GObjectIntrospection)
82 $(cmake-utils_use_with jpeg)
83 $(cmake-utils_use_with png)
84 $(cmake-utils_use_with qt4)
85 $(cmake-utils_use_find_package qt5 Qt5Core)
86 $(cmake-utils_use_with tiff)
87 )
88 if use jpeg2k; then
89 mycmakeargs+=(-DENABLE_LIBOPENJPEG=openjpeg1)
90 else
91 mycmakeargs+=(-DENABLE_LIBOPENJPEG=)
92 fi
93 if use lcms; then
94 mycmakeargs+=(-DENABLE_CMS=lcms2)
95 else
96 mycmakeargs+=(-DENABLE_CMS=)
97 fi
98
99 cmake-utils_src_configure
100 }
101
102 src_install() {
103 cmake-utils_src_install
104
105 if use cairo && use doc; then
106 # For now install gtk-doc there
107 insinto /usr/share/gtk-doc/html/poppler
108 # nonfatal, because live version doesn't provide html documentation.
109 nonfatal doins -r "${S}"/glib/reference/html/*
110 fi
111 }

  ViewVC Help
Powered by ViewVC 1.1.20