Contents of /smage/branches/alx07x-stable/core/nano/nano-4.3-r1.smage2
Parent Directory | Revision Log
Revision 13528 -
(show annotations)
(download)
Fri Jul 12 11:57:24 2019 UTC (5 years, 2 months ago) by niro
File size: 1113 byte(s)
Fri Jul 12 11:57:24 2019 UTC (5 years, 2 months ago) by niro
File size: 1113 byte(s)
-release branches/alx07x-stable
1 | # $Id$ |
2 | |
3 | PNAME="nano" |
4 | PVER="4.3" |
5 | PBUILD="r1" |
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-6.1" |
13 | SDEPEND=">= sys-libs/ncurses-dev-6.1" |
14 | PROVIDE="virtual/editor" |
15 | |
16 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
17 | SRCDIR="$BUILDDIR/${PNAME}-${PVER}" |
18 | |
19 | # nanorc version |
20 | NRCVER="1.8" |
21 | |
22 | ALX_PKG_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 | UP2DATE="updatecmd ${HOMEPAGE}/download.php | highesttarball gz" |
32 | |
33 | src_compile() |
34 | { |
35 | cd ${SRCDIR} |
36 | |
37 | mconfigure --enable-color --enable-multibuffer --enable-nano-rc || die |
38 | mmake || die |
39 | } |
40 | |
41 | alx_generic_src_install() |
42 | { |
43 | cd ${SRCDIR} |
44 | |
45 | # needed directories |
46 | minstalldir /usr/share/doc/${PNAME}-${PVER}/examples || die |
47 | |
48 | mmake DESTDIR=${BINDIR} install || die |
49 | |
50 | minstalletc nanorc-${NRCVER} nanorc || die |
51 | minstallfile -s nanorc-${NRCVER} /usr/share/doc/${PNAME}-${PVER}/examples/nanorc || die |
52 | } |
53 | |
54 | preinstall() |
55 | { |
56 | add_conf_prot_mask /etc/nanorc |
57 | } |