/[gentoo-alt]/trunk/prefix/app-editors/nano/nano-1.3.8.ebuild
Gentoo

Contents of /trunk/prefix/app-editors/nano/nano-1.3.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1166 - (show annotations) (download)
Sat Mar 25 22:08:50 2006 UTC (13 years, 2 months ago) by kito
File size: 1900 byte(s)
PREFIX->EPREFIX DEST->EDEST
1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-editors/nano/nano-1.3.8.ebuild,v 1.5 2005/10/03 21:52:47 vapier Exp $
4
5 EAPI="prefix"
6
7 inherit eutils
8
9 MY_P=${PN}-${PV/_}
10 DESCRIPTION="GNU GPL'd Pico clone with more functionality"
11 HOMEPAGE="http://www.nano-editor.org/"
12 SRC_URI="http://www.nano-editor.org/dist/v1.3/${MY_P}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sh ~sparc ~x86"
17 IUSE="nls build spell justify debug slang ncurses nomac unicode"
18
19 DEPEND=">=sys-libs/ncurses-5.2
20 nls? ( sys-devel/gettext )
21 !ncurses? ( slang? ( sys-libs/slang ) )"
22 PROVIDE="virtual/editor"
23
24 src_unpack() {
25 unpack ${A}
26 cd "${S}"
27 epatch "${FILESDIR}"/${P}-rep.patch
28 epatch "${FILESDIR}"/${P}-display.patch
29 use nomac && epatch "${FILESDIR}"/${PN}-1.3.6-nomac.patch
30 }
31
32 src_compile() {
33 local myconf=""
34 use build && myconf="${myconf} --disable-wrapping-as-root"
35 use ncurses \
36 && myconf="--without-slang" \
37 || myconf="${myconf} $(use_with slang)"
38
39 econf \
40 $(with_bindir) \
41 --enable-color \
42 --enable-multibuffer \
43 --enable-nanorc \
44 --disable-wrapping-as-root \
45 $(use_enable spell) \
46 $(use_enable justify) \
47 $(use_enable debug) \
48 $(use_enable nls) \
49 $(use_enable unicode utf8) \
50 ${myconf} \
51 || die "configure failed"
52 emake || die
53 }
54
55 src_install() {
56 make DESTDIR="${EDEST}" install || die
57
58 if use build ; then
59 rm -rf "${D}"/usr/share
60 else
61 cat "${FILESDIR}"/nanorc-* >> doc/nanorc.sample
62 dodoc ChangeLog README doc/nanorc.sample AUTHORS BUGS NEWS TODO
63 dohtml *.html
64 insinto /etc
65 newins doc/nanorc.sample nanorc
66 fi
67
68 dodir /usr/bin
69 dosym /bin/nano /usr/bin/nano
70 }
71
72 pkg_postinst() {
73 einfo "More helpful info about nano, visit the GDP page:"
74 einfo "http://www.gentoo.org/doc/en/nano-basics-guide.xml"
75 }

  ViewVC Help
Powered by ViewVC 1.1.20