# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit vim-doc DESCRIPTION="A small utility which allows debugging from within vim" HOMEPAGE="http://clewn.sourceforge.net" SRC_URI="mirror://sourceforge/clewn/clewn-1.8.1.tar.gz" LICENSE="GPL" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=app-editors/gvim-7.0 sys-libs/readline" RDEPEND=">=app-editors/gvim-7.0 sys-libs/readline" src_unpack() { NETBEANS_ON=`gvim --version | grep -c '\+netbeans'` if [[ $NETBEANS_ON == 0 ]]; then eerror "Please (re)emerge gvim with netbeans USE flag on before " eerror "emerging clewn" die fi unpack ${A} mv ${WORKDIR}/clewn ${WORKDIR}/${P} } src_compile() { econf || die make || die } src_install() { dodoc README.txt CHANGELOG dodir /usr/bin cp ${S}/clewn ${D}/usr/bin/clewn || die cd ${S}/runtime dodir /usr/share/vim/vimfiles/ cd ${D}/usr/share/vim/vimfiles tar -xvzf ${S}/runtime/clewn_runtime.tgz } pkg_postinst() { update_vim_helptags }