From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1J8DRM-0002tQ-0J for garchives@archives.gentoo.org; Fri, 28 Dec 2007 11:31:48 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.2/8.14.0) with SMTP id lBSBV0Ph004352; Fri, 28 Dec 2007 11:31:00 GMT Received: from smtp7.ihug.co.nz ([203.109.136.107]) by robin.gentoo.org (8.14.2/8.14.0) with ESMTP id lBSBUwIQ004346 for ; Fri, 28 Dec 2007 11:30:59 GMT Received: from cust.filter1.content.ihug.net.nz (smtp.mailfilter1.ihug.co.nz) [10.80.50.1] by smtp7.ihug.co.nz with esmtp (Exim 4.60 #1 (Debian); Ihug conf #192) id 1J8DQT-0007nW-VJ; Sat, 29 Dec 2007 00:30:53 +1300 Ironport-Content-Filter: send-to-smtp Received: from 203-173-169-221.dsl.dyn.ihug.co.nz (HELO [10.1.1.3]) ([203.173.169.221]) by smtp.mailfilter1.ihug.co.nz with ESMTP; 29 Dec 2007 00:30:53 +1300 Message-ID: <4774DE5F.5030907@gmail.com> Date: Sat, 29 Dec 2007 00:30:39 +1300 From: Alistair Bush User-Agent: Thunderbird 2.0.0.9 (X11/20071118) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-java@gentoo.org MIME-Version: 1.0 To: gentoo-java@lists.gentoo.org Subject: [gentoo-java] eclipse-sdk jar files Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: b830fbfe-a4d6-4980-a0ac-85caa74ae222 X-Archives-Hash: 5caea5f5e7c0919822543d66d0e8c35d As I know of at least one package that has a dependency on eclipse-sdk I am about to commit a new revision of the eclipse-sdk ebuild (in java-exp) that records the eclipse jar's within its package.env file. Now the main problem is that the eclipse jar files are versioned (eg org.eclipse.compare_3.3.1.r33x_20070906.jar ) so just calling regjar is pointless. I also attempted to install the jar files to /usr/share/eclipse-sdk-3.3/lib and link them to /usr/lib/eclipse-3.3/plugins/ but eclipse did not run (and seemed to then view it's home dir as /usr/share/eclipse-sdk-3.3/lib). So my solution is to create links in /usr/share/eclipse-sdk-3.3/lib with non-versioned jars and regjar those. This is the function to do this... register_eclipse_jars() { pushd "${D}" > /dev/null dodir "/usr/share/${PN}-${SLOT}/lib" while read line; do local newfile="$(basename "$line")" local file="/usr/share/${PN}-${SLOT}/lib/${newfile/_*/.jar}" dosym "${line/./}" "${file}" java-pkg_regjar "${file}" done < <(find . -type f -name '*.jar') popd > /dev/null } Currently this solution has some issues mainly being around the way names are formed ( e.g. universal.jar -> /usr/lib/eclipse-3.3/plugins/org.eclipse.ui.intro.universal_3.2.100.v20070530A/universal.jar ) this issue only applies to jars within a subdirectory of the eclipse plugins directory and it will be fixed with time. Basically I'm after feedback on this. Does anyone have any better ideas? -- gentoo-java@gentoo.org mailing list