An ebuild follows for the current stable release of SableCC. After having wanted it more than once over the last couple of months, I thought I would write my own. I hope it's right ;) # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/dev-java/velocity/velocity-1.3.ebuild,v 1.4 2003/12/16 15:25:18 weeve Exp $ DESCRIPTION="Java based compiler/parser generator" HOMEPAGE="http://www.sablecc.org/" SRC_URI="mirror://sourceforge/sablecc/sablecc-${PV}.tar.gz" LICENSE="LGPL" SLOT="0" KEYWORDS="x86 ppc -sparc" IUSE="jikes doc" DEPEND=">=dev-java/sun-jdk-1.3.1" RDEPEND=">=dev-java/sun-jdk-1.3.1 >=dev-java/java-getopt-1.0.9 >=dev-java/ant-1.5.1 jikes? ( >=dev-java/jikes-1.17 )" src_compile () { cd ${S} ANT_OPTS="" if [ -n "`use jikes`" ] ; then ANT_OPTS="${ANT_OPTS} -Dbuild.compiler=jikes" fi } src_install () { cd ${S} ANT_OPTS="${ANT_OPTS} -Dinstall.dir=${D}/usr" ant ${ANT_OPTS} install || die "Java build/install failed." # fix the sablecc shell script that was generated sed -i "s,${D},/,g" ${D}/usr/bin/sablecc sed -i "s,java,\$JAVA_HOME/bin/java,g" ${D}/usr/bin/sablecc # don't need the windows bat files rm -f ${D}/usr/bin/sablecc.bat dodoc AUTHORS LICENSE COPYING-LESSER THANKS use doc && dohtml README.html }
please post it as an attachment
Created attachment 24976 [details] new ebuild I was going to attach it, but then the first bugzilla interface that I got to, where I was allowed to type in everything, didn't allow me to. It was only on the second interface that I was allowed to attach. I guess you could call that a bugzilla bug, or at minimum an interface design problem.
This ebuild will build only with sun-jdk ? If not, please fix the ebuild to use virtuals.
Created attachment 24982 [details] updated ebuild Ok. This one now uses a virtual for Java, fixed DEPEND, and Java version >= 1.4 required because of org.sax dependency.
In portage now, thanks.