# $Id$ PNAME="nano" PVER="2.9.2" PBUILD="r1" PCAT="app-editors" DESCRIPTION="Nano, small editor, aimed to replaced pico." HOMEPAGE="http://www.nano-editor.org/" DEPEND=">= sys-libs/ncurses-6.0" PROVIDE="virtual/editor" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="$BUILDDIR/${PNAME}-${PVER}" # nanorc version NRCVER="1.8" sminclude mbuild mtools SRC_URI=( http://www.nano-editor.org/dist/v${PVER%.*}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/nanorc-${NRCVER} ) UP2DATE="updatecmd ${HOMEPAGE}/download.php | highesttarball gz" 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 }