/[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.4 - (hide annotations) (download)
Wed Dec 3 20:57:38 2014 UTC (3 years, 8 months ago) by tamiko
Branch: MAIN
Changes since 1.3: +6 -3 lines
respect cflags, bug #529645; fix live ebuild

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key BD3A97A3)

1 dilfridge 1.1 # Copyright 1999-2014 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 tamiko 1.4 # $Header: /var/cvsroot/gentoo-x86/app-text/poppler/poppler-9999.ebuild,v 1.3 2014/11/10 23:16:36 dilfridge 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 jpeg2k LIBOPENJPEG)
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 lcms; then
89     mycmakeargs+=(-DENABLE_CMS=lcms2)
90     else
91     mycmakeargs+=(-DENABLE_CMS=)
92     fi
93    
94     cmake-utils_src_configure
95     }
96    
97     src_install() {
98     cmake-utils_src_install
99    
100     if use cairo && use doc; then
101     # For now install gtk-doc there
102     insinto /usr/share/gtk-doc/html/poppler
103 tamiko 1.4 # nonfatal, because live version doesn't provide html documentation.
104     nonfatal doins -r "${S}"/glib/reference/html/*
105 dilfridge 1.1 fi
106     }

  ViewVC Help
Powered by ViewVC 1.1.20