This is an ebuild for Intellij IDEA 4.5.4 I wrote. It seems to work fine and also creates a .desktop entry with associated icon for the freedesktop menu system. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 54927 [details] Idea 4.5.4 ebuild
Mirko: There are functions in portage to create desktop entrys (just gave the ebuild a very fast overlook)
Yeah, I know there are functions in portage to create desktop entries. The point is, at the time I was writing this ebuild, I tried them and they didn't seem to work too well, so I resorted to a quick hack. I'll look into the portage .desktop functions and post an updated ebuild if the functions work as expected. Thanks.
Created attachment 58031 [details] fixed to make use of make_desktop_entry instead of ugly hack
I've written another ebuild which conforms a bit more to the policies. I've backchecked with JetBrains and they're cool about us patching the shell-scripts in order not to duplicate a whole JRE. Unfortunately it's near to impossible to avoid shipping the supplied packages like JUnit again as IDEA seems to depend deeply on certain versions and even those which work today may be screwed up by a single update. :( Two shellscripts from bin won't be installed: inspect_diff.sh and degenerate.sh. Both are unsupported, undocumented and subject to get dropped (in fact, the former already misses in the Linux-build) in the next release. I have these information from JetBrains. Anyway, feedback is welcome .
Created attachment 61789 [details] ebuild for IDEA 4.5.4 There have to be also added some licenses to /usr/portage/licenses.
Created attachment 61795 [details] ebuild for IDEA 4.5.4 with "|| die"s removed. "|| die" behind doins seems to be dispensable so I removed them as portage says hynek@squirrel /usr/portage $ grep -r doins *|grep die|wc -l 761 hynek@squirrel /usr/portage $ grep -r doins *|grep -v die|wc -l 6493 :)
Hi Mirko, Where do I find the idea-jre-patch.diff file ? Thanks
Created attachment 65649 [details] Patch used by the ebuild. Needed patch. Sorry.
Works great ! *** Before *** joel@vaio-z1 /opt $ du -hs IntelliJ-IDEA/ 101M IntelliJ-IDEA/ *** After *** joel@vaio-z1 /opt $ du -hs idea-4.5.4/ 37M idea-4.5.4/ No additional JRE.. what a size optimization as well :-) PS: Does someone have/use IDEA 5.0 ? Would it require many changes in the ebuild ?
Created attachment 65661 [details] svn4idea 0.9.1 (subversion plugin for IDEA) Here's an ebuild I made several months ago, for svn plugin support in IDEA. Now, I modified it to depend on yours. Please test... PS: I hope I'm not highjacking your bug :-)
I'm using IDEA 5.0 on Mac OS X. Have not tested it on Gentoo yet. Word on the street is it works great unless you let it import your previous 4.5 settings, in which case it may even crash miserably at start up. My impression is a 5.0 ebuild should be easy to implement with a portage-installed JRE, even a sun-jdk-1.5.0 one.
I believe that it would be pretty easy as they don't ship a JRE anymore. However there seems not to be much interest in IDEA-ebuilds. The current install-procedure is cp -a though. ;)
Created attachment 65695 [details] ebuild for IntelliJ IDEA 5.0 Note: already contains svn4idea as a shipped plugin :-)
Created attachment 69743 [details] ebuild for IntelliJ 5.0.1 Haven't tried it though, but i think there's a bug in the 5.0 build script (at least I had to change this for the 5.0.1 ebuild): line 10 was: S="${WORKDIR}/idea-${PV} but it should be: S="${WORKDIR}/idea-${BUILD}
Created attachment 80126 [details] dev-java/idea-5.0.2.ebuild
Created attachment 80127 [details] dev-java/idea-5.1.ebuild
Created attachment 92859 [details] dev-java/idea-5.1.2.ebuild Ebuild for newest version if IntelliJ v5.1.2.
Created attachment 93614 [details] dev-java/idea/idea-6.0_beta.ebuild Ebuild for IDEA IntelliJ 6 beta.
Created attachment 102464 [details] dev-java/idea/idea-6.0.2.ebuild Ebuild for newest version of InteliJ IDEA 6.0.2 - build 6107.
After some small tweaks, added to our Java overlay: https://overlays.gentoo.org/svn/proj/java/migrated-java-experimental-overlay/dev-util/idea
Created attachment 107911 [details] idea-6.0.4.ebuild Ebuild for new Idea 6.0.4.
*** Bug 170928 has been marked as a duplicate of this bug. ***
*** Bug 171017 has been marked as a duplicate of this bug. ***
Created attachment 114919 [details] idea-6.0.5.ebuild update to 6.0.5 supports slotting
please change version in summary, i don't have enough permissions
Maybe this should be available in the portage now. Since version 5.x nobody has reported any problems.
added 6.0.5 to java-experimental
For the execution rights to be applied to *.sh I had to replace: fperms 755 ${dir}/bin/*.sh with: chmod 755 ${D}/${dir}/bin/*.sh I really don't know why, but fperms doesn't work reliably for me. This is with portage 2.1.2.2.
Added idea-7.0.M1 (new slot) to java-experimental
Updated to 7.0 M1a. In java-experimental.
Updated to 7.0 M1b. In java-experimental.
Created attachment 146562 [details] idea-7.0.3.ebuild Ebuild for idea-7.0.3.
Updated to 7.0.3. In java-experimental.
Today, in thish overlay is IDEA 7 available ? - I can't find java-experimental in layman - java-overlay only includes IDEA 6.0.4: why is that ?? Thanks
java-experimental is available at http://overlays.gentoo.org/svn/proj/java/java-experimental/
Created attachment 162753 [details] idea-7.0.4.ebuild Ebuild for idea-7.0.4.
7.0.4 in java-experimental
Hi! Would it be possible to create ebuild for new 8.0 version of IDEA?
Created attachment 182677 [details] idea-8.1.ebuild Ebuild for IDEA 8.1. Created using idea-7.0.4.ebuild. Works for me.
8.1 in java-experimental
7.0.5 in java-experimental. removed 7.0.4, 8.0 and 8.0_pre1.
9.0_beta in java-experimental
Sorry, but where can I find that idea-9.0 ebuild please ? layman -a java-overlay find /usr/local/portage/layman/java-overlay | grep idea => I see only idea 6.0.2 and 6.0.4 ? Thanks in advance !
(In reply to comment #44) > Sorry, but where can I find that idea-9.0 ebuild please ? > > layman -a java-overlay > find /usr/local/portage/layman/java-overlay | grep idea > => I see only idea 6.0.2 and 6.0.4 ? > > Thanks in advance ! > 1. Those are outdated and should be removed. 2. You're looking at java-overlay, but idea is in java-experimental. See [1] 3. idea-9.0 isn't added yet [1] http://overlays.gentoo.org/svn/proj/java/java-experimental/
Correction to my last comment: Actually, idea-9 is in java-experimental too: http://overlays.gentoo.org/svn/proj/java/java-experimental/dev-util/idea/idea-9.0_beta.ebuild
Thank you Marat :-) The only guide I found was this: http://www.gentoo.ro/proj/en/java/experimental.xml But the problem was their SVN url which was outdated. It worked after I replaced it with yours: https://overlays.gentoo.org/svn/proj/java/java-experimental/ Works fine now !
Bumped to 9.0 release (Ultimate Edition)
Created attachment 240147 [details] idea-9.0.3.ebuild
Hi, friendly hint for all interested: bug #320287 is about the community edition of intellij idea. maybe someone wants to take a look at the ebuild there?
Created attachment 254073 [details] new 9.0.4 version
Did someone patch this e-build for IDEA 10 support already ?
bumped to 9.0.4 and 10, in java-experimental overlay
bumped to 10.0.2 some time ago, in java-experimental overlay
bumped to 10.0.3, in java-experimental overlay
bumped to 10.5, in java-experimental overlay
Hey guys, I found idea-11.0.0.111.69 in java-experimental (thanks!) but I noticed one minor issue. In src_install() one should add: fperms 755 "${dir}/bin/fsnotifier" "${dir}/bin/fsnotifier64" I tested this modification with success. Would it be possible to add this, please?
(In reply to comment #57) > Hey guys, > > I found idea-11.0.0.111.69 in java-experimental (thanks!) but I noticed one > minor issue. In src_install() one should add: > > fperms 755 "${dir}/bin/fsnotifier" "${dir}/bin/fsnotifier64" > > I tested this modification with success. Would it be possible to add this, > please? Fixed in -r1 of both dev-util/idea{,-community}.
Forgot to say, we now have ebuilds for 10.5.4 and 11.0. Still, in java-experimental.
Hummm why isn't this on (layman's) java-overlay? And why isn't it in portage for that matter? ;) Don't take me wrong, I'm just asking.
It isn't in java-overlay because i'm not a dev and don't have commit access to it, and none of devs seems to bother to add ebuilds there. It isn't in main tree for same reason as above plus (as was discussed several years ago) in current state package doesn't comply with gentoo packaging rules because it bundles a lot of third-party libs. However, properly replacing them with in-tree versions is tricky because some are patched and some are required to be of exactly same versions as bundled ones, otherwise causing breakage at runtime.
Created attachment 333238 [details] idea-12.0.1.123.94.ebuild Hi, I just wanted to post a newer ebuild for 12.0.1. There is not much change to the existing ebuild other than a bump in version. Hopefully, it saves some time.
*** Bug 320287 has been marked as a duplicate of this bug. ***
The ancient v6 ebuild has been removed from java-overlay as it's no use to anyone. I'm sorry that there's been no action from the Java team on this but it's very far down the list of priorities at a time when there are basically only 2 active devs. Ideally, we would like to see it built from source, or at least stripping out some of the bundled stuff. I suspect it uses fewer patched libraries as it used to as Maven has discouraged this practise in recent times. It is still Ant-based though, which we currently support better than Maven, but some plugins use Groovy, and that would be a problem.
*** Bug 557924 has been marked as a duplicate of this bug. ***
Created attachment 409248 [details] ebuild intellij idea 14.1.4 new ebuild, should also be moved to dev-util/idea becous it is an ide for java, python, html, php, js, ... and not for only java.
Created attachment 409250 [details] ebuild IntelliJ idea 15.0 pre release new ebuild for testing version, should be masked, should also be moved to dev-util/idea becous it is an ide for java, python, html, php, js, ... and not for only java.
Created attachment 409252 [details] license file
Created attachment 409256 [details] license file
Created attachment 409258 [details] license file
Created attachment 409260 [details] license file
Created attachment 409262 [details] license file
Comment on attachment 409250 [details] ebuild IntelliJ idea 15.0 pre release # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 DESCRIPTION="IntelliJ IDEA: A complete toolset for web, mobile and enterprise development." HOMEPAGE="http://www.jetbrains.com/idea" SRC_URI="https://download.jetbrains.com/idea/ideaIU-${PV%_pre}.tar.gz" MY_PV="142.3926.4" MY_PN="${PN}-IU" LICENSE="IDEA IDEA_Academic IDEA_Classroom IDEA_OpenSource IDEA_Personal" SLOT="0" IUSE="selinux" KEYWORDS="~amd64 ~x86" DEPEND="app-arch/zip" RDEPEND=">=virtual/jdk-1.7" S=${WORKDIR}/${MY_PN}-${MY_PV} src_install() { local dir="/opt/${PN}" insinto "${dir}" doins -r * fperms 755 "${dir}/bin/idea.sh" "${dir}/bin/fsnotifier" "${dir}/bin/fsnotifier64" # Create /usr/bin/intelliJ dodir /usr/bin/ cat <<-EOF >"${ED}"usr/bin/${PN} #!/bin/sh exec /opt/intelliJ/bin/idea.sh EOF fperms 0755 /usr/bin/${PN} }
Thanks Gert for posting your ebuilds. (In reply to James Le Cuirot from comment #64) > Ideally, we would like to see it built from source, or at least stripping > out some of the bundled stuff. I suspect it uses fewer patched libraries as > it used to as Maven has discouraged this practise in recent times. It is > still Ant-based though, which we currently support better than Maven, but > some plugins use Groovy, and that would be a problem. Whilst I too would like to get as many software as possible built from source, it won't happen here I'm afraid. https://github.com/JetBrains/intellij-community The recipe for building IDEA seems a bit demanding: - Groovy - Java 6 (why?) - UI Designer (what is that?) - Kotlin - I'm sure a WAD of dependencies. The build process is far too complicated for the benefits it yields. @James: let's add a -bin version and call it a day.
I did a pull request on git-hub with some changes recommended by the community, the files I uploaded here may be ignored. pull request: https://github.com/gentoo/gentoo/pull/20
(In reply to Patrice Clement from comment #74) > @James: let's add a -bin version and call it a day. monsieurp already knows that I never let him get his way so I downloaded a master tarball from GitHub and built IDEA from source with just a mere invocation of ant. I only tried it briefly but the result appeared to work just fine. The only thing it downloaded during the build was the Kotlin plugin and that could easily be fixed. There are tons of bundled jars in lib but even building from source without unbundling would be a good start. Having said that, a lot of these are things we already have packaged. It doesn't look like our usual build.xml rewriting trick would work as it seems to source these jars using a collection of strange XML files under .idea/libraries. java-pkg_jar-from would probably be best here. It's not clear how the libraries get sourced at runtime. It doesn't add the whole of lib to the classpath in the launcher script. Perhaps IDEA to hardcoded to look there. Would adding the unbundled jars to the initial classpath work or would it create problems like we've seen with Tomcat? Don't know. This might need some experimentation.
in the meantime, idea-ultimate is in the tree. which i find slightly embarassing.
Just to let you know, I'm working on a compilable solution. https://github.com/tomboy-64/tbc/blob/master/dev-util/idea/idea-141.ebuild This file (compile/install/run) is working for now; name as well as dependencies are subject to change. This is WIP.
Since idea-ultimate is already in the tree, I'll retitle this bug.
*** Bug 564772 has been marked as a duplicate of this bug. ***
(In reply to James Le Cuirot from comment #6 from bug #564772) > Might as well move this discussion to the older bug report. continue discussion from Bug 564772 - dev-util/idea-community: Java IDE (Bugzilla may not resolve some comment IDs correctly.) (In reply to James Le Cuirot from comment #5) > I am the one who was against it. It should always be your first attempt to have source ebuilds in portage, that is also my personal preference, so I understand your point. But as we can see here, the source ebuild doesn't made it into portage for more than _eleven_ years. (In reply to James Le Cuirot from comment #5) > (In reply to M. B. from comment #4) > > Hence, however ugly it may sound, I'm for an idea-community binary ebuild. So I'm also for a binary ebuild in this case. Otherwise, we will continue to have no ebuild for idea-community at all. @James Le Cuirot I would be glad if you would agree to the proposal from Mike Nerone, M.B. and me from #564772.
IntelliJ IDEA Community 2016.3.1 was released on December 13, 2016
Both idea-ultimate and idea-community are now in tree: https://packages.gentoo.org/packages/dev-util/idea-ultimate https://packages.gentoo.org/packages/dev-util/idea-community Closing as fixed. Thanks everyone.