Magellan Linux

Contents of /branches/R11-unstable/core/nano/nano-2.4.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25029 - (show annotations) (download)
Tue Nov 25 02:51:21 2014 UTC (9 years, 5 months ago) by niro
File size: 1068 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="nano"
4 PVER="2.4.1"
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-5.9"
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 # check stable version
30 UP2TAG=stable
31 # check dev version
32 #UP2TAG=devel
33 UP2DATE="updatecmd ${HOMEPAGE} | grep 'Latest Version' | sed 's/.*\ \(.*\)\ (${UP2TAG}).*/\1/'"
34
35 src_compile()
36 {
37 cd ${SRCDIR}
38
39 mconfigure --enable-color --enable-multibuffer --enable-nano-rc || die
40 mmake || die
41 }
42
43 src_install()
44 {
45 cd ${SRCDIR}
46
47 # needed directories
48 minstalldir /usr/share/doc/${PNAME}-${PVER}/examples || die
49
50 mmake DESTDIR=${BINDIR} install || die
51
52 minstalletc nanorc-${NRCVER} nanorc || die
53 minstallfile -s nanorc-${NRCVER} /usr/share/doc/${PNAME}-${PVER}/examples/nanorc || die
54 }