Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 92826 Details for
Bug 138619
sci-chemistry/jmol - new ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
jmol-10.2.0.ebuild
jmol-10.2.0.ebuild (text/plain), 3.39 KB, created by
Jeffrey Gardner (RETIRED)
on 2006-07-26 23:27:00 UTC
(
hide
)
Description:
jmol-10.2.0.ebuild
Filename:
MIME Type:
Creator:
Jeffrey Gardner (RETIRED)
Created:
2006-07-26 23:27:00 UTC
Size:
3.39 KB
patch
obsolete
># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils java-ant-2 > >DESCRIPTION="Jmol a java molecular viever for three-dimensional chemical structures" >SRC_URI="http://download.sourceforge.net/${PN}/${P}-full.tar.gz" >HOMEPAGE="http://jmol.sourceforge.net/" >KEYWORDS="~amd64" >SLOT="${PVR}" >LICENSE="LLGPL" > >IUSE="doc vhosts" > >RDEPEND=">=virtual/jre-1.4" >DEPEND=">=virtual/jre-1.4 > dev-java/ant-core > vhosts? app-admin/webapp-config" > > >#INSTALL_DIR="/${PN}" >#IS_UPGRADE=0 >#IS_REPLACE=0 >INSTALL_CHECK_FILE="installed_by_webapp_eclass" >ETC_CONFIG="${ROOT}/etc/vhosts/webapp-config" >WEBAPP_CONFIG="${ROOT}/usr/sbin/webapp-config" > >JAVA_PKG_BSFIX="off" > > >function webapp_pkg_setup () { > G_HOSTNAME="localhost" > webapp_read_config >} > >function webapp_read_config () { > > if has_version '>=app-admin/webapp-config-1.50'; then > ENVVAR=$(${WEBAPP_CONFIG} --query ${PN} ${PVR}) || die "Could not read settings from webapp-config!" > eval ${ENVVAR} > else > . ${ETC_CONFIG} || die "Unable to read ${ETC_CONFIG}" > fi > >} > >function webapp_src_preinst () { > > dodir "${MY_HTDOCSDIR}" > dodir "${MY_HOSTROOTDIR}" > dodir "${MY_CGIBINDIR}" > dodir "${MY_ICONSDIR}" > dodir "${MY_ERRORSDIR}" > dodir "${MY_SQLSCRIPTSDIR}" > dodir "${MY_HOOKSCRIPTSDIR}" > dodir "${MY_SERVERCONFIGDIR}" > >} > > >function webapp_src_install () { > > chown -R "${VHOST_DEFAULT_UID}:${VHOST_DEFAULT_GID}" "${D}/" > chmod -R u-s "${D}/" > chmod -R g-s "${D}/" > > keepdir "${MY_PERSISTDIR}" > fowners "root:0" "${MY_PERSISTDIR}" > fperms 755 "${MY_PERSISTDIR}" > > touch "${D}/${MY_APPDIR}/${INSTALL_CHECK_FILE}" > >} > >function webapp_pkg_postinst () { > > elog > elog "The 'vhosts' USE flag is switched ON" > elog "This means that Portage will not automatically run webapp-config to" > elog "complete the installation." > elog > elog "To install ${PN}-${PVR} into a virtual host, run the following command:" > elog > elog " webapp-config -I -h <host> -d ${PN} ${PN} ${PVR}" > elog > elog "For more details, see the webapp-config(8) man page" > elog > elog "Once you have run webapp-config there should be a jmol test page in http://<host>/jmol/" > elog > elog > >} > > > >pkg_setup() { > if use vhosts ; then > webapp_pkg_setup > fi >} > >src_unpack() { > unpack ${A} > cd ${S} > epatch ${FILESDIR}/${P}-gentoo-libpath.patch > epatch ${FILESDIR}/${P}-application.patch > if ! use doc ; then > epatch ${FILESDIR}/${P}-nodoc-no-i18n.patch > else epatch ${FILESDIR}/${P}-no-i18n.patch > > fi > > >} > >src_compile() { > eant >} > > >src_install() { > > java-pkg_jarinto /usr/share/${MY_PN} > dojar Jmol.jar JmolApplet.* > dohtml -r build/doc/* > dodoc *.txt doc/*license* > dobin jmol > > if use vhosts ; then > webapp_src_preinst > cp Jmol.* ${D}${MY_HTDOCSDIR} > cp jmol ${D}${MY_HTDOCSDIR} > cp JmolApplet.* ${D}${MY_HTDOCSDIR} > cp applet.classes ${D}${MY_HTDOCSDIR} > cp -r build/classes/* ${D}${MY_HTDOCSDIR} > cp -r build/appjars/* ${D}${MY_HTDOCSDIR} > cp ${FILESDIR}/caffeine.xyz ${D}${MY_HTDOCSDIR} > >cat >> ${D}${MY_HTDOCSDIR}/index.html << EOF ><html> > <head> > <title>Jmol Test Page</title> ><div align="center"> <b>All the Sugar and Twice the Caffeine.</b> <br><br> > <script src="./Jmol.js"></script> > </head> > <body> > <script> > jmolInitialize("./"); // REQUIRED > jmolApplet(400, "load ./caffeine.xyz"); > </script></div> > </body> ></html> >EOF > > > webapp_src_install > fi > >} >pkg_postinst() { > if use vhosts ; then > webapp_pkg_postinst > fi >} >
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 138619
:
90549
|
92662
|
92663
|
92683
|
92684
|
92826
|
92827
|
92828
|
92829
|
92830
|
98122
|
100002
|
100003
|
100004
|
100006
|
100011
|
100012
|
100078
|
100079
|
100877
|
100981