Contents of /branches/R11-stable/core/nano/nano-2.2.6-r4.smage2
Parent Directory | Revision Log
Revision 14883 -
(show annotations)
(download)
Wed Jan 2 09:36:38 2013 UTC (11 years, 8 months ago) by niro
File size: 1068 byte(s)
Wed Jan 2 09:36:38 2013 UTC (11 years, 8 months ago) by niro
File size: 1068 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="nano" |
4 | PVER="2.2.6" |
5 | PBUILD="r4" |
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 | } |