Contents of /smage/branches/alx-0_6_0/core/nano/nano-2.2.6-r1.smage2
Parent Directory | Revision Log
Revision 2100 -
(show annotations)
(download)
Thu May 12 12:25:50 2011 UTC (13 years, 1 month ago) by niro
File size: 1236 byte(s)
Thu May 12 12:25:50 2011 UTC (13 years, 1 month ago) by niro
File size: 1236 byte(s)
-conf_prot setup
1 | # $Id$ |
2 | |
3 | PNAME="nano" |
4 | PVER="2.2.6" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="app-editors" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Nano, small editor, aimed to replaced pico." |
11 | HOMEPAGE="http://www.nano-editor.org/" |
12 | |
13 | DEPEND=">= sys-libs/ncurses-5.8" |
14 | PROVIDE="virtual/editor" |
15 | |
16 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
17 | SRCDIR="$BUILDDIR/${PNAME}-${PVER}" |
18 | |
19 | # nanorc version |
20 | NRCVER="1.7" |
21 | |
22 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
23 | ALX_ONLY_KEEP="etc/nanorc usr/bin/nano" |
24 | sminclude mbuild mtools alx-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 | alx_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 | } |