summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <dberkholz@gentoo.org>2006-02-12 06:04:10 +0000
committerDonnie Berkholz <dberkholz@gentoo.org>2006-02-12 06:04:10 +0000
commiteb085eccf826198967f72f92732b2353d2d9ef20 (patch)
treeb701eabb3dbb4932ce2ada927b6cf7a58e1c27ac /sci-chemistry
parentRev bump (diff)
downloadhistorical-eb085eccf826198967f72f92732b2353d2d9ef20.tar.gz
historical-eb085eccf826198967f72f92732b2353d2d9ef20.tar.bz2
historical-eb085eccf826198967f72f92732b2353d2d9ef20.zip
Add a GPL suite of ab initio quantum chemistry programs to compute various molecular properties.
Package-Manager: portage-2.1_pre4-r1
Diffstat (limited to 'sci-chemistry')
-rw-r--r--sci-chemistry/psi/ChangeLog13
-rw-r--r--sci-chemistry/psi/Manifest27
-rw-r--r--sci-chemistry/psi/files/add-libint-error-message.patch24
-rw-r--r--sci-chemistry/psi/files/digest-psi-3.2.33
-rw-r--r--sci-chemistry/psi/files/dont-build-libint.patch11
-rw-r--r--sci-chemistry/psi/files/try-more-compilers.patch15
-rw-r--r--sci-chemistry/psi/files/try-pthread-for-blas-lapack.patch50
-rw-r--r--sci-chemistry/psi/files/use-external-libint.patch37
-rw-r--r--sci-chemistry/psi/metadata.xml9
-rw-r--r--sci-chemistry/psi/psi-3.2.3.ebuild51
10 files changed, 240 insertions, 0 deletions
diff --git a/sci-chemistry/psi/ChangeLog b/sci-chemistry/psi/ChangeLog
new file mode 100644
index 000000000000..c3f49b038a80
--- /dev/null
+++ b/sci-chemistry/psi/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for sci-chemistry/psi
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/psi/ChangeLog,v 1.1 2006/02/12 06:04:10 spyderous Exp $
+
+*psi-3.2.3 (12 Feb 2006)
+
+ 12 Feb 2006; Donnie Berkholz <spyderous@gentoo.org>;
+ +files/add-libint-error-message.patch, +files/dont-build-libint.patch,
+ +files/try-more-compilers.patch, +files/try-pthread-for-blas-lapack.patch,
+ +files/use-external-libint.patch, +metadata.xml, +psi-3.2.3.ebuild:
+ Add a GPL suite of ab initio quantum chemistry programs to compute various
+ molecular properties.
+
diff --git a/sci-chemistry/psi/Manifest b/sci-chemistry/psi/Manifest
new file mode 100644
index 000000000000..ae040197be4f
--- /dev/null
+++ b/sci-chemistry/psi/Manifest
@@ -0,0 +1,27 @@
+MD5 9d05f9bab898faf081a9b2ba7bc50e32 ChangeLog 613
+RMD160 deb99e133ae404de537ce31cd914dca5cb0b1642 ChangeLog 613
+SHA256 94cca8f5c19ed24e33d5c06ce85b33ae01c6925126c40d462650c2d5fa4d1567 ChangeLog 613
+MD5 74eaf8b13786493ed6220c0c33e09b28 files/add-libint-error-message.patch 722
+RMD160 526e57d715b65fedc763069be30f7e49e52dcbb8 files/add-libint-error-message.patch 722
+SHA256 63715cab509893817c7cfb22422c3724fd02a4d0fa5065bbb5a477d8d8a23390 files/add-libint-error-message.patch 722
+MD5 dbaa3f7804f89cfbc6b41a8fceeec0ca files/digest-psi-3.2.3 232
+RMD160 36c9c50c4c7e2ef156f0f0334b2b330435968e9b files/digest-psi-3.2.3 232
+SHA256 e9a1506870d5bf1fdfb1aee4740fc584343f0e716afe52c19411d115adf0bc4c files/digest-psi-3.2.3 232
+MD5 285e67094e0841a79a32c9301c023b39 files/dont-build-libint.patch 355
+RMD160 c3b00a7edb9af349f2321fcbbdc286168d5d6db3 files/dont-build-libint.patch 355
+SHA256 57513d9f897776055dfbe14e717761de314e79409def91ccc27563a613a66e18 files/dont-build-libint.patch 355
+MD5 9ec964134fe443be4a6d6760278bea87 files/try-more-compilers.patch 401
+RMD160 550151b01cc4362d70c3e79d250a2fb2e36af64f files/try-more-compilers.patch 401
+SHA256 cb3b404ad7725700840df7602686d651f38f3d7623857af63e3556d1317aaf08 files/try-more-compilers.patch 401
+MD5 f73030c473338710e13e3dfe3ce59463 files/try-pthread-for-blas-lapack.patch 1489
+RMD160 092e0613b7184b065bb5ffa2288ce342e84d9483 files/try-pthread-for-blas-lapack.patch 1489
+SHA256 09cf2f5bc6835697322501280de3027b932416dd939d04d0d25a9790fe02eaa5 files/try-pthread-for-blas-lapack.patch 1489
+MD5 6dc1efc685dfc6994c972eed20daf18c files/use-external-libint.patch 1359
+RMD160 560598e6d7c99d901d97dd6037480bd57c82433f files/use-external-libint.patch 1359
+SHA256 41faa20ba804e98a81cb6809c789c643fd17458b6f6bc95dbe6311dd2fb16713 files/use-external-libint.patch 1359
+MD5 af1bfbb0777267a03e889b08173f2757 metadata.xml 248
+RMD160 6488d9f1ef3e05e6ac5a29ddcc818e5ead0a5230 metadata.xml 248
+SHA256 de0ad7dc383b462c407cae015684d27c090455eac87c6f0f9ff581ef6e0b5b27 metadata.xml 248
+MD5 f6f4f2bd47a816e43cf1a5e9bcc20341 psi-3.2.3.ebuild 1219
+RMD160 b0ecc68f75a0eaa01df963d1893a815fe59c1745 psi-3.2.3.ebuild 1219
+SHA256 e9a2acc8c380e826ca103a2feea170405ab42b07e4da3a7b125a131a2d3159f5 psi-3.2.3.ebuild 1219
diff --git a/sci-chemistry/psi/files/add-libint-error-message.patch b/sci-chemistry/psi/files/add-libint-error-message.patch
new file mode 100644
index 000000000000..60fb12854455
--- /dev/null
+++ b/sci-chemistry/psi/files/add-libint-error-message.patch
@@ -0,0 +1,24 @@
+--- psi3.orig/src/lib/libint/Makefile.in 2003-11-23 11:07:51.000000000 -0800
++++ psi3/src/lib/libint/Makefile.in 2006-02-10 22:38:37.000000000 -0800
+@@ -44,7 +44,10 @@
+ $(MAKE) top_objdir=$(top_objdir_path); \
+ rm -f Makefile; \
+ if ! ./$(BUILD_BINARY); then \
+- cd ..; rm -fR $(TEMP_DIR); exit 1; \
++ cd ..; \
++ rm -fR $(TEMP_DIR); \
++ echo "$(BUILD_BINARY) does not exist!"; \
++ exit 1; \
+ fi; \
+ cp Makefile.libint Makefile; \
+ ${MAKE} top_objdir=$(top_objdir_path); \
+@@ -65,7 +68,9 @@
+ $(MKDIRS) $(libdir)
+ $(INSTALL_DATA) $< $(libdir)
+ $(RANLIB) $(libdir)/`basename $(TARGET)`
++ echo Finished ranlib
+ $(MKDIRS) $(incdir)/libint
++ echo Finished mkdirs
+ $(INSTALL_INCLUDE) $(TARGET_HEADERS) $(incdir)/libint
+
+ #
diff --git a/sci-chemistry/psi/files/digest-psi-3.2.3 b/sci-chemistry/psi/files/digest-psi-3.2.3
new file mode 100644
index 000000000000..00ee001bfe09
--- /dev/null
+++ b/sci-chemistry/psi/files/digest-psi-3.2.3
@@ -0,0 +1,3 @@
+MD5 d304c9510fda1751a988b1e4f619e141 psi-3.2.3.tar.gz 2694286
+RMD160 19bc9a80380193fb3e6d6166f7aa8c98a0415222 psi-3.2.3.tar.gz 2694286
+SHA256 b966c33a82a930b90c1102ade52b7074dd50a9f70a3781d2408436fee68131be psi-3.2.3.tar.gz 2694286
diff --git a/sci-chemistry/psi/files/dont-build-libint.patch b/sci-chemistry/psi/files/dont-build-libint.patch
new file mode 100644
index 000000000000..1ad5ce74244c
--- /dev/null
+++ b/sci-chemistry/psi/files/dont-build-libint.patch
@@ -0,0 +1,11 @@
+--- psi3.orig/src/lib/Makefile.in 2004-01-19 09:09:53.000000000 -0800
++++ psi3/src/lib/Makefile.in 2006-02-10 21:35:20.000000000 -0800
+@@ -2,7 +2,7 @@
+ .PHONY: default all install depend clean targetclean
+
+ subdirs = libipv1 libciomr libchkpt libqt libpsio libiwl libdpd \
+- libint libderiv libr12 libbasis
++ libbasis
+
+ all: default
+
diff --git a/sci-chemistry/psi/files/try-more-compilers.patch b/sci-chemistry/psi/files/try-more-compilers.patch
new file mode 100644
index 000000000000..63d4618e38ea
--- /dev/null
+++ b/sci-chemistry/psi/files/try-more-compilers.patch
@@ -0,0 +1,15 @@
+--- psi3.orig/configure.in 2005-10-29 10:15:06.000000000 -0700
++++ psi3/configure.in 2006-02-10 20:56:59.000000000 -0800
+@@ -104,9 +104,9 @@
+ ######################
+
+ # potential names of compilers
+-FC_LIST="g77 f77 fc f2c"
+-CC_LIST="gcc cc"
+-CXX_LIST="g++ c++ cxx"
++FC_LIST="gfortran g77 f77 fc f2c ifc"
++CC_LIST="gcc cc icc"
++CXX_LIST="g++ c++ cxx icc"
+
+ # set up os specific options
+ case $os in
diff --git a/sci-chemistry/psi/files/try-pthread-for-blas-lapack.patch b/sci-chemistry/psi/files/try-pthread-for-blas-lapack.patch
new file mode 100644
index 000000000000..d9b01edb60f0
--- /dev/null
+++ b/sci-chemistry/psi/files/try-pthread-for-blas-lapack.patch
@@ -0,0 +1,50 @@
+--- psi3.orig/configure.in 2005-10-29 10:15:06.000000000 -0700
++++ psi3/configure.in 2006-02-10 20:56:59.000000000 -0800
+@@ -333,7 +333,7 @@
+ AC_ARG_WITH(blas,[ --with-blas which blas library to use],[
+ case $withval in
+ yes)
+- BLAS='-lblas'
++ BLAS='-lblas -lpthread'
+ ;;
+ no)
+ BLAS=''
+@@ -344,16 +344,16 @@
+ esac
+ ])
+ if test "X$BLAS" = X; then
+- AC_CHECK_LIB(essl, DGEMM, BLAS="-lessl")
++ AC_CHECK_LIB(essl, DGEMM, BLAS="-lessl -lpthread",, [-lpthread])
+ fi
+ if test "X$BLAS" = X; then
+- AC_CHECK_LIB(scs, DGEMM, BLAS="-lscs")
++ AC_CHECK_LIB(scs, DGEMM, BLAS="-lscs -lpthread",, [-lpthread])
+ fi
+ if test "X$BLAS" = X; then
+- AC_CHECK_LIB(atlas, DGEMM, BLAS="-latlas")
++ AC_CHECK_LIB(atlas, DGEMM, BLAS="-latlas -lpthread",, [-lpthread])
+ fi
+ if test "X$BLAS" = X; then
+- AC_CHECK_LIB(blas, DGEMM, BLAS="-lblas")
++ AC_CHECK_LIB(blas, DGEMM, BLAS="-lblas -lpthread",, [-lpthread])
+ fi
+ if test "X$BLAS" = X; then
+ AC_MSG_ERROR("Did not find a BLAS library")
+@@ -363,7 +363,7 @@
+ AC_ARG_WITH(lapack,[ --with-lapack which lapack library to use],[
+ case $withval in
+ yes)
+- LAPACK='-llapack'
++ LAPACK='-llapack -lpthread'
+ ;;
+ no)
+ LAPACK=''
+@@ -382,7 +382,7 @@
+ LIBS=$CURRENT_LIBS
+ fi
+ if test "X$LAPACK" = X; then
+- AC_CHECK_LIB(lapack,DGEEV, LAPACK="-llapack",,$BLAS)
++ AC_CHECK_LIB(lapack,DGEEV, LAPACK="-llapack",,$BLAS -lpthread)
+ fi
+ if test "X$LAPACK" = X; then
+ AC_MSG_ERROR("Did not find a LAPACK library")
diff --git a/sci-chemistry/psi/files/use-external-libint.patch b/sci-chemistry/psi/files/use-external-libint.patch
new file mode 100644
index 000000000000..1d9ce91e3111
--- /dev/null
+++ b/sci-chemistry/psi/files/use-external-libint.patch
@@ -0,0 +1,37 @@
+--- psi3.orig/src/bin/cints/Makefile.in 2003-11-14 08:15:19.000000000 -0800
++++ psi3/src/bin/cints/Makefile.in 2006-02-10 22:42:31.000000000 -0800
+@@ -51,25 +51,25 @@
+ # and form the list of the libraries. Remember that libderiv and libr12
+ # depend on libint, and hence need to come first for GNU ld to work.
+ #
+-INTLIBS := -lPSI_int
++INTLIBS := -lint
+ ifeq ($(findstring MP2R12,$(SUBDIRS)),MP2R12)
+- ifneq ($(findstring -lPSI_r12,$(INTLIBS)),-lPSI_r12)
+- INTLIBS := -lPSI_r12 $(INTLIBS)
++ ifneq ($(findstring -lr12,$(INTLIBS)),-lr12)
++ INTLIBS := -lr12 $(INTLIBS)
+ endif
+ endif
+ ifeq ($(findstring R12_Ints,$(SUBDIRS)),R12_Ints)
+- ifneq ($(findstring -lPSI_r12,$(INTLIBS)),-lPSI_r12)
+- INTLIBS := -lPSI_r12 $(INTLIBS)
++ ifneq ($(findstring -lr12,$(INTLIBS)),-lr12)
++ INTLIBS := -lr12 $(INTLIBS)
+ endif
+ endif
+ ifeq ($(findstring Default_Deriv1,$(SUBDIRS)),Default_Deriv1)
+- ifneq ($(findstring -lPSI_deriv,$(INTLIBS)),-lPSI_deriv)
+- INTLIBS := -lPSI_deriv $(INTLIBS)
++ ifneq ($(findstring -lderiv,$(INTLIBS)),-lderiv)
++ INTLIBS := -lderiv $(INTLIBS)
+ endif
+ endif
+ ifeq ($(findstring Default_Deriv2,$(SUBDIRS)),Default_Deriv2)
+- ifneq ($(findstring -lderiv,$(INTLIBS)),-lPSI_deriv)
+- INTLIBS := -lPSI_deriv $(INTLIBS)
++ ifneq ($(findstring -lderiv,$(INTLIBS)),-lderiv)
++ INTLIBS := -lderiv $(INTLIBS)
+ endif
+ endif
+
diff --git a/sci-chemistry/psi/metadata.xml b/sci-chemistry/psi/metadata.xml
new file mode 100644
index 000000000000..211b8bd0f0a4
--- /dev/null
+++ b/sci-chemistry/psi/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<maintainer>
+<email>spyderous@gentoo.org</email>
+<name>Donnie Berkholz</name>
+</maintainer>
+</pkgmetadata>
diff --git a/sci-chemistry/psi/psi-3.2.3.ebuild b/sci-chemistry/psi/psi-3.2.3.ebuild
new file mode 100644
index 000000000000..728a4d136a3d
--- /dev/null
+++ b/sci-chemistry/psi/psi-3.2.3.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/psi/psi-3.2.3.ebuild,v 1.1 2006/02/12 06:04:10 spyderous Exp $
+
+inherit autotools eutils
+
+DESCRIPTION="Suite of ab initio quantum chemistry programs to compute various molecular properties"
+HOMEPAGE="http://www.psicode.org/"
+SRC_URI="mirror://sourceforge/psicode/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+RDEPEND="virtual/blas
+ virtual/lapack
+ sci-libs/libint"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${PN}${PV:0:1}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/try-more-compilers.patch
+ epatch ${FILESDIR}/try-pthread-for-blas-lapack.patch
+ epatch ${FILESDIR}/dont-build-libint.patch
+ epatch ${FILESDIR}/use-external-libint.patch
+ eautoreconf
+}
+
+src_compile() {
+ # This variable gets set sometimes to /usr/lib/src and breaks stuff
+ unset CLIBS
+
+ econf \
+ --with-opt="${CFLAGS}" \
+ --datadir=/usr/share/${PN} \
+ || die "configure failed"
+ emake \
+ SCRATCH="${WORKDIR}/libint" \
+ || die "make failed"
+}
+
+src_install() {
+ einstall \
+ datadir=${D}/usr/share/${PN} \
+ docdir=${D}/usr/share/doc/${PF} \
+ || die "install failed"
+}