# Copyright 2009 Ricardo Salveti de Araujo # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 inherit eutils toolchain-funcs DESCRIPTION="Scripts and programs needed to fully use Mamona Embedded distribution." HOMEPAGE="http://dev.openbossa.org/trac/mamona/wiki" SRC_URI="http://dev.openbossa.org/mamona/0.2/installer/${PN}_${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" RDEPEND="virtual/libc sys-libs/zlib app-text/texi2html sys-apps/util-linux sys-apps/coreutils sys-apps/which mail-filter/procmail dev-util/cdebootstrap sys-devel/bison dev-util/ccache net-misc/curl dev-util/cvs app-text/xmlto app-text/docbook-sgml-utils sys-apps/fakeroot dev-util/git sys-apps/help2man dev-util/intltool >=dev-lang/python-2.4 dev-python/pexpect dev-python/pysqlite dev-util/subversion sys-apps/texinfo app-arch/unzip net-misc/wget app-text/openjade app-admin/reprepro sys-apps/groff sys-devel/patch dev-util/quilt sys-fs/mtd-utils app-admin/sudo" DEPEND="${RDEPEND}" S=${WORKDIR}/${PN} pkg_setup() { if [ "$(gcc-major-version)" == "4" ]; then eerror "mamona-qemu-arm requires gcc-3 in order to build and work correctly" eerror "please compile it switching to gcc-3." eerror "We are aware that mamona-qemu-arm can guess a gcc-3 but this feature" eerror "could be harmful." die "gcc 4 cannot build mamona-qemu-arm" fi } src_unpack() { unpack ${A} cd "${S}" if [[ ! -e configure ]] ; then ./autogen.sh || die "autogen failed" fi } src_install() { emake install DESTDIR="${D}" || die "emake install failed" dodoc AUTHORS COPYING INSTALL NEWS README ChangeLog }