Contents of /smage/trunk/core/nano/nano-2.3.1-r1.smage2
Parent Directory | Revision Log
Revision 1771 -
(show annotations)
(download)
Mon Sep 19 11:10:39 2011 UTC (13 years ago) by niro
File size: 1213 byte(s)
Mon Sep 19 11:10:39 2011 UTC (13 years ago) by niro
File size: 1213 byte(s)
auto added: ver bump to 2.3.1-r1
1 | # $Id$ |
2 | |
3 | PNAME="nano" |
4 | PVER="2.3.1" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="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 | >= sys-apps/file-5" |
14 | |
15 | PROVIDE="virtual/editor" |
16 | |
17 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
18 | SRCDIR="$BUILDDIR/${PNAME}-${PVER}" |
19 | |
20 | # nanorc version |
21 | NRCVER="1.7" |
22 | |
23 | MCORE_ONLY_KEEP="etc/nanorc usr/bin/nano" |
24 | sminclude mbuild mtools mcore-split |
25 | |
26 | SRC_URI=( |
27 | http://www.nano-editor.org/dist/v${PVER%.*}/${SRCFILE} |
28 | mirror://${PNAME}/${SRCFILE} |
29 | mirror://${PNAME}/nanorc-${NRCVER} |
30 | ) |
31 | |
32 | # check stable version |
33 | #UP2TAG=stable |
34 | # check dev version |
35 | UP2TAG=devel |
36 | UP2DATE="updatecmd ${HOMEPAGE} | grep 'Latest Version' | sed 's/.*\ \(.*\)\ (${UP2TAG}).*/\1/'" |
37 | |
38 | src_compile() |
39 | { |
40 | cd ${SRCDIR} |
41 | |
42 | mconfigure --enable-color --enable-multibuffer --enable-nano-rc || die |
43 | mmake || die |
44 | } |
45 | |
46 | mcore_generic_src_install() |
47 | { |
48 | cd ${SRCDIR} |
49 | |
50 | # needed directories |
51 | minstalldir /usr/share/doc/${PNAME}-${PVER}/examples || die |
52 | |
53 | mmake DESTDIR=${BINDIR} install || die |
54 | |
55 | minstalletc nanorc-${NRCVER} nanorc || die |
56 | minstallfile -s nanorc-${NRCVER} /usr/share/doc/${PNAME}-${PVER}/examples/nanorc || die |
57 | } |
58 | |
59 | preinstall() |
60 | { |
61 | add_conf_prot_mask /etc/nanorc |
62 | } |