You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
2.0 KiB
96 lines
2.0 KiB
7 years ago
|
# Copyright 1999-2017 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
7 years ago
|
EAPI=6
|
||
13 years ago
|
|
||
7 years ago
|
inherit fortran-2 toolchain-funcs
|
||
13 years ago
|
|
||
|
DESCRIPTION="Program suite in this distribution calculates restraint violations"
|
||
|
HOMEPAGE="http://www.biochem.ucl.ac.uk/~roman/procheck/procheck.html"
|
||
|
SRC_URI="
|
||
|
${PN}${PV}.tar.gz
|
||
|
doc? ( ${P}-nmr_manual.tar.gz )"
|
||
|
|
||
|
SLOT="0"
|
||
|
LICENSE="procheck"
|
||
12 years ago
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||
13 years ago
|
IUSE="doc examples"
|
||
|
|
||
12 years ago
|
RDEPEND="sci-chemistry/procheck"
|
||
7 years ago
|
DEPEND="app-shells/tcsh"
|
||
13 years ago
|
|
||
|
RESTRICT="fetch"
|
||
|
|
||
|
S="${WORKDIR}"/${PN}${PV}
|
||
|
|
||
7 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-flags.patch
|
||
|
)
|
||
|
|
||
13 years ago
|
pkg_nofetch() {
|
||
|
elog "Please visit http://www.ebi.ac.uk/thornton-srv/software/PROCHECK/download.html"
|
||
|
elog "And follow the instruction for downloading ${PN}${PV}.tar.gz -> ${DISTDIR}/${PN}${PV}.tar.gz."
|
||
|
if use doc; then
|
||
|
elog "nmr_manual.tar.gz -> ${DISTDIR}/${P}-nmr_manual.tar.gz"
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
src_prepare() {
|
||
|
sed \
|
||
|
-e 's:nawk:gawk:g' \
|
||
|
-e "s:/bin/gawk:${EPREFIX}/usr/bin/gawk:g" \
|
||
|
-e "s:/usr/local/bin/perl:${EPREFIX}/usr/bin/perl:g" \
|
||
|
-i $(find . -type f) || die
|
||
7 years ago
|
default
|
||
13 years ago
|
}
|
||
|
|
||
|
src_compile() {
|
||
7 years ago
|
cd src || die
|
||
13 years ago
|
emake \
|
||
|
MYROOT="${WORKDIR}" \
|
||
|
CC="$(tc-getCC)" \
|
||
|
FC="$(tc-getFC)" \
|
||
|
CFLAGS="${CFLAGS} -I../sub/lib" \
|
||
|
FFLAGS="${FFLAGS}" \
|
||
|
LDFLAGS="${LDFLAGS}" \
|
||
12 years ago
|
exth
|
||
13 years ago
|
emake \
|
||
|
MYROOT="${WORKDIR}" \
|
||
|
CC="$(tc-getCC)" \
|
||
|
FC="$(tc-getFC)" \
|
||
|
CFLAGS="${CFLAGS} -I../sub/lib" \
|
||
|
FFLAGS="${FFLAGS}" \
|
||
12 years ago
|
LDFLAGS="${LDFLAGS}"
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
rm -f scripts/conv* || die
|
||
12 years ago
|
dobin bin/* scripts/*
|
||
|
dosym AquaWhat /usr/bin/qwhat
|
||
|
dosym AquaHow /usr/bin/qhow
|
||
|
dosym AquaPseudo /usr/bin/qpseudo
|
||
|
dosym AquaDist /usr/bin/qdist
|
||
|
dosym AquaCalc /usr/bin/qcalc
|
||
|
dosym AquaAssign /usr/bin/qassign
|
||
|
dosym AquaRedun /usr/bin/qredun
|
||
|
dosym AquaCompl /usr/bin/qcompl
|
||
13 years ago
|
|
||
12 years ago
|
dodoc HISTORY HOW_TO_USE NEW README doc/*
|
||
|
dohtml html/*
|
||
13 years ago
|
|
||
|
insinto /usr/share/${PN}
|
||
12 years ago
|
doins data/*
|
||
13 years ago
|
if use examples; then
|
||
12 years ago
|
doins -r exmpls
|
||
13 years ago
|
fi
|
||
|
|
||
|
if use doc; then
|
||
12 years ago
|
dohtml -r manual
|
||
13 years ago
|
fi
|
||
|
|
||
|
cat >> "${T}"/34aqua <<- EOF
|
||
|
AQUADATADIR="${EPREFIX}/usr/share/${PN}"
|
||
|
EOF
|
||
12 years ago
|
doenvd "${T}"/34aqua
|
||
13 years ago
|
}
|