# $Id$ PNAME="nano" PVER="2.0.9" PBUILD="r6" PCATEGORIE="app-editors" STATE="unstable" DESCRIPTION="Nano, small editor, aimed to replaced pico." HOMEPAGE="http://www.nano-editor.org/" DEPEND=">= sys-libs/ncurses-5.7" PROVIDE="virtual/editor" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="$BUILDDIR/${PNAME}-${PVER}" # nanorc version NRCVER="1.7" MCORE_ONLY_KEEP="etc/nanorc usr/bin/nano" sminclude mbuild mtools mcore-split SRC_URI=( http://www.nano-editor.org/dist/v2.0/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/nanorc-${NRCVER} ) # check stable version UP2TAG=stable # check dev version #UP2TAG=devel UP2DATE="updatecmd ${HOMEPAGE} | grep 'Latest Version' | sed 's/.*\ \(.*\)\ (${UP2TAG}).*/\1/'" src_compile() { cd ${SRCDIR} mconfigure --enable-color --enable-multibuffer --enable-nano-rc || die mmake || die } mcore_generic_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 }