diff options
Diffstat (limited to 'dev-libs/libcli/libcli-1.9.4-r1.ebuild')
-rw-r--r-- | dev-libs/libcli/libcli-1.9.4-r1.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-libs/libcli/libcli-1.9.4-r1.ebuild b/dev-libs/libcli/libcli-1.9.4-r1.ebuild new file mode 100644 index 000000000000..38761de80045 --- /dev/null +++ b/dev-libs/libcli/libcli-1.9.4-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="Cisco-style (telnet) command-line interface library" + +HOMEPAGE="http://sites.dparrish.com/libcli" +SRC_URI="http://libcli.googlecode.com/files/${P}.tar.gz" +LICENSE="LGPL-2.1" + +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_prepare() { + # Support /lib{32,64} + sed -i 's:$(PREFIX)/lib:$(libdir):g' Makefile || die + sed -i 's:PREFIX = /usr/local:&\nlibdir = $(PREFIX)/lib:' Makefile || die + + # Make this respect LDFLAGS, bug #334913 + epatch "${FILESDIR}/${PN}-1.9.4-ldflags.patch" +} + +src_compile() { + emake OPTIM="" DEBUG="" CC="$(tc-getCC)" +} + +src_install() { + emake DESTDIR="${ED}" \ + PREFIX="/usr" \ + OPTIM="" \ + DEBUG="" \ + libdir="/usr/$(get_libdir)" \ + install + + dobin clitest + dodoc README +} |