Ticket #41122: patch.py-obspy.diff
File patch.py-obspy.diff, 4.4 KB (added by petrrr, 11 years ago) |
---|
-
Portfile
old new 6 6 7 7 name py-obspy 8 8 version 0.8.4 9 revision 19 revision 2 10 10 categories-append science 11 11 platforms darwin 12 12 maintainers bo.ingv.it:Peter.Danecek openmaintainer … … 15 15 16 16 description Python framework for processing seismological data 17 17 18 long_description ObsPy is an open-source project dedicated to provide a Python\19 framework for processing seismological data. It provides\20 support for file formats and signal processing routines \21 which allow the manipulation, analysis and visualization\22 of seismological time series. The goal of the ObsPy project is\23 18 long_description \ 19 ObsPy is an open-source project dedicated to provide a Python framework \ 20 for processing seismological data. It provides support for file formats \ 21 and signal processing routines which allow the manipulation, analysis \ 22 and visualization of seismological time series. The goal of the ObsPy \ 23 project is to facilitate rapid application development for seismology. 24 24 25 25 homepage http://obspy.org/ 26 26 27 27 use_zip yes 28 28 distname obspy-${version} 29 master_sites http ://pypi.python.org/packages/source/o/obspy29 master_sites https://pypi.python.org/packages/source/o/obspy/ 30 30 31 31 checksums md5 9da79d3a0604d433085ad4dc0e430100 \ 32 32 rmd160 4a5b6e486304cd4e0a96d94ddc8bf88eb0a6f574 \ 33 33 sha256 6e9e0a5c0e673ae41d64ca265d4abdadf2b83a60ff27c516a8dbb0e2b38965cf 34 34 35 livecheck.type regex 36 livecheck.url ${master_sites} 37 livecheck.regex ">obspy-(\\d+\\.\\d+\\.\\d+)\\.zip<" 38 35 39 python.versions 26 27 36 40 37 41 if {${subport} != ${name}} { 38 depends_build 39 depends_lib-append port:py${python.version}-numpy \40 port:py${python.version}-scipy \41 port:py${python.version}-lxml \42 port:py${python.version}-suds \43 port:py${python.version}-sqlalchemy42 depends_build-append port:py${python.version}-setuptools 43 depends_lib-append port:py${python.version}-numpy \ 44 port:py${python.version}-scipy \ 45 port:py${python.version}-lxml \ 46 port:py${python.version}-suds \ 47 port:py${python.version}-sqlalchemy 44 48 45 49 # py-scipy is not universal 46 50 universal_variant no … … 86 90 depends_build-append port:gcc${ver_no_dot} 87 91 88 92 configure.fc ${prefix}/bin/gfortran-mp-${ver} 89 configure.f77 ${prefix}/bin/gfortran-mp-${ver} 90 configure.f90 ${prefix}/bin/gfortran-mp-${ver} 93 compiler.library_path ${prefix}/lib/gcc${ver_no_dot} 91 94 } 92 95 } 93 96 } -
files/patch-setup.py.diff
old new 1 1 --- setup.orig.py 2013-06-28 18:07:26.000000000 +0200 2 +++ setup.py 2013- 07-08 11:48:13.000000000 +02002 +++ setup.py 2013-11-19 20:30:09.000000000 +0100 3 3 @@ -27,7 +27,6 @@ 4 4 from distutils.unixccompiler import UnixCCompiler 5 5 from setuptools import find_packages, setup … … 14 14 return self._original_compile(obj, src, *args, **kwargs) 15 15 - UnixCCompiler.linker_so = ["gfortran"] 16 16 - self.compiler_so = ["gfortran"] 17 + UnixCCompiler.linker_so = [os.environ.get("F 77")]18 + self.compiler_so = [os.environ.get("F 77")]17 + UnixCCompiler.linker_so = [os.environ.get("FC")] 18 + self.compiler_so = [os.environ.get("FC")] 19 19 cc_args = ['-c', '-fno-underscoring'] 20 20 cc_args.append('-fPIC') 21 21 try: 22 @@ -621,7 +620,6 @@ 23 taupargs = [] 24 25 lib = MyExtension(lib_name, 26 - libraries=['gfortran'], 27 extra_link_args=extra_link_args, 28 sources=[src + 'emdlv.f', src + 'libtau.f', 29 src + 'ttimes_subrout.f']) 30 @@ -629,8 +627,6 @@ 22 @@ -629,8 +628,6 @@ 31 23 32 24 33 25 def setupPackage(gfortran=True, ccompiler=True):