Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 125662 Details for
Bug 112275
Include imagej ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
imagej-1.39a.ebuild
imagej-1.39a.ebuild (text/plain), 2.64 KB, created by
aisomur
on 2007-07-22 16:51:06 UTC
(
hide
)
Description:
imagej-1.39a.ebuild
Filename:
MIME Type:
Creator:
aisomur
Created:
2007-07-22 16:51:06 UTC
Size:
2.64 KB
patch
obsolete
># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: > >inherit java-pkg-2 java-ant-2 eutils > >MY_PV=${PV/./} >MY_PN="ij" >IJ_PV=`expr ${MY_PV::3} - 1` > >DESCRIPTION="Image Processing and Analysis in Java" >HOMEPAGE="http://rsb.info.nih.gov/ij/" >SRC_URI="http://rsb.info.nih.gov/ij/download/src/${MY_PN}${MY_PV}-src.zip > http://rsb.info.nih.gov/ij/images/ImageJ.png > plugin? ( http://rsb.info.nih.gov/ij/download/zips/${MY_PN}${IJ_PV}.zip )" >RESTRICT="nomirror" >LICENSE="public-domain" >SLOT="0" >KEYWORDS="~x86 ~ppc" >IUSE="doc plugin debug" > >RDEPEND=">=virtual/jre-1.4 > dev-java/java-config" >DEPEND=">=virtual/jdk-1.4 > dev-java/ant-core > ${RDEPEND}" > >S=${WORKDIR}/source >IJ_S=${WORKDIR}/ImageJ > >src_unpack() { > cp ${DISTDIR}/ImageJ.png ${WORKDIR}/${PN}.png > unpack ${A} || die "unpack failed" > > if ! use debug ; then > sed -i 's: debug="on">: debug="off">:' ${S}/build.xml > fi >} > >src_compile() { > cd ${S} > local antflags="build" > use doc && antflags="${antflags} javadocs" > ant ${antflags} || die "ant build failed" > cat <<EOF > ${T}/${PN} >#!/bin/bash >IJ_LIB=/usr/share/${PN}/lib >if !([ "\${IJ_HOME}" ]) ; then > IJ_HOME=\${HOME} >fi >if [ -d \${IJ_HOME}/plugins ] ; then > IJ_PLG=\${IJ_HOME} >else > IJ_PLG=/usr/share/${PN}/lib >fi >if !([ "\$IJ_MEM" ]) ; then > IJ_MEM=128 >fi >if !([ "\$IJ_CP" ]) ; then > IJ_CP=\$(java-config -p imagej):\$(java-config -O)/lib/tools.jar >else > IJ_CP=\$(java-config -p imagej):\$(java-config -O)/lib/tools.jar:\${IJ_CP} >fi >\$(java-config --java) \\ > -Xmx\${IJ_MEM}m -Dswing.aatext=true \\ > -Dawt.useSystemAAFontSettings=on\\ > -cp \${IJ_CP} \\ > -Duser.home=\${IJ_HOME} \\ > -Dplugins.dir=\${IJ_PLG} \\ > ij.ImageJ "\$@" >EOF >} > >src_install() { > java-pkg_dojar *.jar > dobin ${T}/${PN} > if use plugin ; then > cp -R ${IJ_S}/plugins ${D}/usr/share/${PN}/lib/ > cp -R ${IJ_S}/macros ${D}/usr/share/${PN}/lib/ > fi > use doc && java-pkg_dohtml -r ${WORKDIR}/api > insinto /usr/share/pixmaps > doins ${WORKDIR}/${PN}.png > make_desktop_entry "imagej %F" "ImageJ" ${PN}.png Graphics >} > >pkg_postinst() { > einfo "" > einfo "You can configure the path of a folder, which contains \"plugins\" directory and IJ_Prefs.txt," > einfo "by setting the environmental variable, \$IJ_HOME." > einfo "Default setting is \$IJ_HOME=\${HOME}, i.e. \${HOME}/plugins and \${HOME}/IJ_Prefs.txt." > einfo "" > einfo "You can also configure the memory size by setting the environmental variable, \$IJ_MEM," > einfo "and the class path by setting the environmental variable, \$IJ_CP." > einfo "" > einfo "If you want to use much more plugins, please see http://rsb.info.nih.gov/ij/plugins/index.html" > einfo "and add *.class files to \$IJ_HOME/plugins folder" > einfo "" >}
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 112275
:
72746
|
72795
|
72971
|
73417
|
74663
|
75999
|
100792
|
125662
|
185091
|
185092
|
210030
|
298371