summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <dberkholz@gentoo.org>2007-06-06 00:06:09 +0000
committerDonnie Berkholz <dberkholz@gentoo.org>2007-06-06 00:06:09 +0000
commit752a7f0ceaa0a886afca4ad659121a3d073da34f (patch)
treeb60dc8ab7b0b788d9cc90551b86576e18973a7a4 /sci-chemistry/sparky
parentAdd post-install updating of desktop and mime databases. (diff)
downloadgentoo-2-752a7f0ceaa0a886afca4ad659121a3d073da34f.tar.gz
gentoo-2-752a7f0ceaa0a886afca4ad659121a3d073da34f.tar.bz2
gentoo-2-752a7f0ceaa0a886afca4ad659121a3d073da34f.zip
(#164813) Bump. Works with Python 2.4, cleans out Python bytecode on uninstallation (Jakub Moc), makes sure python was built with Tk. Keyword ~ppc while I'm at it.
(Portage version: 2.1.2.7)
Diffstat (limited to 'sci-chemistry/sparky')
-rw-r--r--sci-chemistry/sparky/ChangeLog9
-rw-r--r--sci-chemistry/sparky/files/digest-sparky-3.1133
-rw-r--r--sci-chemistry/sparky/sparky-3.113.ebuild82
3 files changed, 93 insertions, 1 deletions
diff --git a/sci-chemistry/sparky/ChangeLog b/sci-chemistry/sparky/ChangeLog
index 4fd43070b069..0467dba05838 100644
--- a/sci-chemistry/sparky/ChangeLog
+++ b/sci-chemistry/sparky/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sci-chemistry/sparky
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/sparky/ChangeLog,v 1.8 2007/03/15 21:58:21 kugelfang Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/sparky/ChangeLog,v 1.9 2007/06/06 00:06:09 dberkholz Exp $
+
+*sparky-3.113 (06 Jun 2007)
+
+ 06 Jun 2007; Donnie Berkholz <dberkholz@gentoo.org>; +sparky-3.113.ebuild:
+ (#164813) Bump. Works with Python 2.4, cleans out Python bytecode on
+ uninstallation (Jakub Moc), makes sure python was built with Tk. Keyword
+ ~ppc while I'm at it.
15 Mar 2007; Danny van Dyk <kugelfang@gentoo.org> sparky-3.111.ebuild:
QA: Removed illegal use of ${ROOT}. Bug #168043
diff --git a/sci-chemistry/sparky/files/digest-sparky-3.113 b/sci-chemistry/sparky/files/digest-sparky-3.113
new file mode 100644
index 000000000000..7a8c1adb629b
--- /dev/null
+++ b/sci-chemistry/sparky/files/digest-sparky-3.113
@@ -0,0 +1,3 @@
+MD5 f3491553b1d00d56eb43cec9f9fa290b sparky-source-3.113.tar.gz 4171150
+RMD160 574318ef6c33790606995eeaa4ced5adac04bb75 sparky-source-3.113.tar.gz 4171150
+SHA256 726d816f5a2052e2a76f4e06929ece7f6fd040f36ffb87dbf3564bba5e953d72 sparky-source-3.113.tar.gz 4171150
diff --git a/sci-chemistry/sparky/sparky-3.113.ebuild b/sci-chemistry/sparky/sparky-3.113.ebuild
new file mode 100644
index 000000000000..c971e8e564b7
--- /dev/null
+++ b/sci-chemistry/sparky/sparky-3.113.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/sparky/sparky-3.113.ebuild,v 1.1 2007/06/06 00:06:09 dberkholz Exp $
+
+inherit eutils toolchain-funcs multilib python
+
+DESCRIPTION="Graphical NMR assignment and integration program for proteins, nucleic acids, and other polymers"
+HOMEPAGE="http://www.cgl.ucsf.edu/home/sparky/"
+SRC_URI="http://www.cgl.ucsf.edu/home/sparky/distrib-${PV}/${PN}-source-${PV}.tar.gz"
+LICENSE="sparky"
+SLOT="0"
+# Note: this package will probably require significant work for lib{32,64},
+# including parts of the patch.
+KEYWORDS="~ppc ~x86"
+IUSE=""
+RESTRICT="mirror"
+RDEPEND="=dev-lang/python-2.4*
+ =dev-lang/tk-8.4*
+ || ( app-shells/tcsh app-shells/csh )"
+DEPEND="${RDEPEND}
+ >=app-shells/bash-3
+ net-misc/rsync"
+S="${WORKDIR}/${PN}"
+
+pkg_setup() {
+ # Install for specific pythons instead of whatever's newest.
+ python="/usr/bin/python2.4"
+ python_version
+
+ if ! built_with_use dev-lang/python tk; then
+ die "Rebuild python with USE=tk"
+ fi
+
+ arguments=( SPARKY="${S}" \
+ SPARKY_INSTALL_MAC="" \
+ SPARKY_INSTALL="${D}/usr" \
+ PYTHON_PREFIX="${ROOT}usr" \
+ PYTHON_VERSION="${PYVER}" \
+ TK_PREFIX="${ROOT}usr" \
+ TCLTK_VERSION="8.4" \
+ CXX="$(tc-getCXX)" \
+ CC="$(tc-getCC)" \
+ INSTALL="rsync -avz" \
+ INSTALLDIR="rsync -avz" )
+
+ # It would be nice to get the docs versioned, but not critical
+ # DOCDIR="\$(SPARKY_INSTALL)/share/doc/${PN}" \
+ # To get libdir working properly, we need to get makefiles respecting this
+ # PYDIR="\$(SPARKY_INSTALL)/$(get_libdir)/python\$(PYTHON_VERSION)/site-packages" \
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ epatch ${FILESDIR}/fix-install.patch
+
+ sed -i \
+ -e "s:^\(set PYTHON[[:space:]]*=\).*:\1 /usr/bin/python${PYVER}:g" \
+ -e "s:^\(setenv TCLTK_LIB[[:space:]]*\).*:\1 /usr/$(get_libdir):g" \
+ ${S}/bin/sparky
+}
+
+src_compile() {
+ emake "${arguments[@]}" || die "make failed"
+}
+
+src_install() {
+ make "${arguments[@]}" install || die "install failed"
+ # Make internal help work
+ dosym ../../share/doc/sparky/manual /usr/lib/sparky/manual
+ # It returns a weird threading error message without this
+ dosym ../python${PYVER}/site-packages /usr/lib/sparky/python
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/lib/python${PYVER}/site-packages/sparky
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/lib/python${PYVER}/site-packages/sparky
+}