# Copyright (c) 2006 knut st. osmundsen # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit autotools flag-o-matic DESCRIPTION="kBuild" HOMEPAGE="http://svn.netlabs.org/kbuild" if [[ "${PV}" = "9999" ]]; then inherit subversion ESVN_REPO_URI="http://svn.netlabs.org/repos/kbuild/trunk" KEYWORDS="" else SRC_URI="http://ftp.netlabs.org/pub/kBuild/${P}.tar.gz" KEYWORDS="~x86" fi SLOT="0" LICENSE="GPL-2" KEYWORDS="amd64 ~ppc ~sparc x86" IUSE="" src_unpack() { if [ "${PV}" = "9999" ]; then subversion_src_unpack else unpack ${A} fi rm -fr "${S}/kBuild/bin" cd "${S}/src/kmk" eautoreconf cd "${S}/src/sed" eautoreconf } src_compile() { kBuild/env.sh \ --full \ make -f bootstrap.gmk AUTORECONF=true \ || die } src_install () { kBuild/env.sh \ kmk \ NIX_INSTALL_DIR=/usr \ BUILD_TYPE=release \ PATH_INS="${D}" \ install \ || die }