/[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.9 - (show annotations) (download)
Fri May 29 13:00:45 2015 UTC (3 years, 4 months ago) by dilfridge
Branch: MAIN
Changes since 1.8: +2 -2 lines
Add slot operator for openjpeg

(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.8 2015/05/25 11:42:29 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:2= )
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 "${FILESDIR}/${PN}-0.33.0-openjpeg2.patch"
67 )
68
69 src_configure() {
70 local mycmakeargs=(
71 -DBUILD_GTK_TESTS=OFF
72 -DBUILD_QT4_TESTS=OFF
73 -DBUILD_QT5_TESTS=OFF
74 -DBUILD_CPP_TESTS=OFF
75 -DENABLE_SPLASH=ON
76 -DENABLE_ZLIB=ON
77 -DENABLE_XPDF_HEADERS=ON
78 $(cmake-utils_use_enable curl LIBCURL)
79 $(cmake-utils_use_enable cxx CPP)
80 $(cmake-utils_use_enable utils)
81 $(cmake-utils_use_with cairo)
82 $(cmake-utils_use_with introspection GObjectIntrospection)
83 $(cmake-utils_use_with jpeg)
84 $(cmake-utils_use_with png)
85 $(cmake-utils_use_with qt4)
86 $(cmake-utils_use_find_package qt5 Qt5Core)
87 $(cmake-utils_use_with tiff)
88 )
89 if use jpeg2k; then
90 mycmakeargs+=(-DENABLE_LIBOPENJPEG=openjpeg2)
91 else
92 mycmakeargs+=(-DENABLE_LIBOPENJPEG=)
93 fi
94 if use lcms; then
95 mycmakeargs+=(-DENABLE_CMS=lcms2)
96 else
97 mycmakeargs+=(-DENABLE_CMS=)
98 fi
99
100 cmake-utils_src_configure
101 }
102
103 src_install() {
104 cmake-utils_src_install
105
106 if use cairo && use doc; then
107 # For now install gtk-doc there
108 insinto /usr/share/gtk-doc/html/poppler
109 # nonfatal, because live version doesn't provide html documentation.
110 nonfatal doins -r "${S}"/glib/reference/html/*
111 fi
112 }

  ViewVC Help
Powered by ViewVC 1.1.20