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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20