/[gentoo-x86]/dev-cpp/glog/glog-0.3.2.ebuild
Gentoo

Contents of /dev-cpp/glog/glog-0.3.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Thu Jan 10 20:40:38 2013 UTC (7 years, 1 month ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +14 -7 lines
Use configure flags to install doc files and fix EAPI=4 handling of $ED.

(Portage version: 2.2.0_alpha144/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)

1 vapier 1.5 # Copyright 1999-2013 Gentoo Foundation
2 dev-zero 1.1 # Distributed under the terms of the GNU General Public License v2
3 vapier 1.5 # $Header: /var/cvsroot/gentoo-x86/dev-cpp/glog/glog-0.3.2.ebuild,v 1.4 2012/11/19 18:34:06 bicatali Exp $
4 dev-zero 1.1
5     EAPI="4"
6     inherit eutils
7    
8     DESCRIPTION="Google's C++ logging library"
9     HOMEPAGE="http://code.google.com/p/google-glog/"
10     SRC_URI="http://google-glog.googlecode.com/files/${P}.tar.gz"
11    
12     LICENSE="BSD"
13     SLOT="0"
14 bicatali 1.4 KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
15 dev-zero 1.1 IUSE="gflags static-libs unwind test"
16    
17     RDEPEND="gflags? ( dev-cpp/gflags )
18     unwind? ( sys-libs/libunwind )"
19     DEPEND="${RDEPEND}
20     test? (
21     dev-cpp/gmock
22     dev-cpp/gtest
23     )"
24    
25 vapier 1.3 src_prepare() {
26     epatch "${FILESDIR}"/${P}-avoid-inline-asm.patch
27     }
28    
29 dev-zero 1.1 src_configure() {
30     export ac_cv_lib_gflags_main=$(usex gflags)
31     export ac_cv_lib_unwind_backtrace=$(usex unwind)
32     use test || export ac_cv_prog_GTEST_CONFIG=no
33 vapier 1.5 econf \
34     --docdir="\${datarootdir}/doc/${PF}" \
35     --htmldir="\${datarootdir}/doc/${PF}/html" \
36     $(use_enable static-libs static)
37 dev-zero 1.1 }
38    
39     src_install() {
40     default
41    
42 vapier 1.5 # Punt docs we don't care about (NEWS is 0 bytes).
43     rm "${ED}"/usr/share/doc/${PF}/{COPYING,NEWS,README.windows}
44 dev-zero 1.1
45 vapier 1.5 # --htmldir doesn't work (yet):
46     # https://code.google.com/p/google-glog/issues/detail?id=144
47     dohtml "${ED}"/usr/share/doc/${PF}/*
48     rm "${ED}"/usr/share/doc/${PF}/*.{html,css}
49    
50     use static-libs || find "${ED}" -name '*.la' -delete
51 dev-zero 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20