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