/[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.5 - (hide annotations) (download)
Fri Mar 20 15:18:23 2015 UTC (3 years, 6 months ago) by dilfridge
Branch: MAIN
Changes since 1.4: +7 -3 lines
Correctly build against libopenjpeg-1 (for now), bug 538282

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

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

  ViewVC Help
Powered by ViewVC 1.1.20