From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 53E2D138448 for ; Wed, 9 Sep 2015 07:11:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DEA7AE08BB; Wed, 9 Sep 2015 07:11:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0D4D3E08BA for ; Wed, 9 Sep 2015 07:11:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7CB7B34074E for ; Wed, 9 Sep 2015 07:11:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A31C8196 for ; Wed, 9 Sep 2015 07:11:07 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1441782440.e45b55477b4618f913798c79cd7ab47ef27cdeed.jlec@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/phenix-bin/ X-VCS-Repository: proj/sci X-VCS-Files: sci-chemistry/phenix-bin/phenix-bin-1.10.2155.ebuild X-VCS-Directories: sci-chemistry/phenix-bin/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: e45b55477b4618f913798c79cd7ab47ef27cdeed X-VCS-Branch: master Date: Wed, 9 Sep 2015 07:11:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9be98221-068c-4e38-ac4f-38e428c7023c X-Archives-Hash: b40fc9c3f6583cfe89f0576ede5df2a8 commit: e45b55477b4618f913798c79cd7ab47ef27cdeed Author: Justin Lecher gentoo org> AuthorDate: Wed Sep 9 07:07:20 2015 +0000 Commit: Justin Lecher gentoo org> CommitDate: Wed Sep 9 07:07:20 2015 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=e45b5547 sci-chemistry/phenix-bin: Version Bump Package-Manager: portage-2.2.20.1 Signed-off-by: Justin Lecher gentoo.org> .../phenix-bin/phenix-bin-1.10.2155.ebuild | 121 +++++++++++++++++++++ 1 file changed, 121 insertions(+) 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 0000000..9b5e811 --- /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 +}