aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sci-chemistry/phenix-bin/Manifest1
-rw-r--r--sci-chemistry/phenix-bin/phenix-bin-1.10.2155.ebuild121
2 files changed, 122 insertions, 0 deletions
diff --git a/sci-chemistry/phenix-bin/Manifest b/sci-chemistry/phenix-bin/Manifest
index 77a1a3acf..cf7678b76 100644
--- a/sci-chemistry/phenix-bin/Manifest
+++ b/sci-chemistry/phenix-bin/Manifest
@@ -1,2 +1,3 @@
+DIST phenix-installer-1.10-2155-intel-linux-2.6-x86_64-centos6.tar.gz 1015212195 SHA256 1b8b0f6b079d51c772d5d66dc03c5e4ca6af91183e60461af7c2b447c6fe17ca SHA512 c08e887550b88ae83f89c422fb775bcde0333e1e4b8aee94fb0113290ccc19f748755ea847bfe9477dd76d1c52d68bac4ab663564a2dd7718448f92e4c162012 WHIRLPOOL 17a826a6f5f1410703922f27169134e4db58ef767a25c2bb717184bb92b1a0ac1e2d926bfe209fe0a98ed12794e6a11fceb4a79384622fa7ebdb18b32af70e7a
DIST phenix-installer-1.9-1692-intel-linux-2.6-centos5.tar 752517120 SHA256 c0e0a84d10d3e6e73f56ac96d70ba0122410a2bda64cb53783eb3a10abe4c7ea SHA512 4167f266ad6de3b2a1d75814ce6bc273cd62fb175119985130fc8385b70eeb94ceb31b12d516e3e91f56a920d52928d80e402fd38c6bbf5e80399ea85f2d7175 WHIRLPOOL 97aa0d08aa1467615508c96f0d21d948539cd3a77d647557f701b00780ab4d65b2e72d83ed344fb8268207f20c32eaa49e5e146d97335354f149ed6eebd44f6f
DIST phenix-installer-1.9-1692-intel-linux-2.6-x86_64-fc12.tar 761077760 SHA256 124fc96fdacbffe11bd5f919e5e4e20297d77003bb868b1760e746f291c733e1 SHA512 8706e4050e4cb85570afe32d087384d939764e394a50bca4338345172fd3ae241d79b348aa36163c8c7fdd3d81f3ff330100467a51ea0f5db21efd6d81b3033b WHIRLPOOL 397b0b1a4f8e9015ad965bf820221fbf8498306c3fa86405655d659eb3d8c470ea2c76491fca65f8e0bec93362ee73881efb700a1e2e421d5d2f117fa5325b8f
diff --git a/sci-chemistry/phenix-bin/phenix-bin-1.10.2155.ebuild b/sci-chemistry/phenix-bin/phenix-bin-1.10.2155.ebuild
new file mode 100644
index 000000000..9b5e81149
--- /dev/null
+++ b/sci-chemistry/phenix-bin/phenix-bin-1.10.2155.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+WX_GTK_VER=2.8
+
+inherit multilib python-single-r1 versionator wxwidgets
+
+MY_PV="$(replace_version_separator 2 -)"
+MY_P="phenix-installer-${MY_PV}"
+
+DESCRIPTION="Python-based Hierarchical ENvironment for Integrated Xtallography"
+HOMEPAGE="http://phenix-online.org/"
+SRC_URI="${MY_P}-intel-linux-2.6-x86_64-centos6.tar.gz"
+
+SLOT="0"
+LICENSE="phenix"
+KEYWORDS="~amd64 ~amd64-linux"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ app-arch/bzip2
+ dev-db/sqlite:3
+ dev-libs/atk
+ dev-libs/boost
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/openssl
+ media-gfx/nvidia-cg-toolkit
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/libpng:1.2
+ sys-libs/db:4.7
+ sys-libs/gdbm
+ || (
+ sys-libs/ncurses:0/5[tinfo]
+ sys-libs/ncurses:5/5[tinfo]
+ )
+ sys-libs/readline
+ virtual/glu
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf:2
+ x11-libs/gtk+:2
+ x11-libs/pango
+ x11-libs/pixman
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXcursor
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXft
+ x11-libs/libXinerama
+ x11-libs/libXi
+ x11-libs/libXmu
+ x11-libs/libXrandr
+ x11-libs/libXrender
+ x11-libs/libXxf86vm
+ x11-libs/wxGTK:${WX_GTK_VER}[X]
+ sys-libs/zlib
+ virtual/jpeg:62"
+DEPEND="${PYTHON_DEPS}"
+
+RESTRICT="fetch"
+
+QA_PREBUILT="opt/phenix-${MY_PV}/.*"
+
+S="${WORKDIR}"/${MY_P}-intel-linux-2.6-x86_64-centos6/
+
+pkg_nofetch() {
+ elog "Please visit"
+ elog "http://www.phenix-online.org/phenix_request/index.cgi"
+ elog "and request a download password. With that done,"
+ elog "visit http://www.phenix-online.org/download/phenix/release"
+ elog "and download version \"Kernel 2.6 (64-bit; Fedora 12)\" (${A})"
+ elog "into ${DISTDIR}"
+}
+
+src_prepare() {
+ cat > "${S}/bin/machine_type" <<-EOF
+ #!${EPREFIX}/bin/sh
+ echo intel-linux-2.6-x86_64
+ exit 0
+ EOF
+}
+
+src_compile() {
+ LD_LIBRARY_PATH="${EPREFIX}/usr/$(get_libdir)" ./install --prefix="${S}/foo" || die
+}
+
+src_install() {
+ sed \
+ -e "s:${S}/foo:${EPREFIX}/opt:g" \
+ -i \
+ foo/phenix-${MY_PV}/build/*_env \
+ foo/phenix-${MY_PV}/build/*sh \
+ foo/phenix-${MY_PV}/build/bin/* \
+ foo/phenix-${MY_PV}/base/etc/{gtk*,pango}/* \
+ foo/phenix-${MY_PV}/phenix_env* \
+ || die
+
+ dodir /opt
+ mv "${S}/foo/phenix-${MY_PV}" "${ED}/opt/" || die
+
+ cat >> phenix <<- EOF
+ #!${EPREFIX}/bin/bash
+
+ source "${EPREFIX}/opt/phenix-${MY_PV}/phenix_env.sh"
+ export LD_LIBRARY_PATH="${EPREFIX}/usr/$(get_libdir)"
+ exec phenix
+ EOF
+ dobin phenix
+
+ python_fix_shebang "${ED}"/opt
+ python_optimize "${ED}"/opt
+}