/[gentoo-x86]/app-editors/lpe/lpe-1.2.6.13.ebuild
Gentoo

Contents of /app-editors/lpe/lpe-1.2.6.13.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Thu Mar 7 15:24:26 2013 UTC (7 years, 4 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +19 -8 lines
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)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $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 $
4
5 EAPI=5
6 inherit eutils multilib toolchain-funcs
7
8 DESCRIPTION="a lightweight programmers editor"
9 HOMEPAGE="http://packages.qa.debian.org/l/lpe.html"
10 SRC_URI="mirror://debian/pool/main/l/${PN}/${PN}_${PV}-0.1.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ppc sparc x86 ~x86-linux"
15 IUSE="nls"
16
17 RDEPEND=">=sys-libs/slang-2.2.4
18 >=sys-libs/ncurses-5.7-r7"
19 DEPEND="${RDEPEND}
20 virtual/pkgconfig
21 nls? ( sys-devel/gettext )"
22
23 src_prepare() {
24 epatch "${FILESDIR}"/${P}-make-382.patch
25
26 # You should add PKG_CHECK_MODULES(NCURSES, ncurses) to configure.in and
27 # replace -lncurses in src/Makefile.am with $(NCURSES_LIBS)
28 # That is, if you need eautoreconf
29 sed -i \
30 -e "s:-lncurses:$($(tc-getPKG_CONFIG) --libs-only-l ncurses):" \
31 src/Makefile.in || die
32 }
33
34 src_configure() {
35 econf $(use_enable nls)
36 }
37
38 src_install() {
39 emake \
40 libdir="${ED}/usr/$(get_libdir)" \
41 prefix="${ED}/usr" \
42 datadir="${ED}/usr/share" \
43 mandir="${ED}/usr/share/man" \
44 infodir="${ED}/usr/share/info" \
45 docdir="${ED}/usr/share/doc/${PF}" \
46 exdir="${ED}/usr/share/doc/${PF}/examples" \
47 install
48
49 prune_libtool_files --all
50 }

  ViewVC Help
Powered by ViewVC 1.1.20