Magellan Linux

Contents of /smage/trunk/core/nano/nano-2.2.6-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4088 - (show annotations) (download)
Wed Nov 7 08:41:23 2012 UTC (11 years, 6 months ago) by niro
File size: 1179 byte(s)
auto added: ver bump to 2.2.6-r3
1 # $Id$
2
3 PNAME="nano"
4 PVER="2.2.6"
5 PBUILD="r3"
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 ALX_PKG_KEEP="etc/nanorc usr/bin/nano"
22 sminclude mbuild mtools alx-split
23
24 SRC_URI=(
25 http://www.nano-editor.org/dist/v${PVER%.*}/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 mirror://${PNAME}/nanorc-${NRCVER}
28 )
29
30 # check stable version
31 UP2TAG=stable
32 # check dev version
33 #UP2TAG=devel
34 UP2DATE="updatecmd ${HOMEPAGE} | grep 'Latest Version' | sed 's/.*\ \(.*\)\ (${UP2TAG}).*/\1/'"
35
36 src_compile()
37 {
38 cd ${SRCDIR}
39
40 mconfigure --enable-color --enable-multibuffer --enable-nano-rc || die
41 mmake || die
42 }
43
44 alx_generic_src_install()
45 {
46 cd ${SRCDIR}
47
48 # needed directories
49 minstalldir /usr/share/doc/${PNAME}-${PVER}/examples || die
50
51 mmake DESTDIR=${BINDIR} install || die
52
53 minstalletc nanorc-${NRCVER} nanorc || die
54 minstallfile -s nanorc-${NRCVER} /usr/share/doc/${PNAME}-${PVER}/examples/nanorc || die
55 }
56
57 preinstall()
58 {
59 add_conf_prot_mask /etc/nanorc
60 }