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 C4CA61387FD for ; Wed, 26 Mar 2014 07:59:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B2E63E0A8B; Wed, 26 Mar 2014 07:59:34 +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 096DCE0A8B for ; Wed, 26 Mar 2014 07:59:33 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D6EDB33FDBF for ; Wed, 26 Mar 2014 07:59:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 7F867188EF for ; Wed, 26 Mar 2014 07:59:31 +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: <1395820766.449645d3a0cf19fb66d1cfeaea85b301adc2b11a.jlec@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/specView/ X-VCS-Repository: proj/sci X-VCS-Files: sci-chemistry/specView/ChangeLog sci-chemistry/specView/specView-1.0.3_p2.ebuild X-VCS-Directories: sci-chemistry/specView/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 449645d3a0cf19fb66d1cfeaea85b301adc2b11a X-VCS-Branch: master Date: Wed, 26 Mar 2014 07:59:31 +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: a56c15b3-b4f5-42e5-b3c5-0df85abf1346 X-Archives-Hash: 7416fa862e99150d3b40602779186a9e commit: 449645d3a0cf19fb66d1cfeaea85b301adc2b11a Author: Justin Lecher gentoo org> AuthorDate: Wed Mar 26 07:39:09 2014 +0000 Commit: Justin Lecher gentoo org> CommitDate: Wed Mar 26 07:59:26 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=449645d3 sci-chemistry/specView: Version BUmp Package-Manager: portage-2.2.9-r1 --- sci-chemistry/specView/ChangeLog | 5 ++ sci-chemistry/specView/specView-1.0.3_p2.ebuild | 88 +++++++++++++++++++++++++ 2 files changed, 93 insertions(+) diff --git a/sci-chemistry/specView/ChangeLog b/sci-chemistry/specView/ChangeLog index 6fcf527..e7854b8 100644 --- a/sci-chemistry/specView/ChangeLog +++ b/sci-chemistry/specView/ChangeLog @@ -2,6 +2,11 @@ # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*specView-1.0.3_p2 (26 Mar 2014) + + 26 Mar 2014; Justin Lecher +specView-1.0.3_p2.ebuild: + Version BUmp + 08 Jan 2014; Justin Lecher specView-1.0.3.ebuild: Fix double prefix diff --git a/sci-chemistry/specView/specView-1.0.3_p2.ebuild b/sci-chemistry/specView/specView-1.0.3_p2.ebuild new file mode 100644 index 0000000..279a8fc --- /dev/null +++ b/sci-chemistry/specView/specView-1.0.3_p2.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7} ) + +inherit multilib python-single-r1 toolchain-funcs + +DESCRIPTION="Fast way to visualise NMR spectrum and peak data" +HOMEPAGE="http://www.ccpn.ac.uk/software/specview" +SRC_URI="http://www2.ccpn.ac.uk/download/ccpnmr/${PN}${PV/_p/r}.tar.gz" + +SLOT="0" +LICENSE="|| ( CCPN LGPL-2.1 )" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=" + dev-python/pyopengl[${PYTHON_USEDEP}] + dev-python/pyside[webkit,${PYTHON_USEDEP}]" +DEPEND="${RDEPEND}" + +S="${WORKDIR}"/ccpnmr/ccpnmr3.0/ + +#TODO: +#install in sane place +#unbundle data model +#unbundle inchi +#parallel build + +src_prepare() { + sed \ + -e "s|/usr|\"${EPREFIX}/usr\"|g" \ + -e "s|^\(CC =\).*|\1 $(tc-getCC)|g" \ + -e '/^MALLOC_FLAG/s:^:#:g' \ + -e "/^OPT_FLAG/s:=.*$:= ${CFLAGS}:g" \ + -e "/^LINK_FLAGS/s:$: ${LDFLAGS}:g" \ + -e "/^PYTHON_DIR/s:=.*:= \"${EPREFIX}/usr\":g" \ + -e "/^PYTHON_LIB/s:=.*:= $(python_get_LIBS):g" \ + -e "/^PYTHON_INCLUDE_FLAGS/s:=.*:= -I\"$(python_get_includedir)\" -I\"$(python_get_sitedir)/numpy/core/include/numpy\":g" \ + -e "/^PYTHON_LIB_FLAGS/s:=.*:= -L\"${EPREFIX}/usr/$(get_libdir)\":g" \ + -e "/^SHARED_FLAGS/s:=.*:= -shared:g" \ + -e "/^GL_DIR/s:=.*:= \"${EPREFIX}/usr/$(get_libdir)\":g" \ + -e "/^GL_INCLUDE_FLAGS/s:=.*:= -I\"${EPREFIX}/usr/include\":g" \ + -e "/^GL_LIB_FLAGS/s:=.*:= -L\"${EPREFIX}/usr/$(get_libdir)\":g" \ + cNg/environment_default.txt > cNg/environment.txt || die + echo "SHARED_LINK_PARM = ${LDFLAGS}" >> cNg/environment.txt || die + + rm -rf license || die + + sed \ + -e 's:ln -s:cp -f:g' \ + -i $(find python -name linkSharedObjs) || die +} + +src_compile() { + emake -C cNg all + emake -j1 -C cNg links +} + +src_install() { + local in_path=$(python_get_sitedir)/${PN} + local _file + + find . -name "*.pyc" -type f -delete + dodir /usr/bin + sed \ + -e "s|gentoo_sitedir|$(python_get_sitedir)|g" \ + -e "s|gentoolibdir|${EPREFIX}/usr/${libdir}|g" \ + -e "s|gentootk|${EPREFIX}/usr/${libdir}/tk${tkver}|g" \ + -e "s|gentootcl|${EPREFIX}/usr/${libdir}/tclk${tkver}|g" \ + -e "s|gentoopython|${PYTHON}|g" \ + -e "s|gentoousr|\"${EPREFIX}/usr\"|g" \ + -e "s|//|/|g" \ + "${FILESDIR}"/${PN} > "${ED}"/usr/bin/${PN} || die + fperms 755 /usr/bin/${PN} + + dodir "${in_path#${EPREFIX}}/cNg" + rm -rf cNg || die + + ebegin "Installing main files" + python_moduleinto ${PN} + python_domodule * + eend + python_optimize +}