summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-07-18 18:16:27 +0000
committerJustin Lecher <jlec@gentoo.org>2010-07-18 18:16:27 +0000
commit98ec5bf5157445ede4b4abdf7210dc801a2002dd (patch)
treec05b611d1cdb57ecfc7b29053d291e6970561610 /sci-chemistry
parentprocheck license added (diff)
downloadgentoo-2-98ec5bf5157445ede4b4abdf7210dc801a2002dd.tar.gz
gentoo-2-98ec5bf5157445ede4b4abdf7210dc801a2002dd.tar.bz2
gentoo-2-98ec5bf5157445ede4b4abdf7210dc801a2002dd.zip
New Addition
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sci-chemistry')
-rw-r--r--sci-chemistry/procheck/ChangeLog10
-rw-r--r--sci-chemistry/procheck/files/3.5.4-ldflags.patch49
-rw-r--r--sci-chemistry/procheck/metadata.xml10
-rw-r--r--sci-chemistry/procheck/procheck-3.5.4.ebuild93
4 files changed, 162 insertions, 0 deletions
diff --git a/sci-chemistry/procheck/ChangeLog b/sci-chemistry/procheck/ChangeLog
new file mode 100644
index 000000000000..57e0e2ff68b2
--- /dev/null
+++ b/sci-chemistry/procheck/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-chemistry/procheck
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/procheck/ChangeLog,v 1.1 2010/07/18 18:16:27 jlec Exp $
+
+*procheck-3.5.4 (18 Jul 2010)
+
+ 18 Jul 2010; Justin Lecher <jlec@gentoo.org> +files/3.5.4-ldflags.patch,
+ +procheck-3.5.4.ebuild, +metadata.xml:
+ New Addition
+
diff --git a/sci-chemistry/procheck/files/3.5.4-ldflags.patch b/sci-chemistry/procheck/files/3.5.4-ldflags.patch
new file mode 100644
index 000000000000..453aebe3211f
--- /dev/null
+++ b/sci-chemistry/procheck/files/3.5.4-ldflags.patch
@@ -0,0 +1,49 @@
+diff --git a/Makefile b/Makefile
+index c5bb58f..0394b0a 100644
+--- a/Makefile
++++ b/Makefile
+@@ -35,31 +35,31 @@ distrib :
+ # Individual executables
+ # ----------------------
+ anglen : anglen.o
+- $(F77) $(FOPTS) -o $@ anglen.o
++ $(F77) $(FOPTS) $(LDFLAGS) -o $@ anglen.o
+ clean : clean.o
+- $(F77) $(FOPTS) -o $@ clean.o
++ $(F77) $(FOPTS) $(LDFLAGS) -o $@ clean.o
+ rmsdev : rmsdev.o
+- $(F77) $(FOPTS) -o $@ rmsdev.o
++ $(F77) $(FOPTS) $(LDFLAGS) -o $@ rmsdev.o
+ secstr : secstr.o
+- $(F77) $(FOPTS) -o $@ secstr.o
++ $(F77) $(FOPTS) $(LDFLAGS) -o $@ secstr.o
+ gfac2pdb : gfac2pdb.o ps.o
+- $(F77) $(FOPTS) -o $@ gfac2pdb.o ps.o
++ $(F77) $(FOPTS) $(LDFLAGS) -o $@ gfac2pdb.o ps.o
+ pplot : pplot.o ps.o
+- $(F77) $(FOPTS) -o $@ pplot.o ps.o
++ $(F77) $(FOPTS) $(LDFLAGS) -o $@ pplot.o ps.o
+ bplot : bplot.o ps.o
+- $(F77) $(FOPTS) -o $@ bplot.o ps.o
++ $(F77) $(FOPTS) $(LDFLAGS) -o $@ bplot.o ps.o
+ tplot : tplot.o ps.o
+- $(F77) $(FOPTS) -o $@ tplot.o ps.o
++ $(F77) $(FOPTS) $(LDFLAGS) -o $@ tplot.o ps.o
+ mplot : mplot.o ps.o
+- $(F77) $(FOPTS) -o $@ mplot.o ps.o
++ $(F77) $(FOPTS) $(LDFLAGS) -o $@ mplot.o ps.o
+ vplot : vplot.o ps.o
+- $(F77) $(FOPTS) -o $@ vplot.o ps.o
++ $(F77) $(FOPTS) $(LDFLAGS) -o $@ vplot.o ps.o
+ viol2pdb : viol2pdb.o ps.o
+- $(F77) $(FOPTS) -o $@ viol2pdb.o ps.o
++ $(F77) $(FOPTS) $(LDFLAGS) -o $@ viol2pdb.o ps.o
+ wirplot : wirplot.o ps.o
+- $(F77) $(FOPTS) -o $@ wirplot.o ps.o
++ $(F77) $(FOPTS) $(LDFLAGS) -o $@ wirplot.o ps.o
+ nb : nb.c
+- $(CC) $(COPTS) -o nb nb.c $(CLIBS)
++ $(CC) $(COPTS) $(LDFLAGS) -o nb nb.c $(CLIBS)
+
+ # Individual rules for FORTRAN files with .inc files
+ # --------------------------------------------------
diff --git a/sci-chemistry/procheck/metadata.xml b/sci-chemistry/procheck/metadata.xml
new file mode 100644
index 000000000000..8487320ca2a0
--- /dev/null
+++ b/sci-chemistry/procheck/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <maintainer>
+ <email>jlec@gentoo.org</email>
+ <name>Justin Lecher</name>
+ </maintainer>
+</pkgmetadata>
+
diff --git a/sci-chemistry/procheck/procheck-3.5.4.ebuild b/sci-chemistry/procheck/procheck-3.5.4.ebuild
new file mode 100644
index 000000000000..303bbb70768b
--- /dev/null
+++ b/sci-chemistry/procheck/procheck-3.5.4.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/procheck/procheck-3.5.4.ebuild,v 1.1 2010/07/18 18:16:27 jlec Exp $
+
+EAPI="3"
+
+inherit eutils fortran toolchain-funcs versionator
+
+DESCRIPTION="Checks the stereochemical quality of a protein structure"
+HOMEPAGE="http://www.biochem.ucl.ac.uk/~roman/procheck/procheck.html"
+SRC_URI="
+ http://www.ebi.ac.uk/systems-srv/mp/file-exchange/${PN}.tar.gz?fno=2874 -> ${P}.tar.gz
+ http://www.ebi.ac.uk/systems-srv/mp/file-exchange/README?fno=2566 -> ${P}-README
+ doc? (
+ http://www.ebi.ac.uk/systems-srv/mp/file-exchange/manual.tar.gz?fno=2568 -> ${P}-manual.tar.gz )"
+
+LICENSE="procheck"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc"
+
+RDEPEND="app-shells/tcsh"
+DEPEND="${RDEPEND}"
+
+RESTRICT="fetch"
+
+S="${WORKDIR}/${PN}"
+
+FORTRAN="gfortran g77"
+
+pkg_nofetch() {
+ elog "Please visit http://www.ebi.ac.uk/thornton-srv/software/PROCHECK/download.html"
+ elog "And follow the instruction for downloading."
+ elog "Files should be stored in following way"
+ elog "${PN}.tar.gz -> ${DISTDIR}/${P}.tar.gz"
+ elog "README -> ${DISTDIR}/${P}-README"
+ if use doc; then
+ elog "manual.tar.gz -> ${DISTDIR}/${P}-manual.tar.gz"
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-ldflags.patch
+}
+
+src_compile() {
+ emake \
+ F77=${FORTRANC} \
+ CC=$(tc-getCC) \
+ COPTS="${CFLAGS}" \
+ FOPTS="${FFLAGS}" \
+ || die "emake failed"
+}
+
+src_install() {
+ for i in *.scr; do
+ newbin ${i} ${i%.scr} || die
+ done
+
+ exeinto /usr/$(get_libdir)/${PN}/
+ doexe \
+ anglen \
+ clean \
+ rmsdev \
+ secstr \
+ gfac2pdb \
+ pplot \
+ bplot \
+ tplot \
+ mplot \
+ vplot \
+ viol2pdb \
+ wirplot \
+ nb || die
+ dodoc "${DISTDIR}"/${P}-README || die
+
+ insinto /usr/$(get_libdir)/${PN}/
+ doins *.dat *.prm || die
+ newins resdefs.dat resdefs.data || die
+
+ cat >> "${T}"/30${PN} <<- EOF
+ prodir="${EPREFIX}/usr/$(get_libdir)/${PN}/"
+ EOF
+
+ insinto /etx/profile.d/
+ doins "${T}"/30${PN} || die
+
+ if use doc; then
+ pushd "${WORKDIR}"
+ dohtml -r manual || die
+ popd
+ fi
+}