Magellan Linux

Annotation of /trunk/core/nano/nano-2.9.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30369 - (hide annotations) (download)
Wed Jan 17 13:26:59 2018 UTC (6 years, 3 months ago) by niro
File size: 966 byte(s)
auto added: ver bump to 2.9.2-r1
1 niro 30369 # $Id$
2    
3     PNAME="nano"
4     PVER="2.9.2"
5     PBUILD="r1"
6    
7     PCAT="app-editors"
8    
9     DESCRIPTION="Nano, small editor, aimed to replaced pico."
10     HOMEPAGE="http://www.nano-editor.org/"
11    
12     DEPEND=">= sys-libs/ncurses-6.0"
13     PROVIDE="virtual/editor"
14    
15     SRCFILE="${PNAME}-${PVER}.tar.gz"
16     SRCDIR="$BUILDDIR/${PNAME}-${PVER}"
17    
18     # nanorc version
19     NRCVER="1.8"
20    
21     sminclude mbuild mtools
22    
23     SRC_URI=(
24     http://www.nano-editor.org/dist/v${PVER%.*}/${SRCFILE}
25     mirror://${PNAME}/${SRCFILE}
26     mirror://${PNAME}/nanorc-${NRCVER}
27     )
28    
29     UP2DATE="updatecmd ${HOMEPAGE}/download.php | highesttarball gz"
30    
31     src_compile()
32     {
33     cd ${SRCDIR}
34    
35     mconfigure --enable-color --enable-multibuffer --enable-nano-rc || die
36     mmake || die
37     }
38    
39     src_install()
40     {
41     cd ${SRCDIR}
42    
43     # needed directories
44     minstalldir /usr/share/doc/${PNAME}-${PVER}/examples || die
45    
46     mmake DESTDIR=${BINDIR} install || die
47    
48     minstalletc nanorc-${NRCVER} nanorc || die
49     minstallfile -s nanorc-${NRCVER} /usr/share/doc/${PNAME}-${PVER}/examples/nanorc || die
50     }