1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 if [[ ${PV} == "9999" ]] ; then
8 ESVN_REPO_URI="svn://svn.savannah.gnu.org/nano/trunk/nano"
12 SRC_URI="http://www.nano-editor.org/dist/v${PV:0:3}/${MY_P}.tar.gz"
15 DESCRIPTION="GNU GPL'd Pico clone with more functionality"
16 HOMEPAGE="http://www.nano-editor.org/"
20 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
21 IUSE="debug justify minimal ncurses nls slang spell unicode"
23 DEPEND=">=sys-libs/ncurses-5.2[unicode?]
24 nls? ( sys-devel/gettext )
25 !ncurses? ( slang? ( sys-libs/slang ) )"
28 if [[ ${PV} == "9999" ]] ; then
34 if [[ ! -e configure ]] ; then
35 ./autogen.sh || die "autogen failed"
42 && myconf="--without-slang" \
43 || myconf="${myconf} $(use_with slang)"
47 $(use_enable !minimal color) \
48 $(use_enable !minimal multibuffer) \
49 $(use_enable !minimal nanorc) \
50 --disable-wrapping-as-root \
51 $(use_enable spell speller) \
52 $(use_enable justify) \
55 $(use_enable unicode utf8) \
56 $(use_enable minimal tiny) \
58 || die "configure failed"
62 emake DESTDIR="${D}" install || die
64 dodoc ChangeLog README doc/nanorc.sample AUTHORS BUGS NEWS TODO
67 newins doc/nanorc.sample nanorc
70 dosym /bin/nano /usr/bin/nano
72 insinto /usr/share/nano
74 for f in "${FILESDIR}"/*.nanorc ; do
75 [[ -e ${D}/usr/share/nano/${f##*/} ]] && continue
77 echo "# include \"/usr/share/nano/${f##*/}\"" >> "${D}"/etc/nanorc
82 einfo "More helpful info about nano, visit the GDP page:"
83 einfo "https://www.gentoo.org/doc/en/nano-basics-guide.xml"