Annotation of /trunk/core/nano/nano-3.2-r1.smage2
Parent Directory | Revision Log
Revision 31539 -
(hide annotations)
(download)
Fri Nov 30 07:24:30 2018 UTC (5 years, 9 months ago) by niro
File size: 964 byte(s)
Fri Nov 30 07:24:30 2018 UTC (5 years, 9 months ago) by niro
File size: 964 byte(s)
auto added: ver bump to 3.2-r1
1 | niro | 31539 | # $Id$ |
2 | |||
3 | PNAME="nano" | ||
4 | PVER="3.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.0" | ||
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 | } |