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.6-r2.ebuild
Date: Sun, 19 Oct 2008 06:56:42
Message-Id: E1KrSDQ-0000AC-G7@stork.gentoo.org
1 vapier 08/10/19 06:56:40
2
3 Modified: ChangeLog
4 Added: nano-2.1.6-r2.ebuild
5 Log:
6 Add fix from upstream for cutting at end of file #240330 by amadeus.bit.
7 (Portage version: 2.2_rc12/cvs/Linux 2.6.26.2 x86_64)
8
9 Revision Changes Path
10 1.218 app-editors/nano/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/ChangeLog?rev=1.218&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/ChangeLog?rev=1.218&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/ChangeLog?r1=1.217&r2=1.218
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-editors/nano/ChangeLog,v
19 retrieving revision 1.217
20 retrieving revision 1.218
21 diff -u -r1.217 -r1.218
22 --- ChangeLog 8 Oct 2008 10:09:57 -0000 1.217
23 +++ ChangeLog 19 Oct 2008 06:56:40 -0000 1.218
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.217 2008/10/08 10:09:57 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-editors/nano/ChangeLog,v 1.218 2008/10/19 06:56:40 vapier Exp $
29 +
30 +*nano-2.1.6-r2 (19 Oct 2008)
31 +
32 + 19 Oct 2008; Mike Frysinger <vapier@g.o>
33 + +files/nano-2.1.6-cut-last.patch, +nano-2.1.6-r2.ebuild:
34 + Add fix from upstream for cutting at end of file #240330 by amadeus.bit.
35
36 08 Oct 2008; Raúl Porcel <armin76@g.o> nano-2.0.9.ebuild,
37 nano-2.1.5.ebuild:
38
39
40
41 1.1 app-editors/nano/nano-2.1.6-r2.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/nano-2.1.6-r2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nano/nano-2.1.6-r2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nano-2.1.6-r2.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.6-r2.ebuild,v 1.1 2008/10/19 06:56:40 vapier Exp $
51
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
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 epatch "${FILESDIR}"/${P}-cut-paste-segv.patch
81 epatch "${FILESDIR}"/${P}-cut-last.patch #240330
82 if [[ ! -e configure ]] ; then
83 ./autogen.sh || die "autogen failed"
84 fi
85 }
86
87 src_compile() {
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 emake || die
108 }
109
110 src_install() {
111 emake DESTDIR="${D}" install || die
112
113 dodoc ChangeLog README doc/nanorc.sample AUTHORS BUGS NEWS TODO
114 dohtml *.html
115 insinto /etc
116 newins doc/nanorc.sample nanorc
117
118 dodir /usr/bin
119 dosym /bin/nano /usr/bin/nano
120
121 insinto /usr/share/nano
122 local f
123 for f in "${FILESDIR}"/*.nanorc ; do
124 [[ -e ${D}/usr/share/nano/${f##*/} ]] && continue
125 doins "${f}" || die
126 echo "# include \"/usr/share/nano/${f##*/}\"" >> "${D}"/etc/nanorc
127 done
128 }
129
130 pkg_postinst() {
131 elog "More helpful info about nano, visit the GDP page:"
132 elog "http://www.gentoo.org/doc/en/nano-basics-guide.xml"
133 }