diff options
author | Donnie Berkholz <spyderous@gentoo.org> | 2006-02-12 06:04:10 +0000 |
---|---|---|
committer | Donnie Berkholz <spyderous@gentoo.org> | 2006-02-12 06:04:10 +0000 |
commit | 12d9940c4f842d4d54358956829118a55867e6e0 (patch) | |
tree | 8530425cc285af3940a4a88673fb4c3ff1e62d4e /sci-chemistry/psi | |
parent | Rev bump (diff) | |
download | gentoo-2-12d9940c4f842d4d54358956829118a55867e6e0.tar.gz gentoo-2-12d9940c4f842d4d54358956829118a55867e6e0.tar.bz2 gentoo-2-12d9940c4f842d4d54358956829118a55867e6e0.zip |
Add a GPL suite of ab initio quantum chemistry programs to compute various molecular properties.
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'sci-chemistry/psi')
-rw-r--r-- | sci-chemistry/psi/ChangeLog | 13 | ||||
-rw-r--r-- | sci-chemistry/psi/Manifest | 21 | ||||
-rw-r--r-- | sci-chemistry/psi/files/add-libint-error-message.patch | 24 | ||||
-rw-r--r-- | sci-chemistry/psi/files/digest-psi-3.2.3 | 3 | ||||
-rw-r--r-- | sci-chemistry/psi/files/dont-build-libint.patch | 11 | ||||
-rw-r--r-- | sci-chemistry/psi/files/try-more-compilers.patch | 15 | ||||
-rw-r--r-- | sci-chemistry/psi/files/try-pthread-for-blas-lapack.patch | 50 | ||||
-rw-r--r-- | sci-chemistry/psi/files/use-external-libint.patch | 37 | ||||
-rw-r--r-- | sci-chemistry/psi/metadata.xml | 9 | ||||
-rw-r--r-- | sci-chemistry/psi/psi-3.2.3.ebuild | 51 |
10 files changed, 234 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..63820c194e89 --- /dev/null +++ b/sci-chemistry/psi/Manifest @@ -0,0 +1,21 @@ +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 fd97c86fb2c9702e34adcd60818a8634 psi-3.2.3.ebuild 1279 +RMD160 c73c86f369bb473cbccba42bb9ba236c369ea37e psi-3.2.3.ebuild 1279 +SHA256 bfa0711116e1bd76f911fd577cf2a0c80bdfcf88529f33751c5441e179304fe7 psi-3.2.3.ebuild 1279 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" +} |