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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Feb 5 18:00:36 2014 UTC (7 months, 2 weeks ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +5 -4 lines
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 #if LIVE
8 EGIT_REPO_URI="https://github.com/cvmfs/cvmfs.git"
9 EGIT_BRANCH="devel"
10 inherit git-r3
11 #endif
12
13 inherit cmake-utils
14
15 DESCRIPTION="HTTP read-only file system for distributing software"
16 HOMEPAGE="http://cernvm.cern.ch/portal/filesystem"
17 SRC_URI="https://ecsft.cern.ch/dist/${PN}/${P}/${P}.tar.gz"
18
19 LICENSE="BSD"
20 SLOT="0"
21
22 KEYWORDS="~amd64 ~x86"
23 IUSE="+client debug doc test server"
24
25 CDEPEND="
26 dev-cpp/gtest
27 dev-db/sqlite:3
28 dev-libs/openssl
29 net-libs/pacparser
30 net-misc/curl[adns]
31 sys-apps/attr
32 sys-libs/zlib
33 client? (
34 dev-cpp/sparsehash
35 dev-libs/leveldb
36 sys-fs/fuse )
37 server? ( >=dev-cpp/tbb-4.2 )"
38
39 RDEPEND="${CDEPEND}
40 client? ( net-fs/autofs )
41 server? ( www-servers/apache[ssl] )"
42
43 DEPEND="${CDEPEND}
44 virtual/pkgconfig
45 doc? ( app-doc/doxygen[dot] )"
46
47 #if LIVE
48 KEYWORDS=
49 SRC_URI=
50 #endif
51
52 src_prepare() {
53 sed -i -e 's/COPYING//' CMakeLists.txt || die
54 rm bootstrap.sh || die
55 sed -i \
56 -e "s:cvmfs-\${CernVM-FS_VERSION_STRING}:${PF}:" \
57 CMakeLists.txt || die
58 # hack for bundled vjson
59 # vjson not worth unbundling, already upstream obsolete
60 # upstream replaced by gason with a new api
61 if use server; then
62 sed -i \
63 -e 's/g++/$(CXX)/g' \
64 -e 's/-O2/$(CXXFLAGS)/g' \
65 -e 's/ar/$(AR)/' \
66 -e 's/ranlib/$(RANLIB)/' \
67 externals/vjson/src/Makefile || die
68 mkdir -p "${S}_build"/externals/build_vjson
69 cp externals/vjson/src/* "${S}_build"/externals/build_vjson/ || die
70 fi
71
72 cmake-utils_src_prepare
73 }
74
75 src_configure() {
76 local mycmakeargs=(
77 -DGOOGLETEST_BUILTIN=OFF
78 -DLEVELDB_BUILTIN=OFF
79 -DLIBCURL_BUILTIN=OFF
80 -DPACPARSER_BUILTIN=OFF
81 -DSPARSEHASH_BUILTIN=OFF
82 -DSQLITE3_BUILTIN=OFF
83 -DTBB_PRIVATE_LIB=OFF
84 -DZLIB_BUILTIN=OFF
85 $(cmake-utils_use debug BUILD_SERVER_DEBUG)
86 $(cmake-utils_use server BUILD_SERVER)
87 $(cmake-utils_use client BUILD_CVMFS)
88 $(cmake-utils_use client BUILD_LIBCVMFS)
89 $(cmake-utils_use client INSTALL_MOUNT_SCRIPTS)
90 $(cmake-utils_use test BUILD_UNITTESTS)
91 )
92 cmake-utils_src_configure
93 }
94
95 src_compile() {
96 cmake-utils_src_compile
97 if use doc; then
98 cd doc
99 doxygen cvmfs.doxy || die
100 fi
101 }
102
103 src_install() {
104 cmake-utils_src_install
105 use doc && dohtml -r doc/html/*
106 }
107
108 pkg_config() {
109 if use client; then
110 einfo "Setting up CernVM-FS client"
111 cvmfs_config setup
112 einfo "Now edit ${EROOT%/}/etc/cvmfs/default.local and run"
113 einfo " ${EROOT%/}/usr/init.d/autofs restart"
114 fi
115 }

  ViewVC Help
Powered by ViewVC 1.1.20