Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 618832

Summary: Add app-eselect/eselect-gradle to the tree (already in java overlay)
Product: Gentoo Linux Reporter: Florian Schmaus <flow>
Component: New packagesAssignee: Florian Schmaus <flow>
Status: RESOLVED FIXED    
Severity: normal CC: flow, java, jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618806    

Description Florian Schmaus gentoo-dev 2017-05-18 13:31:36 UTC
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
Comment 1 Rage <oxr463> 2020-06-23 13:14:57 UTC
I would like to see this happen too. What needs to be done in order for this to be merged?
Comment 2 Larry the Git Cow gentoo-dev 2021-06-25 10:40:58 UTC
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(+)