Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 52190 Details for
Bug 83386
New ebuild - eclipse-sablecc
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
eclipse-sablecc-2.2.0.ebuild
eclipse-sablecc-2.2.0.ebuild (text/plain), 2.00 KB, created by
James Le Cuirot
on 2005-02-26 09:37:08 UTC
(
hide
)
Description:
eclipse-sablecc-2.2.0.ebuild
Filename:
MIME Type:
Creator:
James Le Cuirot
Created:
2005-02-26 09:37:08 UTC
Size:
2.00 KB
patch
obsolete
># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eclipse-ext > >ECLIPSE_SLOT=3 > >DESCRIPTION="SableCC plugin for Eclipse" >HOMEPAGE="http://sablecc.org/downloads.html" >SRC_URI="http://sablecc.org/downloads/eclipseplugin3.zip" >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~x86" >IUSE="" > >DEPEND=">=virtual/jdk-1.4 > =dev-util/eclipse-sdk-3.0* > app-arch/unzip" > >RDEPEND=">=virtual/jre-1.4 > =dev-util/eclipse-sdk-3.0*" > >src_unpack() { > mkdir ${S} > cd ${S} > unpack ${A} > > FOLDERS="plugins/dk.eclipse.sablecceditor_${PV}" > > for X in ${FOLDERS}; do > cd ${X} || die "Unpacked file bad!" > ls -1 *src.zip | xargs -l unzip -qo > mkdir classes > cd ${S} > done >} > >src_compile() { > for X in ${FOLDERS}; do > cd ${X} > > # Make a list of all the source files. > find . -name "*.java" > srcfiles.txt > > # Delete the existing archives except sablecc.jar, which we need. > find . -name "*.jar" ! -name "sablecc.jar" -exec rm {} \; > > # Not a great way of finding the classpath but does anyone know a better way? > CP=$(find /usr/$(get_libdir)/eclipse-${ECLIPSE_SLOT} /opt/eclipse-extensions-${ECLIPSE_SLOT}/eclipse ${S} -name "*.jar" | xargs -i echo -n ":{}") > > # Compile everything! > $(java-config -c) -classpath .:sablecc.jar$CP -d classes @srcfiles.txt || die "Build failed!" > > # Find the name of the archive according to the source archive. > JAR=$(ls -1 *src.zip | head -n1 | sed -r "s/src\.zip$/.jar/") > > # Create the archive. > $(java-config -j) cvf $JAR -C classes . > > cd ${S} > done >} > >src_install() { > eclipse-ext_require-slot ${ECLIPSE_SLOT} || die "No suitable Eclipse found!" > eclipse-ext_create-ext-layout source > > for X in ${FOLDERS}; do > cd ${X} > > dodir ${eclipse_ext_basedir}/${X} > insinto ${eclipse_ext_basedir}/${X} > doins *.jar plugin.xml plugin.properties > > cd ${S} > done > > for X in plugins/dk.eclipse.sablecceditor_${PV}/icons/obj16; do > cd ${X} > > dodir ${eclipse_ext_basedir}/${X} > insinto ${eclipse_ext_basedir}/${X} > doins * > > cd ${S} > done >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 83386
: 52190