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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Feb 5 18:00:36 2014 UTC (7 months, 2 weeks ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Version bump, changed repository and branch to upstream for live ebuild

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

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-fs/cvmfs/cvmfs-9999.ebuild,v 1.2 2013/12/02 05:20:52 patrick Exp $
4
5 EAPI=5
6
7 inherit cmake-utils
8
9 DESCRIPTION="HTTP read-only file system for distributing software"
10 HOMEPAGE="http://cernvm.cern.ch/portal/filesystem"
11 SRC_URI="https://ecsft.cern.ch/dist/${PN}/${P}/${P}.tar.gz"
12
13 LICENSE="BSD"
14 SLOT="0"
15
16 KEYWORDS="~amd64 ~x86"
17 IUSE="+client debug doc test server"
18
19 CDEPEND="
20 dev-cpp/gtest
21 dev-db/sqlite:3
22 dev-libs/openssl
23 net-libs/pacparser
24 net-misc/curl[adns]
25 sys-apps/attr
26 sys-libs/zlib
27 client? (
28 dev-cpp/sparsehash
29 dev-libs/leveldb
30 sys-fs/fuse )
31 server? ( >=dev-cpp/tbb-4.2 )"
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 src_prepare() {
42 sed -i -e 's/COPYING//' CMakeLists.txt || die
43 rm bootstrap.sh || die
44 sed -i \
45 -e "s:cvmfs-\${CernVM-FS_VERSION_STRING}:${PF}:" \
46 CMakeLists.txt || die
47 # hack for bundled vjson
48 # vjson not worth unbundling, already upstream obsolete
49 # upstream replaced by gason with a new api
50 if use server; then
51 sed -i \
52 -e 's/g++/$(CXX)/g' \
53 -e 's/-O2/$(CXXFLAGS)/g' \
54 -e 's/ar/$(AR)/' \
55 -e 's/ranlib/$(RANLIB)/' \
56 externals/vjson/src/Makefile || die
57 mkdir -p "${S}_build"/externals/build_vjson
58 cp externals/vjson/src/* "${S}_build"/externals/build_vjson/ || die
59 fi
60 cmake-utils_src_prepare
61 }
62
63 src_configure() {
64 local mycmakeargs=(
65 -DGOOGLETEST_BUILTIN=OFF
66 -DLEVELDB_BUILTIN=OFF
67 -DLIBCURL_BUILTIN=OFF
68 -DPACPARSER_BUILTIN=OFF
69 -DSPARSEHASH_BUILTIN=OFF
70 -DSQLITE3_BUILTIN=OFF
71 -DTBB_PRIVATE_LIB=OFF
72 -DZLIB_BUILTIN=OFF
73 $(cmake-utils_use debug BUILD_SERVER_DEBUG)
74 $(cmake-utils_use server BUILD_SERVER)
75 $(cmake-utils_use client BUILD_CVMFS)
76 $(cmake-utils_use client BUILD_LIBCVMFS)
77 $(cmake-utils_use client INSTALL_MOUNT_SCRIPTS)
78 $(cmake-utils_use test BUILD_UNITTESTS)
79 )
80 cmake-utils_src_configure
81 }
82
83 src_compile() {
84 cmake-utils_src_compile
85 if use doc; then
86 cd doc
87 doxygen cvmfs.doxy || die
88 fi
89 }
90
91 src_install() {
92 cmake-utils_src_install
93 use doc && dohtml -r doc/html/*
94 }
95
96 pkg_config() {
97 if use client; then
98 einfo "Setting up CernVM-FS client"
99 cvmfs_config setup
100 einfo "Now edit ${EROOT%/}/etc/cvmfs/default.local and run"
101 einfo " ${EROOT%/}/usr/init.d/autofs restart"
102 fi
103 }

  ViewVC Help
Powered by ViewVC 1.1.20