Add new package dev-libs/libcli (bug #140616).
authorAndrew Ross <aross@gentoo.org>
Mon, 30 Oct 2006 12:46:43 +0000 (12:46 +0000)
committerAndrew Ross <aross@gentoo.org>
Mon, 30 Oct 2006 12:46:43 +0000 (12:46 +0000)
Package-Manager: portage-2.1.1-r1

dev-libs/libcli/ChangeLog [new file with mode: 0644]
dev-libs/libcli/files/digest-libcli-1.8.6 [new file with mode: 0644]
dev-libs/libcli/libcli-1.8.6.ebuild [new file with mode: 0644]
dev-libs/libcli/metadata.xml [new file with mode: 0644]

diff --git a/dev-libs/libcli/ChangeLog b/dev-libs/libcli/ChangeLog
new file mode 100644 (file)
index 0000000..6e1c3ff
--- /dev/null
@@ -0,0 +1,10 @@
+# ChangeLog for dev-libs/libcli
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libcli/ChangeLog,v 1.1 2006/10/30 12:46:43 aross Exp $
+
+*libcli-1.8.6 (30 Oct 2006)
+
+  30 Oct 2006; Andrew Ross <aross@gentoo.org> +metadata.xml,
+  +libcli-1.8.6.ebuild:
+  Add new package dev-libs/libcli (bug #140616).
+
diff --git a/dev-libs/libcli/files/digest-libcli-1.8.6 b/dev-libs/libcli/files/digest-libcli-1.8.6
new file mode 100644 (file)
index 0000000..6a6a091
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 fde7103a3771f550bfd366ee3ca1ef53 libcli-1.8.6.tar.gz 29473
+RMD160 b1885e1b69ffe457f6f7ce3c1c7be64529824bd5 libcli-1.8.6.tar.gz 29473
+SHA256 77ed7dfbcb6e4403526087c813cd1a4463dfb2528840ce2bc4f9e904cc21e8ff libcli-1.8.6.tar.gz 29473
diff --git a/dev-libs/libcli/libcli-1.8.6.ebuild b/dev-libs/libcli/libcli-1.8.6.ebuild
new file mode 100644 (file)
index 0000000..9dd01ea
--- /dev/null
@@ -0,0 +1,44 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libcli/libcli-1.8.6.ebuild,v 1.1 2006/10/30 12:46:43 aross Exp $
+
+inherit multilib toolchain-funcs
+
+DESCRIPTION="Cisco-style (telnet) command-line interface library"
+
+HOMEPAGE="http://sourceforge.net/projects/libcli"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+LICENSE="LGPL-2.1"
+
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_unpack() {
+       unpack ${A}
+
+       # Support /lib{32,64}
+       sed -i 's:$(PREFIX)/lib:$(libdir):g' "${S}"/Makefile
+       sed -i 's:PREFIX = /usr/local:&\nlibdir = $(PREFIX)/lib:' "${S}"/Makefile
+}
+
+src_compile() {
+       emake OPTIM="" DEBUG="" CC="$(tc-getCC)" || die "emake failed"
+}
+
+src_install() {
+       emake DESTDIR="${D}" \
+               PREFIX=/usr \
+               OPTIM="" \
+               DEBUG="" \
+               libdir="/usr/$(get_libdir)" \
+               install || die "emake install failed"
+
+       dobin clitest
+
+       dohtml Doc/*
+       dodoc README
+}
diff --git a/dev-libs/libcli/metadata.xml b/dev-libs/libcli/metadata.xml
new file mode 100644 (file)
index 0000000..9f6ef28
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <herd>no-herd</herd>
+       <maintainer>
+               <email>aross@gentoo.org</email>
+       </maintainer>
+       <longdescription lang="en">
+       libcli provides a shared library for including a Cisco-like command-line
+       interface into other software. It's a telnet interface which supports
+       command-line editing, history, authentication and callbacks for a
+       user-definable function tree.
+       </longdescription>
+</pkgmetadata>
+