From 236f4cc72a29da1b7bcc4422cb0206aa20116f7e Mon Sep 17 00:00:00 2001 From: Justin Lecher Date: Fri, 29 Nov 2013 09:14:58 +0000 Subject: sci-chemistry/relax: Fix icons (Portage version: 2.2.7/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key B9D4F231BD1558AB!) --- sci-chemistry/relax/ChangeLog | 8 ++- sci-chemistry/relax/relax-3.1.0-r1.ebuild | 84 +++++++++++++++++++++++++++++++ sci-chemistry/relax/relax-3.1.0.ebuild | 69 ------------------------- 3 files changed, 91 insertions(+), 70 deletions(-) create mode 100644 sci-chemistry/relax/relax-3.1.0-r1.ebuild delete mode 100644 sci-chemistry/relax/relax-3.1.0.ebuild (limited to 'sci-chemistry') diff --git a/sci-chemistry/relax/ChangeLog b/sci-chemistry/relax/ChangeLog index 2fd134f6d94d..b8edf91fe9b6 100644 --- a/sci-chemistry/relax/ChangeLog +++ b/sci-chemistry/relax/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sci-chemistry/relax # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/relax/ChangeLog,v 1.11 2013/11/29 08:38:42 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/relax/ChangeLog,v 1.12 2013/11/29 09:14:58 jlec Exp $ + +*relax-3.1.0-r1 (29 Nov 2013) + + 29 Nov 2013; Justin Lecher -relax-3.1.0.ebuild, + +relax-3.1.0-r1.ebuild: + Fix icons *relax-3.1.0 (29 Nov 2013) diff --git a/sci-chemistry/relax/relax-3.1.0-r1.ebuild b/sci-chemistry/relax/relax-3.1.0-r1.ebuild new file mode 100644 index 000000000000..355ce100f4b9 --- /dev/null +++ b/sci-chemistry/relax/relax-3.1.0-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/relax/relax-3.1.0-r1.ebuild,v 1.1 2013/11/29 09:14:58 jlec Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +WX_GTK_VER="2.9" + +inherit eutils multiprocessing python-single-r1 scons-utils toolchain-funcs wxwidgets virtualx + +DESCRIPTION="Molecular dynamics by NMR data analysis" +HOMEPAGE="http://www.nmr-relax.com/" +SRC_URI="http://download.gna.org/relax/${P}.src.tar.bz2" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/wxpython:${WX_GTK_VER}[${PYTHON_USEDEP}] + sci-chemistry/molmol + sci-chemistry/pymol[${PYTHON_USEDEP}] + sci-chemistry/vmd + >=sci-libs/bmrblib-1.0.1_pre198[${PYTHON_USEDEP}] + >=sci-libs/minfx-1.0.4_pre98[${PYTHON_USEDEP}] + sci-libs/scipy[${PYTHON_USEDEP}] + sci-visualization/grace + sci-visualization/opendx + x11-libs/wxGTK:${WX_GTK_VER}[X]" +DEPEND="${RDEPEND} + media-gfx/pngcrush" + +pkg_setup() { + python-single-r1_pkg_setup +} + +fix_png() { + pngcrush -q -fix -force ${1} ${1}-fixed &>/dev/null || die + mv ${1}-fixed ${1} || die + echo -e ".\c" +} +src_prepare() { + local png + rm -rf minfx bmrblib || die + epatch \ + "${FILESDIR}"/${PN}-3.0.1-gentoo.patch \ + "${FILESDIR}"/${P}-sample-script.patch + tc-export CC + + ebegin "Fixing png files" + multijob_init + for png in $(find -type f -name "*.png"); do + multijob_child_init fix_png ${png} + done + multijob_finish + eend +} + +src_compile() { + escons +} + +src_test() { + VIRTUALX_COMMAND="${EPYTHON}" + virtualmake ./${PN}.py -x || die +} + +src_install() { + dodoc README docs/{CHANGES,COMMITTERS,JOBS,relax.pdf,prompt_screenshot.txt} + + python_moduleinto ${PN} + python_domodule * + + rm ${PN} README || die + + make_wrapper ${PN}-nmr "${EPYTHON} $(python_get_sitedir)/${PN}/${PN}.py $@" +} diff --git a/sci-chemistry/relax/relax-3.1.0.ebuild b/sci-chemistry/relax/relax-3.1.0.ebuild deleted file mode 100644 index f8dde3d0958c..000000000000 --- a/sci-chemistry/relax/relax-3.1.0.ebuild +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/relax/relax-3.1.0.ebuild,v 1.1 2013/11/29 08:38:42 jlec Exp $ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 ) - -WX_GTK_VER="2.9" - -inherit eutils python-single-r1 scons-utils toolchain-funcs wxwidgets virtualx - -DESCRIPTION="Molecular dynamics by NMR data analysis" -HOMEPAGE="http://www.nmr-relax.com/" -SRC_URI="http://download.gna.org/relax/${P}.src.tar.bz2" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="" - -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -RDEPEND=" - ${PYTHON_DEPS} - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/wxpython:${WX_GTK_VER}[${PYTHON_USEDEP}] - sci-chemistry/molmol - sci-chemistry/pymol[${PYTHON_USEDEP}] - sci-chemistry/vmd - >=sci-libs/bmrblib-1.0.1_pre198[${PYTHON_USEDEP}] - >=sci-libs/minfx-1.0.4_pre98[${PYTHON_USEDEP}] - sci-libs/scipy[${PYTHON_USEDEP}] - sci-visualization/grace - sci-visualization/opendx - x11-libs/wxGTK:${WX_GTK_VER}[X]" -DEPEND="${RDEPEND}" - -pkg_setup() { - python-single-r1_pkg_setup -} - -src_prepare() { - rm -rf minfx bmrblib || die - epatch \ - "${FILESDIR}"/${PN}-3.0.1-gentoo.patch \ - "${FILESDIR}"/${P}-sample-script.patch - tc-export CC -} - -src_compile() { - escons -} - -src_test() { - VIRTUALX_COMMAND="${EPYTHON}" - virtualmake ./${PN}.py -x || die -} - -src_install() { - dodoc README docs/{CHANGES,COMMITTERS,JOBS,relax.pdf,prompt_screenshot.txt} - - python_moduleinto ${PN} - python_domodule * - - rm ${PN} README || die - - make_wrapper ${PN}-nmr "${EPYTHON} $(python_get_sitedir)/${PN}/${PN}.py $@" -} -- cgit v1.2.3-65-gdbad