# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 inherit eutils multilib versionator MY_PV=$(get_version_component_range 1-2) MY_P=${PN}-${MY_PV} DESCRIPTION="An opensource, cross platform IDE for C/C++" HOMEPAGE="http://codelite.org/" SRC_URI="mirror://sourceforge/${PN}/Releases/${MY_P}/${P}-gtk.src.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="clang debug mysql pch postgres" DEPEND="x11-libs/wxGTK:2.8[X,debug=] dev-db/sqlite:3 mysql? ( dev-db/mysql ) postgres? ( dev-db/postgresql-base ) clang? ( sys-devel/clang )" RDEPEND="${DEPEND}" src_configure() { ./configure \ --prefix="${EPREFIX}/usr" \ --plugins-dir="${EPREFIX}/usr/$(get_libdir)/${PN}" \ $(use_enable clang) \ $(use_enable debug) \ $(use_enable mysql) \ $(use_enable pch) \ $(use_enable postgres) || die } src_install() { default dodoc TODO.txt }