You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/libcli/libcli-1.9.4-r1.ebuild

46 lines
1013 B

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libcli/libcli-1.9.4-r1.ebuild,v 1.3 2013/02/27 13:46:53 ago Exp $
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
}