summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <uberlord@gentoo.org>2007-07-21 01:48:26 +0000
committerRoy Marples <uberlord@gentoo.org>2007-07-21 01:48:26 +0000
commit6af002fc92bbdc077f23f52b910486d0afe53c41 (patch)
treeeb61a7153998a2ca39e02296d281ca08ae869222 /dev-libs/libedit/libedit-20061103-r2.ebuild
parentversion bump (bug #181934) (diff)
downloadhistorical-6af002fc92bbdc077f23f52b910486d0afe53c41.tar.gz
historical-6af002fc92bbdc077f23f52b910486d0afe53c41.tar.bz2
historical-6af002fc92bbdc077f23f52b910486d0afe53c41.zip
Don't define get_alias_text on FreeBSD until our sh supports it.
Package-Manager: portage-2.1.3_rc8
Diffstat (limited to 'dev-libs/libedit/libedit-20061103-r2.ebuild')
-rw-r--r--dev-libs/libedit/libedit-20061103-r2.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-libs/libedit/libedit-20061103-r2.ebuild b/dev-libs/libedit/libedit-20061103-r2.ebuild
new file mode 100644
index 000000000000..ddbe744901aa
--- /dev/null
+++ b/dev-libs/libedit/libedit-20061103-r2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libedit/libedit-20061103-r2.ebuild,v 1.1 2007/07/21 01:48:26 uberlord Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="BSD replacement for libreadline"
+HOMEPAGE="http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libedit/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+IUSE="elibc_glibc"
+
+DEPEND="sys-libs/ncurses
+ !<=sys-freebs/freebsd-lib-6.2_rc1"
+
+S=${WORKDIR}/netbsd-cvs
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${PN}-20061103-debian-to-gentoo.patch
+
+ if use elibc_glibc; then
+ mv "${WORKDIR}"/glibc-*/*.c .
+ epatch "${FILESDIR}/${P}-glibc.patch"
+ fi
+
+ # FreeBSD's __weak_reference macro differs from NetBSD's
+ epatch "${FILESDIR}/${P}-freebsd.patch"
+}
+
+src_compile() {
+ emake -j1 .depend || die "depend"
+ emake || die "make"
+}
+
+src_install() {
+ into /
+ dolib.so libedit.so || die "dolib.so"
+ into /usr
+ dolib.a libedit.a || die "dolib.a"
+ insinto /usr/include
+ doins histedit.h || die "doins histedit.h"
+ insinto /usr/include/libedit
+ doins readline/readline.h || die "doins readline.h"
+ doman *.[35]
+
+ gen_usr_ldscript libedit.so
+}