diff options
author | 2013-11-10 17:02:57 -0500 | |
---|---|---|
committer | 2013-11-10 17:02:57 -0500 | |
commit | e7b05cf915e75ca3c156b8d619529eed4bb4baf0 (patch) | |
tree | dffc4eac75e4cabc3acb608f8e9000122fc26ddd /sci-biology | |
parent | WIP: PySurfer ebuild (diff) | |
download | sci-e7b05cf915e75ca3c156b8d619529eed4bb4baf0.tar.gz sci-e7b05cf915e75ca3c156b8d619529eed4bb4baf0.tar.bz2 sci-e7b05cf915e75ca3c156b8d619529eed4bb4baf0.zip |
FIX: don't import surfer in septup.py
Diffstat (limited to 'sci-biology')
-rw-r--r-- | sci-biology/pysurfer/files/0.4-headless_build.patch | 22 | ||||
-rw-r--r-- | sci-biology/pysurfer/pysurfer-0.4.ebuild | 6 |
2 files changed, 28 insertions, 0 deletions
diff --git a/sci-biology/pysurfer/files/0.4-headless_build.patch b/sci-biology/pysurfer/files/0.4-headless_build.patch new file mode 100644 index 000000000..0cebc112a --- /dev/null +++ b/sci-biology/pysurfer/files/0.4-headless_build.patch @@ -0,0 +1,22 @@ +diff --git a/setup.py b/setup.py +index c8681c2..41c21a5 100644 +--- a/setup.py ++++ b/setup.py +@@ -10,8 +10,6 @@ import os + # deal with MPL sandbox violations during easy_install + os.environ['MPLCONFIGDIR'] = '.' + +-import surfer +- + DISTNAME = 'pysurfer' + DESCRIPTION = descr + LONG_DESCRIPTION = descr +@@ -20,7 +18,7 @@ MAINTAINER_EMAIL = 'mwaskom@stanford.edu' + URL = 'http://pysurfer.github.com' + LICENSE = 'BSD (3-clause)' + DOWNLOAD_URL = 'https://github.com/nipy/PySurfer' +-VERSION = surfer.__version__ ++VERSION = "0.4" + + import setuptools # we are using a setuptools namespace + from numpy.distutils.core import setup diff --git a/sci-biology/pysurfer/pysurfer-0.4.ebuild b/sci-biology/pysurfer/pysurfer-0.4.ebuild index 9f53ce5c4..4bb5dbe4a 100644 --- a/sci-biology/pysurfer/pysurfer-0.4.ebuild +++ b/sci-biology/pysurfer/pysurfer-0.4.ebuild @@ -20,3 +20,9 @@ RDEPEND="sci-visualization/mayavi" DEPEND="" S="${WORKDIR}/PySurfer-${PV}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${PV}-headless_build.patch" +} |