diff options
author | Justin Lecher <jlec@gentoo.org> | 2010-05-18 11:43:46 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2010-05-18 11:43:46 +0000 |
commit | 74975d8382bce4a08b01d7bdb8cba6e5143741c4 (patch) | |
tree | 0959d86911a1dff0bb70d15e67c2115838eb96e0 /sci-chemistry | |
parent | With USE=test, depend on app-emacs/htmlize. Fixes bug 320361. (diff) | |
download | gentoo-2-74975d8382bce4a08b01d7bdb8cba6e5143741c4.tar.gz gentoo-2-74975d8382bce4a08b01d7bdb8cba6e5143741c4.tar.bz2 gentoo-2-74975d8382bce4a08b01d7bdb8cba6e5143741c4.zip |
Initial addition of sci-chemistry/autodock_vina
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sci-chemistry')
-rw-r--r-- | sci-chemistry/autodock_vina/ChangeLog | 10 | ||||
-rw-r--r-- | sci-chemistry/autodock_vina/autodock_vina-1.1.1.ebuild | 43 | ||||
-rw-r--r-- | sci-chemistry/autodock_vina/files/1.1.1-gentoo.patch | 49 | ||||
-rw-r--r-- | sci-chemistry/autodock_vina/metadata.xml | 28 |
4 files changed, 130 insertions, 0 deletions
diff --git a/sci-chemistry/autodock_vina/ChangeLog b/sci-chemistry/autodock_vina/ChangeLog new file mode 100644 index 000000000000..d406ca5ace75 --- /dev/null +++ b/sci-chemistry/autodock_vina/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sci-chemistry/autodock_vina +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/autodock_vina/ChangeLog,v 1.1 2010/05/18 11:43:46 jlec Exp $ + +*autodock_vina-1.1.1 (18 May 2010) + + 18 May 2010; Justin Lecher <jlec@gentoo.org> +files/1.1.1-gentoo.patch, + +autodock_vina-1.1.1.ebuild, +metadata.xml: + Initial addition + diff --git a/sci-chemistry/autodock_vina/autodock_vina-1.1.1.ebuild b/sci-chemistry/autodock_vina/autodock_vina-1.1.1.ebuild new file mode 100644 index 000000000000..dfc1fa98263c --- /dev/null +++ b/sci-chemistry/autodock_vina/autodock_vina-1.1.1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/autodock_vina/autodock_vina-1.1.1.ebuild,v 1.1 2010/05/18 11:43:46 jlec Exp $ + +EAPI="3" + +inherit eutils flag-o-matic versionator + +MY_P="${PN}_$(replace_all_version_separators _)" + +DESCRIPTION="Program for drug discovery, molecular docking and virtual screening" +HOMEPAGE="http://vina.scripps.edu/" +SRC_URI="http://vina.scripps.edu/download/${MY_P}.tgz" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +LICENSE="Apache-2.0" +IUSE="debug" + +RDEPEND="dev-libs/boost" +DEPEND="${RDEPEND}" + +S="${WORKDIR}"/${MY_P}/build/linux/release + +src_prepare() { + cd "${WORKDIR}"/${MY_P} && epatch "${FILESDIR}"/${PV}-gentoo.patch +} + +src_compile() { + local c_options + + use debug || c_options="-DNDEBUG" + + emake \ + BASE="${EPREFIX}"/usr/ \ + GPP="$(tc-getCXX)" \ + C_OPTIONS="${c_options}" \ + || die +} + +src_install() { + dobin vina{,_split} || die +} diff --git a/sci-chemistry/autodock_vina/files/1.1.1-gentoo.patch b/sci-chemistry/autodock_vina/files/1.1.1-gentoo.patch new file mode 100644 index 000000000000..5b24b4cbc488 --- /dev/null +++ b/sci-chemistry/autodock_vina/files/1.1.1-gentoo.patch @@ -0,0 +1,49 @@ +diff --git a/build/linux/debug/Makefile b/build/linux/debug/Makefile +index d2c2d3b..d1f02e5 100644 +--- a/build/linux/debug/Makefile ++++ b/build/linux/debug/Makefile +@@ -1,6 +1,6 @@ + BASE=/usr/local + BOOST_VERSION=1_41 +-C_PLATFORM=-static-libgcc -pthread ++C_PLATFORM=-pthread + GPP=/usr/bin/g++ + C_OPTIONS= -g + BOOST_LIB_VERSION= +diff --git a/build/linux/release/Makefile b/build/linux/release/Makefile +index bfbcc1e..c9fd630 100644 +--- a/build/linux/release/Makefile ++++ b/build/linux/release/Makefile +@@ -1,6 +1,6 @@ + BASE=/usr/local + BOOST_VERSION=1_41 +-C_PLATFORM=-static-libgcc -pthread ++C_PLATFORM=-pthread + GPP=/usr/bin/g++ + C_OPTIONS= -O3 -DNDEBUG + BOOST_LIB_VERSION= +diff --git a/build/makefile_common b/build/makefile_common +index 885935c..4d5eb0f 100644 +--- a/build/makefile_common ++++ b/build/makefile_common +@@ -1,16 +1,16 @@ +-BOOST_INCLUDE = $(BASE)/include/boost-${BOOST_VERSION} ++BOOST_INCLUDE = $(BASE)/include/boost + + LIBOBJ = cache.o coords.o current_weights.o everything.o grid.o szv_grid.o manifold.o model.o monte_carlo.o mutate.o my_pid.o naive_non_cache.o non_cache.o parallel_mc.o parse_pdbqt.o pdb.o quasi_newton.o quaternion.o random.o ssd.o terms.o weighted_terms.o + MAINOBJ = main.o + SPLITOBJ = split.o + +-INCFLAGS = -I $(BOOST_INCLUDE) ++INCFLAGS = -I$(BOOST_INCLUDE) + + CC = ${GPP} ${C_PLATFORM} -ansi -pedantic -Wno-long-long ${C_OPTIONS} $(INCFLAGS) + +-LDFLAGS = -L$(BASE)/lib -L. ++LDFLAGS += -L. + +-LIBS = -l boost_system${BOOST_LIB_VERSION} -l boost_thread${BOOST_LIB_VERSION} -l boost_serialization${BOOST_LIB_VERSION} -l boost_filesystem${BOOST_LIB_VERSION} -l boost_program_options${BOOST_LIB_VERSION}#-l pthread ++LIBS = -lboost_system -lboost_thread -lboost_serialization -lboost_filesystem -lboost_program_options -lpthread + + .SUFFIXES: .cpp .o + diff --git a/sci-chemistry/autodock_vina/metadata.xml b/sci-chemistry/autodock_vina/metadata.xml new file mode 100644 index 000000000000..a5594d2c6825 --- /dev/null +++ b/sci-chemistry/autodock_vina/metadata.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<pkgmetadata> +<herd>sci-chemistry</herd> +<maintainer> + <email>jlec@gentoo.org</email> +</maintainer> +<longdescription> +AutoDock Vina is a new open-source program for drug discovery, molecular +docking and virtual screening, offering multi-core capability, high +performance and enhanced accuracy and ease of use. [1] +AutoDock Vina has been designed and implemented by Dr. Oleg Trott +in the Molecular Graphics Lab at The Scripps Research Institute. +If you used AutoDock Vina in your work, please cite: +O. Trott, A. J. Olson, AutoDock Vina: improving the speed and accuracy +of docking with a new scoring function, efficient optimization and +multithreading +Journal of Computational Chemistry 31 (2010) 455-461 +</longdescription> +<!-- +<use> + <flag name='flag'>Description of how USE='flag' affects this package</flag> + <flag name='userland_GNU'>Description of how USERLAND='GNU' affects this + package</flag> + <flag name='aspell'>Uses <pkg>app-text/aspell</pkg> for spell checking. + Requires an installed dictionary from <cat>app-dicts</cat></flag> +</use> +--> +</pkgmetadata> |