diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2013-03-07 15:24:26 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2013-03-07 15:24:26 +0000 |
commit | 27b4b321fd7c38a1abbd4723019dda1509e1e7c3 (patch) | |
tree | 5edd006c25fa5b9deb77d1561109bfb2796d00a5 /app-editors | |
parent | Version bump. (diff) | |
download | gentoo-2-27b4b321fd7c38a1abbd4723019dda1509e1e7c3.tar.gz gentoo-2-27b4b321fd7c38a1abbd4723019dda1509e1e7c3.tar.bz2 gentoo-2-27b4b321fd7c38a1abbd4723019dda1509e1e7c3.zip |
Use pkg-config to query ncurses libraries wrt #459540 by Diego Elio Pettenò
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
Diffstat (limited to 'app-editors')
-rw-r--r-- | app-editors/lpe/ChangeLog | 8 | ||||
-rw-r--r-- | app-editors/lpe/lpe-1.2.6.13.ebuild | 27 |
2 files changed, 25 insertions, 10 deletions
diff --git a/app-editors/lpe/ChangeLog b/app-editors/lpe/ChangeLog index c03c8d65d06f..03244059bb65 100644 --- a/app-editors/lpe/ChangeLog +++ b/app-editors/lpe/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-editors/lpe -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/lpe/ChangeLog,v 1.25 2011/11/16 02:24:23 xmw Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-editors/lpe/ChangeLog,v 1.26 2013/03/07 15:24:26 ssuominen Exp $ + + 07 Mar 2013; Samuli Suominen <ssuominen@gentoo.org> lpe-1.2.6.13.ebuild: + Use pkg-config to query ncurses libraries wrt #459540 by Diego Elio Pettenò + Remove unused libtool archive (.la) files for plugins. 16 Nov 2011; Michael Weber <xmw@gentoo.org> lpe-1.2.6.13.ebuild: Adding sys-libs/ncurses to RDEPEND (thanks Michael, bug 381021) diff --git a/app-editors/lpe/lpe-1.2.6.13.ebuild b/app-editors/lpe/lpe-1.2.6.13.ebuild index b9e25af00113..a3a50e885025 100644 --- a/app-editors/lpe/lpe-1.2.6.13.ebuild +++ b/app-editors/lpe/lpe-1.2.6.13.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/lpe/lpe-1.2.6.13.ebuild,v 1.12 2011/11/16 02:24:23 xmw Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/lpe/lpe-1.2.6.13.ebuild,v 1.13 2013/03/07 15:24:26 ssuominen Exp $ -EAPI=3 -inherit eutils multilib +EAPI=5 +inherit eutils multilib toolchain-funcs DESCRIPTION="a lightweight programmers editor" HOMEPAGE="http://packages.qa.debian.org/l/lpe.html" @@ -14,13 +14,21 @@ SLOT="0" KEYWORDS="amd64 ppc sparc x86 ~x86-linux" IUSE="nls" -RDEPEND=">=sys-libs/slang-2.1.3 - sys-libs/ncurses" +RDEPEND=">=sys-libs/slang-2.2.4 + >=sys-libs/ncurses-5.7-r7" DEPEND="${RDEPEND} + virtual/pkgconfig nls? ( sys-devel/gettext )" src_prepare() { epatch "${FILESDIR}"/${P}-make-382.patch + + # You should add PKG_CHECK_MODULES(NCURSES, ncurses) to configure.in and + # replace -lncurses in src/Makefile.am with $(NCURSES_LIBS) + # That is, if you need eautoreconf + sed -i \ + -e "s:-lncurses:$($(tc-getPKG_CONFIG) --libs-only-l ncurses):" \ + src/Makefile.in || die } src_configure() { @@ -28,12 +36,15 @@ src_configure() { } src_install() { - emake libdir="${ED}/usr/$(get_libdir)" \ + emake \ + libdir="${ED}/usr/$(get_libdir)" \ prefix="${ED}/usr" \ datadir="${ED}/usr/share" \ mandir="${ED}/usr/share/man" \ infodir="${ED}/usr/share/info" \ docdir="${ED}/usr/share/doc/${PF}" \ exdir="${ED}/usr/share/doc/${PF}/examples" \ - install || die "emake install failed." + install + + prune_libtool_files --all } |