Annotation of /smage/trunk/core/nano/nano-2.0.9-r6.smage2
Parent Directory | Revision Log
Revision 105 -
(hide annotations)
(download)
Wed Jan 6 13:07:55 2010 UTC (14 years, 4 months ago) by niro
File size: 1152 byte(s)
Wed Jan 6 13:07:55 2010 UTC (14 years, 4 months ago) by niro
File size: 1152 byte(s)
-mcore-split
1 | niro | 104 | # $Id$ |
2 | |||
3 | PNAME="nano" | ||
4 | PVER="2.0.9" | ||
5 | PBUILD="r6" | ||
6 | |||
7 | PCATEGORIE="app-editors" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="Nano, small editor, aimed to replaced pico." | ||
11 | HOMEPAGE="http://www.nano-editor.org/" | ||
12 | |||
13 | DEPEND=">= sys-libs/ncurses-5.7" | ||
14 | PROVIDE="virtual/editor" | ||
15 | |||
16 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
17 | SRCDIR="$BUILDDIR/${PNAME}-${PVER}" | ||
18 | |||
19 | # nanorc version | ||
20 | NRCVER="1.7" | ||
21 | |||
22 | niro | 105 | MCORE_ONLY_KEEP="etc/nanorc usr/bin/nano" |
23 | sminclude mbuild mtools mcore-split | ||
24 | niro | 104 | |
25 | SRC_URI=( | ||
26 | http://www.nano-editor.org/dist/v2.0/${SRCFILE} | ||
27 | mirror://${PNAME}/${SRCFILE} | ||
28 | mirror://${PNAME}/nanorc-${NRCVER} | ||
29 | ) | ||
30 | |||
31 | # check stable version | ||
32 | UP2TAG=stable | ||
33 | # check dev version | ||
34 | #UP2TAG=devel | ||
35 | UP2DATE="updatecmd ${HOMEPAGE} | grep 'Latest Version' | sed 's/.*\ \(.*\)\ (${UP2TAG}).*/\1/'" | ||
36 | |||
37 | src_compile() | ||
38 | { | ||
39 | cd ${SRCDIR} | ||
40 | |||
41 | mconfigure --enable-color --enable-multibuffer --enable-nano-rc || die | ||
42 | mmake || die | ||
43 | } | ||
44 | |||
45 | niro | 105 | mcore_generic_src_install() |
46 | niro | 104 | { |
47 | cd ${SRCDIR} | ||
48 | |||
49 | # needed directories | ||
50 | minstalldir /usr/share/doc/${PNAME}-${PVER}/examples || die | ||
51 | |||
52 | mmake DESTDIR=${BINDIR} install || die | ||
53 | |||
54 | minstalletc nanorc-${NRCVER} nanorc || die | ||
55 | minstallfile -s nanorc-${NRCVER} /usr/share/doc/${PNAME}-${PVER}/examples/nanorc || die | ||
56 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |