summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn (EBo) David <ebo@users.sourceforge.net>2009-08-15 15:27:08 +0000
committerJohn (EBo) David <ebo@users.sourceforge.net>2009-08-15 15:27:08 +0000
commit72f58a9213d141dce1225d5b5d043dd92b67336e (patch)
tree9f6af98f2f1a99b74192f8e107afab0f1cfca300 /sys-cluster
parentapp-backup/rdup: some minor changes, thanks to scarabeus and sedzimir (diff)
downloadsunrise-72f58a9213d141dce1225d5b5d043dd92b67336e.tar.gz
sunrise-72f58a9213d141dce1225d5b5d043dd92b67336e.tar.bz2
sunrise-72f58a9213d141dce1225d5b5d043dd92b67336e.zip
sys-cluster/globus-build: New Ebuild for bug 51149 thanks to Tommy[D], sedzimir and the people over at sunrise
svn path=/sunrise/; revision=9011
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/globus-build/ChangeLog9
-rw-r--r--sys-cluster/globus-build/Manifest5
-rw-r--r--sys-cluster/globus-build/files/21globus-build7
-rw-r--r--sys-cluster/globus-build/globus-build-4.2.1.ebuild104
-rw-r--r--sys-cluster/globus-build/metadata.xml17
5 files changed, 142 insertions, 0 deletions
diff --git a/sys-cluster/globus-build/ChangeLog b/sys-cluster/globus-build/ChangeLog
new file mode 100644
index 000000000..902df1c33
--- /dev/null
+++ b/sys-cluster/globus-build/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for sys-cluster/globus-build
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 15 Aug 2009; John (EBo) David <ebo@users.sourceforge.net>
+ +files/21globus-build, +globus-build-4.2.1.ebuild, +metadata.xml:
+ New Ebuild for bug 51149 thanks to Tommy[D], sedzimir and the people over at
+ sunrise
+
diff --git a/sys-cluster/globus-build/Manifest b/sys-cluster/globus-build/Manifest
new file mode 100644
index 000000000..b3d888e27
--- /dev/null
+++ b/sys-cluster/globus-build/Manifest
@@ -0,0 +1,5 @@
+AUX 21globus-build 187 RMD160 2c9f1bd0051f19721a9fc43024cbbd920c8bc965 SHA1 55f53f00e674631402ed7cb90813de585360aa26 SHA256 21b2c26cc49ea4808918b1f6bb253e251ed6a228b6fab93996835ff9eadda741
+DIST gt4.2.1-all-source-installer.tar.bz2 111057292 RMD160 a8ffb66c47c0221acdf17256e1495e613417226e SHA1 33c6868189a6652a8714abe9ad8fa2cc481dd1d7 SHA256 f22deb1d47556e9c4be8ed556f497e6cded641c41f103663d7f499f9175d3705
+EBUILD globus-build-4.2.1.ebuild 2627 RMD160 47fe2a7107ebedc0b9f8dfcd2db987b8d0cb52b2 SHA1 e5af7806780d167b12c74da81a0feaca9ece0b82 SHA256 5d7c87ee3bcdd86e993a624c83ba18cbc7b8c6002b943d2ef907a32e90d31b1f
+MISC ChangeLog 343 RMD160 2b6411cc633f89ffd82f2935ca60758680471268 SHA1 ae9422aee7386367218f28da89b0caead870cb70 SHA256 490d0fc0d7469ee951fe9b86746c8477349b5babd87bb075bd81f12fa4991bc9
+MISC metadata.xml 541 RMD160 f12851f95f2fa1b77ecd2c5c15528bf0326160cf SHA1 35c94a8b8f47d3c506c9ee9600c86ec9eaeec6f6 SHA256 ac620f509af5812582c8bee099b9131aadc2082750cd05535b9640da92e63f1e
diff --git a/sys-cluster/globus-build/files/21globus-build b/sys-cluster/globus-build/files/21globus-build
new file mode 100644
index 000000000..4b9e1bf1f
--- /dev/null
+++ b/sys-cluster/globus-build/files/21globus-build
@@ -0,0 +1,7 @@
+GPT_LOCATION=%%GLOBUS%%
+PATH=%%GLOBUS%%/sbin:%%GLOBUS%%/bin
+LDPATH=%%GLOBUS%%/lib
+DYLD_LIBRARY_PATH=%%GLOBUS%%/lib
+MANPATH=%%GLOBUS%%/man
+SHLIB_PATH=%%GLOBUS%%/lib
+LIBPATH=%%GLOBUS%%/lib
diff --git a/sys-cluster/globus-build/globus-build-4.2.1.ebuild b/sys-cluster/globus-build/globus-build-4.2.1.ebuild
new file mode 100644
index 000000000..0d84ec1dc
--- /dev/null
+++ b/sys-cluster/globus-build/globus-build-4.2.1.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+# The globus-build tools do not require java to be installed, BUT
+# configure still expects it...
+inherit eutils java-pkg-2 java-utils-2
+
+MY_P="gt${PV}-all-source-installer"
+
+DESCRIPTION="The Globus Toolkit Build Tools"
+HOMEPAGE="http://www.globus.org/toolkit/"
+
+SRC_URI="http://www-unix.globus.org/ftppub/gt${PV:0:1}/${PV}/installers/src/${MY_P}.tar.bz2"
+
+LICENSE="GTPL"
+
+SLOT="4"
+KEYWORDS="~x86"
+
+IUSE="condor iodbc lsf odbc pbs"
+
+RDEPEND="
+ dev-java/ant
+ sys-libs/zlib
+ dev-lang/perl
+ app-admin/sudo
+ dev-libs/openssl
+ dev-db/postgresql
+ dev-perl/XML-Parser
+ virtual/mpi
+ iodbc? ( dev-db/libiodbc )
+ odbc? ( !iodbc? ( dev-db/unixODBC ) )"
+
+DEPEND=">=virtual/jdk-1.5
+ ${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+GLOBUS="/opt/globus${PV:0:1}"
+
+pkg_setup() {
+ enewgroup globus
+ enewuser globus -1 -1 /var/globus globus
+}
+
+src_prepare() {
+ mkdir "${S}"/build || die "making build directory failed"
+
+ sed -e "s|%%GLOBUS%%|${GLOBUS}|" \
+ "${FILESDIR}"/21globus-build > "${T}"/21globus-build \
+ || die "sed envfile failed"
+}
+
+src_configure() {
+ local myconfig
+
+ # should we use odbc with iodbc or unixodbc
+ if use iodbc ; then
+ myconfig="--with-iodbc-libs=$(iodbc-config --prefix)/lib"
+ myconfig="${myconfig} --with-iodbc-includes=$(iodbc-config --prefix)/include/iodbc"
+ elif use odbc ; then
+ myconfig="--with-unixodbc-libs=/usr/lib"
+ myconfig="${myconfig} --with-unixodbc-includes=/usr/include/unixodbc"
+ fi
+
+ # even though globus does not use java we still need all the junk to
+ # make configure happy...
+ java-pkg_switch-vm
+
+ econf --prefix="${S}/build/${GLOBUS}" \
+ --with-gptlocation="${S}/build/${GLOBUS}" \
+ $(use_enable condor wsgram-condor) \
+ $(use_enable lsf wsgram-lsf) \
+ $(use_enable pbs wsgram-pbs) ${myconfig}
+}
+
+src_compile() {
+ emake gpt || die "compile failed"
+}
+
+src_install() {
+ einfo "Hand installing..."
+ # The supplied Makefile install violates standard practices. The
+ # following simulates a "make DESTDIR=${D}" and moves the built
+ # programs/files into ${D}
+ mv "${S}"/build/* "${D}/" || die "mv failed"
+
+ doenvd "${T}"/21globus-build || die "install env.d/globus-build died"
+
+ einfo "Updating ownership and permissions..."
+ fowners -R globus:globus * || die "fowners failed"
+}
+
+pkg_postrm() {
+ if [ -z has_version ]; then
+ ewarn "Globus builds and installs files into ${GLOBUS}"
+ ewarn "after package installation. After uninstalling"
+ ewarn "you may want to manually remove all or part of the Globus"
+ ewarn "installation directory ${GLOBUS}."
+ fi
+}
diff --git a/sys-cluster/globus-build/metadata.xml b/sys-cluster/globus-build/metadata.xml
new file mode 100644
index 000000000..2e12dc565
--- /dev/null
+++ b/sys-cluster/globus-build/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd> not sure yet </herd>
+<maintainer>
+ <email>maintainer-wanted@gentoo.org</email>
+ <name>maintainer-wanted</name>
+</maintainer>
+<longdescription>
+ The Globus Toolkit - grid middleware package build tools
+</longdescription>
+<use>
+ <flag name='condor'>Condor-G scheduler support</flag>
+ <flag name='lsf'>Platform LSF support</flag>
+ <flag name='pbs'>Portable Batch System support</flag>
+</use>
+</pkgmetadata>