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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Fri Jul 17 12:28:46 2015 UTC (5 years, 4 months ago) by klausman
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +2 -2 lines
Revert misapplied stabilization of 0.7.0-r1 and mark 0.6.5 stable instead.

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

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.6.5.ebuild,v 1.9 2015/05/30 10:53:33 maekke 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/121/${MY_P}.tar.xz -> ${P}.tar.xz
13 https://git.libssh.org/projects/libssh.git/patch/?id=6e0dee7845cea22f59bd353ef42b31cb67170030 -> ${PN}-0.6.5-compilefix.patch"
14
15 LICENSE="LGPL-2.1"
16 KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux"
17 SLOT="0/4" # subslot = soname major version
18 IUSE="debug doc examples gcrypt gssapi pcap +sftp ssh1 server static-libs test zlib"
19 # Maintainer: check IUSE-defaults at DefineOptions.cmake
20
21 RDEPEND="
22 zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
23 !gcrypt? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] )
24 gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] )
25 gssapi? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )
26 "
27 DEPEND="${RDEPEND}
28 doc? ( app-doc/doxygen )
29 test? ( >=dev-util/cmocka-0.3.1[${MULTILIB_USEDEP}] )
30 "
31
32 DOCS=( AUTHORS README ChangeLog )
33
34 S=${WORKDIR}/${MY_P}
35
36 PATCHES=(
37 "${FILESDIR}"/${PN}-0.5.0-tests.patch
38 "${DISTDIR}"/${P}-compilefix.patch
39 )
40
41 src_prepare() {
42 # just install the examples do not compile them
43 sed -i \
44 -e '/add_subdirectory(examples)/s/^/#DONOTWANT/' \
45 CMakeLists.txt || die
46
47 cmake-utils_src_prepare
48 }
49
50 multilib_src_configure() {
51 local mycmakeargs=(
52 $(cmake-utils_use_with debug DEBUG_CALLTRACE)
53 $(cmake-utils_use_with debug DEBUG_CRYPTO)
54 $(cmake-utils_use_with gcrypt)
55 $(cmake-utils_use_with gssapi)
56 $(cmake-utils_use_with pcap)
57 $(cmake-utils_use_with server)
58 $(cmake-utils_use_with sftp)
59 $(cmake-utils_use_with ssh1)
60 $(cmake-utils_use_with static-libs STATIC_LIB)
61 $(cmake-utils_use_with test STATIC_LIB)
62 $(cmake-utils_use_with test TESTING)
63 $(cmake-utils_use_with zlib)
64 )
65
66 cmake-utils_src_configure
67 }
68
69 multilib_src_compile() {
70 cmake-utils_src_compile
71 multilib_is_native_abi && use doc && cmake-utils_src_compile doc
72 }
73
74 multilib_src_install() {
75 cmake-utils_src_install
76
77 multilib_is_native_abi && use doc && dohtml -r doc/html/.
78
79 use static-libs || rm -f "${D}"/usr/$(get_libdir)/libssh{,_threads}.a
80 }
81
82 multilib_src_install_all() {
83 einstalldocs
84
85 if use examples; then
86 docinto examples
87 dodoc examples/*.{c,h,cpp}
88 fi
89 }

  ViewVC Help
Powered by ViewVC 1.1.20