The java overlay has app-eselect/eselect-gradle since the very start. I think it makes much sense to have gradle eselectable. It's been a live safer many times in the past years. Well, that's why I wrote eselect-gradle together with the first gradle ebuilds. :) I'd hereby ask to move app-eselect/eselect-gradle from the java overlay to the tree, and to add support for eselect-gradle to in tree gradle ebuilds (dev-java/gradle-bin). The in-tree gradle builds can be enhanced by eselect-gradle support with minimal modifications: -DEPEND="app-arch/zip" +DEPEND="app-arch/zip + app-eselect/eselect-gradle" - dosym "${gradle_dir}/bin/gradle" "/usr/bin/${MY_PN}-${SLOT}" + dosym "${gradle_dir}/bin/gradle" "/usr/bin/${P}" +pkg_postinst() { + eselect gradle update ifunset +} + +pkg_postrm() { + eselect gradle update ifunset +} See also https://bugs.gentoo.org/show_bug.cgi?id=612176#c2
I would like to see this happen too. What needs to be done in order for this to be merged?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7508d3a927907d50cc9f4b4a3d187c8e0884eb6 commit e7508d3a927907d50cc9f4b4a3d187c8e0884eb6 Author: Florian Schmaus <flow@gentoo.org> AuthorDate: 2021-06-25 10:11:40 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2021-06-25 10:40:19 +0000 app-eselect/eselect-gradle: initial import from ::java Closes: https://bugs.gentoo.org/618832 Signed-off-by: Florian Schmaus <flow@gentoo.org> app-eselect/eselect-gradle/Manifest | 1 + .../eselect-gradle/eselect-gradle-0.2.ebuild | 29 ++++++++++++++++++++++ .../eselect-gradle/eselect-gradle-9999.ebuild | 29 ++++++++++++++++++++++ app-eselect/eselect-gradle/metadata.xml | 8 ++++++ 4 files changed, 67 insertions(+)