diff options
author | Justin Lecher <jlec@gentoo.org> | 2010-10-14 17:53:56 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2010-10-14 17:53:56 +0000 |
commit | 9409978f2559351acffdd93da1b983ad98d51877 (patch) | |
tree | e50b87929958b8fd52adf466e111dee466063f16 /sci-chemistry | |
parent | Respect LDFLAGS wrt bug 339197. Thanks to Diego for the report. Simplify ebui... (diff) | |
download | gentoo-2-9409978f2559351acffdd93da1b983ad98d51877.tar.gz gentoo-2-9409978f2559351acffdd93da1b983ad98d51877.tar.bz2 gentoo-2-9409978f2559351acffdd93da1b983ad98d51877.zip |
Version Bump; 340867; removed old
(Portage version: 2.2_rc95/cvs/Linux x86_64)
Diffstat (limited to 'sci-chemistry')
-rw-r--r-- | sci-chemistry/pdb2pqr/ChangeLog | 11 | ||||
-rw-r--r-- | sci-chemistry/pdb2pqr/files/1.7.0-install.patch | 131 | ||||
-rw-r--r-- | sci-chemistry/pdb2pqr/files/pdb2pqr-1.3.0-gcc4.3.patch | 12 | ||||
-rw-r--r-- | sci-chemistry/pdb2pqr/files/pdb2pqr-1.3.0-ldflags.patch | 12 | ||||
-rw-r--r-- | sci-chemistry/pdb2pqr/files/pdb2pqr-1.4.0-gcc44.patch | 11 | ||||
-rw-r--r-- | sci-chemistry/pdb2pqr/pdb2pqr-1.3.0.ebuild | 78 | ||||
-rw-r--r-- | sci-chemistry/pdb2pqr/pdb2pqr-1.4.0-r1.ebuild | 118 | ||||
-rw-r--r-- | sci-chemistry/pdb2pqr/pdb2pqr-1.5.0.ebuild | 124 | ||||
-rw-r--r-- | sci-chemistry/pdb2pqr/pdb2pqr-1.7.0.ebuild | 141 |
9 files changed, 282 insertions, 356 deletions
diff --git a/sci-chemistry/pdb2pqr/ChangeLog b/sci-chemistry/pdb2pqr/ChangeLog index 895261d329f3..8cd3fcbcff82 100644 --- a/sci-chemistry/pdb2pqr/ChangeLog +++ b/sci-chemistry/pdb2pqr/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for sci-chemistry/pdb2pqr # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pdb2pqr/ChangeLog,v 1.26 2010/07/07 09:22:45 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pdb2pqr/ChangeLog,v 1.27 2010/10/14 17:53:56 jlec Exp $ + +*pdb2pqr-1.7.0 (14 Oct 2010) + + 14 Oct 2010; Justin Lecher <jlec@gentoo.org> +files/1.7.0-install.patch, + -pdb2pqr-1.3.0.ebuild, -files/pdb2pqr-1.3.0-gcc4.3.patch, + -files/pdb2pqr-1.3.0-ldflags.patch, -pdb2pqr-1.4.0-r1.ebuild, + -files/pdb2pqr-1.4.0-gcc44.patch, -pdb2pqr-1.5.0.ebuild, + +pdb2pqr-1.7.0.ebuild: + Version Bump; 340867; removed old 07 Jul 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org> pdb2pqr-1.5.0-r2.ebuild: diff --git a/sci-chemistry/pdb2pqr/files/1.7.0-install.patch b/sci-chemistry/pdb2pqr/files/1.7.0-install.patch new file mode 100644 index 000000000000..77ee077937dc --- /dev/null +++ b/sci-chemistry/pdb2pqr/files/1.7.0-install.patch @@ -0,0 +1,131 @@ +diff --git a/Makefile.am b/Makefile.am +index d5d020d..550d52a 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -113,24 +113,11 @@ install: + mkdir $(CWD)/$$dir/tmp ; \ + fi ; \ + chmod 777 $(CWD)/$$dir/tmp ; \ +- echo "Adding server.html" ; \ +- cp $$c/html/server.html $(CWD)/$$dir/index.html ; \ +- echo "Adding python files" ; \ +- cp $$c/*.py* $(CWD)/$$dir/. ; \ ++ cp $$c/main*.py $(CWD)/$$dir/. ; \ + echo "Adding __init__.py" ; \ + cp $$c/__init__.py $(CWD)/$$dir/__init__.py ; \ + echo "Adding pdb2pqr.py" ; \ + cp $$c/pdb2pqr.py $(CWD)/$$dir/. ; \ +- echo "Adding pdb2pqr.cgi" ; \ +- cp $$c/pdb2pqr.cgi $(CWD)/$$dir/. ; \ +- echo "Adding pdb2pqr.css" ; \ +- cp $$c/apbs_cgi.cgi $(CWD)/$$dir/. ; \ +- echo "Adding apbs_cgi.cgi" ; \ +- cp $$c/visualize.cgi $(CWD)/$$dir/. ; \ +- echo "Adding visualize.cgi" ; \ +- cp $$c/querystatus.cgi $(CWD)/$$dir/. ; \ +- echo "Adding querystatus.cgi" ; \ +- cp $$c/pdb2pqr.css $(CWD)/$$dir/. ; \ + if ! test -d $(CWD)/$$dir/dat ; then \ + mkdir $(CWD)/$$dir/dat ; \ + fi ; \ +@@ -138,49 +125,12 @@ install: + cp $$c/dat/*.xml $(CWD)/$$dir/dat/. ; \ + cp $$c/dat/*.DAT $(CWD)/$$dir/dat/. ; \ + cp $$c/dat/*.names $(CWD)/$$dir/dat/. ; \ +- if ! test -d $(CWD)/$$dir/doc ; then \ +- mkdir $(CWD)/$$dir/doc ; \ +- fi ; \ +- echo "Adding doc/" ; \ +- cp $$c/doc/*.html $(CWD)/$$dir/doc/. ; \ +- cp $$c/doc/*.sh $(CWD)/$$dir/doc/. ; \ +- if ! test -d $(CWD)/$$dir/doc/images ; then \ +- mkdir $(CWD)/$$dir/doc/images ; \ +- fi ; \ +- cp $$c/doc/images/*.png $(CWD)/$$dir/doc/images/. ; \ +- if ! test -d $(CWD)/$$dir/doc/pydoc ; then \ +- mkdir $(CWD)/$$dir/doc/pydoc ; \ +- fi ; \ +- cp $$c/doc/pydoc/*.html $(CWD)/$$dir/doc/pydoc/. ; \ +- if ! test -d $(CWD)/$$dir/examples ; then \ +- mkdir $(CWD)/$$dir/examples ; \ +- fi ; \ +- echo "Adding examples/" ; \ +- cp $$c/examples/*.html $(CWD)/$$dir/examples/. ; \ +- if ! test -d $(CWD)/$$dir/examples/1a1p ; then \ +- mkdir $(CWD)/$$dir/examples/1a1p ; \ +- fi ; \ +- cp $$c/examples/1a1p/*.pdb $(CWD)/$$dir/examples/1a1p/. ; \ +- cp $$c/examples/1a1p/README $(CWD)/$$dir/examples/1a1p/. ; \ +- if ! test -d $(CWD)/$$dir/examples/ligands ; then \ +- mkdir $(CWD)/$$dir/examples/ligands ; \ +- fi ; \ +- cp $$c/examples/ligands/*.mol* $(CWD)/$$dir/examples/ligands/. ; \ ++ echo "Adding extensions" ; \ + if ! test -d $(CWD)/$$dir/extensions ; then \ + mkdir $(CWD)/$$dir/extensions ; \ + fi ; \ + echo "Adding extensions" ; \ + cp $$c/extensions/*.py $(CWD)/$$dir/extensions/. ; \ +- if ! test -d $(CWD)/$$dir/html ; then \ +- mkdir $(CWD)/$$dir/html ; \ +- fi ; \ +- cp $$c/html/master-index.html $(CWD)/$$dir/html/. ; \ +- cp $$c/html/server.html $(CWD)/$$dir/html/server.html ; \ +- if ! test -d $(CWD)/$$dir/jmol ; then \ +- mkdir $(CWD)/$$dir/jmol ; \ +- fi ; \ +- echo "Adding jmol/" ; \ +- cp -rf $$c/jmol/*.* $(CWD)/$$dir/jmol/. ; \ + if ! test -d $(CWD)/$$dir/src ; then \ + mkdir $(CWD)/$$dir/src ; \ + fi ; \ +@@ -229,49 +179,6 @@ install: + echo PDB2PQR has been installed in $(CWD)/$$dir ; \ + echo ; \ + cd $(CWD)/$$dir ; \ +- cd $$c; \ +- rm lastfieldfile prefixfile dir1file fieldfile ; \ +- echo $(URL) > url_file ; \ +- awk -F"/" '{print $$(NF-1)}' url_file > url_file_2 ; \ +- last_url=`cat url_file_2` ; \ +- echo $(PREFIX) > p_file ; \ +- awk -F"/" '{print $$(NF-1)}' p_file > p_file_2 ; \ +- last_p=`cat p_file_2` ; \ +- rm -f url_file* p_file* ; \ +- if test `whoami` = "root" ; then \ +- webviewable="true" ; \ +- echo ${prefix} > prefix_file_tmp ; \ +- first=`awk -F"/" '{ print $$2 }' prefix_file_tmp` ; \ +- second=`awk -F"/" '{ print $$3 }' prefix_file_tmp` ; \ +- third=`awk -F"/" '{ print $$4 }' prefix_file_tmp` ; \ +- rm -f prefix_file_tmp ; \ +- if test $$first != var || test $$second != www || test $$third != html ; then \ +- webviewable=false ; \ +- fi ; \ +- if test "$$last_url" != "$$last_p" || test "$$webviewable" = "false" ; then \ +- echo Need to make symbolic link between $(PREFIX) and /var/www/html/"$$last_url" ; \ +- if test -d "/var/www/html/$$last_url" ; then \ +- echo "***" Warning! Directory /var/www/html/"$$last_url" already exists. ; \ +- echo Do you want to overwrite this? \(Y/N\); \ +- read choice ; \ +- while (test $$choice != "Y" && test $$choice != "y" && test $$choice != "N" && test $$choice != "n") \ +- do \ +- echo You have entered $$choice. Please enter Y or N: ; \ +- read choice ; \ +- done ; \ +- if test $$choice = "N" || test $$choice = "n" ; then \ +- echo Please run configure again and specify a different --prefix ; \ +- exit 0 ; \ +- fi ; \ +- rm -rf /var/www/html/"$$last_url" ; \ +- fi ; \ +- ln -s $(PREFIX) /var/www/html/"$$last_url" ; \ +- echo "Symbolic link created." ; \ +- fi ; \ +- else \ +- echo Ask your system administrator to make a symbolic link in /var/www/html by executing the following command; \ +- echo ln -s $(PREFIX) /var/www/html/"$$last_url" ; \ +- fi ; \ + fi + + diff --git a/sci-chemistry/pdb2pqr/files/pdb2pqr-1.3.0-gcc4.3.patch b/sci-chemistry/pdb2pqr/files/pdb2pqr-1.3.0-gcc4.3.patch deleted file mode 100644 index 2ccd01785213..000000000000 --- a/sci-chemistry/pdb2pqr/files/pdb2pqr-1.3.0-gcc4.3.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Naur pdb2pqr-1.3.0/pdb2pka/pMC_mult.cpp pdb2pqr-1.3.0.new/pdb2pka/pMC_mult.cpp ---- pdb2pqr-1.3.0/pdb2pka/pMC_mult.cpp 2006-12-05 20:35:43.000000000 -0500 -+++ pdb2pqr-1.3.0.new/pdb2pka/pMC_mult.cpp 2008-06-19 08:53:22.000000000 -0400 -@@ -8,6 +8,8 @@ - // - // - -+#include <cstdlib> -+ - void MC::reformat_arrays() { - // - // Reformat the matrix diff --git a/sci-chemistry/pdb2pqr/files/pdb2pqr-1.3.0-ldflags.patch b/sci-chemistry/pdb2pqr/files/pdb2pqr-1.3.0-ldflags.patch deleted file mode 100644 index 57f02f264ba8..000000000000 --- a/sci-chemistry/pdb2pqr/files/pdb2pqr-1.3.0-ldflags.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Naur pdb2pqr-1.3.0/propka/Makefile.in pdb2pqr-1.3.0.new/propka/Makefile.in ---- pdb2pqr-1.3.0/propka/Makefile.in 2007-10-11 18:26:48.000000000 -0400 -+++ pdb2pqr-1.3.0.new/propka/Makefile.in 2008-10-11 07:10:51.000000000 -0400 -@@ -169,7 +169,7 @@ - -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS) - _propkalib.so$(EXEEXT): $(_propkalib_so_OBJECTS) $(_propkalib_so_DEPENDENCIES) - @rm -f _propkalib.so$(EXEEXT) -- $(_propkalib_so_LINK) $(_propkalib_so_LDFLAGS) $(_propkalib_so_OBJECTS) $(_propkalib_so_LDADD) $(LIBS) -+ $(_propkalib_so_LINK) $(_propkalib_so_LDFLAGS) $(LDFLAGS) $(_propkalib_so_OBJECTS) $(_propkalib_so_LDADD) $(LIBS) - propka$(EXEEXT): $(propka_OBJECTS) $(propka_DEPENDENCIES) - @rm -f propka$(EXEEXT) - $(F77LINK) $(propka_LDFLAGS) $(propka_OBJECTS) $(propka_LDADD) $(LIBS) diff --git a/sci-chemistry/pdb2pqr/files/pdb2pqr-1.4.0-gcc44.patch b/sci-chemistry/pdb2pqr/files/pdb2pqr-1.4.0-gcc44.patch deleted file mode 100644 index 09405ec7c3f3..000000000000 --- a/sci-chemistry/pdb2pqr/files/pdb2pqr-1.4.0-gcc44.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- pdb2pka/pMC_mult.cpp.orig 2009-05-19 23:35:45.000000000 +0400 -+++ pdb2pka/pMC_mult.cpp 2009-05-19 23:36:27.000000000 +0400 -@@ -7,7 +7,7 @@ - // - // - // -- -+#include <stdio.h> - #include <cstdlib> - - void MC::reformat_arrays() { diff --git a/sci-chemistry/pdb2pqr/pdb2pqr-1.3.0.ebuild b/sci-chemistry/pdb2pqr/pdb2pqr-1.3.0.ebuild deleted file mode 100644 index ec3de87292b1..000000000000 --- a/sci-chemistry/pdb2pqr/pdb2pqr-1.3.0.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pdb2pqr/pdb2pqr-1.3.0.ebuild,v 1.7 2010/06/15 12:46:05 arfrever Exp $ - -inherit eutils fortran multilib flag-o-matic distutils - -DESCRIPTION="pdb2pqr is an automated pipeline for performing Poisson-Boltzmann electrostatics calculations" -LICENSE="BSD" -HOMEPAGE="http://pdb2pqr.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -SLOT="0" -IUSE="" -KEYWORDS="amd64 x86" - -DEPEND="dev-lang/python - dev-python/numpy" - -RDEPEND="${DEPEND}" - -FORTRAN="g77 gfortran" - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${P}-gcc4.3.patch - epatch "${FILESDIR}"/${P}-ldflags.patch -} - -src_compile() { - # we need to compile the *.so as pic - append-flags -fPIC - FFLAGS="${FFLAGS} -fPIC" - F77="${FORTRANC}" econf || die "econf failed" - emake || die "emake failed" -} - -src_install() { - INPATH="$(python_get_sitedir)/${PN}" - - insinto "${INPATH}" - doins __init__.py || \ - die "Setting up the pdb2pqr site-package failed." - - exeinto "${INPATH}" - doexe ${PN}.py || die "Installing pdb2pqr failed." - - exeinto "${INPATH}"/propka - doexe propka/_propkalib.so || \ - die "Failed to install propka." - - exeinto "${INPATH}"/extensions - doexe extensions/* || \ - die "Failed to install extensions." - - insinto "${INPATH}"/propka - doins propka/propkalib.py propka/__init__.py || \ - die "Failed to install propka." - - insinto "${INPATH}"/src - doins src/* || die "Installing of python scripts failed." - - insinto "${INPATH}"/dat - doins dat/* || die "Installing data failed." - - # generate pdb2pqr wrapper - cat >> "${T}"/${PN} <<-EOF - #!/bin/sh - $(PYTHON) ${INPATH}/${PN}.py \$* - EOF - - exeinto /usr/bin - doexe "${T}"/${PN} || die "Failed to install pdb2pqr wrapper." - - dodoc ChangeLog NEWS README AUTHORS || \ - die "Failed to install docs" - dohtml -r doc/* || die "Failed to install html docs." -} diff --git a/sci-chemistry/pdb2pqr/pdb2pqr-1.4.0-r1.ebuild b/sci-chemistry/pdb2pqr/pdb2pqr-1.4.0-r1.ebuild deleted file mode 100644 index 266708692675..000000000000 --- a/sci-chemistry/pdb2pqr/pdb2pqr-1.4.0-r1.ebuild +++ /dev/null @@ -1,118 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pdb2pqr/pdb2pqr-1.4.0-r1.ebuild,v 1.4 2010/06/15 12:46:05 arfrever Exp $ - -inherit eutils fortran multilib flag-o-matic distutils python - -DESCRIPTION="An automated pipeline for performing Poisson-Boltzmann electrostatics calculations" -LICENSE="BSD" -HOMEPAGE="http://pdb2pqr.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -SLOT="0" -IUSE="doc examples opal" -KEYWORDS="~amd64 ~x86" - -DEPEND="dev-lang/python - dev-python/numpy - opal? ( dev-python/zsi )" -RDEPEND="${DEPEND}" - -FORTRAN="g77 gfortran" - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${P}-ldflags.patch - epatch "${FILESDIR}"/${P}-automagic.patch - epatch "${FILESDIR}"/${P}-install.patch - epatch "${FILESDIR}"/${P}-gcc44.patch - - sed '50,200s:CWD:DESTDIR:g' -i Makefile.am - - eautoreconf -} - -src_compile() { - # we need to compile the *.so as pic - append-flags -fPIC - FFLAGS="${FFLAGS} -fPIC" - # Avoid automagic to numeric - NUMPY="$(python_get_sitedir)" \ - F77="${FORTRANC}" \ - econf \ - $(use_with opal) || \ - die "econf failed" - emake || die "emake failed" -} - -src_test() { - emake -j1 test && \ - F77="${FORTRANC}" emake -j1 adv-test || \ - die "test failed" -} - -src_install() { - dodir $(python_get_sitedir)/${PN} - emake -j1 DESTDIR="${D}$(python_get_sitedir)/${PN}" PREFIX="" install || die - - if use doc; then - cd doc - sh genpydoc.sh || die - dohtml -r *.html images pydoc || die - cd - - fi - - if use examples; then - insinto /usr/share/${PN}/ - doins -r examples || die - fi - - INPATH="$(python_get_sitedir)/${PN}" - - # generate pdb2pqr wrapper - cat >> "${T}"/${PN} <<-EOF - #!/bin/sh - $(PYTHON) ${INPATH}/${PN}.py \$* - EOF - - exeinto /usr/bin - doexe "${T}"/${PN} || die "Failed to install pdb2pqr wrapper." - - dodoc ChangeLog NEWS README AUTHORS || \ - die "Failed to install docs" - - insinto "${INPATH}" - doins __init__.py || \ - die "Setting up the pdb2pqr site-package failed." - - exeinto "${INPATH}" - doexe ${PN}.py || die "Installing pdb2pqr failed." - - insinto "${INPATH}"/dat - doins dat/* || die "Installing data failed." - - exeinto "${INPATH}"/extensions - doexe extensions/* || \ - die "Failed to install extensions." - - insinto "${INPATH}"/src - doins src/*.py || die "Installing of python scripts failed." - - exeinto "${INPATH}"/propka - doexe propka/_propkalib.so || \ - die "Failed to install propka." - - insinto "${INPATH}"/propka - doins propka/propkalib.py propka/__init__.py || \ - die "Failed to install propka." - - insinto "${INPATH}"/pdb2pka - doins pdb2pka/*.{py,so,DAT,h} || \ - die "Failed to install pdb2pka." - - insinto "${INPATH}"/pdb2pka/ - doins pdb2pka/*.{py,so,DAT,h} || \ - die "Failed to install pdb2pka." - -} diff --git a/sci-chemistry/pdb2pqr/pdb2pqr-1.5.0.ebuild b/sci-chemistry/pdb2pqr/pdb2pqr-1.5.0.ebuild deleted file mode 100644 index 72ee264d493e..000000000000 --- a/sci-chemistry/pdb2pqr/pdb2pqr-1.5.0.ebuild +++ /dev/null @@ -1,124 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pdb2pqr/pdb2pqr-1.5.0.ebuild,v 1.2 2010/06/15 12:46:05 arfrever Exp $ - -inherit eutils fortran multilib flag-o-matic distutils python versionator - -MY_PV=$(get_version_component_range 1-2) -MY_P="${PN}-${MY_PV}" - -DESCRIPTION="An automated pipeline for performing Poisson-Boltzmann electrostatics calculations" -LICENSE="BSD" -HOMEPAGE="http://pdb2pqr.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" - -SLOT="0" -IUSE="doc examples opal" -KEYWORDS="~amd64 ~x86" - -DEPEND="dev-lang/python - dev-python/numpy - opal? ( dev-python/zsi )" -RDEPEND="${DEPEND}" - -FORTRAN="g77 gfortran" - -S="${WORKDIR}/${MY_P}" - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${PN}-1.4.0-ldflags.patch - epatch "${FILESDIR}"/${PN}-1.4.0-automagic.patch - epatch "${FILESDIR}"/${PN}-1.4.0-install.patch - sed '50,200s:CWD:DESTDIR:g' -i Makefile.am \ - || die "Failed to fix Makefile.am" - eautoreconf -} - -src_compile() { - # we need to compile the *.so as pic - append-flags -fPIC - FFLAGS="${FFLAGS} -fPIC" - - # Avoid automagic to numeric - NUMPY="$(python_get_sitedir)" \ - F77="${FORTRANC}" \ - econf \ - $(use_with opal) || \ - die "econf failed" - emake || die "emake failed" -} - -src_test() { - emake -j1 test && \ - F77="${FORTRANC}" emake -j1 adv-test \ - || die "tests failed" -} - -src_install() { - dodir $(python_get_sitedir)/${PN} - emake -j1 DESTDIR="${D}$(python_get_sitedir)/${PN}" \ - PREFIX="" install || die "install failed" - - if use doc; then - cd doc - sh genpydoc.sh \ - || die "genpydoc failed" - dohtml -r *.html images pydoc \ - || die "failed to install html docs" - cd - - fi - - if use examples; then - insinto /usr/share/${PN}/ - doins -r examples || die "Failed to install examples." - fi - - INPATH="$(python_get_sitedir)/${PN}" - - # generate pdb2pqr wrapper - cat >> "${T}"/${PN} <<-EOF - #!/bin/sh - $(PYTHON) ${INPATH}/${PN}.py \$* - EOF - - exeinto /usr/bin - doexe "${T}"/${PN} || die "Failed to install pdb2pqr wrapper." - - dodoc ChangeLog NEWS README AUTHORS || \ - die "Failed to install docs" - - insinto "${INPATH}" - doins __init__.py || \ - die "Setting up the pdb2pqr site-package failed." - - exeinto "${INPATH}" - doexe ${PN}.py || die "Installing pdb2pqr failed." - - insinto "${INPATH}"/dat - doins dat/* || die "Installing data failed." - - exeinto "${INPATH}"/extensions - doexe extensions/* || \ - die "Failed to install extensions." - - insinto "${INPATH}"/src - doins src/*.py || die "Installing of python scripts failed." - - exeinto "${INPATH}"/propka - doexe propka/_propkalib.so || \ - die "Failed to install propka." - - insinto "${INPATH}"/propka - doins propka/propkalib.py propka/__init__.py || \ - die "Failed to install propka." - - insinto "${INPATH}"/pdb2pka - doins pdb2pka/*.{py,so,DAT,h} || \ - die "Failed to install pdb2pka." - - insinto "${INPATH}"/pdb2pka/ - doins pdb2pka/*.{py,so,DAT,h} || \ - die "Failed to install pdb2pka." -} diff --git a/sci-chemistry/pdb2pqr/pdb2pqr-1.7.0.ebuild b/sci-chemistry/pdb2pqr/pdb2pqr-1.7.0.ebuild new file mode 100644 index 000000000000..ec9873a2834e --- /dev/null +++ b/sci-chemistry/pdb2pqr/pdb2pqr-1.7.0.ebuild @@ -0,0 +1,141 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pdb2pqr/pdb2pqr-1.7.0.ebuild,v 1.1 2010/10/14 17:53:56 jlec Exp $ + +EAPI="3" + +SUPPORT_PYTHON_ABIS="1" +PYTHON_EXPORT_PHASE_FUNCTIONS="1" + +inherit eutils fortran multilib flag-o-matic distutils python versionator + +MY_PV=$(get_version_component_range 1-2) +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="An automated pipeline for performing Poisson-Boltzmann electrostatics calculations" +LICENSE="BSD" +HOMEPAGE="http://pdb2pqr.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +SLOT="0" +IUSE="doc examples opal" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" + +DEPEND=" + dev-python/numpy + sci-chemistry/openbabel + opal? ( dev-python/zsi )" +RDEPEND="${DEPEND}" +RESTRICT_PYTHON_ABIS="2.4 3.*" + +FORTRAN="g77 gfortran" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.4.0-ldflags.patch + epatch "${FILESDIR}"/${PN}-1.4.0-automagic.patch + epatch "${FILESDIR}"/${PV}-install.patch + sed '50,200s:CWD:DESTDIR:g' -i Makefile.am \ + || die "Failed to fix Makefile.am" + python_src_prepare + preparation() { + eautoreconf + } + python_execute_function -s preparation +} + +src_configure() { + # we need to compile the *.so as pic + append-flags -fPIC + FFLAGS="${FFLAGS} -fPIC" + + configuration() { + # Avoid automagic to numeric + NUMPY="${EPREFIX}/$(python_get_sitedir)" \ + F77="${FORTRANC}" \ + econf \ + $(use_with opal) || \ + die "econf failed" + } + python_execute_function -s configuration +} + +src_test() { + testing() { + emake -j1 test \ + || die "tests failed" + } + python_execute_function -s testing +} + +src_install() { + installation() { + dodir $(python_get_sitedir)/${PN} + emake -j1 DESTDIR="${ED}$(python_get_sitedir)/${PN}" \ + PREFIX="" install || die "install failed" + + INPATH="$(python_get_sitedir)/${PN}" + + # generate pdb2pqr wrapper + cat >> "${T}"/${PN}-$(python_get_version) <<-EOF + #!/bin/sh + $(PYTHON) ${EPREFIX}/${INPATH}/${PN}.py \$* + EOF + + dobin "${T}"/${PN}-$(python_get_version) || die "Failed to install pdb2pqr wrapper." + + insinto "${INPATH}" + doins __init__.py || \ + die "Setting up the pdb2pqr site-package failed." + + exeinto "${INPATH}" + doexe ${PN}.py || die "Installing pdb2pqr failed." + + insinto "${INPATH}"/dat + doins dat/* || die "Installing data failed." + + exeinto "${INPATH}"/extensions + doexe extensions/* || \ + die "Failed to install extensions." + + insinto "${INPATH}"/src + doins src/*.py || die "Installing of python scripts failed." + + exeinto "${INPATH}"/propka + doexe propka/_propkalib.so || \ + die "Failed to install propka." + + insinto "${INPATH}"/propka + doins propka/propkalib.py propka/__init__.py || \ + die "Failed to install propka." + + insinto "${INPATH}"/pdb2pka + doins pdb2pka/*.{py,so,DAT,h} || \ + die "Failed to install pdb2pka." + + insinto "${INPATH}"/pdb2pka/ + doins pdb2pka/*.{py,so,DAT,h} || \ + die "Failed to install pdb2pka." + } + python_execute_function -s installation + + dosym ${PN}-$(python_get_version -f) /usr/bin/${PN} + + if use doc; then + cd doc + sh genpydoc.sh \ + || die "genpydoc failed" + dohtml -r *.html images pydoc \ + || die "failed to install html docs" + cd - + fi + + if use examples; then + insinto /usr/share/${PN}/ + doins -r examples || die "Failed to install examples." + fi + + dodoc ChangeLog NEWS README AUTHORS || \ + die "Failed to install docs" +} |