ANTLR is a parser generator that targets many languages. Some languages, like C++, require a shared or static library to be present when linking the application using the generated files. If possible it seems these should be installed when dev-java/antlr is installed, potentially controlled by USE flags. Use of ANTLR regardless of target language requires Java and dev-java/antlr, at the very least to process the grammar. If they are installed, I was not able to find them. There exist dev-libs/antlr-c and dev-cpp/antlr-cpp - should this bug be a packaging or version update request instead?
Please be clearer. Have you actually tried antlr-c or antlr-cpp? The former certainly does install a shared library. The latter does but only for v2. With v3, there is no library. What version are you interested in? Old dev-java/antlr ebuilds for 2.7.7 used to deal with all the languages in a single ebuild. This made the ebuild hard to use and the code was a mess. I therefore split it up.
(In reply to James Le Cuirot from comment #1) > Please be clearer. Have you actually tried antlr-c or antlr-cpp? The former > certainly does install a shared library. The latter does but only for v2. > With v3, there is no library. What version are you interested in? > At least 4.x, the latest being 4.7. The extant packages have not been installed because they are versions I am not interested in. They are quite old. > Old dev-java/antlr ebuilds for 2.7.7 used to deal with all the languages in > a single ebuild. This made the ebuild hard to use and the code was a mess. I > therefore split it up. > My apologies, per the other bug you commented on I am still figuring out how Gentoo packages Java.
(In reply to R030t1 from comment #2) > At least 4.x, the latest being 4.7. The extant packages have not been > installed because they are versions I am not interested in. They are quite > old. As far as I can see, there are no C bindings for ANTLR 4. C++ bindings were introduced in 4.6. We currently only have 4.5.3 in the tree. Bug #605036 has been filed to get it bumped. dev-java/antlr is a particularly thorny package so I haven't rushed to bump this, especially as nothing in the tree currently requires the latest version. Java packaging in general has largely stalled. A pull request would be welcome.
Created attachment 541484 [details] antlr-cpp-4.7.1.ebuild This ebuild seems to work fine for me. This is going to be a dependency for mysql-workbench 8.x
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=076b3f4c1db890d99978d32077241fbb076ce738 commit 076b3f4c1db890d99978d32077241fbb076ce738 Author: Patrice Clement <monsieurp@gentoo.org> AuthorDate: 2018-08-06 19:12:02 +0000 Commit: Patrice Clement <monsieurp@gentoo.org> CommitDate: 2018-08-07 12:21:51 +0000 dev-cpp/antlr-cpp: version bump. Courtesy of Hans de Graff <graff@gentoo.org>. Closes: https://bugs.gentoo.org/635644 Package-Manager: Portage-2.3.40, Repoman-2.3.9 dev-cpp/antlr-cpp/Manifest | 1 + dev-cpp/antlr-cpp/antlr-cpp-4.7.1.ebuild | 17 +++++++++++++++++ 2 files changed, 18 insertions(+)