# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-embedded/gezel/gezel-1.7.ebuild,v 1.2 2005/06/26 09:21:28 dholm Exp $ inherit eutils java-pkg-2 DESCRIPTION="GEZEL is a language and open environment for exploration, simulation and implementation of domain-specific micro-architectures." HOMEPAGE="http://rijndael.ece.vt.edu/gezel2/index.php/Main_Page" SRC_URI="mirror://gentoo/${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~ppc ~x86" IUSE="java" RDEPEND="dev-libs/gmp java? (>=virtual/jre-1.4)" DEPEND="dev-libs/gmp java? (>=virtual/jdk-1.4)" src_unpack(){ unpack ${A} epatch ${FILESDIR}/gezel-1.7_gentoo.patch # forcing regeneration of files from bison touch ${S}/gezel/fdl.ll } src_compile() { econf --with-pic --enable-gezel51 $(use_enable java)|| die 'configure failed' emake JAVAC=javac JAVAH=javah || die 'compile failed' } src_install() { make DESTDIR=${D} install || die dodoc AUTHORS BUGS NEWS README TODO doc/*.* docinto umlistings dodoc doc/umlistings/* }