# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit base DESCRIPTION="Graphical front-end to gcc/g++" HOMEPAGE="http://www.openldev.org/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2 gtk? ( mirror://sourceforge/${PN}/gtk-template.tar.gz )" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="gtk" RDEPEND=">=dev-cpp/gtkmm-2.4" S="${WORKDIR}/${PN}" tmpl_install() { ebegin "Installing ${1} template" insinto /usr/share/${PN}/templates doins ${WORKDIR}/${1}/${1}* eend $? "Failed" ebegin "Registering ${1} in /usr/share/openldev/templates/index.template" echo "gtk" >> ${D}usr/share/openldev/templates/index.template eend $? "Failed" } src_install() { make DESTDIR=${D} install || die if use gtk; then tmpl_install gtk fi }