Currently the ebuild for dev-java/antlr-2.7.1 does not install a "package.env" file, which is required for java-config to recognize the package. The attached patch to the ebuild fixes this, so that a "package.env" file is installed in the /usr/share/antlr directory. The "package.env" file (which should be copied into the ${FILESDIR} of the ebuild) is also attached.
Created attachment 916 [details, diff] patch to enable installation of "package.env"
Created attachment 917 [details] package.env file which should be used for antlr
Wrong solution. Use dojar instead of hardcoding the package.env. dojar-solution added to dev-java/antlr-2.7.1-r3.