Here's src_compile: src_compile() { echo "oro.jar=`java-config --classpath=oro`" >> build.properties echo "commons-digester.jar=`java-config --classpath=commons-digester`" >> build.properties echo "commons-collections.jar=`java-config --classpath=commons-collections`" >> build.properties echo "commons-logging.jar=`java-config --classpath=commons-logging`" | sed s/.*:// >> build.properties echo "commons-beanutils.jar=`java-config --classpath=commons-beanutils`" >> build.properties echo "xerces.jar=`java-config --classpath=xerces`" >> build.properties [usual make statements removed]. First, I think the above section should be part of src_unpack rather than compile. That's how most other packages handles things, and the above lines would make build.properties duplicate it self for each invocation of ebuild commons-validator compile. More seriously though, the commons-logging line above is wrong, the sed will remove more than it should, causing commons-logging to not be found. Suggested replacement: echo "commons-logging.jar=`java-config --classpath=commons-logging`" | sed 's/\(.*=\).*:/\1/' >> build.properties Eivind
Fixed in portage now. I moved stuff to src_unpack and slightly modified the echo. Works fine.