/[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.9 Revision 1.10
1# Copyright 1999-2015 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.9 2015/05/29 13:00:45 dilfridge Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-text/poppler/poppler-9999.ebuild,v 1.10 2015/06/21 11:59:02 johu Exp $
4 4
5EAPI=5 5EAPI=5
6 6
7inherit cmake-utils toolchain-funcs 7inherit cmake-utils toolchain-funcs
8 8
64 "${FILESDIR}/${PN}-0.28.1-fix-multilib-configuration.patch" 64 "${FILESDIR}/${PN}-0.28.1-fix-multilib-configuration.patch"
65 "${FILESDIR}/${PN}-0.28.1-respect-cflags.patch" 65 "${FILESDIR}/${PN}-0.28.1-respect-cflags.patch"
66 "${FILESDIR}/${PN}-0.33.0-openjpeg2.patch" 66 "${FILESDIR}/${PN}-0.33.0-openjpeg2.patch"
67) 67)
68 68
69src_prepare() {
70 cmake-utils_src_prepare
71
72 # Clang doesn't grok this flag, the configure nicely tests that, but
73 # cmake just uses it, so remove it if we use clang
74 if [[ ${CC} == clang ]] ; then
75 sed -i -e 's/-fno-check-new//' cmake/modules/PopplerMacros.cmake || die
76 fi
77}
78
69src_configure() { 79src_configure() {
70 local mycmakeargs=( 80 local mycmakeargs=(
71 -DBUILD_GTK_TESTS=OFF 81 -DBUILD_GTK_TESTS=OFF
72 -DBUILD_QT4_TESTS=OFF 82 -DBUILD_QT4_TESTS=OFF
73 -DBUILD_QT5_TESTS=OFF 83 -DBUILD_QT5_TESTS=OFF
101} 111}
102 112
103src_install() { 113src_install() {
104 cmake-utils_src_install 114 cmake-utils_src_install
105 115
106 if use cairo && use doc; then 116 # live version doesn't provide html documentation
117 if use cairo && use doc && [[ ${PV} != 9999 ]]; then
107 # For now install gtk-doc there 118 # For now install gtk-doc there
108 insinto /usr/share/gtk-doc/html/poppler 119 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/* 120 doins -r "${S}"/glib/reference/html/*
111 fi 121 fi
112} 122}

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20