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

Contents of /trunk/prefix/app-editors/nano/nano-1.3.9.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: 1893 byte(s)
PREFIX->EPREFIX DEST->EDEST
1 # Copyright 1999-2006 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.9.ebuild,v 1.7 2006/01/14 08:59:10 dertobi123 Exp $
4
5 EAPI="prefix"
6
7 #ECVS_SERVER="savannah.gnu.org:/cvsroot/nano"
8 #ECVS_MODULE="nano"
9 #ECVS_AUTH="pserver"
10 #ECVS_USER="anonymous"
11 #inherit cvs
12 inherit eutils
13
14 MY_P=${PN}-${PV/_}
15 DESCRIPTION="GNU GPL'd Pico clone with more functionality"
16 HOMEPAGE="http://www.nano-editor.org/"
17 SRC_URI="http://www.nano-editor.org/dist/v1.3/${MY_P}.tar.gz"
18
19 LICENSE="GPL-2"
20 SLOT="0"
21 KEYWORDS="~alpha ~amd64 arm hppa ia64 m68k ~mips ppc ~ppc-macos ~ppc64 s390 sh ~sparc x86"
22 IUSE="build debug justify minimal ncurses nls slang spell unicode"
23
24 DEPEND=">=sys-libs/ncurses-5.2
25 nls? ( sys-devel/gettext )
26 !ncurses? ( slang? ( sys-libs/slang ) )"
27 PROVIDE="virtual/editor"
28
29 src_compile() {
30 if [[ ! -e configure ]] ; then
31 ./autogen.sh || die "autogen failed"
32 fi
33
34 local myconf=""
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 $(use_enable minimal tiny) \
51 ${myconf} \
52 || die "configure failed"
53 emake || die
54 }
55
56 src_install() {
57 make DESTDIR="${EDEST}" install || die
58
59 if use build ; then
60 rm -rf "${EDEST}"/usr/share
61 else
62 cat "${FILESDIR}"/nanorc-* >> doc/nanorc.sample
63 dodoc ChangeLog README doc/nanorc.sample AUTHORS BUGS NEWS TODO
64 dohtml *.html
65 insinto /etc
66 newins doc/nanorc.sample nanorc
67 fi
68
69 dodir /usr/bin
70 dosym /bin/nano /usr/bin/nano
71 }
72
73 pkg_postinst() {
74 einfo "More helpful info about nano, visit the GDP page:"
75 einfo "http://www.gentoo.org/doc/en/nano-basics-guide.xml"
76 }

  ViewVC Help
Powered by ViewVC 1.1.20