Gentoo Archives: gentoo-commits

From: "Christoph Mende (angelos)" <angelos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-editors/nano: ChangeLog nano-2.1.7-r1.ebuild
Date: Tue, 30 Dec 2008 20:15:38
Message-Id: E1LHl04-000570-1l@stork.gentoo.org
1 angelos 08/12/30 20:15:36
2
3 Modified: ChangeLog
4 Added: nano-2.1.7-r1.ebuild
5 Log:
6 Straight to stable revbump for EAPI2, needed by releng
7 (Portage version: 2.2_rc20/cvs/Linux 2.6.28 x86_64, RepoMan options: --force)
8
9 Revision Changes Path
10 1.226 app-editors/nano/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/ChangeLog?rev=1.226&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/ChangeLog?rev=1.226&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/ChangeLog?r1=1.225&r2=1.226
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-editors/nano/ChangeLog,v
19 retrieving revision 1.225
20 retrieving revision 1.226
21 diff -u -r1.225 -r1.226
22 --- ChangeLog 28 Dec 2008 20:17:17 -0000 1.225
23 +++ ChangeLog 30 Dec 2008 20:15:35 -0000 1.226
24 @@ -1,6 +1,11 @@
25 # ChangeLog for app-editors/nano
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-editors/nano/ChangeLog,v 1.225 2008/12/28 20:17:17 gmsoft Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-editors/nano/ChangeLog,v 1.226 2008/12/30 20:15:35 angelos Exp $
29 +
30 +*nano-2.1.7-r1 (30 Dec 2008)
31 +
32 + 30 Dec 2008; Christoph Mende <angelos@g.o> +nano-2.1.7-r1.ebuild:
33 + Straight to stable revbump for EAPI2, needed by releng
34
35 28 Dec 2008; Guy Martin <gmsoft@g.o> nano-2.1.7.ebuild:
36 hppa stable, #252601
37
38
39
40 1.1 app-editors/nano/nano-2.1.7-r1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/nano-2.1.7-r1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/nano-2.1.7-r1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: nano-2.1.7-r1.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/app-editors/nano/nano-2.1.7-r1.ebuild,v 1.1 2008/12/30 20:15:35 angelos Exp $
50
51 EAPI=2
52 inherit eutils
53 if [[ ${PV} == "9999" ]] ; then
54 ESVN_REPO_URI="svn://svn.savannah.gnu.org/nano/trunk/nano"
55 inherit subversion
56 else
57 MY_P=${PN}-${PV/_}
58 SRC_URI="http://www.nano-editor.org/dist/v${PV:0:3}/${MY_P}.tar.gz"
59 fi
60
61 DESCRIPTION="GNU GPL'd Pico clone with more functionality"
62 HOMEPAGE="http://www.nano-editor.org/"
63
64 LICENSE="GPL-3"
65 SLOT="0"
66 KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
67 IUSE="debug justify minimal ncurses nls slang spell unicode"
68
69 DEPEND=">=sys-libs/ncurses-5.2[unicode?]
70 nls? ( sys-devel/gettext )
71 !ncurses? ( slang? ( sys-libs/slang ) )"
72
73 src_unpack() {
74 if [[ ${PV} == "9999" ]] ; then
75 subversion_src_unpack
76 else
77 unpack ${A}
78 fi
79 cd "${S}"
80 if [[ ! -e configure ]] ; then
81 ./autogen.sh || die "autogen failed"
82 fi
83 }
84
85 src_configure() {
86 local myconf=""
87 use ncurses \
88 && myconf="--without-slang" \
89 || myconf="${myconf} $(use_with slang)"
90
91 econf \
92 --bindir=/bin \
93 $(use_enable !minimal color) \
94 $(use_enable !minimal multibuffer) \
95 $(use_enable !minimal nanorc) \
96 --disable-wrapping-as-root \
97 $(use_enable spell speller) \
98 $(use_enable justify) \
99 $(use_enable debug) \
100 $(use_enable nls) \
101 $(use_enable unicode utf8) \
102 $(use_enable minimal tiny) \
103 ${myconf} \
104 || die "configure failed"
105 }
106
107 src_install() {
108 emake DESTDIR="${D}" install || die
109
110 dodoc ChangeLog README doc/nanorc.sample AUTHORS BUGS NEWS TODO
111 dohtml *.html
112 insinto /etc
113 newins doc/nanorc.sample nanorc
114
115 dodir /usr/bin
116 dosym /bin/nano /usr/bin/nano
117
118 insinto /usr/share/nano
119 local f
120 for f in "${FILESDIR}"/*.nanorc ; do
121 [[ -e ${D}/usr/share/nano/${f##*/} ]] && continue
122 doins "${f}" || die
123 echo "# include \"/usr/share/nano/${f##*/}\"" >> "${D}"/etc/nanorc
124 done
125 }
126
127 pkg_postinst() {
128 elog "More helpful info about nano, visit the GDP page:"
129 elog "http://www.gentoo.org/doc/en/nano-basics-guide.xml"
130 }