Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-editors/nano: ChangeLog nano-2.3.0.ebuild
Date: Mon, 28 Feb 2011 18:26:21
Message-Id: 20110228182611.E98E220054@flycatcher.gentoo.org
1 vapier 11/02/28 18:26:11
2
3 Modified: ChangeLog
4 Added: nano-2.3.0.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha25/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.262 app-editors/nano/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/nano/ChangeLog?rev=1.262&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/nano/ChangeLog?rev=1.262&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/nano/ChangeLog?r1=1.261&r2=1.262
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-editors/nano/ChangeLog,v
20 retrieving revision 1.261
21 retrieving revision 1.262
22 diff -u -r1.261 -r1.262
23 --- ChangeLog 28 Feb 2011 15:17:50 -0000 1.261
24 +++ ChangeLog 28 Feb 2011 18:26:11 -0000 1.262
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-editors/nano
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-editors/nano/ChangeLog,v 1.261 2011/02/28 15:17:50 ranger Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-editors/nano/ChangeLog,v 1.262 2011/02/28 18:26:11 vapier Exp $
30 +
31 +*nano-2.3.0 (28 Feb 2011)
32 +
33 + 28 Feb 2011; Mike Frysinger <vapier@g.o> +nano-2.3.0.ebuild:
34 + Version bump.
35
36 28 Feb 2011; Brent Baude <ranger@g.o> nano-2.2.5.ebuild:
37 stable ppc, bug 351707
38
39
40
41 1.1 app-editors/nano/nano-2.3.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/nano/nano-2.3.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/nano/nano-2.3.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nano-2.3.0.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-editors/nano/nano-2.3.0.ebuild,v 1.1 2011/02/28 18:26:11 vapier Exp $
51
52 EAPI="3"
53 inherit eutils
54 if [[ ${PV} == "9999" ]] ; then
55 ESVN_REPO_URI="svn://svn.savannah.gnu.org/nano/trunk/nano"
56 inherit subversion
57 else
58 MY_P=${PN}-${PV/_}
59 SRC_URI="http://www.nano-editor.org/dist/v${PV:0:3}/${MY_P}.tar.gz"
60 fi
61
62 DESCRIPTION="GNU GPL'd Pico clone with more functionality"
63 HOMEPAGE="http://www.nano-editor.org/"
64
65 LICENSE="GPL-3"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
68 IUSE="debug justify minimal ncurses nls slang spell unicode"
69
70 DEPEND=">=sys-libs/ncurses-5.2[unicode?]
71 nls? ( sys-devel/gettext )
72 !ncurses? ( slang? ( sys-libs/slang ) )"
73
74 src_prepare() {
75 if [[ ! -e configure ]] ; then
76 ./autogen.sh || die
77 fi
78 }
79
80 src_configure() {
81 local myconf=""
82 use ncurses \
83 && myconf="--without-slang" \
84 || myconf="${myconf} $(use_with slang)"
85
86 econf \
87 --bindir="${EPREFIX}"/bin \
88 $(use_enable !minimal color) \
89 $(use_enable !minimal multibuffer) \
90 $(use_enable !minimal nanorc) \
91 --disable-wrapping-as-root \
92 $(use_enable spell speller) \
93 $(use_enable justify) \
94 $(use_enable debug) \
95 $(use_enable nls) \
96 $(use_enable unicode utf8) \
97 $(use_enable minimal tiny) \
98 ${myconf}
99 }
100
101 src_install() {
102 emake DESTDIR="${D}" install || die
103
104 dodoc ChangeLog README doc/nanorc.sample AUTHORS BUGS NEWS TODO
105 dohtml doc/faq.html
106 insinto /etc
107 newins doc/nanorc.sample nanorc
108
109 dodir /usr/bin
110 dosym /bin/nano /usr/bin/nano
111
112 insinto /usr/share/nano
113 local f
114 for f in "${FILESDIR}"/*.nanorc ; do
115 [[ -e ${ED}/usr/share/nano/${f##*/} ]] && continue
116 doins "${f}" || die
117 echo "# include \"/usr/share/nano/${f##*/}\"" >> "${ED}"/etc/nanorc
118 done
119 }
120
121 pkg_postinst() {
122 einfo "More helpful info about nano, visit the GDP page:"
123 einfo "http://www.gentoo.org/doc/en/nano-basics-guide.xml"
124 }