Contents of /smage/branches/alx-0_6_0/core/nano/nano-2.2.6-r1.smage2
Parent Directory | Revision Log
Revision 2506 -
(show annotations)
(download)
Thu Jun 30 13:55:15 2011 UTC (13 years, 3 months ago) by niro
File size: 1219 byte(s)
Thu Jun 30 13:55:15 2011 UTC (13 years, 3 months ago) by niro
File size: 1219 byte(s)
-removed STATE variable from smage files, use global distribution file for package/distribution states
1 | # $Id$ |
2 | |
3 | PNAME="nano" |
4 | PVER="2.2.6" |
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.8" |
13 | PROVIDE="virtual/editor" |
14 | |
15 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
16 | SRCDIR="$BUILDDIR/${PNAME}-${PVER}" |
17 | |
18 | # nanorc version |
19 | NRCVER="1.7" |
20 | |
21 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
22 | ALX_ONLY_KEEP="etc/nanorc usr/bin/nano" |
23 | sminclude mbuild mtools alx-split |
24 | |
25 | SRC_URI=( |
26 | http://www.nano-editor.org/dist/v${PVER%.*}/${SRCFILE} |
27 | mirror://${PNAME}/${SRCFILE} |
28 | mirror://${PNAME}/nanorc-${NRCVER} |
29 | ) |
30 | |
31 | # check stable version |
32 | UP2TAG=stable |
33 | # check dev version |
34 | #UP2TAG=devel |
35 | UP2DATE="updatecmd ${HOMEPAGE} | grep 'Latest Version' | sed 's/.*\ \(.*\)\ (${UP2TAG}).*/\1/'" |
36 | |
37 | src_compile() |
38 | { |
39 | cd ${SRCDIR} |
40 | |
41 | mconfigure --enable-color --enable-multibuffer --enable-nano-rc || die |
42 | mmake || die |
43 | } |
44 | |
45 | alx_generic_src_install() |
46 | { |
47 | cd ${SRCDIR} |
48 | |
49 | # needed directories |
50 | minstalldir /usr/share/doc/${PNAME}-${PVER}/examples || die |
51 | |
52 | mmake DESTDIR=${BINDIR} install || die |
53 | |
54 | minstalletc nanorc-${NRCVER} nanorc || die |
55 | minstallfile -s nanorc-${NRCVER} /usr/share/doc/${PNAME}-${PVER}/examples/nanorc || die |
56 | } |
57 | |
58 | preinstall() |
59 | { |
60 | add_conf_prot_mask /etc/nanorc |
61 | } |