Magellan Linux

Annotation of /smage/trunk/core/nano/nano-4.9.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14040 - (hide annotations) (download)
Fri Jul 3 07:38:19 2020 UTC (3 years, 11 months ago) by niro
File size: 1116 byte(s)
auto added: ver bump to 4.9.3-r1
1 niro 14038 # $Id$
2    
3     PNAME="nano"
4     PVER="4.9.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.2"
13     SDEPEND=">= sys-libs/ncurses-dev-6.2"
14     PROVIDE="virtual/editor"
15    
16 niro 14039 SRCFILE="${PNAME}-${PVER}.tar.xz"
17 niro 14038 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 niro 14040 http://www.nano-editor.org/dist/v${PVER%%.*}/${SRCFILE}
27 niro 14038 mirror://${PNAME}/${SRCFILE}
28     mirror://${PNAME}/nanorc-${NRCVER}
29     )
30    
31 niro 14039 UP2DATE="updatecmd ${HOMEPAGE}/download.php | highesttarball xz"
32 niro 14038
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     }