# $Header: /alx-cvs/smage-eglibc/nano/nano-2.0.7-r1.smage2,v 1.1 2008/02/27 10:21:35 niro Exp $ PNAME="nano" PVER="2.0.7" PBUILD="r1" PCATEGORIE="app-editors" STATE="unstable" DESCRIPTION="Nano, small editor, aimed to replaced pico." HOMEPAGE="http://www.nano-editor.org/" DEPEND=">= sys-libs/ncurses-5.6" PROVIDE="virtual/editor" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="$BUILDDIR/${PNAME}-${PVER}" # nanorc version NRCVER="1.5" sminclude mbuild mtools alx SRC_URI=( http://www.nano-editor.org/dist/v2.0/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/nanorc-${NRCVER} ) src_compile() { cd ${SRCDIR} mconfigure --enable-color --enable-multibuffer --enable-nano-rc || die mmake || die } src_install() { cd ${SRCDIR} # needed directories minstalldir /usr/share/doc/${PNAME}-${PVER}/examples || die mmake DESTDIR=${BINDIR} install || die minstalletc nanorc-${NRCVER} nanorc || die minstallfile -s nanorc-${NRCVER} /usr/share/doc/${PNAME}-${PVER}/examples/nanorc || die }