Contents of /trunk/core/nano/nano-7.2-r1.smage2
Parent Directory | Revision Log
Revision 33498 -
(show annotations)
(download)
Tue Jul 25 09:48:44 2023 UTC (10 months, 1 week ago) by niro
File size: 970 byte(s)
Tue Jul 25 09:48:44 2023 UTC (10 months, 1 week ago) by niro
File size: 970 byte(s)
-ver bump to 7.2-r1
1 | # $Id$ |
2 | |
3 | PNAME="nano" |
4 | PVER="7.2" |
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.4 |
13 | >= sys-apps/file-5" |
14 | PROVIDE="virtual/editor" |
15 | |
16 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
17 | SRCDIR="$BUILDDIR/${PNAME}-${PVER}" |
18 | |
19 | sminclude mbuild mtools |
20 | |
21 | SRC_URI=( |
22 | http://www.nano-editor.org/dist/v${PVER%.*}/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/magellan.nanorc |
25 | ) |
26 | |
27 | UP2DATE="updatecmd ${HOMEPAGE}/download.php | highesttarball gz" |
28 | |
29 | src_compile() |
30 | { |
31 | cd ${SRCDIR} |
32 | |
33 | mconfigure --enable-color --enable-multibuffer --enable-nanorc || die |
34 | mmake || die |
35 | } |
36 | |
37 | src_install() |
38 | { |
39 | cd ${SRCDIR} |
40 | mmake DESTDIR=${BINDIR} install || die |
41 | |
42 | # install nanorc |
43 | minstalletc doc/sample.nanorc nanorc || die |
44 | minstallfile -s magellan.nanorc /usr/share/nano/ || die |
45 | # enable all nanorc includes |
46 | sed -i 's:^# \(include "/usr/share/nano/\*.nanorc"\).*:\1:' ${BINDIR}/etc/nanorc || die |
47 | } |