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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Jul 17 12:25:12 2015 UTC (5 years, 4 months ago) by polynomial-c
Branch: MAIN
CVS Tags: HEAD
Version bump. Removed old

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 981CA6FC)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-libs/libssh/libssh-0.7.0.ebuild,v 1.1 2015/05/13 14:14:03 polynomial-c Exp $
4
5 EAPI=5
6
7 MY_P=${PN}-${PV/_rc/rc}
8 inherit eutils cmake-multilib multilib
9
10 DESCRIPTION="Access a working SSH implementation by means of a library"
11 HOMEPAGE="http://www.libssh.org/"
12 SRC_URI="https://red.libssh.org/attachments/download/154/${MY_P}.tar.xz -> ${P}.tar.xz"
13
14 LICENSE="LGPL-2.1"
15 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
16 SLOT="0/4" # subslot = soname major version
17 IUSE="debug doc examples gcrypt gssapi pcap +sftp ssh1 server static-libs test zlib"
18 # Maintainer: check IUSE-defaults at DefineOptions.cmake
19
20 RDEPEND="
21 zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
22 !gcrypt? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] )
23 gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] )
24 gssapi? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )
25 "
26 DEPEND="${RDEPEND}
27 doc? ( app-doc/doxygen )
28 test? ( >=dev-util/cmocka-0.3.1[${MULTILIB_USEDEP}] )
29 "
30
31 DOCS=( AUTHORS README ChangeLog )
32
33 S=${WORKDIR}/${MY_P}
34
35 PATCHES=(
36 "${FILESDIR}"/${PN}-0.5.0-tests.patch
37 )
38
39 src_prepare() {
40 # just install the examples do not compile them
41 sed -i \
42 -e '/add_subdirectory(examples)/s/^/#DONOTWANT/' \
43 CMakeLists.txt || die
44
45 cmake-utils_src_prepare
46 }
47
48 multilib_src_configure() {
49 local mycmakeargs=(
50 $(cmake-utils_use_with debug DEBUG_CALLTRACE)
51 $(cmake-utils_use_with debug DEBUG_CRYPTO)
52 $(cmake-utils_use_with gcrypt)
53 $(cmake-utils_use_with gssapi)
54 $(cmake-utils_use_with pcap)
55 $(cmake-utils_use_with server)
56 $(cmake-utils_use_with sftp)
57 $(cmake-utils_use_with ssh1)
58 $(cmake-utils_use_with static-libs STATIC_LIB)
59 $(cmake-utils_use_with test STATIC_LIB)
60 $(cmake-utils_use_with test TESTING)
61 $(cmake-utils_use_with zlib)
62 )
63
64 cmake-utils_src_configure
65 }
66
67 multilib_src_compile() {
68 cmake-utils_src_compile
69 multilib_is_native_abi && use doc && cmake-utils_src_compile doc
70 }
71
72 multilib_src_install() {
73 cmake-utils_src_install
74
75 multilib_is_native_abi && use doc && dohtml -r doc/html/.
76
77 use static-libs || rm -f "${D}"/usr/$(get_libdir)/libssh{,_threads}.a
78 }
79
80 multilib_src_install_all() {
81 einstalldocs
82
83 if use examples; then
84 docinto examples
85 dodoc examples/*.{c,h,cpp}
86 fi
87 }

  ViewVC Help
Powered by ViewVC 1.1.20