Have you considered replacing the Makefile with a pure build.xml replacement? As the gentoo ebuild was not as readable as the gentoo devs would have liked, they had me write it so that I could use pyAntTasks ( http://www.rpstechnologies.net/PyAntTasks.html http://code.google.com/p/pyanttasks/ ) to take care of running the python script. If you'd like I can send a copy to the list, or check out the build.xml here (for 30 days of course): http://dpaste.com/121964/ The only things I didn't include were the test, distrib, and this doesn't download or compile lucene. It assumes that the lucene jars are in the same directory as build.xml (which is done from the ebuild). I use the following options on the commandline when running ant to use this which sets several variables to gentoo specific variables.
ant install (or build) -f "build.xml" \ -Dpython=${python} -Dversion=${MY_PV} -Dlucene.pv=${LUCENE_PV} \ -Dpython.modname=${PYTHON_MODNAME} -Dpython.sitedir=$(python_get_sitedir) \ -Dgentoo.numfiles=2 -Dgentoo.debug=${DEBUG_OPT} -Dgentoo.root=${D} \ -Dgentoo.work=${S} Perhaps this can be reused. I hope so. What do you all think of replacing the Makefile like this using ant? -Jacob Floyd