diff options
author | Donnie Berkholz <dberkholz@gentoo.org> | 2008-02-15 08:53:27 +0000 |
---|---|---|
committer | Donnie Berkholz <dberkholz@gentoo.org> | 2008-02-15 08:53:27 +0000 |
commit | d9aeefdfa9df786675bc04c05e234b20249e3f84 (patch) | |
tree | eb8e32939136427c01b7bbc3cccc17f835fbc79d /sci-chemistry/webmo | |
parent | Add X USE flag, based on http://home.att.net/~Tom.Horsley/tah-tc-5.0.tar.gz, ... (diff) | |
download | gentoo-2-d9aeefdfa9df786675bc04c05e234b20249e3f84.tar.gz gentoo-2-d9aeefdfa9df786675bc04c05e234b20249e3f84.tar.bz2 gentoo-2-d9aeefdfa9df786675bc04c05e234b20249e3f84.zip |
Bump.
(Portage version: 2.1.4)
Diffstat (limited to 'sci-chemistry/webmo')
-rw-r--r-- | sci-chemistry/webmo/ChangeLog | 9 | ||||
-rw-r--r-- | sci-chemistry/webmo/files/8.0.010-add-gamess-data-directory.patch | 42 | ||||
-rw-r--r-- | sci-chemistry/webmo/files/8.0.010-gentoo-locations.patch | 40 | ||||
-rw-r--r-- | sci-chemistry/webmo/webmo-8.0.010.ebuild | 121 |
4 files changed, 211 insertions, 1 deletions
diff --git a/sci-chemistry/webmo/ChangeLog b/sci-chemistry/webmo/ChangeLog index 8f5ef0c5f6ca..b9a4d4713708 100644 --- a/sci-chemistry/webmo/ChangeLog +++ b/sci-chemistry/webmo/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sci-chemistry/webmo # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/webmo/ChangeLog,v 1.14 2008/02/05 08:47:31 hollow Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/webmo/ChangeLog,v 1.15 2008/02/15 08:53:27 dberkholz Exp $ + +*webmo-8.0.010 (15 Feb 2008) + + 15 Feb 2008; Donnie Berkholz <dberkholz@gentoo.org>; + +files/8.0.010-add-gamess-data-directory.patch, + +files/8.0.010-gentoo-locations.patch, +webmo-8.0.010.ebuild: + Bump. 05 Feb 2008; Benedikt Böhm <hollow@gentoo.org> webmo-6.1.010.ebuild, webmo-7.0.003.ebuild: diff --git a/sci-chemistry/webmo/files/8.0.010-add-gamess-data-directory.patch b/sci-chemistry/webmo/files/8.0.010-add-gamess-data-directory.patch new file mode 100644 index 000000000000..67447d6059ba --- /dev/null +++ b/sci-chemistry/webmo/files/8.0.010-add-gamess-data-directory.patch @@ -0,0 +1,42 @@ +diff -ur WebMO.install.orig/cgi-bin/interfaces/gamess.int.disabled WebMO.install/cgi-bin/interfaces/gamess.int.disabled +--- WebMO.install.orig/cgi-bin/interfaces/gamess.int.disabled 2008-02-15 00:37:31.000000000 -0800 ++++ WebMO.install/cgi-bin/interfaces/gamess.int.disabled 2008-02-15 00:37:56.000000000 -0800 +@@ -3,6 +3,7 @@ + interfaceDescription{'gamess_name'}="Gamess" + gamessVersion="2007" + gamessGMSPATH="/usr/bin" ++gamessDATAPATH="/usr/share/gamess/ericfmt" + gamessBinary="gamess.00.x" + gamessDdikick="ddikick.x" + cpuMin="0" +diff -ur WebMO.install.orig/cgi-bin/run_gamess.cgi WebMO.install/cgi-bin/run_gamess.cgi +--- WebMO.install.orig/cgi-bin/run_gamess.cgi 2008-02-15 00:37:31.000000000 -0800 ++++ WebMO.install/cgi-bin/run_gamess.cgi 2008-02-15 00:38:12.000000000 -0800 +@@ -30,7 +30,7 @@ + $ENV{'IRCDATA'} = $output_file.".irc"; + $ENV{'PUNCH'} = $output_file.".dat"; + $ENV{'INPUT'} = "$input_file.inp"; +-$ENV{'ERICFMT'} = "$gamessGMSPATH/ericfmt.dat"; ++$ENV{'ERICFMT'} = "$gamessDATAPATH/ericfmt.dat"; + $ENV{'PATH'} = $ENV{'PATH'}.":".$gamessGMSPATH; + $ENV{'DDI_RSH'}=$serverShell; + +diff -ur WebMO.install.orig/source/gamessmgr_admin.html WebMO.install/source/gamessmgr_admin.html +--- WebMO.install.orig/source/gamessmgr_admin.html 2008-02-15 00:37:31.000000000 -0800 ++++ WebMO.install/source/gamessmgr_admin.html 2008-02-15 00:38:57.000000000 -0800 +@@ -30,10 +30,14 @@ + <TD><INPUT TYPE="text" NAME="gamessVersion" VALUE="<PERL>$gamessVersion</PERL>" SIZE=50></TD> + </TR> + <TR> +- <TD><B>GAMESS directory</B></TD> ++ <TD><B>GAMESS binary directory</B></TD> + <TD><INPUT TYPE="text" NAME="gamessGMSPATH" VALUE="<PERL>$gamessGMSPATH</PERL>" SIZE=50></TD> + </TR> + <TR> ++ <TD><B>GAMESS data directory</B></TD> ++ <TD><INPUT TYPE="text" NAME="gamessDATAPATH" VALUE="<PERL>$gamessDATAPATH</PERL>" SIZE=50></TD> ++ </TR> ++ <TR> + <TD><B>GAMESS binary (name, not path)</B></TD> + <TD><INPUT TYPE="text" NAME="gamessBinary" VALUE="<PERL>$gamessBinary</PERL>" SIZE=50></TD> + </TR> diff --git a/sci-chemistry/webmo/files/8.0.010-gentoo-locations.patch b/sci-chemistry/webmo/files/8.0.010-gentoo-locations.patch new file mode 100644 index 000000000000..5c13919b8e1f --- /dev/null +++ b/sci-chemistry/webmo/files/8.0.010-gentoo-locations.patch @@ -0,0 +1,40 @@ +diff -ur WebMO.install.orig/cgi-bin/interfaces/gamess.int.disabled WebMO.install/cgi-bin/interfaces/gamess.int.disabled +--- WebMO.install.orig/cgi-bin/interfaces/gamess.int.disabled 2008-02-15 00:35:02.000000000 -0800 ++++ WebMO.install/cgi-bin/interfaces/gamess.int.disabled 2008-02-15 00:35:28.000000000 -0800 +@@ -2,7 +2,7 @@ + interfaceDescription{'gamess_admin'}="Edit preferences specific to Gamess" + interfaceDescription{'gamess_name'}="Gamess" + gamessVersion="2007" +-gamessGMSPATH="/usr/local/gamess" ++gamessGMSPATH="/usr/bin" + gamessBinary="gamess.00.x" + gamessDdikick="ddikick.x" + cpuMin="0" +diff -ur WebMO.install.orig/cgi-bin/interfaces/mopac.int.disabled WebMO.install/cgi-bin/interfaces/mopac.int.disabled +--- WebMO.install.orig/cgi-bin/interfaces/mopac.int.disabled 2008-02-15 00:35:02.000000000 -0800 ++++ WebMO.install/cgi-bin/interfaces/mopac.int.disabled 2008-02-15 00:35:42.000000000 -0800 +@@ -2,7 +2,7 @@ + interfaceDescription{'mopac_admin'}="Edit preferences specific to Mopac" + interfaceDescription{'mopac_name'}="Mopac" + mopacVersion="7" +-mopacPath="/usr/local/mopac7/mopac.exe" ++mopacPath="/usr/bin/mopac7" + mopacExternal="/usr/local/mopac7" + cpuMin="0" + cpuMax="100" +diff -ur WebMO.install.orig/cgi-bin/interfaces/tinker.int.disabled WebMO.install/cgi-bin/interfaces/tinker.int.disabled +--- WebMO.install.orig/cgi-bin/interfaces/tinker.int.disabled 2008-02-15 00:35:02.000000000 -0800 ++++ WebMO.install/cgi-bin/interfaces/tinker.int.disabled 2008-02-15 00:36:02.000000000 -0800 +@@ -2,9 +2,9 @@ + interfaceDescription{'tinker_admin'}="Edit preferences specific to Tinker" + interfaceDescription{'tinker_name'}="Tinker" + tinkerVersion="4.2" +-tinkerBinDir="/usr/local/tinker/bin" +-tinkerBinExt="x" +-tinkerParamDir="/usr/local/tinker/params" ++tinkerBinDir="/usr/bin" ++tinkerBinExt="" ++tinkerParamDir="/usr/share/tinker/params" + cpuMin="0" + cpuMax="100" + cpuDefault="100" diff --git a/sci-chemistry/webmo/webmo-8.0.010.ebuild b/sci-chemistry/webmo/webmo-8.0.010.ebuild new file mode 100644 index 000000000000..0d3a517f69e3 --- /dev/null +++ b/sci-chemistry/webmo/webmo-8.0.010.ebuild @@ -0,0 +1,121 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/webmo/webmo-8.0.010.ebuild,v 1.1 2008/02/15 08:53:27 dberkholz Exp $ + +inherit eutils webapp depend.apache + +MY_SRC_PN="WebMO" +MY_SRC_P="${MY_SRC_PN}.${PV}" +DESCRIPTION="Web-based interface to computational chemistry packages" +HOMEPAGE="http://webmo.net/" +SRC_URI="${MY_SRC_P}.tar.gz" + +LICENSE="WebMO" +SLOT="${PVR}" +KEYWORDS="~x86" +RESTRICT="fetch" +IUSE="" + +DEPEND="dev-lang/perl" +need_apache2 + +S="${WORKDIR}/${MY_SRC_PN}.install" + +pkg_nofetch() { + einfo "Go to http://webmo.net/ and register for a free license." + einfo "Download ${SRC_URI} and place it in ${DISTDIR}." +} + +src_unpack() { + # We need a license number to proceed + if [[ -z ${WEBMO_LICENSE} ]]; then + msg="You must set WEBMO_LICENSE to your license number in make.conf." + ewarn "$msg" + die "$msg" + fi + + # Check for invalid license values. Valid are dddd-dddd-dddd + if [[ ${WEBMO_LICENSE} != [0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] ]]; then + msg="Invalid license format. Licenses should be DDDD-DDDD-DDDD (D is a digit)." + ewarn "$msg" + die "$msg" + fi + + unpack ${A} + + # Set up program locations to match where portage installs them + epatch "${FILESDIR}"/8.0.010-gentoo-locations.patch + + # Add a data directory for gamess, because WebMO expects everything + # in one directory instead of FHS + # (Depends on gentoo-locations.patch) + epatch "${FILESDIR}"/8.0.010-add-gamess-data-directory.patch + + # Don't run diagnose.pl or ask about being root user + epatch "${FILESDIR}"/dont-be-interactive-or-diagnose.patch + + # Make setup.conf + create_setup_conf +} + +src_install() { + webapp_src_preinst + + # Install everything + perl setup.pl || die "Check '${S}'/diagnose.html for errors" + + # Get ${D} out of main config file + dosed "${MY_CGIBINDIR}/webmo/interfaces/globals.int" + + webapp_hook_script "${FILESDIR}"/reconfig + + local files=$(find "${D}"${MY_HOSTROOTDIR}/webmo "${D}"${MY_CGIBINDIR}/webmo/interfaces) + # Add the directories themselves + files="${files} ${MY_HOSTROOTDIR}/webmo ${MY_CGIBINDIR}/webmo/interfaces" + files=${files//${D}/} + for file in ${files}; do + webapp_configfile "${file}" + webapp_serverowned "${file}" + done + + ebegin "Fixing permissions" + pushd "${D}" > /dev/null + find . -perm /o+w -type f | xargs fperms 664 + find . -perm /o+w -type d | xargs fperms 775 + popd > /dev/null + eend 0 + + webapp_src_install +} + +pkg_postinst() { + elog + elog "Be sure that this line is uncommented in httpd.conf:" + elog "AddHandle cgi-scripts .cgi" + elog + elog "The diagnose.pl script can be run if WebMO doesn't work properly." + elog + ewarn "Be careful never to overwrite your user, group or job databases" + ewarn "when using etc-update after an upgrade." + + webapp_pkg_postinst +} + +create_setup_conf() { + local SETUP_CONF="${S}/setup.conf" + + echo_setup perlPath /usr/bin/perl "${SETUP_CONF}" + echo_setup htmlBase "${D}${MY_HTDOCSDIR}" "${SETUP_CONF}" + echo_setup url_htmlBase /webmo "${SETUP_CONF}" + echo_setup cgiBase "${D}${MY_CGIBINDIR}/webmo" "${SETUP_CONF}" + echo_setup url_cgiBase /cgi-bin/webmo "${SETUP_CONF}" + echo_setup userBase "${D}${MY_HOSTROOTDIR}/webmo" "${SETUP_CONF}" + echo_setup license "${WEBMO_LICENSE}" "${SETUP_CONF}" +} + +# Takes three arguments: +# 1: variable, 2: value, 3: file to echo them to +echo_setup() { + # All values must be double-quoted, so escape the inner quotes. + echo "${1}=\"${2}\"" >> ${3} +} |