diff options
author | Justin Lecher <jlec@gentoo.org> | 2010-03-20 18:07:37 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2010-03-20 18:07:37 +0000 |
commit | 8a0bcd15d2744bd2377f91b5d76ec8d961167935 (patch) | |
tree | 4cd0d0118c75cf5347681bce1000c96d33a15d77 /sci-chemistry/arp-warp-bin/arp-warp-bin-7.1.ebuild | |
parent | Removing entries for app-misc/t-misc/noarp x11-wm/aewm++-goodies because they... (diff) | |
download | gentoo-2-8a0bcd15d2744bd2377f91b5d76ec8d961167935.tar.gz gentoo-2-8a0bcd15d2744bd2377f91b5d76ec8d961167935.tar.bz2 gentoo-2-8a0bcd15d2744bd2377f91b5d76ec8d961167935.zip |
Version bump per 309845
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sci-chemistry/arp-warp-bin/arp-warp-bin-7.1.ebuild')
-rw-r--r-- | sci-chemistry/arp-warp-bin/arp-warp-bin-7.1.ebuild | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/sci-chemistry/arp-warp-bin/arp-warp-bin-7.1.ebuild b/sci-chemistry/arp-warp-bin/arp-warp-bin-7.1.ebuild new file mode 100644 index 000000000000..71cdfa661944 --- /dev/null +++ b/sci-chemistry/arp-warp-bin/arp-warp-bin-7.1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/arp-warp-bin/arp-warp-bin-7.1.ebuild,v 1.1 2010/03/20 18:07:35 jlec Exp $ + +EAPI="3" + +PYTHON_DEPEND="2" + +inherit eutils prefix python + +MY_P="arp_warp_${PV}" + +DESCRIPTION="ARP/wARP is a software for improvement and interpretation of crystallographic electron density maps" +SRC_URI="${MY_P}.tar.gz" +HOMEPAGE="http://www.embl-hamburg.de/ARP/" + +LICENSE="ArpWarp" +RESTRICT="fetch" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="" + +RDEPEND=" + app-shells/tcsh + >=sci-chemistry/ccp4-6.1.3 + sys-apps/gawk + virtual/jre + virtual/opengl + x11-libs/libX11" +DEPEND="" + +S="${WORKDIR}/${MY_P}" + +pkg_nofetch(){ + elog "Fill out the form at http://www.embl-hamburg.de/ARP/" + elog "and place ${A} in ${DISTDIR}" +} + +src_prepare() { + epatch "${FILESDIR}"/${PV}-setup.patch + eprefixify "${S}"/share/arpwarp_setup_base.* +} + +src_install(){ + PYVER=$(python_get_version) + m_type=$(uname -m) + os_type=$(uname) + + insinto /opt/${PN}/byte-code/python-${PYVER} + doins "${S}"/flex-wARP-src-354/*py + + exeinto /opt/${PN}/bin/bin-${m_type}-${os_type} + doexe "${S}"/bin/bin-${m_type}-${os_type}/* && \ + doexe "${S}"/share/*sh || die + + insinto /opt/${PN}/bin/bin-${m_type}-${os_type} + doins "${S}"/share/*{gif,bmp,XYZ,bash,csh,dat,lib,tbl,llh} || die + + insinto /etc/profile.d/ + newins "${S}"/share/arpwarp_setup_base.csh 90arpwarp_setup.csh && \ + newins "${S}"/share/arpwarp_setup_base.bash 90arpwarp_setup.sh || die + + dodoc "${S}"/README manual/UserGuide${PV}.pdf || die + dohtml -r "${S}"/manual/html/* || die +} + +pkg_postinst(){ + python_need_rebuild + python_mod_optimize "${EROOT}"/opt/${PN}/byte-code/python-${PYVER} + + testcommand=$(echo 3 2 | awk '{printf"%3.1f",$1/$2}') + if [ $testcommand == "1,5" ];then + ewarn "*** ERROR ***" + ewarn " 3/2=" $testcommand + ewarn "Invalid decimal separator (must be ".")" + ewarn "You need to set this correctly!!!" + ewarn + ewarn "One way of setting the decimal separator is:" + ewarn "setenv LC_NUMERIC C' in your .cshrc file" + ewarn "\tor" + ewarn "export LC_NUMERIC=C' in your .bashrc file" + ewarn "Otherwise please consult your system manager" + epause 10 + fi + + grep -q sse2 /proc/cpuinfo || einfo "The CPU is lacking SSE2! You should use the cluster at EMBL-Hamburg." + einfo +} + +pkg_postrm() { + python_mod_cleanup "${EROOT}"/opt/${PN}/byte-code/python-${PYVER} +} |