# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit base eutils DESCRIPTION="Graphical front-end to gcc/g++" HOMEPAGE="http://www.openldev.org" SRC_URI="mirror://sourceforge/${PN}/${PN}-0.3.9.tar.bz2 ${HOMEPAGE}/${PN}-042605.patch gtk? ( mirror://sourceforge/${PN}/gtk-template.tar.gz )" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="gtk" DEPEND=">=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_unpack() { unpack ${A} && cd ${S} epatch ${DISTDIR}/${PN}-042605.patch } src_install() { make DESTDIR=${D} install || die if use gtk; then tmpl_install gtk fi }