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.2.ebuild
Date: Fri, 27 Jun 2008 16:44:05
Message-Id: E1KCH3H-0001XQ-8N@stork.gentoo.org
1 vapier 08/06/27 16:43:59
2
3 Modified: ChangeLog
4 Added: nano-2.1.2.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc1/cvs/Linux 2.6.25 x86_64)
8
9 Revision Changes Path
10 1.192 app-editors/nano/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/ChangeLog?rev=1.192&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/ChangeLog?rev=1.192&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/ChangeLog?r1=1.191&r2=1.192
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-editors/nano/ChangeLog,v
19 retrieving revision 1.191
20 retrieving revision 1.192
21 diff -u -r1.191 -r1.192
22 --- ChangeLog 16 Jun 2008 03:39:15 -0000 1.191
23 +++ ChangeLog 27 Jun 2008 16:43:58 -0000 1.192
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.191 2008/06/16 03:39:15 josejx Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-editors/nano/ChangeLog,v 1.192 2008/06/27 16:43:58 vapier Exp $
29 +
30 +*nano-2.1.2 (27 Jun 2008)
31 +
32 + 27 Jun 2008; Mike Frysinger <vapier@g.o> +nano-2.1.2.ebuild:
33 + Version bump.
34
35 16 Jun 2008; Joseph Jezak <josejx@g.o> nano-2.1.1-r1.ebuild:
36 Marked ppc/ppc64 stable.
37
38
39
40 1.1 app-editors/nano/nano-2.1.2.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/nano-2.1.2.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/nano-2.1.2.ebuild?rev=1.1&content-type=text/plain
44
45 Index: nano-2.1.2.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.2.ebuild,v 1.1 2008/06/27 16:43:58 vapier Exp $
50
51 inherit eutils
52 if [[ ${PV} == "9999" ]] ; then
53 ECVS_SERVER="savannah.gnu.org:/cvsroot/nano"
54 ECVS_MODULE="nano"
55 ECVS_AUTH="pserver"
56 ECVS_USER="anonymous"
57 inherit cvs
58 else
59 MY_P=${PN}-${PV/_}
60 SRC_URI="http://www.nano-editor.org/dist/v${PV:0:3}/${MY_P}.tar.gz"
61 fi
62
63 DESCRIPTION="GNU GPL'd Pico clone with more functionality"
64 HOMEPAGE="http://www.nano-editor.org/"
65
66 LICENSE="GPL-3"
67 SLOT="0"
68 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
69 IUSE="debug justify minimal ncurses nls slang spell unicode"
70
71 DEPEND=">=sys-libs/ncurses-5.2
72 nls? ( sys-devel/gettext )
73 !ncurses? ( slang? ( sys-libs/slang ) )"
74
75 src_unpack() {
76 unpack ${A}
77 cd "${S}"
78 if [[ ! -e configure ]] ; then
79 ./autogen.sh || die "autogen failed"
80 fi
81 }
82
83 src_compile() {
84 local myconf=""
85 use ncurses \
86 && myconf="--without-slang" \
87 || myconf="${myconf} $(use_with slang)"
88
89 econf \
90 --bindir=/bin \
91 $(use_enable !minimal color) \
92 $(use_enable !minimal multibuffer) \
93 $(use_enable !minimal nanorc) \
94 --disable-wrapping-as-root \
95 $(use_enable spell speller) \
96 $(use_enable justify) \
97 $(use_enable debug) \
98 $(use_enable nls) \
99 $(use_enable unicode utf8) \
100 $(use_enable minimal tiny) \
101 ${myconf} \
102 || die "configure failed"
103 emake || die
104 }
105
106 src_install() {
107 emake DESTDIR="${D}" install || die
108
109 dodoc ChangeLog README doc/nanorc.sample AUTHORS BUGS NEWS TODO
110 dohtml *.html
111 insinto /etc
112 newins doc/nanorc.sample nanorc
113
114 dodir /usr/bin
115 dosym /bin/nano /usr/bin/nano
116
117 insinto /usr/share/nano
118 local f
119 for f in "${FILESDIR}"/*.nanorc ; do
120 [[ -e ${D}/usr/share/nano/${f##*/} ]] && continue
121 doins "${f}" || die
122 echo "# include \"/usr/share/nano/${f##*/}\"" >> "${D}"/etc/nanorc
123 done
124 }
125
126 pkg_postinst() {
127 elog "More helpful info about nano, visit the GDP page:"
128 elog "http://www.gentoo.org/doc/en/nano-basics-guide.xml"
129 }
130
131
132
133 --
134 gentoo-commits@l.g.o mailing list