# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit autotools eutils git IUSE="nls" DEPEND="${DEPEND} nls? ( dev-vcs/cvs )" # Init the extra econfs SHR_EXTRA_ECONF_OPTS="" # Location of the project EGIT_REPO_URI="http://shr.bearstech.com/repo/shr.git" EGIT_PROJECT="shr" shr_src_unpack() { git_src_unpack cd "${S}/${PROJECT_NAME}" # Create files that might be missing touch ABOUT-NLS config.rpath # If nls is enables, try to find out if we can autopoint that thing use nls && grep -q AM_GNU_GETTEXT_VERSION configure.ac && autopoint -f eautoreconf use nls && glib-gettextize --force --copy } shr_src_compile() { cd "${S}/${PROJECT_NAME}" echo ${SHR_EXTRA_ECONF_OPTS} econf ${SHR_EXTRA_ECONF_OPTS} || die "econf failed" emake || die "emake failed" } shr_src_install() { cd "${S}/${PROJECT_NAME}" emake DESTDIR="${D}" install || die "emake install failed" dodoc AUTHORS NEWS README } EXPORT_FUNCTIONS src_unpack src_compile src_install