/[gentoo-x86]/net-fs/cvmfs/cvmfs-2.1.14.ebuild
Gentoo

Contents of /net-fs/cvmfs/cvmfs-2.1.14.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Sep 9 16:34:54 2013 UTC (23 months, 3 weeks ago) by bicatali
Branch: MAIN
Changes since 1.1: +2 -1 lines
Keyworded, removed old

(Portage version: 2.2.01.22288-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-fs/cvmfs/cvmfs-2.1.14.ebuild,v 1.1 2013/08/16 21:46:43 bicatali Exp $
4
5 EAPI=5
6
7 CMAKE_IN_SOURCE_BUILD=1
8
9 inherit cmake-utils
10
11 DESCRIPTION="HTTP read-only file system for distributing software"
12 HOMEPAGE="http://cernvm.cern.ch/portal/filesystem"
13 SRC_URI="https://ecsft.cern.ch/dist/${PN}/${P}/${P}.tar.gz"
14
15 LICENSE="BSD"
16 SLOT="0"
17
18 KEYWORDS="~amd64 ~x86"
19 IUSE="+client debug doc server"
20
21 CDEPEND="
22 dev-db/sqlite:3
23 dev-libs/openssl
24 net-dns/c-ares
25 net-misc/curl[adns]
26 sys-libs/zlib
27 client? (
28 dev-cpp/sparsehash
29 dev-libs/leveldb
30 sys-fs/fuse )
31 server? ( sys-libs/zlib )"
32
33 RDEPEND="${CDEPEND}
34 client? ( net-fs/autofs )
35 server? ( www-servers/apache[ssl] )"
36
37 DEPEND="${CDEPEND}
38 virtual/pkgconfig
39 doc? ( app-doc/doxygen[dot] )"
40
41 PATCHES=(
42 "${FILESDIR}"/${PN}-2.1.10-no-config.patch
43 "${FILESDIR}"/${PN}-2.1.10-openrc.patch
44 )
45
46 src_prepare() {
47 sed -i -e 's/COPYING//' CMakeLists.txt || die
48 cp "${FILESDIR}"/Find*.cmake cmake/Modules/ || die
49 rm bootstrap.sh || die
50 cmake-utils_src_prepare
51 }
52
53 src_configure() {
54 local mycmakeargs=(
55 -DCARES_BUILTIN=OFF
56 -DSQLITE3_BUILTIN=OFF
57 -DLIBCURL_BUILTIN=OFF
58 -DZLIB_BUILTIN=OFF
59 -DSPARSEHASH_BUILTIN=OFF
60 -DLEVELDB_BUILTIN=OFF
61 $(cmake-utils_use debug BUILD_SERVER_DEBUG)
62 $(cmake-utils_use server BUILD_SERVER)
63 $(cmake-utils_use client BUILD_CVMFS)
64 $(cmake-utils_use client BUILD_LIBCVMFS)
65 $(cmake-utils_use client INSTALL_MOUNT_SCRIPTS)
66 )
67 cmake-utils_src_configure
68 }
69
70 src_compile() {
71 cmake-utils_src_compile
72 if use doc; then
73 cd doc
74 doxygen cvmfs.doxy || die
75 fi
76 }
77
78 src_install() {
79 cmake-utils_src_install
80 use doc && dohtml -r doc/html/*
81 }
82
83 pkg_config() {
84 if use client; then
85 einfo "Setting up CernVM-FS client"
86 cvmfs_config setup
87 einfo "Now edit ${EROOT%/}/etc/cvmfs/default.local and run"
88 einfo " ${EROOT%/}/usr/init.d/autofs restart"
89 fi
90 }

  ViewVC Help
Powered by ViewVC 1.1.20