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.1.11.ebuild
Date: Mon, 02 Nov 2009 22:58:26
Message-Id: E1N55qy-00086e-Kh@stork.gentoo.org
1 vapier 09/11/02 22:58:24
2
3 Modified: ChangeLog
4 Added: nano-2.1.11.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc46/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.242 app-editors/nano/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/ChangeLog?rev=1.242&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/ChangeLog?rev=1.242&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/ChangeLog?r1=1.241&r2=1.242
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-editors/nano/ChangeLog,v
19 retrieving revision 1.241
20 retrieving revision 1.242
21 diff -u -r1.241 -r1.242
22 --- ChangeLog 31 Oct 2009 14:42:29 -0000 1.241
23 +++ ChangeLog 2 Nov 2009 22:58:23 -0000 1.242
24 @@ -1,6 +1,12 @@
25 # ChangeLog for app-editors/nano
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-editors/nano/ChangeLog,v 1.241 2009/10/31 14:42:29 ranger Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-editors/nano/ChangeLog,v 1.242 2009/11/02 22:58:23 vapier Exp $
29 +
30 +*nano-2.1.11 (02 Nov 2009)
31 +
32 + 02 Nov 2009; Mike Frysinger <vapier@g.o> +nano-2.1.11.ebuild,
33 + +files/nano-2.1.11-proto.patch:
34 + Version bump.
35
36 31 Oct 2009; Brent Baude <ranger@g.o> nano-2.1.10.ebuild:
37 Marking nano-2.1.10 ppc64 for bug 287407
38
39
40
41 1.1 app-editors/nano/nano-2.1.11.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/nano-2.1.11.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/nano-2.1.11.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nano-2.1.11.ebuild
47 ===================================================================
48 # Copyright 1999-2009 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.1.11.ebuild,v 1.1 2009/11/02 22:58:23 vapier Exp $
51
52 EAPI=2
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 ~sparc-fbsd ~x86-fbsd"
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_unpack() {
75 if [[ ${PV} == "9999" ]] ; then
76 subversion_src_unpack
77 else
78 unpack ${A}
79 fi
80 cd "${S}"
81 epatch "${FILESDIR}"/${P}-proto.patch
82 if [[ ! -e configure ]] ; then
83 ./autogen.sh || die "autogen failed"
84 fi
85 }
86
87 src_configure() {
88 local myconf=""
89 use ncurses \
90 && myconf="--without-slang" \
91 || myconf="${myconf} $(use_with slang)"
92
93 econf \
94 --bindir=/bin \
95 $(use_enable !minimal color) \
96 $(use_enable !minimal multibuffer) \
97 $(use_enable !minimal nanorc) \
98 --disable-wrapping-as-root \
99 $(use_enable spell speller) \
100 $(use_enable justify) \
101 $(use_enable debug) \
102 $(use_enable nls) \
103 $(use_enable unicode utf8) \
104 $(use_enable minimal tiny) \
105 ${myconf} \
106 || die "configure failed"
107 }
108
109 src_install() {
110 emake DESTDIR="${D}" install || die
111
112 dodoc ChangeLog README doc/nanorc.sample AUTHORS BUGS NEWS TODO
113 dohtml doc/faq.html
114 insinto /etc
115 newins doc/nanorc.sample nanorc
116
117 dodir /usr/bin
118 dosym /bin/nano /usr/bin/nano
119
120 insinto /usr/share/nano
121 local f
122 for f in "${FILESDIR}"/*.nanorc ; do
123 [[ -e ${D}/usr/share/nano/${f##*/} ]] && continue
124 doins "${f}" || die
125 echo "# include \"/usr/share/nano/${f##*/}\"" >> "${D}"/etc/nanorc
126 done
127 }
128
129 pkg_postinst() {
130 einfo "More helpful info about nano, visit the GDP page:"
131 einfo "http://www.gentoo.org/doc/en/nano-basics-guide.xml"
132 }