summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-12-28 16:18:56 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-12-28 16:18:56 +0000
commitbe60ee1912e185b7239310e767fcf5e2fec179ea (patch)
tree423a0a89951c1f011d5e69bca603a48bf73024fa /dev-libs/libedit/libedit-20061103.ebuild
parentStable on sparc wrt #158254 (diff)
downloadgentoo-2-be60ee1912e185b7239310e767fcf5e2fec179ea.tar.gz
gentoo-2-be60ee1912e185b7239310e767fcf5e2fec179ea.tar.bz2
gentoo-2-be60ee1912e185b7239310e767fcf5e2fec179ea.zip
Split the build-system changes from the glibc changes, and add a tiny patch to build on FreeBSD, according to bug #157407.
(Portage version: 2.1.2_rc4-r1)
Diffstat (limited to 'dev-libs/libedit/libedit-20061103.ebuild')
-rw-r--r--dev-libs/libedit/libedit-20061103.ebuild25
1 files changed, 19 insertions, 6 deletions
diff --git a/dev-libs/libedit/libedit-20061103.ebuild b/dev-libs/libedit/libedit-20061103.ebuild
index e6b32033fcd1..656ce986b6bb 100644
--- a/dev-libs/libedit/libedit-20061103.ebuild
+++ b/dev-libs/libedit/libedit-20061103.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libedit/libedit-20061103.ebuild,v 1.1 2006/11/03 07:11:31 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libedit/libedit-20061103.ebuild,v 1.2 2006/12/28 16:18:56 flameeyes Exp $
-inherit eutils
+inherit eutils toolchain-funcs
DESCRIPTION="BSD replacement for libreadline"
HOMEPAGE="http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libedit/"
@@ -10,18 +10,27 @@ SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~x86"
-IUSE=""
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~x86 ~x86-fbsd"
+IUSE="elibc_glibc"
-DEPEND="sys-libs/ncurses"
+DEPEND="sys-libs/ncurses
+ !<=sys-freebs/freebsd-lib-6.2_rc1"
S=${WORKDIR}/netbsd-cvs
src_unpack() {
unpack ${A}
cd "${S}"
- mv "${WORKDIR}"/glibc-*/*.c .
+
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() {
@@ -30,11 +39,15 @@ src_compile() {
}
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
}