/[gentoo-x86]/net-libs/libssh/libssh-9999.ebuild
Gentoo

Contents of /net-libs/libssh/libssh-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Jun 18 20:38:27 2014 UTC (6 years, 5 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +6 -6 lines
Update dependencies to require guaranteed EAPI=5 or multilib ebuilds, bug #513718.

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

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-libs/libssh/libssh-9999.ebuild,v 1.7 2014/06/18 17:35:12 mgorny Exp $
4
5 EAPI=5
6
7 inherit eutils cmake-multilib multilib git-r3
8
9 DESCRIPTION="Access a working SSH implementation by means of a library"
10 HOMEPAGE="http://www.libssh.org/"
11 EGIT_REPO_URI="git://git.libssh.org/projects/libssh.git"
12
13 LICENSE="LGPL-2.1"
14 KEYWORDS=""
15 SLOT="0"
16 IUSE="debug doc examples gcrypt gssapi pcap +sftp ssh1 server static-libs test zlib"
17 # Maintainer: check IUSE-defaults at DefineOptions.cmake
18
19 RDEPEND="
20 zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
21 !gcrypt? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] )
22 gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] )
23 gssapi? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )
24 "
25 DEPEND="${RDEPEND}
26 doc? ( app-doc/doxygen )
27 test? ( >=dev-util/cmocka-0.3.1[${MULTILIB_USEDEP}] )
28 "
29
30 DOCS=( AUTHORS README ChangeLog )
31
32 EGIT_MIN_CLONE_TYPE=single
33
34 src_prepare() {
35 # just install the examples do not compile them
36 sed -i \
37 -e '/add_subdirectory(examples)/s/^/#DONOTWANT/' \
38 CMakeLists.txt || die
39
40 cmake-utils_src_prepare
41 }
42
43 multilib_src_configure() {
44 local mycmakeargs=(
45 $(cmake-utils_use_with debug DEBUG_CALLTRACE)
46 $(cmake-utils_use_with debug DEBUG_CRYPTO)
47 $(cmake-utils_use_with gcrypt)
48 $(cmake-utils_use_with gssapi)
49 $(cmake-utils_use_with pcap)
50 $(cmake-utils_use_with server)
51 $(cmake-utils_use_with sftp)
52 $(cmake-utils_use_with ssh1)
53 $(cmake-utils_use_with static-libs STATIC_LIB)
54 $(cmake-utils_use_with test STATIC_LIB)
55 $(cmake-utils_use_with test TESTING)
56 $(cmake-utils_use_with zlib)
57 )
58
59 cmake-utils_src_configure
60 }
61
62 multilib_src_compile() {
63 cmake-utils_src_compile
64 multilib_is_native_abi && use doc && cmake-utils_src_compile doc
65 }
66
67 multilib_src_install() {
68 cmake-utils_src_install
69
70 multilib_is_native_abi && use doc && dohtml -r doc/html/.
71
72 use static-libs || rm -f "${D}"/usr/$(get_libdir)/libssh{,_threads}.a
73 }
74
75 multilib_src_install_all() {
76 einstalldocs
77
78 if use examples; then
79 docinto examples
80 dodoc examples/*.{c,h,cpp}
81 fi
82 }

  ViewVC Help
Powered by ViewVC 1.1.20