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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Oct 11 18:38:29 2012 UTC (7 months, 1 week ago) by reavertm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump, remove old.

(Portage version: 2.2.0_alpha137/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/poppler/poppler-0.20.3.ebuild,v 1.1 2012/08/12 23:28:56 reavertm Exp $
4
5 EAPI=4
6
7 inherit cmake-utils
8
9 DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base"
10 HOMEPAGE="http://poppler.freedesktop.org/"
11 SRC_URI="http://poppler.freedesktop.org/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 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 SLOT="0"
16 IUSE="cairo cjk curl cxx debug doc +introspection jpeg jpeg2k +lcms png qt4 tiff +utils"
17
18 # No test data provided
19 RESTRICT="test"
20
21 COMMON_DEPEND="
22 >=media-libs/fontconfig-2.6.0
23 >=media-libs/freetype-2.3.9
24 sys-libs/zlib
25 cairo? (
26 dev-libs/glib:2
27 >=x11-libs/cairo-1.10.0
28 introspection? ( >=dev-libs/gobject-introspection-1.32.1 )
29 )
30 curl? ( net-misc/curl )
31 jpeg? ( virtual/jpeg )
32 jpeg2k? ( media-libs/openjpeg )
33 lcms? ( media-libs/lcms:2 )
34 png? ( >=media-libs/libpng-1.4:0 )
35 qt4? (
36 x11-libs/qt-core:4
37 x11-libs/qt-gui:4
38 )
39 tiff? ( media-libs/tiff:0 )
40 "
41 DEPEND="${COMMON_DEPEND}
42 virtual/pkgconfig
43 "
44 RDEPEND="${COMMON_DEPEND}
45 !dev-libs/poppler
46 !dev-libs/poppler-glib
47 !dev-libs/poppler-qt3
48 !dev-libs/poppler-qt4
49 !app-text/poppler-utils
50 cjk? ( >=app-text/poppler-data-0.4.4 )
51 "
52
53 PATCHES=(
54 "${FILESDIR}/${PN}-0.20.1-lcms-automagic.patch"
55 )
56
57 DOCS=(AUTHORS ChangeLog NEWS README README-XPDF TODO)
58
59 src_configure() {
60 mycmakeargs=(
61 -DBUILD_GTK_TESTS=OFF
62 -DBUILD_QT4_TESTS=OFF
63 -DBUILD_CPP_TESTS=OFF
64 -DENABLE_SPLASH=ON
65 -DENABLE_ZLIB=ON
66 -DENABLE_XPDF_HEADERS=ON
67 $(cmake-utils_use_enable curl LIBCURL)
68 $(cmake-utils_use_enable cxx CPP)
69 $(cmake-utils_use_enable jpeg2k LIBOPENJPEG)
70 $(cmake-utils_use_enable utils)
71 $(cmake-utils_use_with cairo)
72 $(cmake-utils_use_with introspection GObjectIntrospection)
73 $(cmake-utils_use_with jpeg)
74 $(cmake-utils_use_with png)
75 $(cmake-utils_use_with qt4)
76 $(cmake-utils_use_with tiff)
77 )
78 if use lcms; then
79 mycmakeargs+=(-DENABLE_CMS=lcms2)
80 else
81 mycmakeargs+=(-DENABLE_CMS=)
82 fi
83
84 cmake-utils_src_configure
85 }
86
87 src_install() {
88 cmake-utils_src_install
89
90 if use cairo && use doc; then
91 # For now install gtk-doc there
92 insinto /usr/share/gtk-doc/html/poppler
93 doins -r "${S}"/glib/reference/html/* || die 'failed to install API documentation'
94 fi
95 }
96
97 pkg_postinst() {
98 ewarn "After upgrading app-text/poppler you may need to reinstall packages"
99 ewarn "linking to it. If you're not a portage-2.2_rc user, you're advised"
100 ewarn "to run revdep-rebuild"
101 }

  ViewVC Help
Powered by ViewVC 1.1.13