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/libedit/libedit-20100424.3.0.ebuild

50 lines
1.2 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libedit/libedit-20100424.3.0.ebuild,v 1.3 2011/05/22 03:03:22 naota Exp $
EAPI=2
inherit eutils toolchain-funcs versionator
MY_PV=$(get_major_version)-$(get_after_major_version)
MY_P=${PN}-${MY_PV}
DESCRIPTION="BSD replacement for libreadline."
HOMEPAGE="http://www.thrysoee.dk/editline/"
SRC_URI="http://www.thrysoee.dk/editline/${MY_P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos"
IUSE="static-libs"
DEPEND="sys-libs/ncurses
!<=sys-freebsd/freebsd-lib-6.2_rc1"
RDEPEND=${DEPEND}
S="${WORKDIR}/${MY_P}"
src_configure() {
econf \
$(use_enable static-libs static) \
--enable-widec \
--disable-dependency-tracking \
--enable-fast-install
}
src_prepare() {
epatch "${FILESDIR}"/${P}-bsd.patch
epatch "${FILESDIR}"/${P}-weak-reference.patch
}
# No tests are shipped
src_test() { :; }
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
find "${D}" -name '*.la' -delete
gen_usr_ldscript -a edit
}