Contents of /trunk/core/nano/nano-4.5-r1.smage2
Parent Directory | Revision Log
Revision 32985 -
(show annotations)
(download)
Tue Oct 8 13:22:34 2019 UTC (4 years, 11 months ago) by niro
File size: 964 byte(s)
Tue Oct 8 13:22:34 2019 UTC (4 years, 11 months ago) by niro
File size: 964 byte(s)
auto added: ver bump to 4.5-r1
1 | # $Id$ |
2 | |
3 | PNAME="nano" |
4 | PVER="4.5" |
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 | 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 | sminclude mbuild mtools |
22 | |
23 | SRC_URI=( |
24 | http://www.nano-editor.org/dist/v${PVER%.*}/${SRCFILE} |
25 | mirror://${PNAME}/${SRCFILE} |
26 | mirror://${PNAME}/nanorc-${NRCVER} |
27 | ) |
28 | |
29 | UP2DATE="updatecmd ${HOMEPAGE}/download.php | highesttarball gz" |
30 | |
31 | src_compile() |
32 | { |
33 | cd ${SRCDIR} |
34 | |
35 | mconfigure --enable-color --enable-multibuffer --enable-nano-rc || die |
36 | mmake || die |
37 | } |
38 | |
39 | src_install() |
40 | { |
41 | cd ${SRCDIR} |
42 | |
43 | # needed directories |
44 | minstalldir /usr/share/doc/${PNAME}-${PVER}/examples || die |
45 | |
46 | mmake DESTDIR=${BINDIR} install || die |
47 | |
48 | minstalletc nanorc-${NRCVER} nanorc || die |
49 | minstallfile -s nanorc-${NRCVER} /usr/share/doc/${PNAME}-${PVER}/examples/nanorc || die |
50 | } |