Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-editors/nano: nano-2.3.1-r1.ebuild ChangeLog
Date: Mon, 29 Aug 2011 18:08:12
Message-Id: 20110829180800.66FEA2004C@flycatcher.gentoo.org
1 grobian 11/08/29 18:08:00
2
3 Modified: ChangeLog
4 Added: nano-2.3.1-r1.ebuild
5 Log:
6 Add fixes for Prefix, bug #361251
7
8 (Portage version: 2.2.01.19074-prefix/cvs/Darwin i386)
9
10 Revision Changes Path
11 1.265 app-editors/nano/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/nano/ChangeLog?rev=1.265&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/nano/ChangeLog?rev=1.265&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/nano/ChangeLog?r1=1.264&r2=1.265
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-editors/nano/ChangeLog,v
20 retrieving revision 1.264
21 retrieving revision 1.265
22 diff -u -r1.264 -r1.265
23 --- ChangeLog 11 May 2011 15:04:28 -0000 1.264
24 +++ ChangeLog 29 Aug 2011 18:08:00 -0000 1.265
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-editors/nano
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-editors/nano/ChangeLog,v 1.264 2011/05/11 15:04:28 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-editors/nano/ChangeLog,v 1.265 2011/08/29 18:08:00 grobian Exp $
30 +
31 +*nano-2.3.1-r1 (29 Aug 2011)
32 +
33 + 29 Aug 2011; Fabian Groffen <grobian@g.o> +nano-2.3.1-r1.ebuild:
34 + Add fixes for Prefix, bug #361251
35
36 *nano-2.3.1 (11 May 2011)
37
38
39
40
41 1.1 app-editors/nano/nano-2.3.1-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/nano/nano-2.3.1-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/nano/nano-2.3.1-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nano-2.3.1-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2011 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.3.1-r1.ebuild,v 1.1 2011/08/29 18:08:00 grobian Exp $
51
52 EAPI="3"
53 inherit eutils
54 if [[ ${PV} == "9999" ]] ; then
55 ESVN_REPO_URI="svn://svn.savannah.gnu.org/nano/trunk/nano"
56 inherit subversion
57 else
58 MY_P=${PN}-${PV/_}
59 SRC_URI="http://www.nano-editor.org/dist/v${PV:0:3}/${MY_P}.tar.gz"
60 fi
61
62 DESCRIPTION="GNU GPL'd Pico clone with more functionality"
63 HOMEPAGE="http://www.nano-editor.org/"
64
65 LICENSE="GPL-3"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
68 IUSE="debug justify minimal ncurses nls slang spell unicode"
69
70 DEPEND=">=sys-libs/ncurses-5.2[unicode?]
71 nls? ( sys-devel/gettext )
72 !ncurses? ( slang? ( sys-libs/slang ) )"
73
74 src_prepare() {
75 if [[ ! -e configure ]] ; then
76 ./autogen.sh || die
77 fi
78 # Prefix fix for odd ncursesw logic, bug #361251
79 sed -i -e "s:-I\(/usr/include/ncursesw\):-I${EPREFIX}\1:" configure || die
80 }
81
82 src_configure() {
83 local myconf=""
84 use ncurses \
85 && myconf="--without-slang" \
86 || myconf="${myconf} $(use_with slang)"
87
88 econf \
89 --bindir="${EPREFIX}"/bin \
90 $(use_enable !minimal color) \
91 $(use_enable !minimal multibuffer) \
92 $(use_enable !minimal nanorc) \
93 --disable-wrapping-as-root \
94 $(use_enable spell speller) \
95 $(use_enable justify) \
96 $(use_enable debug) \
97 $(use_enable nls) \
98 $(use_enable unicode utf8) \
99 $(use_enable minimal tiny) \
100 ${myconf}
101 }
102
103 src_install() {
104 emake DESTDIR="${D}" install || die
105
106 dodoc ChangeLog README doc/nanorc.sample AUTHORS BUGS NEWS TODO
107 dohtml doc/faq.html
108 insinto /etc
109 newins doc/nanorc.sample nanorc
110
111 dodir /usr/bin
112 dosym /bin/nano /usr/bin/nano
113
114 insinto /usr/share/nano
115 local f
116 for f in "${FILESDIR}"/*.nanorc ; do
117 [[ -e ${ED}/usr/share/nano/${f##*/} ]] && continue
118 doins "${f}" || die
119 echo "# include \"${EPREFIX}/usr/share/nano/${f##*/}\"" >> "${ED}"/etc/nanorc
120 done
121 }
122
123 pkg_postinst() {
124 einfo "More helpful info about nano, visit the GDP page:"
125 einfo "http://www.gentoo.org/doc/en/nano-basics-guide.xml"
126 }