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.2.0.ebuild |
Date: | Mon, 30 Nov 2009 16:20:59 |
Message-Id: | E1NF8zZ-00053Y-RC@stork.gentoo.org |
1 | vapier 09/11/30 16:20:49 |
2 | |
3 | Modified: ChangeLog |
4 | Added: nano-2.2.0.ebuild |
5 | Log: |
6 | Version bump. |
7 | (Portage version: 2.2_rc51/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.243 app-editors/nano/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/ChangeLog?rev=1.243&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/ChangeLog?rev=1.243&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/ChangeLog?r1=1.242&r2=1.243 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/app-editors/nano/ChangeLog,v |
19 | retrieving revision 1.242 |
20 | retrieving revision 1.243 |
21 | diff -u -r1.242 -r1.243 |
22 | --- ChangeLog 2 Nov 2009 22:58:23 -0000 1.242 |
23 | +++ ChangeLog 30 Nov 2009 16:20:49 -0000 1.243 |
24 | @@ -1,6 +1,11 @@ |
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.242 2009/11/02 22:58:23 vapier Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/app-editors/nano/ChangeLog,v 1.243 2009/11/30 16:20:49 vapier Exp $ |
29 | + |
30 | +*nano-2.2.0 (30 Nov 2009) |
31 | + |
32 | + 30 Nov 2009; Mike Frysinger <vapier@g.o> +nano-2.2.0.ebuild: |
33 | + Version bump. |
34 | |
35 | *nano-2.1.11 (02 Nov 2009) |
36 | |
37 | |
38 | |
39 | |
40 | 1.1 app-editors/nano/nano-2.2.0.ebuild |
41 | |
42 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/nano-2.2.0.ebuild?rev=1.1&view=markup |
43 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/nano-2.2.0.ebuild?rev=1.1&content-type=text/plain |
44 | |
45 | Index: nano-2.2.0.ebuild |
46 | =================================================================== |
47 | # Copyright 1999-2009 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.2.0.ebuild,v 1.1 2009/11/30 16:20:49 vapier 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 ~x86 ~sparc-fbsd ~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 doc/faq.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 | einfo "More helpful info about nano, visit the GDP page:" |
129 | einfo "http://www.gentoo.org/doc/en/nano-basics-guide.xml" |
130 | } |