summaryrefslogtreecommitdiffstats
path: root/packaging/macosx/ports/python
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2016-12-30 23:09:39 +0000
committerMartin Owens <doctormo@gmail.com>2016-12-30 23:09:39 +0000
commit9090f27c2203e1ee3cc747e49cb5ad8db983ca1d (patch)
tree591205ad0ee11f2091d5d1fcf01c57f31b384666 /packaging/macosx/ports/python
parent[Bug #1574561] Italian translation update. (diff)
downloadinkscape-9090f27c2203e1ee3cc747e49cb5ad8db983ca1d.tar.gz
inkscape-9090f27c2203e1ee3cc747e49cb5ad8db983ca1d.zip
Remove MacOSX packaging and make space for future 0.93 osx packagers.
(bzr r15377.1.1)
Diffstat (limited to 'packaging/macosx/ports/python')
-rw-r--r--packaging/macosx/ports/python/py-Pillow/Portfile74
-rw-r--r--packaging/macosx/ports/python/py-Pillow/files/patch-setup.py.diff120
-rw-r--r--packaging/macosx/ports/python/py-gobject/Portfile77
-rw-r--r--packaging/macosx/ports/python/py-gobject/files/00git_class_init.patch316
-rw-r--r--packaging/macosx/ports/python/py-gobject/files/00git_fix_qdata_warning.patch28
-rw-r--r--packaging/macosx/ports/python/py-gobject/files/00git_gio_flag_type.patch50
-rw-r--r--packaging/macosx/ports/python/py-gobject/files/patch-pygi-info.c-p1.diff28
-rw-r--r--packaging/macosx/ports/python/py-numpy/Portfile214
-rw-r--r--packaging/macosx/ports/python/py-numpy/files/patch-f2py_setup.py.diff39
-rw-r--r--packaging/macosx/ports/python/py-numpy/files/patch-fcompiler_g95.diff15
-rw-r--r--packaging/macosx/ports/python/py-numpy/files/patch-numpy_core_setup.py.diff34
-rw-r--r--packaging/macosx/ports/python/py-numpy/files/patch-numpy_linalg_setup.py.diff20
-rwxr-xr-xpackaging/macosx/ports/python/py-numpy/files/wrapper-template143
-rw-r--r--packaging/macosx/ports/python/py-sk1libs/Portfile64
-rw-r--r--packaging/macosx/ports/python/py-sk1libs/files/patch-src-imaging-libimagingft-_imagingft.c.diff16
-rw-r--r--packaging/macosx/ports/python/py-sk1libs/files/patch-src-utils-fs.py.diff26
-rw-r--r--packaging/macosx/ports/python/py-uniconvertor/Portfile46
-rw-r--r--packaging/macosx/ports/python/py25-Pillow/Portfile77
-rw-r--r--packaging/macosx/ports/python/py25-Pillow/files/patch-_imagingft.c.diff14
-rw-r--r--packaging/macosx/ports/python/py25-Pillow/files/patch-setup.py-v1.7.8.diff83
-rw-r--r--packaging/macosx/ports/python/py25-lxml/Portfile51
-rw-r--r--packaging/macosx/ports/python/py25-nose/Portfile86
-rw-r--r--packaging/macosx/ports/python/py25-nose/files/nosetests241
-rw-r--r--packaging/macosx/ports/python/py25-nose/files/nosetests251
-rw-r--r--packaging/macosx/ports/python/py25-nose/files/nosetests261
-rw-r--r--packaging/macosx/ports/python/py25-nose/files/nosetests271
-rw-r--r--packaging/macosx/ports/python/py25-nose/files/nosetests311
-rw-r--r--packaging/macosx/ports/python/py25-nose/files/nosetests321
-rw-r--r--packaging/macosx/ports/python/py25-nose/files/nosetests331
-rw-r--r--packaging/macosx/ports/python/py25-nose/files/nosetests341
-rw-r--r--packaging/macosx/ports/python/py25-numpy/Portfile209
-rw-r--r--packaging/macosx/ports/python/py25-numpy/files/patch-f2py_setup.py.diff29
-rw-r--r--packaging/macosx/ports/python/py25-numpy/files/patch-fcompiler_g95.diff11
-rw-r--r--packaging/macosx/ports/python/py25-numpy/files/patch-numpy_distutils_fcompiler___init__.py.diff30
-rw-r--r--packaging/macosx/ports/python/py25-numpy/files/patch-numpy_linalg_setup.py.diff10
-rw-r--r--packaging/macosx/ports/python/py25-numpy/files/patch-setup.py.diff34
-rwxr-xr-xpackaging/macosx/ports/python/py25-numpy/files/wrapper-template143
-rw-r--r--packaging/macosx/ports/python/py25-setuptools/Portfile58
-rw-r--r--packaging/macosx/ports/python/py26-cython/Portfile85
-rw-r--r--packaging/macosx/ports/python/py26-cython/files/cython242
-rw-r--r--packaging/macosx/ports/python/py26-cython/files/cython252
-rw-r--r--packaging/macosx/ports/python/py26-cython/files/cython262
-rw-r--r--packaging/macosx/ports/python/py26-cython/files/cython272
-rw-r--r--packaging/macosx/ports/python/py26-cython/files/cython312
-rw-r--r--packaging/macosx/ports/python/py26-cython/files/cython322
-rw-r--r--packaging/macosx/ports/python/py26-cython/files/cython332
-rw-r--r--packaging/macosx/ports/python/py26-cython/files/cython342
-rw-r--r--packaging/macosx/ports/python/py26-lxml/Portfile52
-rw-r--r--packaging/macosx/ports/python/py26-nose/Portfile87
-rw-r--r--packaging/macosx/ports/python/py26-nose/files/nosetests241
-rw-r--r--packaging/macosx/ports/python/py26-nose/files/nosetests251
-rw-r--r--packaging/macosx/ports/python/py26-nose/files/nosetests261
-rw-r--r--packaging/macosx/ports/python/py26-nose/files/nosetests271
-rw-r--r--packaging/macosx/ports/python/py26-nose/files/nosetests311
-rw-r--r--packaging/macosx/ports/python/py26-nose/files/nosetests321
-rw-r--r--packaging/macosx/ports/python/py26-nose/files/nosetests331
-rw-r--r--packaging/macosx/ports/python/py26-nose/files/nosetests341
-rw-r--r--packaging/macosx/ports/python/py26-numpy/Portfile214
-rw-r--r--packaging/macosx/ports/python/py26-numpy/files/patch-f2py_setup.py.diff39
-rw-r--r--packaging/macosx/ports/python/py26-numpy/files/patch-fcompiler_g95.diff15
-rw-r--r--packaging/macosx/ports/python/py26-numpy/files/patch-numpy_core_setup.py.diff34
-rw-r--r--packaging/macosx/ports/python/py26-numpy/files/patch-numpy_linalg_setup.py.diff20
-rw-r--r--packaging/macosx/ports/python/py26-numpy/files/wrapper-template143
-rw-r--r--packaging/macosx/ports/python/py26-setuptools/Portfile61
64 files changed, 0 insertions, 2927 deletions
diff --git a/packaging/macosx/ports/python/py-Pillow/Portfile b/packaging/macosx/ports/python/py-Pillow/Portfile
deleted file mode 100644
index 6935fab95..000000000
--- a/packaging/macosx/ports/python/py-Pillow/Portfile
+++ /dev/null
@@ -1,74 +0,0 @@
-# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
-# $Id: Portfile 124123 2014-08-19 13:57:18Z stromnov@macports.org $
-
-PortSystem 1.0
-PortGroup python 1.0
-
-name py-Pillow
-version 2.5.3
-revision 100
-categories-append devel
-platforms darwin
-license BSD
-
-python.versions 26 27 32 33 34
-
-maintainers stromnov openmaintainer
-
-description Python Imaging Library (fork)
-
-long_description ${description}
-
-homepage http://github.com/python-imaging/Pillow
-master_sites http://pypi.python.org/packages/source/P/Pillow/
-
-distname Pillow-${version}
-
-checksums rmd160 f10cda34a62022edf3bfe626096b6bc009a74dc8 \
- sha256 62ff6c6cb88d4a1d6e856315b1691186b06cb923f18fde86d6abac9eeb9096d1
-
-if {${name} ne ${subport}} {
- use_zip yes
-
- conflicts py${python.version}-pil
-
- depends_build port:py${python.version}-setuptools
- depends_lib-append \
- port:zlib \
- port:jpeg \
- port:tiff \
- port:lcms \
- port:webp \
- port:openjpeg \
- port:freetype
-
- patchfiles patch-setup.py.diff
-
- post-patch {
- reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/setup.py
- }
-
- livecheck.type none
-} else {
- livecheck.type regex
- livecheck.url ${master_sites}
- livecheck.regex {Pillow-(\d+(?:\.\d+)*)\.[tz]}
-}
-
-variant quartz conflicts x11 tkinter {
- # tkinter doesn't build
-}
-
-variant x11 conflicts quartz {
- # tkinter does build
-}
-
-variant tkinter description {with tkinter support} {
- if {$subport != $name} {
- depends_lib-append port:py${python.version}-tkinter
- }
-}
-
-if { ![variant_isset quartz] } {
- default_variants-append +tkinter
-}
diff --git a/packaging/macosx/ports/python/py-Pillow/files/patch-setup.py.diff b/packaging/macosx/ports/python/py-Pillow/files/patch-setup.py.diff
deleted file mode 100644
index fe300cfe5..000000000
--- a/packaging/macosx/ports/python/py-Pillow/files/patch-setup.py.diff
+++ /dev/null
@@ -1,120 +0,0 @@
---- setup.py.orig 2014-07-04 17:25:36.000000000 +0200
-+++ setup.py 2014-07-04 17:33:05.000000000 +0200
-@@ -19,7 +19,7 @@
- from setuptools import Extension, setup, find_packages
-
- # monkey patch import hook. Even though flake8 says it's not used, it is.
--# comment this out to disable multi threaded builds.
-+# comment this out to disable multi threaded builds.
- import mp_compile
-
- _IMAGING = (
-@@ -200,44 +200,8 @@
- "/usr/lib", "python%s" % sys.version[:3], "config"))
-
- elif sys.platform == "darwin":
-- # attempt to make sure we pick freetype2 over other versions
-- _add_directory(include_dirs, "/sw/include/freetype2")
-- _add_directory(include_dirs, "/sw/lib/freetype2/include")
-- # fink installation directories
-- _add_directory(library_dirs, "/sw/lib")
-- _add_directory(include_dirs, "/sw/include")
-- # darwin ports installation directories
-- _add_directory(library_dirs, "/opt/local/lib")
-- _add_directory(include_dirs, "/opt/local/include")
--
-- # if Homebrew is installed, use its lib and include directories
-- import subprocess
-- try:
-- prefix = subprocess.check_output(
-- ['brew', '--prefix']
-- ).strip().decode('latin1')
-- except:
-- # Homebrew not installed
-- prefix = None
--
-- ft_prefix = None
--
-- if prefix:
-- # add Homebrew's include and lib directories
-- _add_directory(library_dirs, os.path.join(prefix, 'lib'))
-- _add_directory(include_dirs, os.path.join(prefix, 'include'))
-- ft_prefix = os.path.join(prefix, 'opt', 'freetype')
--
-- if ft_prefix and os.path.isdir(ft_prefix):
-- # freetype might not be linked into Homebrew's prefix
-- _add_directory(library_dirs, os.path.join(ft_prefix, 'lib'))
-- _add_directory(
-- include_dirs, os.path.join(ft_prefix, 'include'))
-- else:
-- # fall back to freetype from XQuartz if
-- # Homebrew's freetype is missing
-- _add_directory(library_dirs, "/usr/X11/lib")
-- _add_directory(include_dirs, "/usr/X11/include")
-+ _add_directory(library_dirs, "@prefix@/lib")
-+ _add_directory(include_dirs, "@prefix@/include")
-
- elif sys.platform.startswith("linux"):
- arch_tp = (plat.processor(), plat.architecture()[0])
-@@ -337,21 +301,6 @@
- else:
- TCL_ROOT = None
-
-- # add standard directories
--
-- # look for tcl specific subdirectory (e.g debian)
-- if _tkinter:
-- tcl_dir = "/usr/include/tcl" + TCL_VERSION
-- if os.path.isfile(os.path.join(tcl_dir, "tk.h")):
-- _add_directory(include_dirs, tcl_dir)
--
-- # standard locations
-- _add_directory(library_dirs, "/usr/local/lib")
-- _add_directory(include_dirs, "/usr/local/include")
--
-- _add_directory(library_dirs, "/usr/lib")
-- _add_directory(include_dirs, "/usr/include")
--
- # on Windows, look for the OpenJPEG libraries in the location that
- # the official installer puts them
- if sys.platform == "win32":
-@@ -410,7 +359,7 @@
- for directory in self.compiler.include_dirs:
- try:
- listdir = os.listdir(directory)
-- except Exception:
-+ except Exception:
- # WindowsError, FileNotFoundError
- continue
- for name in listdir:
-@@ -570,29 +519,7 @@
- exts.append(Extension(
- "PIL._webp", ["_webp.c"], libraries=libs, define_macros=defs))
-
-- if sys.platform == "darwin":
-- # locate Tcl/Tk frameworks
-- frameworks = []
-- framework_roots = [
-- "/Library/Frameworks",
-- "/System/Library/Frameworks"]
-- for root in framework_roots:
-- if (
-- os.path.exists(os.path.join(root, "Tcl.framework")) and
-- os.path.exists(os.path.join(root, "Tk.framework"))):
-- print("--- using frameworks at %s" % root)
-- frameworks = ["-framework", "Tcl", "-framework", "Tk"]
-- dir = os.path.join(root, "Tcl.framework", "Headers")
-- _add_directory(self.compiler.include_dirs, dir, 0)
-- dir = os.path.join(root, "Tk.framework", "Headers")
-- _add_directory(self.compiler.include_dirs, dir, 1)
-- break
-- if frameworks:
-- exts.append(Extension(
-- "PIL._imagingtk", ["_imagingtk.c", "Tk/tkImaging.c"],
-- extra_compile_args=frameworks, extra_link_args=frameworks))
-- feature.tcl = feature.tk = 1 # mark as present
-- elif feature.tcl and feature.tk:
-+ if feature.tcl and feature.tk:
- exts.append(Extension(
- "PIL._imagingtk", ["_imagingtk.c", "Tk/tkImaging.c"],
- libraries=[feature.tcl, feature.tk]))
diff --git a/packaging/macosx/ports/python/py-gobject/Portfile b/packaging/macosx/ports/python/py-gobject/Portfile
deleted file mode 100644
index 3503ef1db..000000000
--- a/packaging/macosx/ports/python/py-gobject/Portfile
+++ /dev/null
@@ -1,77 +0,0 @@
-# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
-# $Id$
-
-PortSystem 1.0
-PortGroup python 1.0
-
-name py-gobject
-set my_name pygobject
-version 2.28.6
-revision 101
-epoch 20110613
-set branch [join [lrange [split ${version} .] 0 1] .]
-categories-append gnome
-license LGPL-2.1+
-maintainers jwa openmaintainer
-platforms darwin
-python.versions 26 27 33 34
-
-description Python bindings for GObject.
-
-long_description \
- PyGObject provides a convenient wrapper for the GObject+ library \
- for use in Python programs, and takes care of many of the boring details \
- such as managing memory and type casting. \
- When combined with PyGTK, PyORBit and gnome-python, \
- it can be used to write full featured Gnome applications.
-
-homepage http://www.pygtk.org/
-master_sites gnome:sources/${my_name}/${branch}/
-distname ${my_name}-${version}
-use_xz yes
-
-checksums rmd160 4bc5e8546a5029d3d6b154629ab3fa4023d96bef \
- sha256 fb8a1d4f665130a125011659bd347c7339c944232163dbb9a34fd0686577adb8
-
-if {$subport ne $name} {
- depends_build-append port:pkgconfig
- depends_lib-append path:lib/pkgconfig/glib-2.0.pc:glib2 \
- port:libffi \
- port:py${python.version}-cairo \
- port:gobject-introspection
-
- patch.pre_args -p1
- patchfiles patch-pygi-info.c-p1.diff \
- 00git_class_init.patch \
- 00git_fix_qdata_warning.patch \
- 00git_gio_flag_type.patch
-
- use_configure yes
- configure.python ${python.bin}
- configure.env-append PKG_CONFIG_PATH='${python.prefix}/lib/pkgconfig'
- configure.pre_args --prefix='${python.prefix}'
- configure.args-append --disable-glibtest \
- --enable-introspection=no
- configure.cppflags-append \
- -I${python.prefix}/include \
- -I${prefix}/include/cairo
- build.cmd [portbuild::build_getmaketype]
- build.target
-
- destroot.cmd ${build.cmd}
- destroot.target install
- destroot.destdir DESTDIR=${destroot}
-
- test.run yes
- test.env PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]
- test.target check
-
- post-destroot {
- set docdir ${prefix}/share/doc/${subport}
- xinstall -d ${destroot}${docdir}
- xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
- ${destroot}${docdir}
- }
-}
-
-livecheck.type none
diff --git a/packaging/macosx/ports/python/py-gobject/files/00git_class_init.patch b/packaging/macosx/ports/python/py-gobject/files/00git_class_init.patch
deleted file mode 100644
index 01f79d6ce..000000000
--- a/packaging/macosx/ports/python/py-gobject/files/00git_class_init.patch
+++ /dev/null
@@ -1,316 +0,0 @@
-From 9456ba70fdb98b3a4eb7ee2f630182387a54ca00 Mon Sep 17 00:00:00 2001
-From: Martin Pitt <martinpitt@gnome.org>
-Date: Tue, 19 Feb 2013 15:39:56 +0100
-Subject: [PATCH] Move property and signal creation into _class_init()
-
-We must not add class interfaces after g_type_class_ref() has been called the
-first time. Move signal and property creation from pyg_type_register() into
-pyg_object_class_init(), and drop the hack of registering interfaces twice.
-
-This is a backport of commit efcb0f9fd for 2.28.x. This allows old pygtk
-applications to work with pygobject 2.28.x and glib 2.35.x.
-
-Bug: https://bugzilla.gnome.org/show_bug.cgi?id=694108
-Bug-Ubuntu: https://launchpad.net/bugs/1129309
----
- gobject/gobjectmodule.c | 177 +++++++++++++++++++-----------------------------
- 1 file changed, 70 insertions(+), 107 deletions(-)
-
-diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c
-index 2a84606..91f7315 100644
---- a/gobject/gobjectmodule.c
-+++ b/gobject/gobjectmodule.c
-@@ -312,13 +312,6 @@ pyg_object_get_property (GObject *object, guint property_id,
- pyglib_gil_state_release(state);
- }
-
--static void
--pyg_object_class_init(GObjectClass *class, PyObject *py_class)
--{
-- class->set_property = pyg_object_set_property;
-- class->get_property = pyg_object_get_property;
--}
--
- typedef struct _PyGSignalAccumulatorData {
- PyObject *callable;
- PyObject *user_data;
-@@ -484,15 +477,14 @@ override_signal(GType instance_type, const gchar *signal_name)
- }
-
- static PyObject *
--add_signals (GType instance_type, PyObject *signals)
-+add_signals (GObjectClass *klass, PyObject *signals)
- {
- gboolean ret = TRUE;
-- GObjectClass *oclass;
- Py_ssize_t pos = 0;
- PyObject *key, *value, *overridden_signals = NULL;
-+ GType instance_type = G_OBJECT_CLASS_TYPE (klass);
-
- overridden_signals = PyDict_New();
-- oclass = g_type_class_ref(instance_type);
- while (PyDict_Next(signals, &pos, &key, &value)) {
- const gchar *signal_name;
- gchar *signal_name_canon, *c;
-@@ -530,7 +522,6 @@ add_signals (GType instance_type, PyObject *signals)
- if (!ret)
- break;
- }
-- g_type_class_unref(oclass);
- if (ret)
- return overridden_signals;
- else {
-@@ -800,14 +791,12 @@ pyg_param_spec_from_object (PyObject *tuple)
- }
-
- static gboolean
--add_properties (GType instance_type, PyObject *properties)
-+add_properties (GObjectClass *klass, PyObject *properties)
- {
- gboolean ret = TRUE;
-- GObjectClass *oclass;
- Py_ssize_t pos = 0;
- PyObject *key, *value;
-
-- oclass = g_type_class_ref(instance_type);
- while (PyDict_Next(properties, &pos, &key, &value)) {
- const gchar *prop_name;
- GType prop_type;
-@@ -873,7 +862,7 @@ add_properties (GType instance_type, PyObject *properties)
- Py_DECREF(slice);
-
- if (pspec) {
-- g_object_class_install_property(oclass, 1, pspec);
-+ g_object_class_install_property(klass, 1, pspec);
- } else {
- PyObject *type, *value, *traceback;
- ret = FALSE;
-@@ -883,7 +872,7 @@ add_properties (GType instance_type, PyObject *properties)
- g_snprintf(msg, 256,
- "%s (while registering property '%s' for GType '%s')",
- PYGLIB_PyUnicode_AsString(value),
-- prop_name, g_type_name(instance_type));
-+ prop_name, G_OBJECT_CLASS_NAME(klass));
- Py_DECREF(value);
- value = PYGLIB_PyUnicode_FromString(msg);
- }
-@@ -892,11 +881,63 @@ add_properties (GType instance_type, PyObject *properties)
- }
- }
-
-- g_type_class_unref(oclass);
- return ret;
- }
-
- static void
-+pyg_object_class_init(GObjectClass *class, PyObject *py_class)
-+{
-+ PyObject *gproperties, *gsignals, *overridden_signals;
-+ PyObject *class_dict = ((PyTypeObject*) py_class)->tp_dict;
-+
-+ class->set_property = pyg_object_set_property;
-+ class->get_property = pyg_object_get_property;
-+
-+ /* install signals */
-+ /* we look this up in the instance dictionary, so we don't
-+ * accidentally get a parent type's __gsignals__ attribute. */
-+ gsignals = PyDict_GetItemString(class_dict, "__gsignals__");
-+ if (gsignals) {
-+ if (!PyDict_Check(gsignals)) {
-+ PyErr_SetString(PyExc_TypeError,
-+ "__gsignals__ attribute not a dict!");
-+ return;
-+ }
-+ if (!(overridden_signals = add_signals(class, gsignals))) {
-+ return;
-+ }
-+ if (PyDict_SetItemString(class_dict, "__gsignals__",
-+ overridden_signals)) {
-+ return;
-+ }
-+ Py_DECREF(overridden_signals);
-+
-+ PyDict_DelItemString(class_dict, "__gsignals__");
-+ } else {
-+ PyErr_Clear();
-+ }
-+
-+ /* install properties */
-+ /* we look this up in the instance dictionary, so we don't
-+ * accidentally get a parent type's __gproperties__ attribute. */
-+ gproperties = PyDict_GetItemString(class_dict, "__gproperties__");
-+ if (gproperties) {
-+ if (!PyDict_Check(gproperties)) {
-+ PyErr_SetString(PyExc_TypeError,
-+ "__gproperties__ attribute not a dict!");
-+ return;
-+ }
-+ if (!add_properties(class, gproperties)) {
-+ return;
-+ }
-+ PyDict_DelItemString(class_dict, "__gproperties__");
-+ /* Borrowed reference. Py_DECREF(gproperties); */
-+ } else {
-+ PyErr_Clear();
-+ }
-+}
-+
-+static void
- pyg_register_class_init(GType gtype, PyGClassInitFunc class_init)
- {
- GSList *list;
-@@ -1068,7 +1109,7 @@ pygobject__g_instance_init(GTypeInstance *instance,
- */
- static void
- pyg_type_add_interfaces(PyTypeObject *class, GType instance_type,
-- PyObject *bases, gboolean new_interfaces,
-+ PyObject *bases,
- GType *parent_interfaces, guint n_parent_interfaces)
- {
- int i;
-@@ -1082,7 +1123,6 @@ pyg_type_add_interfaces(PyTypeObject *class, GType instance_type,
- guint k;
- PyObject *base = PyTuple_GET_ITEM(bases, i);
- GType itype;
-- gboolean is_new = TRUE;
- const GInterfaceInfo *iinfo;
- GInterfaceInfo iinfo_copy;
-
-@@ -1099,16 +1139,6 @@ pyg_type_add_interfaces(PyTypeObject *class, GType instance_type,
- if (!G_TYPE_IS_INTERFACE(itype))
- continue;
-
-- for (k = 0; k < n_parent_interfaces; ++k) {
-- if (parent_interfaces[k] == itype) {
-- is_new = FALSE;
-- break;
-- }
-- }
--
-- if ((new_interfaces && !is_new) || (!new_interfaces && is_new))
-- continue;
--
- iinfo = pyg_lookup_interface_info(itype);
- if (!iinfo) {
- gchar *error;
-@@ -1129,7 +1159,7 @@ pyg_type_add_interfaces(PyTypeObject *class, GType instance_type,
- int
- pyg_type_register(PyTypeObject *class, const char *type_name)
- {
-- PyObject *gtype, *gsignals, *gproperties, *overridden_signals;
-+ PyObject *gtype;
- GType parent_type, instance_type;
- GType *parent_interfaces;
- guint n_parent_interfaces;
-@@ -1216,88 +1246,22 @@ pyg_type_register(PyTypeObject *class, const char *type_name)
- }
-
- /*
-- * Note: Interfaces to be implemented are searched twice. First
-- * we register interfaces that are already implemented by a parent
-- * type. The second time, the remaining interfaces are
-- * registered, i.e. the ones that are not implemented by a parent
-- * type. In between these two loops, properties and signals are
-- * registered. It has to be done this way, in two steps,
-- * otherwise glib will complain. If registering all interfaces
-- * always before properties, you get an error like:
-- *
-- * ../gobject:121: Warning: Object class
-- * test_interface+MyObject doesn't implement property
-- * 'some-property' from interface 'TestInterface'
-- *
-- * If, on the other hand, you register interfaces after
-- * registering the properties, you get something like:
-- *
-- * ../gobject:121: Warning: cannot add interface type
-- * `TestInterface' to type `test_interface+MyUnknown', since
-- * type `test_interface+MyUnknown' already conforms to
-- * interface
-- *
-- * This looks like a GLib quirk, but no bug has been filed
-- * upstream. However we have a unit test for this particular
-- * problem, which can be found in test_interfaces.py, class
-- * TestInterfaceImpl.
-+ * Note, all interfaces need to be registered before the first
-+ * g_type_class_ref(), see bug #686149.
- *
- * See also comment above pyg_type_add_interfaces().
- */
-- pyg_type_add_interfaces(class, instance_type, class->tp_bases, FALSE,
-+ pyg_type_add_interfaces(class, instance_type, class->tp_bases,
- parent_interfaces, n_parent_interfaces);
-
-- /* we look this up in the instance dictionary, so we don't
-- * accidentally get a parent type's __gsignals__ attribute. */
-- gsignals = PyDict_GetItemString(class->tp_dict, "__gsignals__");
-- if (gsignals) {
-- if (!PyDict_Check(gsignals)) {
-- PyErr_SetString(PyExc_TypeError,
-- "__gsignals__ attribute not a dict!");
-- g_free(parent_interfaces);
-- return -1;
-- }
-- if (!(overridden_signals = add_signals(instance_type, gsignals))) {
-- g_free(parent_interfaces);
-- return -1;
-- }
-- if (PyDict_SetItemString(class->tp_dict, "__gsignals__",
-- overridden_signals)) {
-- g_free(parent_interfaces);
-- return -1;
-- }
-- Py_DECREF(overridden_signals);
-- } else {
-- PyErr_Clear();
-- }
-
-- /* we look this up in the instance dictionary, so we don't
-- * accidentally get a parent type's __gsignals__ attribute. */
-- gproperties = PyDict_GetItemString(class->tp_dict, "__gproperties__");
-- if (gproperties) {
-- if (!PyDict_Check(gproperties)) {
-- PyErr_SetString(PyExc_TypeError,
-- "__gproperties__ attribute not a dict!");
-- g_free(parent_interfaces);
-- return -1;
-- }
-- if (!add_properties(instance_type, gproperties)) {
-- g_free(parent_interfaces);
-- return -1;
-- }
-- PyDict_DelItemString(class->tp_dict, "__gproperties__");
-- /* Borrowed reference. Py_DECREF(gproperties); */
-- } else {
-- PyErr_Clear();
-+ gclass = g_type_class_ref(instance_type);
-+ if (PyErr_Occurred() != NULL) {
-+ g_type_class_unref(gclass);
-+ g_free(parent_interfaces);
-+ return -1;
- }
-
-- /* Register new interfaces, that are _not_ already defined by
-- * the parent type. FIXME: See above.
-- */
-- pyg_type_add_interfaces(class, instance_type, class->tp_bases, TRUE,
-- parent_interfaces, n_parent_interfaces);
--
-- gclass = g_type_class_ref(instance_type);
- if (pyg_run_class_init(instance_type, gclass, class)) {
- g_type_class_unref(gclass);
- g_free(parent_interfaces);
-@@ -1306,9 +1270,8 @@ pyg_type_register(PyTypeObject *class, const char *type_name)
- g_type_class_unref(gclass);
- g_free(parent_interfaces);
-
-- if (gsignals)
-- PyDict_DelItemString(class->tp_dict, "__gsignals__");
--
-+ if (PyErr_Occurred() != NULL)
-+ return -1;
- return 0;
- }
-
---
-1.8.1.2
-
diff --git a/packaging/macosx/ports/python/py-gobject/files/00git_fix_qdata_warning.patch b/packaging/macosx/ports/python/py-gobject/files/00git_fix_qdata_warning.patch
deleted file mode 100644
index ed4b5d2b9..000000000
--- a/packaging/macosx/ports/python/py-gobject/files/00git_fix_qdata_warning.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From 42d871eb0b08ee6d55e95cc7e4b90844919555b9 Mon Sep 17 00:00:00 2001
-From: Ivan Stankovic <ivan.stankovic@avl.com>
-Date: Tue, 21 Feb 2012 12:24:58 +0100
-Subject: [PATCH 1/2] Fix set_qdata warning on accessing NULL gobject property
-
-https://bugzilla.gnome.org/show_bug.cgi?id=661155
----
- gobject/pygobject.c | 4 +++-
- 1 files changed, 3 insertions(+), 1 deletions(-)
-
-diff --git a/gobject/pygobject.c b/gobject/pygobject.c
-index 6c2f06c..70dc89a 100644
---- a/gobject/pygobject.c
-+++ b/gobject/pygobject.c
-@@ -991,7 +991,9 @@ pygobject_new(GObject *obj)
- PyObject *
- pygobject_new_sunk(GObject *obj)
- {
-- g_object_set_qdata (obj, pygobject_ref_sunk_key, GINT_TO_POINTER (1));
-+ if (obj)
-+ g_object_set_qdata (obj, pygobject_ref_sunk_key, GINT_TO_POINTER (1));
-+
- return pygobject_new_full(obj, TRUE, NULL);
- }
-
---
-1.7.9.1
-
diff --git a/packaging/macosx/ports/python/py-gobject/files/00git_gio_flag_type.patch b/packaging/macosx/ports/python/py-gobject/files/00git_gio_flag_type.patch
deleted file mode 100644
index 78e7ddfd5..000000000
--- a/packaging/macosx/ports/python/py-gobject/files/00git_gio_flag_type.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-From 42d01f060c5d764baa881d13c103d68897163a49 Mon Sep 17 00:00:00 2001
-From: Ryan Lortie <desrt@desrt.ca>
-Date: Mon, 12 Mar 2012 16:44:14 -0400
-Subject: gio-types.defs: change some enums to flags
-
-These flags types were originally incorrectly handled in glib as being
-enums. That bug was fixed, but they're still enums here, leading to
-warnings about the mismatch.
-
-Change them to flags.
-
-https://bugzilla.gnome.org/show_bug.cgi?id=668522
----
- gio/gio-types.defs | 6 +++---
- 1 files changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/gio/gio-types.defs b/gio/gio-types.defs
-index 331e0bc..7eee5c8 100644
---- a/gio/gio-types.defs
-+++ b/gio/gio-types.defs
-@@ -526,7 +526,7 @@
- )
- )
-
--(define-enum MountMountFlags
-+(define-flags MountMountFlags
- (in-module "gio")
- (c-name "GMountMountFlags")
- (gtype-id "G_TYPE_MOUNT_MOUNT_FLAGS")
-@@ -545,7 +545,7 @@
- )
- )
-
--(define-enum DriveStartFlags
-+(define-flags DriveStartFlags
- (in-module "gio")
- (c-name "GDriveStartFlags")
- (gtype-id "G_TYPE_DRIVE_START_FLAGS")
-@@ -770,7 +770,7 @@
- )
- )
-
--(define-enum SocketMsgFlags
-+(define-flags SocketMsgFlags
- (in-module "gio")
- (c-name "GSocketMsgFlags")
- (gtype-id "G_TYPE_SOCKET_MSG_FLAGS")
---
-1.7.9.1
-
diff --git a/packaging/macosx/ports/python/py-gobject/files/patch-pygi-info.c-p1.diff b/packaging/macosx/ports/python/py-gobject/files/patch-pygi-info.c-p1.diff
deleted file mode 100644
index b5a3d519d..000000000
--- a/packaging/macosx/ports/python/py-gobject/files/patch-pygi-info.c-p1.diff
+++ /dev/null
@@ -1,28 +0,0 @@
---- a/gi/pygi-info.c.orig 2014-01-15 09:16:11.000000000 +0200
-+++ b/gi/pygi-info.c 2014-01-15 09:16:52.000000000 +0200
-@@ -162,9 +162,6 @@
- case GI_INFO_TYPE_CONSTANT:
- type = &PyGIConstantInfo_Type;
- break;
-- case GI_INFO_TYPE_ERROR_DOMAIN:
-- type = &PyGIErrorDomainInfo_Type;
-- break;
- case GI_INFO_TYPE_UNION:
- type = &PyGIUnionInfo_Type;
- break;
-@@ -481,7 +478,6 @@
- case GI_INFO_TYPE_INVALID:
- case GI_INFO_TYPE_FUNCTION:
- case GI_INFO_TYPE_CONSTANT:
-- case GI_INFO_TYPE_ERROR_DOMAIN:
- case GI_INFO_TYPE_VALUE:
- case GI_INFO_TYPE_SIGNAL:
- case GI_INFO_TYPE_PROPERTY:
-@@ -860,7 +856,6 @@
- case GI_INFO_TYPE_INVALID:
- case GI_INFO_TYPE_FUNCTION:
- case GI_INFO_TYPE_CONSTANT:
-- case GI_INFO_TYPE_ERROR_DOMAIN:
- case GI_INFO_TYPE_VALUE:
- case GI_INFO_TYPE_SIGNAL:
- case GI_INFO_TYPE_PROPERTY:
diff --git a/packaging/macosx/ports/python/py-numpy/Portfile b/packaging/macosx/ports/python/py-numpy/Portfile
deleted file mode 100644
index 0a325c8ba..000000000
--- a/packaging/macosx/ports/python/py-numpy/Portfile
+++ /dev/null
@@ -1,214 +0,0 @@
-# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
-# $Id: Portfile 127764 2014-11-03 14:01:21Z michaelld@macports.org $
-
-PortSystem 1.0
-PortGroup python 1.0
-PortGroup github 1.0
-
-github.setup numpy numpy 1.9.1 v
-name py-numpy
-categories-append math
-license BSD
-platforms darwin
-maintainers dh michaelld openmaintainer
-description The core utilities for the scientific library scipy for Python
-long_description ${description}
-
-checksums rmd160 c043ce0045166762e36c513458abc499d36bbcf5 \
- sha256 504b7cbc3b47df592d683e0f3b992cfa4d29338f8d23fca07f040164018b607f
-
-python.versions 27 32 33 34
-
-if {${name} ne ${subport}} {
-
- revision 100
-
- patchfiles patch-f2py_setup.py.diff \
- patch-fcompiler_g95.diff \
- patch-numpy_core_setup.py.diff
-
- depends_lib-append port:fftw-3 \
- port:py${python.version}-nose \
- port:py${python.version}-cython
-
- # http://trac.macports.org/ticket/34562
- destroot.env-append \
- CC="${configure.cc}" \
- CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
- CXX="${configure.cxx}" \
- CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
- OBJC="${configure.objc}" \
- OBJCFLAGS="${configure.objcflags} [get_canonical_archflags objc]" \
- LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
-
- build.env-append ARCHFLAGS="[get_canonical_archflags ld]"
- destroot.env-append ARCHFLAGS="[get_canonical_archflags ld]"
-
- variant atlas description {Use the MacPorts' ATLAS libraries \
- instead of Apple's Accelerate framework} {
- depends_lib-append port:atlas
-
- if {[variant_isset universal]} {
- python.set_compiler no
- }
- }
-
- # when using ATLAS (whether by default or specified by the user via
- # the +atlas variant) ...
- set gcc_version ""
- if {[variant_isset atlas]} {
-
- # see if the user has set -gcc4X to disable using MacPorts'
- # compiler; if not, either use what the user set (as +gcc4X) or
- # default to gcc48.
-
- variant gcc43 conflicts gcc44 gcc45 gcc46 gcc47 gcc48 \
- description {Use the gcc43 compiler (enables fortran linking)} {
- configure.compiler macports-gcc-4.3
- }
-
- variant gcc44 conflicts gcc43 gcc45 gcc46 gcc47 gcc48 \
- description {Use the gcc44 compiler (enables fortran linking)} {
- configure.compiler macports-gcc-4.4
- }
-
- variant gcc45 conflicts gcc43 gcc44 gcc46 gcc47 gcc48 \
- description {Use the gcc45 compiler (enables fortran linking)} {
- configure.compiler macports-gcc-4.5
- }
-
- variant gcc46 conflicts gcc43 gcc44 gcc45 gcc47 gcc48 \
- description {Use the gcc46 compiler (enables fortran linking)} {
- configure.compiler macports-gcc-4.6
- }
-
- variant gcc47 conflicts gcc43 gcc44 gcc45 gcc46 gcc48 \
- description {Use the gcc47 compiler (enables fortran linking)} {
- configure.compiler macports-gcc-4.7
- }
-
- variant gcc48 conflicts gcc43 gcc44 gcc45 gcc46 gcc47 \
- description {Use the gcc48 compiler (enables fortran linking)} {
- configure.compiler macports-gcc-4.8
- }
-
- if {![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47]} {
- default_variants +gcc48
- }
-
- if {[variant_isset gcc43]} {
- set gcc_version "4.3"
- } elseif {[variant_isset gcc44]} {
- set gcc_version "4.4"
- } elseif {[variant_isset gcc45]} {
- set gcc_version "4.5"
- } elseif {[variant_isset gcc46]} {
- set gcc_version "4.6"
- } elseif {[variant_isset gcc47]} {
- set gcc_version "4.7"
- } elseif {[variant_isset gcc48]} {
- set gcc_version "4.8"
- }
-
- # when using non-Apple GCC for universal install, it can
- # create binaries only for the native OS architecture, at
- # either 32 or 64 bits. Restrict the supported archs
- # accordingly.
- if {${os.arch} eq "i386"} {
- supported_archs i386 x86_64
- } elseif {${os.arch} eq "powerpc"} {
- supported_archs ppc ppc64
- }
-
- # include all the correct GCC4X port
- depends_lib-append port:gcc[join [split ${gcc_version} "."] ""]
-
- # force LDFLAGS for correct linking of the linalg module
- # for non-Apple GCC compilers
- patchfiles-append patch-numpy_linalg_setup.py.diff
-
- if {${gcc_version} == ""} {
- # user specified -gcc4X but +atlas (either as default or
- # explicitly); do not allow since it might lead to
- # undetermined runtime execution.
- return -code error \
-"\n\nWhen using the +atlas variant (either as the default or setting
-explicitly), one of the +gcc4X variants must be selected.\n"
- }
- }
-
- post-patch {
- reinplace "s|@@MPORTS_PYTHON@@|${python.bin}|" \
- ${worksrcpath}/numpy/f2py/setup.py
-
- if {[variant_isset universal] && [variant_isset atlas]} {
- # Prepare wrappers
- file copy -force ${filespath}/wrapper-template \
- ${worksrcpath}/c-wrapper
- file copy -force ${filespath}/wrapper-template \
- ${worksrcpath}/f-wrapper
- file copy -force ${filespath}/wrapper-template \
- ${worksrcpath}/cxx-wrapper
-
- reinplace "s|@@@|${configure.cc}|" ${worksrcpath}/c-wrapper
- reinplace "s|---|\\\\.c|" ${worksrcpath}/c-wrapper
- reinplace "s|&&&|${prefix}|" ${worksrcpath}/c-wrapper
-
- reinplace "s|@@@|${configure.cxx}|" ${worksrcpath}/cxx-wrapper
- reinplace "s#---#(\\\\.C|\\\\.cpp|\\\\.cc)#" \
- ${worksrcpath}/cxx-wrapper
- reinplace "s|&&&|${prefix}|" ${worksrcpath}/cxx-wrapper
-
- reinplace "s|@@@|${configure.f90}|" ${worksrcpath}/f-wrapper
- reinplace "s|---|\\\\.f|" ${worksrcpath}/f-wrapper
- reinplace "s|&&&|${prefix}|" ${worksrcpath}/f-wrapper
-
- build.env-append CC="${worksrcpath}/c-wrapper" \
- CXX="${worksrcpath}/cxx-wrapper" \
- F77="${worksrcpath}/f-wrapper" \
- F90="${worksrcpath}/f-wrapper"
-
- destroot.env-append CC="${worksrcpath}/c-wrapper" \
- CXX="${worksrcpath}/cxx-wrapper" \
- F77="${worksrcpath}/f-wrapper" \
- F90="${worksrcpath}/f-wrapper"
- }
-
- if {[variant_isset atlas]} {
- # We must link against libSatlas or libTatlas, not libAtlas
- if {[file exists ${prefix}/lib/libtatlas.dylib]} {
- reinplace -E \
- "s|_lib_atlas = \\\['atlas'\\\]|_lib_atlas = \\\['tatlas'\\\]|" \
- ${worksrcpath}/numpy/distutils/system_info.py
- } elseif {[file exists ${prefix}/lib/libsatlas.dylib]} {
- reinplace -E \
- "s|_lib_atlas = \\\['atlas'\\\]|_lib_atlas = \\\['satlas'\\\]|" \
- ${worksrcpath}/numpy/distutils/system_info.py
- } else {
- return -code error "Unable to find Atlas dylibs. Bailing out."
- }
- }
- }
-
- livecheck.type none
-
- if {[variant_isset atlas]} {
- build.env-append ATLAS=${prefix}/lib \
- LAPACK=${prefix}/lib \
- BLAS=${prefix}/lib
- destroot.env-append ATLAS=${prefix}/lib \
- LAPACK=${prefix}/lib \
- BLAS=${prefix}/lib
- } else {
- build.env-append ATLAS=None \
- LAPACK=/usr/lib \
- BLAS=/usr/lib
- destroot.env-append ATLAS=None \
- LAPACK=/usr/lib \
- BLAS=/usr/lib
- }
-
-} else {
- livecheck none
- #livecheck.regex archive/[join ${github.tag_prefix} ""](\[\\d+(?:\\.\\d+)*"\]+)${extract.suffix}"
-}
diff --git a/packaging/macosx/ports/python/py-numpy/files/patch-f2py_setup.py.diff b/packaging/macosx/ports/python/py-numpy/files/patch-f2py_setup.py.diff
deleted file mode 100644
index 1e3164e73..000000000
--- a/packaging/macosx/ports/python/py-numpy/files/patch-f2py_setup.py.diff
+++ /dev/null
@@ -1,39 +0,0 @@
---- numpy/f2py/setup.py
-+++ numpy/f2py/setup.py
-@@ -41,21 +41,21 @@ def configuration(parent_package='',top_
- )
-
- config.make_svn_version_py()
-
- def generate_f2py_py(build_dir):
-- f2py_exe = 'f2py'+os.path.basename(sys.executable)[6:]
-+ f2py_exe = 'f2py'
- if f2py_exe[-4:]=='.exe':
- f2py_exe = f2py_exe[:-4] + '.py'
- if 'bdist_wininst' in sys.argv and f2py_exe[-3:] != '.py':
- f2py_exe = f2py_exe + '.py'
- target = os.path.join(build_dir, f2py_exe)
- if newer(__file__, target):
- log.info('Creating %s', target)
- f = open(target, 'w')
- f.write('''\
--#!%s
-+#!@@MPORTS_PYTHON@@
- # See http://cens.ioc.ee/projects/f2py2e/
- import os, sys
- for mode in ["g3-numpy", "2e-numeric", "2e-numarray", "2e-numpy"]:
- try:
- i=sys.argv.index("--"+mode)
-@@ -75,11 +75,11 @@ elif mode=="2e-numpy":
- from numpy.f2py import main
- else:
- sys.stderr.write("Unknown mode: " + repr(mode) + "\\n")
- sys.exit(1)
- main()
--'''%(sys.executable))
-+''')
- f.close()
- return target
-
- config.add_scripts(generate_f2py_py)
-
diff --git a/packaging/macosx/ports/python/py-numpy/files/patch-fcompiler_g95.diff b/packaging/macosx/ports/python/py-numpy/files/patch-fcompiler_g95.diff
deleted file mode 100644
index b95a2609a..000000000
--- a/packaging/macosx/ports/python/py-numpy/files/patch-fcompiler_g95.diff
+++ /dev/null
@@ -1,15 +0,0 @@
---- numpy/distutils/fcompiler/__init__.py
-+++ numpy/distutils/fcompiler/__init__.py
-@@ -708,11 +708,11 @@
- ('win32', ('gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95',
- 'intelvem', 'intelem')),
- ('cygwin.*', ('gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95')),
- ('linux.*', ('gnu95', 'intel', 'lahey', 'pg', 'absoft', 'nag', 'vast', 'compaq',
- 'intele', 'intelem', 'gnu', 'g95', 'pathf95')),
-- ('darwin.*', ('gnu95', 'nag', 'absoft', 'ibm', 'intel', 'gnu', 'g95', 'pg')),
-+ ('darwin.*', ('gnu95', 'nag', 'absoft', 'ibm', 'intel', 'gnu', 'pg')),
- ('sunos.*', ('sun', 'gnu', 'gnu95', 'g95')),
- ('irix.*', ('mips', 'gnu', 'gnu95',)),
- ('aix.*', ('ibm', 'gnu', 'gnu95',)),
- # os.name mappings
- ('posix', ('gnu', 'gnu95',)),
diff --git a/packaging/macosx/ports/python/py-numpy/files/patch-numpy_core_setup.py.diff b/packaging/macosx/ports/python/py-numpy/files/patch-numpy_core_setup.py.diff
deleted file mode 100644
index 1c9a09c34..000000000
--- a/packaging/macosx/ports/python/py-numpy/files/patch-numpy_core_setup.py.diff
+++ /dev/null
@@ -1,34 +0,0 @@
---- numpy/core/setup.py.orig 2014-03-25 19:03:06.000000000 -0400
-+++ numpy/core/setup.py 2014-03-25 19:03:26.000000000 -0400
-@@ -485,7 +485,14 @@
- if isinstance(d, str):
- target_f.write('#define %s\n' % (d))
- else:
-- target_f.write('#define %s %s\n' % (d[0], d[1]))
-+ if d[0]!='SIZEOF_LONG' and d[0]!='SIZEOF_PY_INTPTR_T':
-+ target_f.write('#define %s %s\n' % (d[0], d[1]))
-+ else:
-+ target_f.write('#ifdef __LP64__\n')
-+ target_f.write('#define %s %s\n' % (d[0], 8))
-+ target_f.write('#else\n')
-+ target_f.write('#define %s %s\n' % (d[0], 4))
-+ target_f.write('#endif\n')
-
- # define inline to our keyword, or nothing
- target_f.write('#ifndef __cplusplus\n')
-@@ -585,7 +592,14 @@
- if isinstance(d, str):
- target_f.write('#define %s\n' % (d))
- else:
-- target_f.write('#define %s %s\n' % (d[0], d[1]))
-+ if d[0]!='NPY_SIZEOF_LONG' and d[0]!='NPY_SIZEOF_PY_INTPTR_T':
-+ target_f.write('#define %s %s\n' % (d[0], d[1]))
-+ else:
-+ target_f.write('#ifdef __LP64__\n')
-+ target_f.write('#define %s %s\n' % (d[0], 8))
-+ target_f.write('#else\n')
-+ target_f.write('#define %s %s\n' % (d[0], 4))
-+ target_f.write('#endif\n')
-
- # Define __STDC_FORMAT_MACROS
- target_f.write("""
diff --git a/packaging/macosx/ports/python/py-numpy/files/patch-numpy_linalg_setup.py.diff b/packaging/macosx/ports/python/py-numpy/files/patch-numpy_linalg_setup.py.diff
deleted file mode 100644
index 848d46186..000000000
--- a/packaging/macosx/ports/python/py-numpy/files/patch-numpy_linalg_setup.py.diff
+++ /dev/null
@@ -1,20 +0,0 @@
---- numpy/linalg/setup.py.orig 2013-11-16 08:30:31.000000000 -0500
-+++ numpy/linalg/setup.py 2013-11-16 08:39:27.000000000 -0500
-@@ -37,7 +37,8 @@
- config.add_extension('lapack_lite',
- sources = [get_lapack_lite_sources],
- depends = ['lapack_litemodule.c'] + lapack_lite_src,
-- extra_info = lapack_info
-+ extra_info = lapack_info,
-+ extra_link_args=['-undefined dynamic_lookup -bundle']
- )
-
- # umath_linalg module
-@@ -47,6 +48,7 @@
- depends = ['umath_linalg.c.src'] + lapack_lite_src,
- extra_info = lapack_info,
- libraries = ['npymath'],
-+ extra_link_args=['-undefined dynamic_lookup -bundle']
- )
-
- return config
diff --git a/packaging/macosx/ports/python/py-numpy/files/wrapper-template b/packaging/macosx/ports/python/py-numpy/files/wrapper-template
deleted file mode 100755
index 48936d107..000000000
--- a/packaging/macosx/ports/python/py-numpy/files/wrapper-template
+++ /dev/null
@@ -1,143 +0,0 @@
-#!/bin/sh
-COMPILER='@@@'
-SUFFIX='---'
-PREFIX='&&&'
-OUTPUT_O='NO'
-OUTPUT=''
-NAMED_OUTPUT=''
-LASTFILE=''
-INTEL='NO'
-SIZE32='NO'
-SIZE64='NO'
-NEWARGS=''
-
-SKIP='NO'
-
-for arg in $@
-do
- if [ $SKIP = 'ARCH' ]; then
- # intercept -arch option and set SIZEXX
- SKIP='NO'
- if [ $arg = 'x86_64' ] || [ $arg = 'ppc64' ]; then
- SIZE64='YES'
- else
- SIZE32='YES'
- fi
-
- # which architecture are we compiling for?
- if [ $arg = 'x86_64' ] || [ $arg = 'i386' ]; then
- INTEL='YES'
- fi
-
- elif [ $arg = '-arch' ]; then
- SKIP='ARCH'
-
- elif [ $arg = '--version' ]; then
- ${COMPILER} --version
- exit 0
-
- else
- NEWARGS+="$arg "
-
- # if the -c option is given, the output is .o
- if [ $arg = '-c' ]; then
- OUTPUT_O='YES'
- fi
-
- # if the output file is given by a -o option, record it
- if [ $SKIP = 'O' ]; then
- SKIP='NO'
- NAMED_OUTPUT=$arg
- fi
-
- if [ $arg = '-o' ]; then
- SKIP='O'
- fi
-
- # Note each file ending by ${SUFFIX} and remember the last one
- # Transform them in .o
- if `echo $arg | grep -q "${SUFFIX}$"`; then
- LASTFILE=$arg
- OUTPUT+=`echo $arg | sed "s/${SUFFIX}/\.o/"`
- OUTPUT+=' '
- fi
- fi
-done
-
-# What is the output?
-
-if [ ${NAMED_OUTPUT}"X" != "X" ]; then
- OUTPUT=$NAMED_OUTPUT
-
-elif [ $OUTPUT_O = 'NO' ]; then
- # It is an executable whose is name is the LASTFILE without suffix
- OUTPUT=`echo ${LASTFILE} | sed "s/${SUFFIX}//"`
-fi
-
-# Othewise, the output is just the ${OUTPUT} variable as computed before
-
-# For some reason, -dynamiclib and -lpython2.6 are missing when linking
-# .so files. Add them, except if -bundle is set (incompatible switches)
-if [ `echo $OUTPUT | sed -E 's|.*\.||'` = "so" ] && \
- ! `echo $NEWARGS | grep -q bundle`; then
- NEWARGS="${NEWARGS} ${PREFIX}/lib/libpython2.6.dylib -dynamiclib"
-fi
-
-# Now, compile
-
-if [ $SIZE32 = 'NO' ] && [ $SIZE64 = 'NO' ]; then
- # No size indication given, just proceed with default
- if `${COMPILER} $NEWARGS`; then
- exit 0
- else
- exit 1
- fi
-
-elif [ $SIZE32 = 'YES' ] && [ $SIZE64 = 'NO' ]; then
- # 32-bit
- if `${COMPILER} -m32 $NEWARGS`; then
- exit 0
- else
- exit 1
- fi
-
-elif [ $SIZE32 = 'NO' ] && [ $SIZE64 = 'YES' ]; then
- # 64-bit
- if `${COMPILER} -m64 $NEWARGS`; then
- exit 0
- else
- exit 1
- fi
-
-else
- # Universal case
- if `${COMPILER} -m32 $NEWARGS`; then
- for filename in ${OUTPUT}
- do
- mv ${filename} ${filename}.32
- done
-
- if `${COMPILER} -m64 $NEWARGS`; then
- for filename in ${OUTPUT}
- do
- mv ${filename} ${filename}.64
- if [ $INTEL = 'YES' ]; then
- lipo -create -arch x86_64 ${filename}.64 \
- -arch i386 ${filename}.32 \
- -output ${filename}
- else
- lipo -create -arch ppc64 ${filename}.64 \
- -arch ppc ${filename}.32 \
- -output ${filename}
- fi
-
- rm -f ${filename}.32 ${filename}.64
- done
- else
- exit 1
- fi
- else
- exit 1
- fi
-fi
-exit 0
diff --git a/packaging/macosx/ports/python/py-sk1libs/Portfile b/packaging/macosx/ports/python/py-sk1libs/Portfile
deleted file mode 100644
index 0c152ce8c..000000000
--- a/packaging/macosx/ports/python/py-sk1libs/Portfile
+++ /dev/null
@@ -1,64 +0,0 @@
-# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
-# $Id$
-
-PortSystem 1.0
-PortGroup python 1.0
-
-name py-sk1libs
-version 0.9.1
-revision 101
-license LGPL-2
-maintainers nomaintainer
-categories python graphics
-platforms darwin
-homepage http://sk1project.org/
-
-description Set of python non-GUI extensions for sK1 Project
-
-long_description \
- sk1libs is a set of python non-GUI extensions for sK1 Project. \
- The package includes multiplatform non-GUI extensions which are \
- usually native extensions.
-
-distname sk1libs-${version}
-# MacPorts does not properly support URLs with a get parameter.
-# Workaround for this bug: https://trac.macports.org/wiki/PortfileRecipes#fetchwithgetparams
-master_sites http://sk1project.org/dc.php?target=${distfiles}&dummy=
-
-checksums md5 e18088bbc8a105e7535a96f40b80f284 \
- sha1 dd948558128bb6547b1f277087bf3066104912da \
- rmd160 38f22205e0b5b6078e31ec6dc4c1d93845533046
-
-python.versions 25 26 27
-
-if {$subport != $name} {
-
- depends_lib-append \
- port:freetype \
- port:jpeg \
- port:lcms \
- port:zlib
-
- depends_run-append \
- port:py${python.version}-pil
-
- variant Pillow {
- depends_run-delete port:py${python.version}-pil
- depends_run-append port:py${python.version}-Pillow
- }
-
- patchfiles \
- patch-src-utils-fs.py.diff \
- patch-src-imaging-libimagingft-_imagingft.c.diff
-
- post-patch {
- reinplace "s|'/usr/include/freetype2'|'${prefix}/include/freetype2'|g" ${worksrcpath}/setup.py
- reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/src/utils/fs.py
- }
-}
-
-default_variants +Pillow
-
-livecheck.type regex
-livecheck.url http://sk1project.org/modules.php?name=Products&product=uniconvertor&op=download
-livecheck.regex "sk1libs-(\\d+(?:\\.\\d+)*)${extract.suffix}"
diff --git a/packaging/macosx/ports/python/py-sk1libs/files/patch-src-imaging-libimagingft-_imagingft.c.diff b/packaging/macosx/ports/python/py-sk1libs/files/patch-src-imaging-libimagingft-_imagingft.c.diff
deleted file mode 100644
index 1d69461a3..000000000
--- a/packaging/macosx/ports/python/py-sk1libs/files/patch-src-imaging-libimagingft-_imagingft.c.diff
+++ /dev/null
@@ -1,16 +0,0 @@
---- src/imaging/libimagingft/_imagingft.c.orig 2014-07-13 00:37:57.000000000 +0200
-+++ src/imaging/libimagingft/_imagingft.c 2014-07-13 00:41:08.000000000 +0200
-@@ -70,7 +70,13 @@
- const char* message;
- } ft_errors[] =
-
-+#if defined(USE_FREETYPE_2_1)
-+/* freetype 2.1 and newer */
-+#include FT_ERRORS_H
-+#else
-+/* freetype 2.0 */
- #include <freetype/fterrors.h>
-+#endif
-
- /* -------------------------------------------------------------------- */
- /* font objects */
diff --git a/packaging/macosx/ports/python/py-sk1libs/files/patch-src-utils-fs.py.diff b/packaging/macosx/ports/python/py-sk1libs/files/patch-src-utils-fs.py.diff
deleted file mode 100644
index 541935e71..000000000
--- a/packaging/macosx/ports/python/py-sk1libs/files/patch-src-utils-fs.py.diff
+++ /dev/null
@@ -1,26 +0,0 @@
---- src/utils/fs.py.orig 2010-05-23 12:46:21.000000000 +0200
-+++ src/utils/fs.py 2013-01-18 15:40:02.000000000 +0100
-@@ -220,8 +220,14 @@
- finally:
- _winreg.CloseKey( k )
- if system.get_os_family()==system.MACOSX:
-- #FIXME: It's a stub. The paths should be more exact.
-- return ['/',]
-+ return ['__PREFIX__/share/fonts',
-+ '/usr/share/fonts',
-+ '/opt/X11/lib/X11/fonts',
-+ '/System/Library/Fonts',
-+ '/Network/Library/Fonts',
-+ '/Library/Fonts',
-+ os.path.expanduser("~/Library/Fonts"),
-+ os.path.expanduser("~/.fonts")]
-
-
- DIRECTORY_OBJECT=0
-@@ -311,4 +317,4 @@
- if __name__ == '__main__':
- _test()
-
--
-\ No newline at end of file
-+
diff --git a/packaging/macosx/ports/python/py-uniconvertor/Portfile b/packaging/macosx/ports/python/py-uniconvertor/Portfile
deleted file mode 100644
index 2c4a22ca0..000000000
--- a/packaging/macosx/ports/python/py-uniconvertor/Portfile
+++ /dev/null
@@ -1,46 +0,0 @@
-# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
-# $Id$
-
-PortSystem 1.0
-PortGroup python 1.0
-
-name py-uniconvertor
-version 1.1.5
-revision 100
-license LGPL-2 GPL-2
-maintainers nomaintainer
-categories python graphics
-platforms darwin
-homepage http://sk1project.org/modules.php?name=Products&product=uniconvertor
-
-description universal vector graphics translator.
-
-long_description \
- UniConvertor is a universal vector graphics translator. It is a command \
- line tool which uses sK1 object model to convert one format to another. \
- Supported input formats include CorelDraw v7-X4 (CDR/CDT/CCX/CDRX/CMX), \
- Adobe Illustrator v5-9 (AI), PS, EPS, CGM, WMF, XFIG, SVG, SK, SK1, AFF. \
- Supported output formats include Adobe Illustrator AI, PS, CGM, WMF, \
- SVG, SK, SK1, PDF.
-
-distname uniconvertor-${version}
-# MacPorts does not properly support URLs with a get parameter.
-# Workaround for this bug: https://trac.macports.org/wiki/PortfileRecipes#fetchwithgetparams
-master_sites http://sk1project.org/dc.php?target=${distfiles}&dummy=
-
-checksums md5 d1272315a58304ece2ff588834e23f72 \
- sha1 51ec7c4487048c3357ed95cdb4ab3524018a2c9e \
- rmd160 86211bdb7b7af7611a9db4a2e2f6101995af6850
-
-python.versions 25 26 27
-
-if {$subport != $name} {
-
- depends_lib-append \
- port:py${python.version}-sk1libs
-
-}
-
-livecheck.type regex
-livecheck.url http://sk1project.org/modules.php?name=Products&product=uniconvertor&op=download
-livecheck.regex "uniconvertor-(\\d+(?:\\.\\d+)*)${extract.suffix}"
diff --git a/packaging/macosx/ports/python/py25-Pillow/Portfile b/packaging/macosx/ports/python/py25-Pillow/Portfile
deleted file mode 100644
index aa74a06ad..000000000
--- a/packaging/macosx/ports/python/py25-Pillow/Portfile
+++ /dev/null
@@ -1,77 +0,0 @@
-# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
-# $Id: Portfile 104088 2013-03-15 14:39:56Z stromnov@macports.org $
-
-PortSystem 1.0
-PortGroup python 1.0
-
-name py25-Pillow
-set real_name py-Pillow
-version 1.7.8
-revision 100
-categories-append devel
-platforms darwin
-license BSD
-
-python.versions 25
-python.version 25
-
-maintainers stromnov openmaintainer
-
-description Python Imaging Library (fork)
-
-long_description ${description}
-
-homepage http://github.com/python-imaging/Pillow
-master_sites http://pypi.python.org/packages/source/P/Pillow/
-
-distname Pillow-${version}
-use_zip yes
-
-checksums rmd160 e52cec02d943951a80d30b32b1764cb3ae87b283 \
- sha256 907f5342b1df1d277dcc10df2aeabc61099e5a07e0676b9fcd1bb7379890c0ee
-
-if {$subport == $name} {
- conflicts py${python.version}-pil
-
- depends_build port:py${python.version}-setuptools
- depends_lib-append \
- port:zlib \
- port:jpeg \
- port:tiff \
- port:lcms \
- port:webp \
- port:freetype
-
- patchfiles patch-setup.py-v1.7.8.diff \
- patch-_imagingft.c.diff
-
- post-patch {
- reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/setup.py
- }
-
- livecheck.type none
-#} else {
-# livecheck.type regex
-# livecheck.url ${master_sites}
-# livecheck.regex "Pillow-(\\d+(?:\\.\\d+)*)${extract.suffix}"
-}
-
-variant quartz conflicts x11 tkinter {
- # tkinter doesn't build
-}
-
-variant x11 conflicts quartz {
- # tkinter does build
-}
-
-variant tkinter description {with tkinter support} {
- if {$subport == $name} {
- depends_lib-append port:py${python.version}-tkinter
- }
-}
-
-#if { ![variant_isset quartz] } {
-# default_variants-append +tkinter
-#}
-
-default_variants -tkinter
diff --git a/packaging/macosx/ports/python/py25-Pillow/files/patch-_imagingft.c.diff b/packaging/macosx/ports/python/py25-Pillow/files/patch-_imagingft.c.diff
deleted file mode 100644
index 99f72a8c9..000000000
--- a/packaging/macosx/ports/python/py25-Pillow/files/patch-_imagingft.c.diff
+++ /dev/null
@@ -1,14 +0,0 @@
---- _imagingft.c.orig 2013-11-27 16:07:53.000000000 +0400
-+++ _imagingft.c 2013-11-27 16:12:01.000000000 +0400
-@@ -70,7 +70,11 @@
- const char* message;
- } ft_errors[] =
-
-+#if defined(USE_FREETYPE_2_1)
-+#include FT_ERRORS_H
-+#else
- #include <freetype/fterrors.h>
-+#endif
-
- /* -------------------------------------------------------------------- */
- /* font objects */
diff --git a/packaging/macosx/ports/python/py25-Pillow/files/patch-setup.py-v1.7.8.diff b/packaging/macosx/ports/python/py25-Pillow/files/patch-setup.py-v1.7.8.diff
deleted file mode 100644
index 2f4b797f6..000000000
--- a/packaging/macosx/ports/python/py25-Pillow/files/patch-setup.py-v1.7.8.diff
+++ /dev/null
@@ -1,83 +0,0 @@
---- setup.py.orig 2014-09-02 02:51:22.000000000 +0200
-+++ setup.py 2014-09-02 02:53:51.000000000 +0200
-@@ -100,18 +100,9 @@
- "/usr/lib", "python%s" % sys.version[:3], "config"))
-
- elif sys.platform == "darwin":
-- # attempt to make sure we pick freetype2 over other versions
-- _add_directory(include_dirs, "/sw/include/freetype2")
-- _add_directory(include_dirs, "/sw/lib/freetype2/include")
-- # fink installation directories
-- _add_directory(library_dirs, "/sw/lib")
-- _add_directory(include_dirs, "/sw/include")
- # darwin ports installation directories
-- _add_directory(library_dirs, "/opt/local/lib")
-- _add_directory(include_dirs, "/opt/local/include")
-- # freetype2 ships with X11
-- _add_directory(library_dirs, "/usr/X11/lib")
-- _add_directory(include_dirs, "/usr/X11/include")
-+ _add_directory(library_dirs, "@prefix@/lib")
-+ _add_directory(include_dirs, "@prefix@/include")
-
- elif sys.platform.startswith("linux"):
- if platform.processor() == "x86_64":
-@@ -126,9 +117,6 @@
- # work ;-)
- self.add_multiarch_paths()
-
-- _add_directory(library_dirs, "/usr/local/lib")
-- # FIXME: check /opt/stuff directories here?
--
- prefix = sysconfig.get_config_var("prefix")
- if prefix:
- _add_directory(library_dirs, os.path.join(prefix, "lib"))
-@@ -180,19 +168,6 @@
- #
- # add standard directories
-
-- # look for tcl specific subdirectory (e.g debian)
-- if _tkinter:
-- tcl_dir = "/usr/include/tcl" + TCL_VERSION
-- if os.path.isfile(os.path.join(tcl_dir, "tk.h")):
-- _add_directory(include_dirs, tcl_dir)
--
-- # standard locations
-- _add_directory(library_dirs, "/usr/local/lib")
-- _add_directory(include_dirs, "/usr/local/include")
--
-- _add_directory(library_dirs, "/usr/lib")
-- _add_directory(include_dirs, "/usr/include")
--
- #
- # insert new dirs *before* default libs, to avoid conflicts
- # between Python PYD stub libs and real libraries
-@@ -307,28 +282,7 @@
- exts.append(Extension(
- "_imagingcms", ["_imagingcms.c"], libraries=["lcms"] + extra))
-
-- if sys.platform == "darwin":
-- # locate Tcl/Tk frameworks
-- frameworks = []
-- framework_roots = [
-- "/Library/Frameworks",
-- "/System/Library/Frameworks"]
-- for root in framework_roots:
-- if (os.path.exists(os.path.join(root, "Tcl.framework")) and
-- os.path.exists(os.path.join(root, "Tk.framework"))):
-- print("--- using frameworks at %s" % root)
-- frameworks = ["-framework", "Tcl", "-framework", "Tk"]
-- dir = os.path.join(root, "Tcl.framework", "Headers")
-- _add_directory(self.compiler.include_dirs, dir, 0)
-- dir = os.path.join(root, "Tk.framework", "Headers")
-- _add_directory(self.compiler.include_dirs, dir, 1)
-- break
-- if frameworks:
-- exts.append(Extension(
-- "_imagingtk", ["_imagingtk.c", "Tk/tkImaging.c"],
-- extra_compile_args=frameworks, extra_link_args=frameworks))
-- feature.tcl = feature.tk = 1 # mark as present
-- elif feature.tcl and feature.tk:
-+ if feature.tcl and feature.tk:
- exts.append(Extension(
- "_imagingtk", ["_imagingtk.c", "Tk/tkImaging.c"],
- libraries=[feature.tcl, feature.tk]))
diff --git a/packaging/macosx/ports/python/py25-lxml/Portfile b/packaging/macosx/ports/python/py25-lxml/Portfile
deleted file mode 100644
index 49a753cd1..000000000
--- a/packaging/macosx/ports/python/py25-lxml/Portfile
+++ /dev/null
@@ -1,51 +0,0 @@
-# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
-# $Id: Portfile 121661 2014-07-03 17:50:11Z mf2k@macports.org $
-
-PortSystem 1.0
-PortGroup python 1.0
-
-name py25-lxml
-version 3.3.5
-revision 0
-categories-append devel
-platforms darwin
-license BSD
-
-python.versions 25
-
-maintainers gmail.com:dbraband openmaintainer
-
-description Powerful and Pythonic XML processing library
-
-long_description lxml is a Pythonic binding for the libxml2 and \
- libxslt libraries. It is unique in that it \
- combines the speed and feature completeness of \
- these libraries with the simplicity of a native \
- Python API, mostly compatible but superior to \
- the well-known ElementTree API.
-
-homepage http://lxml.de/
-master_sites http://pypi.python.org/packages/source/l/lxml/
-
-checksums rmd160 c7ccece50f8d20f5fac44ac1bf8dc0d8a85aa0f9 \
- sha256 6ad6949dc7eea744a30fba77a968dd5910f545220e58bcc813b9df5c793e318a
-
-distname lxml-${version}
-
-if {${name} eq ${subport}} {
-
- revision 100
-
- depends_build-append \
- port:py${python.version}-setuptools
-
- depends_lib-append port:zlib \
- port:libxml2 \
- port:libxslt
-
- livecheck.type none
-} else {
- livecheck.type regex
- livecheck.url ${master_sites}
- livecheck.regex "lxml-(\\d+(?:\\.\\d+)*)${extract.suffix}"
-}
diff --git a/packaging/macosx/ports/python/py25-nose/Portfile b/packaging/macosx/ports/python/py25-nose/Portfile
deleted file mode 100644
index 62a60eec5..000000000
--- a/packaging/macosx/ports/python/py25-nose/Portfile
+++ /dev/null
@@ -1,86 +0,0 @@
-# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
-# $Id: Portfile 121661 2014-07-03 17:50:11Z mf2k@macports.org $
-
-PortSystem 1.0
-PortGroup python 1.0
-PortGroup select 1.0
-
-set my_name nose
-name py25-${my_name}
-version 1.3.1
-categories-append www
-license LGPL-2+
-maintainers mcalhoun openmaintainer
-description A Python unittest extension.
-long_description \
- A unittest extension offering automatic test \
- suite discovery, simplified test authoring, \
- and output capture. Nose provides an alternate \
- test discovery and running process for \
- unittest, one that is intended to mimic the \
- behavior of py.test as much as is reasonably \
- possible without resorting to magic.
-
-platforms darwin
-supported_archs noarch
-
-homepage http://somethingaboutorange.com/mrl/projects/${my_name}
-master_sites http://pypi.python.org/packages/source/n/${my_name}/
-distname ${my_name}-${version}
-
-checksums md5 672398801ddf5ba745c55c6eed79c5aa \
- rmd160 7bf311d3d54f2ccb372dea331708c475b992ccec \
- sha256 85273b87ab3db9307e3b1452b071e25c1db1cc812bc337d2a97ea0b0cf2ab6ba
-
-python.versions 25
-
-# already installs version-suffixed executables
-python.link_binaries no
-python.move_binaries no
-
-depends_run-append port:nosetests_select
-if {${name} eq ${subport}} {
-
- revision 100
-
- select.group nosetests
- select.file ${filespath}/nosetests${python.version}
-
- depends_lib port:py${python.version}-setuptools
-
- post-patch {
- reinplace "s|man/man|share/man/man|" ${worksrcpath}/setup.py
-
- # One of the tests fails if this directory does not exist
- file mkdir ${worksrcpath}/functional_tests/support/empty
- }
-
- post-destroot {
- if {${python.version} == "24" || ${python.version} == "25"} {
- move ${destroot}${prefix}/share/man/man1/nosetests.1 ${destroot}${prefix}/share/man/man1/nosetests${python.branch}.1
- delete ${destroot}${prefix}/bin/nosetests
- } else {
- ln -s ${python.prefix}/bin/nosetests-${python.branch} ${destroot}${prefix}/bin/
- ln -s ${python.prefix}/share/man/man1/nosetests.1 ${destroot}${prefix}/share/man/man1/nosetests${python.branch}.1
- }
-
- xinstall -m 644 -W ${worksrcpath} \
- AUTHORS CHANGELOG NEWS README.txt \
- ${destroot}${prefix}/share/doc/${subport}
-
- file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${subport}/html
-
- file delete ${destroot}${prefix}/share/doc/${subport}/examples
- file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${subport}
- }
-
- test.run yes
- test.cmd ${python.bin} setup.py test
-
- livecheck.type none
-
-#} else {
-# livecheck.type regex
-# livecheck.url ${master_sites}
-# livecheck.regex "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
-}
diff --git a/packaging/macosx/ports/python/py25-nose/files/nosetests24 b/packaging/macosx/ports/python/py25-nose/files/nosetests24
deleted file mode 100644
index d9a8f4034..000000000
--- a/packaging/macosx/ports/python/py25-nose/files/nosetests24
+++ /dev/null
@@ -1 +0,0 @@
-bin/nosetests-2.4
diff --git a/packaging/macosx/ports/python/py25-nose/files/nosetests25 b/packaging/macosx/ports/python/py25-nose/files/nosetests25
deleted file mode 100644
index 95864c283..000000000
--- a/packaging/macosx/ports/python/py25-nose/files/nosetests25
+++ /dev/null
@@ -1 +0,0 @@
-bin/nosetests-2.5
diff --git a/packaging/macosx/ports/python/py25-nose/files/nosetests26 b/packaging/macosx/ports/python/py25-nose/files/nosetests26
deleted file mode 100644
index bb670776f..000000000
--- a/packaging/macosx/ports/python/py25-nose/files/nosetests26
+++ /dev/null
@@ -1 +0,0 @@
-bin/nosetests-2.6
diff --git a/packaging/macosx/ports/python/py25-nose/files/nosetests27 b/packaging/macosx/ports/python/py25-nose/files/nosetests27
deleted file mode 100644
index 28c7bfe8c..000000000
--- a/packaging/macosx/ports/python/py25-nose/files/nosetests27
+++ /dev/null
@@ -1 +0,0 @@
-bin/nosetests-2.7
diff --git a/packaging/macosx/ports/python/py25-nose/files/nosetests31 b/packaging/macosx/ports/python/py25-nose/files/nosetests31
deleted file mode 100644
index 5ba27a4d5..000000000
--- a/packaging/macosx/ports/python/py25-nose/files/nosetests31
+++ /dev/null
@@ -1 +0,0 @@
-bin/nosetests-3.1
diff --git a/packaging/macosx/ports/python/py25-nose/files/nosetests32 b/packaging/macosx/ports/python/py25-nose/files/nosetests32
deleted file mode 100644
index 07bfb86a1..000000000
--- a/packaging/macosx/ports/python/py25-nose/files/nosetests32
+++ /dev/null
@@ -1 +0,0 @@
-bin/nosetests-3.2
diff --git a/packaging/macosx/ports/python/py25-nose/files/nosetests33 b/packaging/macosx/ports/python/py25-nose/files/nosetests33
deleted file mode 100644
index b750d806b..000000000
--- a/packaging/macosx/ports/python/py25-nose/files/nosetests33
+++ /dev/null
@@ -1 +0,0 @@
-bin/nosetests-3.3
diff --git a/packaging/macosx/ports/python/py25-nose/files/nosetests34 b/packaging/macosx/ports/python/py25-nose/files/nosetests34
deleted file mode 100644
index 542ffc949..000000000
--- a/packaging/macosx/ports/python/py25-nose/files/nosetests34
+++ /dev/null
@@ -1 +0,0 @@
-bin/nosetests-3.4
diff --git a/packaging/macosx/ports/python/py25-numpy/Portfile b/packaging/macosx/ports/python/py25-numpy/Portfile
deleted file mode 100644
index 4575d6293..000000000
--- a/packaging/macosx/ports/python/py25-numpy/Portfile
+++ /dev/null
@@ -1,209 +0,0 @@
-# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
-# $Id: Portfile 113172 2013-11-11 10:24:44Z jeremyhu@macports.org $
-
-PortSystem 1.0
-PortGroup python 1.0
-PortGroup github 1.0
-
-github.setup numpy numpy 1.7.1 v
-name py25-numpy
-revision 1
-dist_subdir ${name}/${version}_1
-
-categories-append math
-license BSD
-platforms darwin
-maintainers dh michaelld openmaintainer
-description The core utilities for the scientific library scipy for Python
-long_description ${description}
-
-checksums rmd160 16df4216f40b22077e1f14cc41b8c8ae486b45af \
- sha256 14964724915e5fa1ed34d2cdb93eed5a86bc16edd4a1203cf521ad8bbbcb5215
-
-python.versions 25
-
-if {$subport == $name} {
-
- revision 100
-
- patchfiles patch-f2py_setup.py.diff \
- patch-numpy_distutils_fcompiler___init__.py.diff \
- patch-fcompiler_g95.diff
-
- depends_lib-append port:fftw-3 \
- port:py${python.version}-nose
-
- # http://trac.macports.org/ticket/34562
- destroot.env-append \
- CC="${configure.cc}" \
- CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
- CXX="${configure.cxx}" \
- CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
- OBJC="${configure.objc}" \
- OBJCFLAGS="${configure.objcflags} [get_canonical_archflags objc]" \
- LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
-
- build.env-append ARCHFLAGS="[get_canonical_archflags ld]"
- destroot.env-append ARCHFLAGS="[get_canonical_archflags ld]"
-
- variant atlas description {Use the MacPorts' ATLAS libraries \
- instead of Apple's Accelerate framework} {
- build.env-append ATLAS=${prefix}/lib \
- LAPACK=${prefix}/lib \
- BLAS=${prefix}/lib
- destroot.env-append ATLAS=${prefix}/lib \
- LAPACK=${prefix}/lib \
- BLAS=${prefix}/lib
- depends_lib-append port:atlas
-
- if {[variant_isset universal]} {
- python.set_compiler no
- }
- }
-
- # when using ATLAS (whether by default or specified by the user via
- # the +atlas variant) ...
- set gcc_version ""
- if {[variant_isset atlas]} {
-
- # see if the user has set -gcc4X to disable using MacPorts'
- # compiler; if not, either use what the user set (as +gcc4X) or
- # default to gcc47.
-
- variant gcc43 conflicts gcc44 gcc45 gcc46 gcc47 gcc48 \
- description {Use the gcc43 compiler (enables fortran linking)} {
- configure.compiler macports-gcc-4.3
- }
-
- variant gcc44 conflicts gcc43 gcc45 gcc46 gcc47 gcc48 \
- description {Use the gcc44 compiler (enables fortran linking)} {
- configure.compiler macports-gcc-4.4
- }
-
- variant gcc45 conflicts gcc43 gcc44 gcc46 gcc47 gcc48 \
- description {Use the gcc45 compiler (enables fortran linking)} {
- configure.compiler macports-gcc-4.5
- }
-
- variant gcc46 conflicts gcc43 gcc44 gcc45 gcc47 gcc48 \
- description {Use the gcc46 compiler (enables fortran linking)} {
- configure.compiler macports-gcc-4.6
- }
-
- variant gcc47 conflicts gcc43 gcc44 gcc45 gcc46 gcc48 \
- description {Use the gcc47 compiler (enables fortran linking)} {
- configure.compiler macports-gcc-4.7
- }
-
- variant gcc48 conflicts gcc43 gcc44 gcc45 gcc46 gcc47 \
- description {Use the gcc48 compiler (enables fortran linking)} {
- configure.compiler macports-gcc-4.8
- }
-
- if {![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc48]} {
- default_variants +gcc47
- }
-
- if {[variant_isset gcc43]} {
- set gcc_version "4.3"
- } elseif {[variant_isset gcc44]} {
- set gcc_version "4.4"
- } elseif {[variant_isset gcc45]} {
- set gcc_version "4.5"
- } elseif {[variant_isset gcc46]} {
- set gcc_version "4.6"
- } elseif {[variant_isset gcc47]} {
- set gcc_version "4.7"
- } elseif {[variant_isset gcc48]} {
- set gcc_version "4.8"
- }
-
- # when using non-Apple GCC for universal install, it can
- # create binaries only for the native OS architecture, at
- # either 32 or 64 bits. Restrict the supported archs
- # accordingly.
- if {${os.arch} == "i386"} {
- supported_archs i386 x86_64
- } elseif {${os.arch} == "powerpc"} {
- supported_archs ppc ppc64
- }
-
- # include all the correct GCC4X port
- depends_lib-append port:gcc[join [split ${gcc_version} "."] ""]
-
- # force LDFLAGS for correct linking of the linalg module
- # for non-Apple GCC compilers
- patchfiles-append patch-numpy_linalg_setup.py.diff
-
- if {${gcc_version} == ""} {
- # user specified -gcc4X but +atlas (either as default or
- # explicitly); do not allow since it might lead to
- # undetermined runtime execution.
- return -code error \
-"\n\nWhen using the +atlas variant (either as the default or setting
-explicitly), one of the +gcc4X variants must be selected.\n"
- }
-
- } else {
- variant universal {
- patchfiles-append patch-setup.py.diff
- }
- }
-
- post-patch {
- reinplace "s|@@MPORTS_PYTHON@@|${python.bin}|" \
- ${worksrcpath}/numpy/f2py/setup.py
-
- if {[variant_isset universal] && [variant_isset atlas]} {
- # Prepare wrappers
- file copy -force ${filespath}/wrapper-template \
- ${worksrcpath}/c-wrapper
- file copy -force ${filespath}/wrapper-template \
- ${worksrcpath}/f-wrapper
- file copy -force ${filespath}/wrapper-template \
- ${worksrcpath}/cxx-wrapper
-
- reinplace "s|@@@|${configure.cc}|" ${worksrcpath}/c-wrapper
- reinplace "s|---|\\\\.c|" ${worksrcpath}/c-wrapper
- reinplace "s|&&&|${prefix}|" ${worksrcpath}/c-wrapper
-
- reinplace "s|@@@|${configure.cxx}|" ${worksrcpath}/cxx-wrapper
- reinplace "s#---#(\\\\.C|\\\\.cpp|\\\\.cc)#" \
- ${worksrcpath}/cxx-wrapper
- reinplace "s|&&&|${prefix}|" ${worksrcpath}/cxx-wrapper
-
- reinplace "s|@@@|${configure.f90}|" ${worksrcpath}/f-wrapper
- reinplace "s|---|\\\\.f|" ${worksrcpath}/f-wrapper
- reinplace "s|&&&|${prefix}|" ${worksrcpath}/f-wrapper
-
- build.env-append CC="${worksrcpath}/c-wrapper" \
- CXX="${worksrcpath}/cxx-wrapper" \
- F77="${worksrcpath}/f-wrapper" \
- F90="${worksrcpath}/f-wrapper"
-
- destroot.env-append CC="${worksrcpath}/c-wrapper" \
- CXX="${worksrcpath}/cxx-wrapper" \
- F77="${worksrcpath}/f-wrapper" \
- F90="${worksrcpath}/f-wrapper"
- }
-
- if {[variant_isset atlas]} {
- # We must link against libSatlas or libTatlas, not libAtlas
- if {[file exists ${prefix}/lib/libtatlas.dylib]} {
- reinplace -E \
- "s|_lib_atlas = \\\['atlas'\\\]|_lib_atlas = \\\['tatlas'\\\]|" \
- ${worksrcpath}/numpy/distutils/system_info.py
- } elseif {[file exists ${prefix}/lib/libsatlas.dylib]} {
- reinplace -E \
- "s|_lib_atlas = \\\['atlas'\\\]|_lib_atlas = \\\['satlas'\\\]|" \
- ${worksrcpath}/numpy/distutils/system_info.py
- } else {
- return -code error "Unable to find Atlas dylibs. Bailing out."
- }
- }
- }
-
- livecheck.type none
-#} else {
-# livecheck.regex archive/[join ${github.tag_prefix} ""](\[\\d+(?:\\.\\d+)*"\]+)${extract.suffix}"
-}
diff --git a/packaging/macosx/ports/python/py25-numpy/files/patch-f2py_setup.py.diff b/packaging/macosx/ports/python/py25-numpy/files/patch-f2py_setup.py.diff
deleted file mode 100644
index 5b8f2a28f..000000000
--- a/packaging/macosx/ports/python/py25-numpy/files/patch-f2py_setup.py.diff
+++ /dev/null
@@ -1,29 +0,0 @@
---- numpy/f2py/setup.py.orig 2013-02-10 00:51:36.000000000 +0400
-+++ numpy/f2py/setup.py 2013-03-19 15:27:15.000000000 +0400
-@@ -41,7 +41,7 @@
- config.make_svn_version_py()
-
- def generate_f2py_py(build_dir):
-- f2py_exe = 'f2py'+os.path.basename(sys.executable)[6:]
-+ f2py_exe = 'f2py'
- if f2py_exe[-4:]=='.exe':
- f2py_exe = f2py_exe[:-4] + '.py'
- if 'bdist_wininst' in sys.argv and f2py_exe[-3:] != '.py':
-@@ -51,7 +51,7 @@
- log.info('Creating %s', target)
- f = open(target,'w')
- f.write('''\
--#!/usr/bin/env %s
-+#!@@MPORTS_PYTHON@@
- # See http://cens.ioc.ee/projects/f2py2e/
- import os, sys
- for mode in ["g3-numpy", "2e-numeric", "2e-numarray", "2e-numpy"]:
-@@ -75,7 +75,7 @@
- sys.stderr.write("Unknown mode: " + repr(mode) + "\\n")
- sys.exit(1)
- main()
--'''%(os.path.basename(sys.executable)))
-+''')
- f.close()
- return target
-
diff --git a/packaging/macosx/ports/python/py25-numpy/files/patch-fcompiler_g95.diff b/packaging/macosx/ports/python/py25-numpy/files/patch-fcompiler_g95.diff
deleted file mode 100644
index 2640a530b..000000000
--- a/packaging/macosx/ports/python/py25-numpy/files/patch-fcompiler_g95.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- numpy/distutils/fcompiler/__init__.py.orig 2013-03-19 13:35:03.000000000 +0400
-+++ numpy/distutils/fcompiler/__init__.py 2013-03-19 13:35:27.000000000 +0400
-@@ -708,7 +708,7 @@
- ('cygwin.*', ('gnu','intelv','absoft','compaqv','intelev','gnu95','g95')),
- ('linux.*', ('gnu95','intel','lahey','pg','absoft','nag','vast','compaq',
- 'intele','intelem','gnu','g95','pathf95')),
-- ('darwin.*', ('gnu95', 'nag', 'absoft', 'ibm', 'intel', 'gnu', 'g95', 'pg')),
-+ ('darwin.*', ('gnu95', 'nag', 'absoft', 'ibm', 'intel', 'gnu', 'pg')),
- ('sunos.*', ('sun','gnu','gnu95','g95')),
- ('irix.*', ('mips','gnu','gnu95',)),
- ('aix.*', ('ibm','gnu','gnu95',)),
diff --git a/packaging/macosx/ports/python/py25-numpy/files/patch-numpy_distutils_fcompiler___init__.py.diff b/packaging/macosx/ports/python/py25-numpy/files/patch-numpy_distutils_fcompiler___init__.py.diff
deleted file mode 100644
index 4f73dcfc9..000000000
--- a/packaging/macosx/ports/python/py25-numpy/files/patch-numpy_distutils_fcompiler___init__.py.diff
+++ /dev/null
@@ -1,30 +0,0 @@
---- numpy/distutils/fcompiler/__init__.py.orig 2013-10-31 13:24:12.000000000 +0400
-+++ numpy/distutils/fcompiler/__init__.py 2013-10-31 13:45:03.000000000 +0400
-@@ -815,7 +815,7 @@
- return compiler_type
-
- # Flag to avoid rechecking for Fortran compiler every time
--failed_fcompiler = False
-+failed_fcompilers = []
-
- def new_fcompiler(plat=None,
- compiler=None,
-@@ -828,7 +828,8 @@
- platform/compiler combination.
- """
- global failed_fcompiler
-- if failed_fcompiler:
-+ fcompiler_key = (plat, compiler)
-+ if fcompiler_key in failed_fcompilers:
- return None
-
- load_all_fcompiler_classes()
-@@ -848,7 +849,7 @@
- msg = msg + " Supported compilers are: %s)" \
- % (','.join(fcompiler_class.keys()))
- log.warn(msg)
-- failed_fcompiler = True
-+ failed_fcompilers.append(fcompiler_key)
- return None
-
- compiler = klass(verbose=verbose, dry_run=dry_run, force=force)
diff --git a/packaging/macosx/ports/python/py25-numpy/files/patch-numpy_linalg_setup.py.diff b/packaging/macosx/ports/python/py25-numpy/files/patch-numpy_linalg_setup.py.diff
deleted file mode 100644
index 0b06883a4..000000000
--- a/packaging/macosx/ports/python/py25-numpy/files/patch-numpy_linalg_setup.py.diff
+++ /dev/null
@@ -1,10 +0,0 @@
---- numpy/linalg/setup.py.orig 2010-09-14 11:44:21.000000000 -0400
-+++ numpy/linalg/setup.py 2010-09-14 11:45:01.000000000 -0400
-@@ -27,6 +27,7 @@
- 'zlapack_lite.c', 'dlapack_lite.c',
- 'blas_lite.c', 'dlamch.c',
- 'f2c_lite.c','f2c.h'],
-+ extra_link_args=['-undefined dynamic_lookup -bundle'],
- extra_info = lapack_info
- )
-
diff --git a/packaging/macosx/ports/python/py25-numpy/files/patch-setup.py.diff b/packaging/macosx/ports/python/py25-numpy/files/patch-setup.py.diff
deleted file mode 100644
index 04e3cdd7a..000000000
--- a/packaging/macosx/ports/python/py25-numpy/files/patch-setup.py.diff
+++ /dev/null
@@ -1,34 +0,0 @@
---- numpy/core/setup.py.orig 2009-04-05 04:09:20.000000000 -0400
-+++ numpy/core/setup.py 2009-04-08 19:53:45.000000000 -0400
-@@ -309,7 +309,14 @@
- if isinstance(d,str):
- target_f.write('#define %s\n' % (d))
- else:
-- target_f.write('#define %s %s\n' % (d[0],d[1]))
-+ if d[0]!='SIZEOF_LONG' and d[0]!='SIZEOF_PY_INTPTR_T':
-+ target_f.write('#define %s %s\n' % (d[0],d[1]))
-+ else:
-+ target_f.write('#ifdef __LP64__\n')
-+ target_f.write('#define %s %s\n' % (d[0],8))
-+ target_f.write('#else\n')
-+ target_f.write('#define %s %s\n' % (d[0],4))
-+ target_f.write('#endif\n')
-
- # define inline to our keyword, or nothing
- target_f.write('#ifndef __cplusplus\n')
-@@ -393,7 +393,14 @@
- if isinstance(d,str):
- target_f.write('#define %s\n' % (d))
- else:
-- target_f.write('#define %s %s\n' % (d[0],d[1]))
-+ if d[0]!='NPY_SIZEOF_LONG' and d[0]!='NPY_SIZEOF_PY_INTPTR_T':
-+ target_f.write('#define %s %s\n' % (d[0],d[1]))
-+ else:
-+ target_f.write('#ifdef __LP64__\n')
-+ target_f.write('#define %s %s\n' % (d[0],8))
-+ target_f.write('#else\n')
-+ target_f.write('#define %s %s\n' % (d[0],4))
-+ target_f.write('#endif\n')
-
- # define NPY_INLINE to recognized keyword
- target_f.write('#define NPY_INLINE %s\n' % inline)
diff --git a/packaging/macosx/ports/python/py25-numpy/files/wrapper-template b/packaging/macosx/ports/python/py25-numpy/files/wrapper-template
deleted file mode 100755
index 48936d107..000000000
--- a/packaging/macosx/ports/python/py25-numpy/files/wrapper-template
+++ /dev/null
@@ -1,143 +0,0 @@
-#!/bin/sh
-COMPILER='@@@'
-SUFFIX='---'
-PREFIX='&&&'
-OUTPUT_O='NO'
-OUTPUT=''
-NAMED_OUTPUT=''
-LASTFILE=''
-INTEL='NO'
-SIZE32='NO'
-SIZE64='NO'
-NEWARGS=''
-
-SKIP='NO'
-
-for arg in $@
-do
- if [ $SKIP = 'ARCH' ]; then
- # intercept -arch option and set SIZEXX
- SKIP='NO'
- if [ $arg = 'x86_64' ] || [ $arg = 'ppc64' ]; then
- SIZE64='YES'
- else
- SIZE32='YES'
- fi
-
- # which architecture are we compiling for?
- if [ $arg = 'x86_64' ] || [ $arg = 'i386' ]; then
- INTEL='YES'
- fi
-
- elif [ $arg = '-arch' ]; then
- SKIP='ARCH'
-
- elif [ $arg = '--version' ]; then
- ${COMPILER} --version
- exit 0
-
- else
- NEWARGS+="$arg "
-
- # if the -c option is given, the output is .o
- if [ $arg = '-c' ]; then
- OUTPUT_O='YES'
- fi
-
- # if the output file is given by a -o option, record it
- if [ $SKIP = 'O' ]; then
- SKIP='NO'
- NAMED_OUTPUT=$arg
- fi
-
- if [ $arg = '-o' ]; then
- SKIP='O'
- fi
-
- # Note each file ending by ${SUFFIX} and remember the last one
- # Transform them in .o
- if `echo $arg | grep -q "${SUFFIX}$"`; then
- LASTFILE=$arg
- OUTPUT+=`echo $arg | sed "s/${SUFFIX}/\.o/"`
- OUTPUT+=' '
- fi
- fi
-done
-
-# What is the output?
-
-if [ ${NAMED_OUTPUT}"X" != "X" ]; then
- OUTPUT=$NAMED_OUTPUT
-
-elif [ $OUTPUT_O = 'NO' ]; then
- # It is an executable whose is name is the LASTFILE without suffix
- OUTPUT=`echo ${LASTFILE} | sed "s/${SUFFIX}//"`
-fi
-
-# Othewise, the output is just the ${OUTPUT} variable as computed before
-
-# For some reason, -dynamiclib and -lpython2.6 are missing when linking
-# .so files. Add them, except if -bundle is set (incompatible switches)
-if [ `echo $OUTPUT | sed -E 's|.*\.||'` = "so" ] && \
- ! `echo $NEWARGS | grep -q bundle`; then
- NEWARGS="${NEWARGS} ${PREFIX}/lib/libpython2.6.dylib -dynamiclib"
-fi
-
-# Now, compile
-
-if [ $SIZE32 = 'NO' ] && [ $SIZE64 = 'NO' ]; then
- # No size indication given, just proceed with default
- if `${COMPILER} $NEWARGS`; then
- exit 0
- else
- exit 1
- fi
-
-elif [ $SIZE32 = 'YES' ] && [ $SIZE64 = 'NO' ]; then
- # 32-bit
- if `${COMPILER} -m32 $NEWARGS`; then
- exit 0
- else
- exit 1
- fi
-
-elif [ $SIZE32 = 'NO' ] && [ $SIZE64 = 'YES' ]; then
- # 64-bit
- if `${COMPILER} -m64 $NEWARGS`; then
- exit 0
- else
- exit 1
- fi
-
-else
- # Universal case
- if `${COMPILER} -m32 $NEWARGS`; then
- for filename in ${OUTPUT}
- do
- mv ${filename} ${filename}.32
- done
-
- if `${COMPILER} -m64 $NEWARGS`; then
- for filename in ${OUTPUT}
- do
- mv ${filename} ${filename}.64
- if [ $INTEL = 'YES' ]; then
- lipo -create -arch x86_64 ${filename}.64 \
- -arch i386 ${filename}.32 \
- -output ${filename}
- else
- lipo -create -arch ppc64 ${filename}.64 \
- -arch ppc ${filename}.32 \
- -output ${filename}
- fi
-
- rm -f ${filename}.32 ${filename}.64
- done
- else
- exit 1
- fi
- else
- exit 1
- fi
-fi
-exit 0
diff --git a/packaging/macosx/ports/python/py25-setuptools/Portfile b/packaging/macosx/ports/python/py25-setuptools/Portfile
deleted file mode 100644
index 35c528500..000000000
--- a/packaging/macosx/ports/python/py25-setuptools/Portfile
+++ /dev/null
@@ -1,58 +0,0 @@
-# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
-# $Id: Portfile 123950 2014-08-16 14:24:07Z jmr@macports.org $
-
-PortSystem 1.0
-PortGroup python 1.0
-
-name py25-setuptools
-version 5.7
-categories-append devel
-license {PSF ZPL}
-maintainers jmr openmaintainer
-description distutils enhancement for build and distribution
-long_description \
- setuptools is a collection of enhancements to the Python distutils that \
- allow you to more easily build and distribute Python packages, \
- especially ones that have dependencies on other packages.
-
-platforms darwin
-supported_archs noarch
-
-homepage https://pypi.python.org/pypi/setuptools/
-master_sites https://pypi.python.org/packages/source/s/setuptools/
-distname setuptools-${version}
-
-checksums md5 81f980854a239d60d074d6ba052e21ed \
- rmd160 ee9eff6c77e6f27e22e2049a6685bb0e624f94b0 \
- sha256 a8bbdb2d67532c5b5cef5ba09553cea45d767378e42c7003347e53ebbe70f482
-
-python.versions 25
-python.link_binaries no
-python.move_binaries no
-
-if {$subport eq $name} {
- if {${python.version} == 25} {
- version 1.4.2
- revision 100
- distname setuptools-${version}
- checksums md5 13951be6711438073fbe50843e7f141f \
- rmd160 b48086a2aae718fe433a8c882d2d9209aa157b0a \
- sha256 263986a60a83aba790a5bffc7d009ac88114ba4e908e5c90e453b3bf2155dbbd
- }
-
- post-destroot {
- xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
- xinstall -m 644 -W ${worksrcpath} CHANGES.txt \
- DEVGUIDE.txt README.txt ${destroot}${prefix}/share/doc/${subport}
- if {${python.version} <= 25} {
- delete "${destroot}${prefix}/bin/easy_install"
- } else {
- ln -s "${python.prefix}/bin/easy_install-${python.branch}" "${destroot}${prefix}/bin/"
- }
- }
- livecheck.type none
-#} else {
-# livecheck.type regex
-# livecheck.url ${homepage}
-# livecheck.regex setuptools/(\\d+(\\.\\d+)+)
-}
diff --git a/packaging/macosx/ports/python/py26-cython/Portfile b/packaging/macosx/ports/python/py26-cython/Portfile
deleted file mode 100644
index 9497f5e7e..000000000
--- a/packaging/macosx/ports/python/py26-cython/Portfile
+++ /dev/null
@@ -1,85 +0,0 @@
-# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
-# $Id: Portfile 125247 2014-09-11 17:01:30Z stromnov@macports.org $
-
-PortSystem 1.0
-PortGroup python 1.0
-PortGroup select 1.0
-
-name py26-cython
-version 0.21
-revision 0
-categories-append devel
-platforms darwin
-license Apache-2
-
-python.versions 26
-python.version 26
-
-maintainers stromnov openmaintainer
-
-description A language for writing C extension modules for Python.
-
-long_description Cython is a language that makes writing C extensions for \
- the Python language as easy as Python itself. Cython is \
- based on the well-known Pyrex, but supports more cutting \
- edge functionality and optimizations
-
-homepage http://www.cython.org/
-master_sites ${homepage}release/ \
- http://pypi.python.org/packages/source/C/Cython/
-
-distname Cython-${version}
-
-checksums rmd160 f5944014c1e4dccb8ec23af96efc05c137917371 \
- sha256 0cd5787fb3f1eaf8326b21bdfcb90aabd3eca7c214c5b7b503fbb82da97bbaa0
-
-if {${name} eq ${subport}} {
-
- revision 100
-
- # Cython 0.21 requires Python 2.6+ or 3.3+
- if {[lsearch {24 25 31 32} ${python.version}] != -1} {
- version 0.20.2
- revision 0
- distname Cython-${version}
- checksums rmd160 e78f1779077d6c8e266c9b42b85c8e9031a342d2 \
- sha256 ed13b606a2aeb5bd6c235f8ed6c9988c99d01a033d0d21d56137c13d5c7be63f
- }
-
- post-destroot {
- if {${subport} eq "py24-cython" || ${subport} eq "py25-cython"} {
- xinstall -m 644 -W ${worksrcpath}/Doc About.html FAQ.html \
- extension_types.html index.html overview.html primes.c sharing.html \
- special_methods.html ${destroot}${prefix}/share/doc/${subport}
- xinstall -m 644 -W ${worksrcpath} INSTALL.txt README.txt \
- ToDo.txt USAGE.txt ${destroot}${prefix}/share/doc/${subport}
- } else {
- xinstall -m 755 -d ${destroot}${python.prefix}/share/doc/cython
- xinstall -m 644 -W ${worksrcpath}/Doc About.html FAQ.html \
- extension_types.html index.html overview.html primes.c sharing.html \
- special_methods.html ${destroot}${python.prefix}/share/doc/cython
- xinstall -m 644 -W ${worksrcpath} INSTALL.txt README.txt\
- ToDo.txt USAGE.txt ${destroot}${python.prefix}/share/doc/cython
- }
- }
-
- depends_run port:cython_select
- test.run no
-
- select.group cython
- select.file ${filespath}/cython${python.version}
-
- notes "
-To make the Python ${python.branch} version of Cython the one that is run\
-when you execute the commands without a version suffix, e.g. 'cython', run:
-
-port select --set ${select.group} [file tail ${select.file}]
-"
-
- livecheck.type none
-} else {
- #livecheck.type regex
- #livecheck.url [lindex ${master_sites} 0]
- #livecheck.regex {Cython-(\d+(?:\.\d+)*)\.[tz]}
- livecheck.type none
-}
diff --git a/packaging/macosx/ports/python/py26-cython/files/cython24 b/packaging/macosx/ports/python/py26-cython/files/cython24
deleted file mode 100644
index 6fa8a8026..000000000
--- a/packaging/macosx/ports/python/py26-cython/files/cython24
+++ /dev/null
@@ -1,2 +0,0 @@
-bin/cython-2.4
--
diff --git a/packaging/macosx/ports/python/py26-cython/files/cython25 b/packaging/macosx/ports/python/py26-cython/files/cython25
deleted file mode 100644
index 294a43303..000000000
--- a/packaging/macosx/ports/python/py26-cython/files/cython25
+++ /dev/null
@@ -1,2 +0,0 @@
-bin/cython-2.5
--
diff --git a/packaging/macosx/ports/python/py26-cython/files/cython26 b/packaging/macosx/ports/python/py26-cython/files/cython26
deleted file mode 100644
index 48523983b..000000000
--- a/packaging/macosx/ports/python/py26-cython/files/cython26
+++ /dev/null
@@ -1,2 +0,0 @@
-${frameworks_dir}/Python.framework/Versions/2.6/bin/cython
-${frameworks_dir}/Python.framework/Versions/2.6/bin/cygdb
diff --git a/packaging/macosx/ports/python/py26-cython/files/cython27 b/packaging/macosx/ports/python/py26-cython/files/cython27
deleted file mode 100644
index 91f8cb8fd..000000000
--- a/packaging/macosx/ports/python/py26-cython/files/cython27
+++ /dev/null
@@ -1,2 +0,0 @@
-${frameworks_dir}/Python.framework/Versions/2.7/bin/cython
-${frameworks_dir}/Python.framework/Versions/2.7/bin/cygdb
diff --git a/packaging/macosx/ports/python/py26-cython/files/cython31 b/packaging/macosx/ports/python/py26-cython/files/cython31
deleted file mode 100644
index 96c9b1b4e..000000000
--- a/packaging/macosx/ports/python/py26-cython/files/cython31
+++ /dev/null
@@ -1,2 +0,0 @@
-${frameworks_dir}/Python.framework/Versions/3.1/bin/cython
-${frameworks_dir}/Python.framework/Versions/3.1/bin/cygdb
diff --git a/packaging/macosx/ports/python/py26-cython/files/cython32 b/packaging/macosx/ports/python/py26-cython/files/cython32
deleted file mode 100644
index b31fc1fc5..000000000
--- a/packaging/macosx/ports/python/py26-cython/files/cython32
+++ /dev/null
@@ -1,2 +0,0 @@
-${frameworks_dir}/Python.framework/Versions/3.2/bin/cython
-${frameworks_dir}/Python.framework/Versions/3.2/bin/cygdb
diff --git a/packaging/macosx/ports/python/py26-cython/files/cython33 b/packaging/macosx/ports/python/py26-cython/files/cython33
deleted file mode 100644
index d19afec09..000000000
--- a/packaging/macosx/ports/python/py26-cython/files/cython33
+++ /dev/null
@@ -1,2 +0,0 @@
-${frameworks_dir}/Python.framework/Versions/3.3/bin/cython
-${frameworks_dir}/Python.framework/Versions/3.3/bin/cygdb
diff --git a/packaging/macosx/ports/python/py26-cython/files/cython34 b/packaging/macosx/ports/python/py26-cython/files/cython34
deleted file mode 100644
index 487ad3299..000000000
--- a/packaging/macosx/ports/python/py26-cython/files/cython34
+++ /dev/null
@@ -1,2 +0,0 @@
-${frameworks_dir}/Python.framework/Versions/3.4/bin/cython
-${frameworks_dir}/Python.framework/Versions/3.4/bin/cygdb
diff --git a/packaging/macosx/ports/python/py26-lxml/Portfile b/packaging/macosx/ports/python/py26-lxml/Portfile
deleted file mode 100644
index 4d9f59690..000000000
--- a/packaging/macosx/ports/python/py26-lxml/Portfile
+++ /dev/null
@@ -1,52 +0,0 @@
-# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
-# $Id: Portfile 121661 2014-07-03 17:50:11Z mf2k@macports.org $
-
-PortSystem 1.0
-PortGroup python 1.0
-
-name py26-lxml
-version 3.3.5
-revision 0
-categories-append devel
-platforms darwin
-license BSD
-
-python.versions 26
-python.version 26
-
-maintainers gmail.com:dbraband openmaintainer
-
-description Powerful and Pythonic XML processing library
-
-long_description lxml is a Pythonic binding for the libxml2 and \
- libxslt libraries. It is unique in that it \
- combines the speed and feature completeness of \
- these libraries with the simplicity of a native \
- Python API, mostly compatible but superior to \
- the well-known ElementTree API.
-
-homepage http://lxml.de/
-master_sites http://pypi.python.org/packages/source/l/lxml/
-
-checksums rmd160 c7ccece50f8d20f5fac44ac1bf8dc0d8a85aa0f9 \
- sha256 6ad6949dc7eea744a30fba77a968dd5910f545220e58bcc813b9df5c793e318a
-
-distname lxml-${version}
-
-if {${name} eq ${subport}} {
-
- revision 100
-
- depends_build-append \
- port:py${python.version}-setuptools
-
- depends_lib-append port:zlib \
- port:libxml2 \
- port:libxslt
-
- livecheck.type none
-#} else {
-# livecheck.type regex
-# livecheck.url ${master_sites}
-# livecheck.regex "lxml-(\\d+(?:\\.\\d+)*)${extract.suffix}"
-}
diff --git a/packaging/macosx/ports/python/py26-nose/Portfile b/packaging/macosx/ports/python/py26-nose/Portfile
deleted file mode 100644
index 03c74a44d..000000000
--- a/packaging/macosx/ports/python/py26-nose/Portfile
+++ /dev/null
@@ -1,87 +0,0 @@
-# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
-# $Id: Portfile 121661 2014-07-03 17:50:11Z mf2k@macports.org $
-
-PortSystem 1.0
-PortGroup python 1.0
-PortGroup select 1.0
-
-set my_name nose
-name py26-${my_name}
-version 1.3.1
-categories-append www
-license LGPL-2+
-maintainers mcalhoun openmaintainer
-description A Python unittest extension.
-long_description \
- A unittest extension offering automatic test \
- suite discovery, simplified test authoring, \
- and output capture. Nose provides an alternate \
- test discovery and running process for \
- unittest, one that is intended to mimic the \
- behavior of py.test as much as is reasonably \
- possible without resorting to magic.
-
-platforms darwin
-supported_archs noarch
-
-homepage http://somethingaboutorange.com/mrl/projects/${my_name}
-master_sites http://pypi.python.org/packages/source/n/${my_name}/
-distname ${my_name}-${version}
-
-checksums md5 672398801ddf5ba745c55c6eed79c5aa \
- rmd160 7bf311d3d54f2ccb372dea331708c475b992ccec \
- sha256 85273b87ab3db9307e3b1452b071e25c1db1cc812bc337d2a97ea0b0cf2ab6ba
-
-python.versions 26
-python.version 26
-
-# already installs version-suffixed executables
-python.link_binaries no
-python.move_binaries no
-
-depends_run-append port:nosetests_select
-if {${name} eq ${subport}} {
-
- revision 100
-
- select.group nosetests
- select.file ${filespath}/nosetests${python.version}
-
- depends_lib port:py${python.version}-setuptools
-
- post-patch {
- reinplace "s|man/man|share/man/man|" ${worksrcpath}/setup.py
-
- # One of the tests fails if this directory does not exist
- file mkdir ${worksrcpath}/functional_tests/support/empty
- }
-
- post-destroot {
- if {${python.version} == "24" || ${python.version} == "25"} {
- move ${destroot}${prefix}/share/man/man1/nosetests.1 ${destroot}${prefix}/share/man/man1/nosetests${python.branch}.1
- delete ${destroot}${prefix}/bin/nosetests
- } else {
- ln -s ${python.prefix}/bin/nosetests-${python.branch} ${destroot}${prefix}/bin/
- ln -s ${python.prefix}/share/man/man1/nosetests.1 ${destroot}${prefix}/share/man/man1/nosetests${python.branch}.1
- }
-
- xinstall -m 644 -W ${worksrcpath} \
- AUTHORS CHANGELOG NEWS README.txt \
- ${destroot}${prefix}/share/doc/${subport}
-
- file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${subport}/html
-
- file delete ${destroot}${prefix}/share/doc/${subport}/examples
- file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${subport}
- }
-
- test.run yes
- test.cmd ${python.bin} setup.py test
-
- livecheck.type none
-
-#} else {
-# livecheck.type regex
-# livecheck.url ${master_sites}
-# livecheck.regex "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
-}
diff --git a/packaging/macosx/ports/python/py26-nose/files/nosetests24 b/packaging/macosx/ports/python/py26-nose/files/nosetests24
deleted file mode 100644
index d9a8f4034..000000000
--- a/packaging/macosx/ports/python/py26-nose/files/nosetests24
+++ /dev/null
@@ -1 +0,0 @@
-bin/nosetests-2.4
diff --git a/packaging/macosx/ports/python/py26-nose/files/nosetests25 b/packaging/macosx/ports/python/py26-nose/files/nosetests25
deleted file mode 100644
index 95864c283..000000000
--- a/packaging/macosx/ports/python/py26-nose/files/nosetests25
+++ /dev/null
@@ -1 +0,0 @@
-bin/nosetests-2.5
diff --git a/packaging/macosx/ports/python/py26-nose/files/nosetests26 b/packaging/macosx/ports/python/py26-nose/files/nosetests26
deleted file mode 100644
index bb670776f..000000000
--- a/packaging/macosx/ports/python/py26-nose/files/nosetests26
+++ /dev/null
@@ -1 +0,0 @@
-bin/nosetests-2.6
diff --git a/packaging/macosx/ports/python/py26-nose/files/nosetests27 b/packaging/macosx/ports/python/py26-nose/files/nosetests27
deleted file mode 100644
index 28c7bfe8c..000000000
--- a/packaging/macosx/ports/python/py26-nose/files/nosetests27
+++ /dev/null
@@ -1 +0,0 @@
-bin/nosetests-2.7
diff --git a/packaging/macosx/ports/python/py26-nose/files/nosetests31 b/packaging/macosx/ports/python/py26-nose/files/nosetests31
deleted file mode 100644
index 5ba27a4d5..000000000
--- a/packaging/macosx/ports/python/py26-nose/files/nosetests31
+++ /dev/null
@@ -1 +0,0 @@
-bin/nosetests-3.1
diff --git a/packaging/macosx/ports/python/py26-nose/files/nosetests32 b/packaging/macosx/ports/python/py26-nose/files/nosetests32
deleted file mode 100644
index 07bfb86a1..000000000
--- a/packaging/macosx/ports/python/py26-nose/files/nosetests32
+++ /dev/null
@@ -1 +0,0 @@
-bin/nosetests-3.2
diff --git a/packaging/macosx/ports/python/py26-nose/files/nosetests33 b/packaging/macosx/ports/python/py26-nose/files/nosetests33
deleted file mode 100644
index b750d806b..000000000
--- a/packaging/macosx/ports/python/py26-nose/files/nosetests33
+++ /dev/null
@@ -1 +0,0 @@
-bin/nosetests-3.3
diff --git a/packaging/macosx/ports/python/py26-nose/files/nosetests34 b/packaging/macosx/ports/python/py26-nose/files/nosetests34
deleted file mode 100644
index 542ffc949..000000000
--- a/packaging/macosx/ports/python/py26-nose/files/nosetests34
+++ /dev/null
@@ -1 +0,0 @@
-bin/nosetests-3.4
diff --git a/packaging/macosx/ports/python/py26-numpy/Portfile b/packaging/macosx/ports/python/py26-numpy/Portfile
deleted file mode 100644
index db4a511aa..000000000
--- a/packaging/macosx/ports/python/py26-numpy/Portfile
+++ /dev/null
@@ -1,214 +0,0 @@
-# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
-# $Id: Portfile 125483 2014-09-18 14:34:29Z michaelld@macports.org $
-
-PortSystem 1.0
-PortGroup python 1.0
-PortGroup github 1.0
-
-github.setup numpy numpy 1.9.0 v
-name py26-numpy
-categories-append math
-license BSD
-platforms darwin
-maintainers dh michaelld openmaintainer
-description The core utilities for the scientific library scipy for Python
-long_description ${description}
-
-checksums rmd160 836bcd7ef0f37129f06ea73b3cc27ec31035bfe0 \
- sha256 33e33768307b5f92cb098e93359e4fe97dfb9783df591ffbd44809bab7e50c0f
-
-python.versions 26
-python.version 26
-
-if {${name} eq ${subport}} {
-
- revision 100
-
- patchfiles patch-f2py_setup.py.diff \
- patch-fcompiler_g95.diff \
- patch-numpy_core_setup.py.diff
-
- depends_lib-append port:fftw-3 \
- port:py${python.version}-nose \
- port:py${python.version}-cython
-
- # http://trac.macports.org/ticket/34562
- destroot.env-append \
- CC="${configure.cc}" \
- CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
- CXX="${configure.cxx}" \
- CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
- OBJC="${configure.objc}" \
- OBJCFLAGS="${configure.objcflags} [get_canonical_archflags objc]" \
- LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
-
- build.env-append ARCHFLAGS="[get_canonical_archflags ld]"
- destroot.env-append ARCHFLAGS="[get_canonical_archflags ld]"
-
- variant atlas description {Use the MacPorts' ATLAS libraries \
- instead of Apple's Accelerate framework} {
- depends_lib-append port:atlas
-
- if {[variant_isset universal]} {
- python.set_compiler no
- }
- }
-
- # when using ATLAS (whether by default or specified by the user via
- # the +atlas variant) ...
- set gcc_version ""
- if {[variant_isset atlas]} {
-
- # see if the user has set -gcc4X to disable using MacPorts'
- # compiler; if not, either use what the user set (as +gcc4X) or
- # default to gcc48.
-
- variant gcc43 conflicts gcc44 gcc45 gcc46 gcc47 gcc48 \
- description {Use the gcc43 compiler (enables fortran linking)} {
- configure.compiler macports-gcc-4.3
- }
-
- variant gcc44 conflicts gcc43 gcc45 gcc46 gcc47 gcc48 \
- description {Use the gcc44 compiler (enables fortran linking)} {
- configure.compiler macports-gcc-4.4
- }
-
- variant gcc45 conflicts gcc43 gcc44 gcc46 gcc47 gcc48 \
- description {Use the gcc45 compiler (enables fortran linking)} {
- configure.compiler macports-gcc-4.5
- }
-
- variant gcc46 conflicts gcc43 gcc44 gcc45 gcc47 gcc48 \
- description {Use the gcc46 compiler (enables fortran linking)} {
- configure.compiler macports-gcc-4.6
- }
-
- variant gcc47 conflicts gcc43 gcc44 gcc45 gcc46 gcc48 \
- description {Use the gcc47 compiler (enables fortran linking)} {
- configure.compiler macports-gcc-4.7
- }
-
- variant gcc48 conflicts gcc43 gcc44 gcc45 gcc46 gcc47 \
- description {Use the gcc48 compiler (enables fortran linking)} {
- configure.compiler macports-gcc-4.8
- }
-
- if {![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47]} {
- default_variants +gcc48
- }
-
- if {[variant_isset gcc43]} {
- set gcc_version "4.3"
- } elseif {[variant_isset gcc44]} {
- set gcc_version "4.4"
- } elseif {[variant_isset gcc45]} {
- set gcc_version "4.5"
- } elseif {[variant_isset gcc46]} {
- set gcc_version "4.6"
- } elseif {[variant_isset gcc47]} {
- set gcc_version "4.7"
- } elseif {[variant_isset gcc48]} {
- set gcc_version "4.8"
- }
-
- # when using non-Apple GCC for universal install, it can
- # create binaries only for the native OS architecture, at
- # either 32 or 64 bits. Restrict the supported archs
- # accordingly.
- if {${os.arch} eq "i386"} {
- supported_archs i386 x86_64
- } elseif {${os.arch} eq "powerpc"} {
- supported_archs ppc ppc64
- }
-
- # include all the correct GCC4X port
- depends_lib-append port:gcc[join [split ${gcc_version} "."] ""]
-
- # force LDFLAGS for correct linking of the linalg module
- # for non-Apple GCC compilers
- patchfiles-append patch-numpy_linalg_setup.py.diff
-
- if {${gcc_version} == ""} {
- # user specified -gcc4X but +atlas (either as default or
- # explicitly); do not allow since it might lead to
- # undetermined runtime execution.
- return -code error \
-"\n\nWhen using the +atlas variant (either as the default or setting
-explicitly), one of the +gcc4X variants must be selected.\n"
- }
- }
-
- post-patch {
- reinplace "s|@@MPORTS_PYTHON@@|${python.bin}|" \
- ${worksrcpath}/numpy/f2py/setup.py
-
- if {[variant_isset universal] && [variant_isset atlas]} {
- # Prepare wrappers
- file copy -force ${filespath}/wrapper-template \
- ${worksrcpath}/c-wrapper
- file copy -force ${filespath}/wrapper-template \
- ${worksrcpath}/f-wrapper
- file copy -force ${filespath}/wrapper-template \
- ${worksrcpath}/cxx-wrapper
-
- reinplace "s|@@@|${configure.cc}|" ${worksrcpath}/c-wrapper
- reinplace "s|---|\\\\.c|" ${worksrcpath}/c-wrapper
- reinplace "s|&&&|${prefix}|" ${worksrcpath}/c-wrapper
-
- reinplace "s|@@@|${configure.cxx}|" ${worksrcpath}/cxx-wrapper
- reinplace "s#---#(\\\\.C|\\\\.cpp|\\\\.cc)#" \
- ${worksrcpath}/cxx-wrapper
- reinplace "s|&&&|${prefix}|" ${worksrcpath}/cxx-wrapper
-
- reinplace "s|@@@|${configure.f90}|" ${worksrcpath}/f-wrapper
- reinplace "s|---|\\\\.f|" ${worksrcpath}/f-wrapper
- reinplace "s|&&&|${prefix}|" ${worksrcpath}/f-wrapper
-
- build.env-append CC="${worksrcpath}/c-wrapper" \
- CXX="${worksrcpath}/cxx-wrapper" \
- F77="${worksrcpath}/f-wrapper" \
- F90="${worksrcpath}/f-wrapper"
-
- destroot.env-append CC="${worksrcpath}/c-wrapper" \
- CXX="${worksrcpath}/cxx-wrapper" \
- F77="${worksrcpath}/f-wrapper" \
- F90="${worksrcpath}/f-wrapper"
- }
-
- if {[variant_isset atlas]} {
- # We must link against libSatlas or libTatlas, not libAtlas
- if {[file exists ${prefix}/lib/libtatlas.dylib]} {
- reinplace -E \
- "s|_lib_atlas = \\\['atlas'\\\]|_lib_atlas = \\\['tatlas'\\\]|" \
- ${worksrcpath}/numpy/distutils/system_info.py
- } elseif {[file exists ${prefix}/lib/libsatlas.dylib]} {
- reinplace -E \
- "s|_lib_atlas = \\\['atlas'\\\]|_lib_atlas = \\\['satlas'\\\]|" \
- ${worksrcpath}/numpy/distutils/system_info.py
- } else {
- return -code error "Unable to find Atlas dylibs. Bailing out."
- }
- }
- }
-
- livecheck.type none
-
- if {[variant_isset atlas]} {
- build.env-append ATLAS=${prefix}/lib \
- LAPACK=${prefix}/lib \
- BLAS=${prefix}/lib
- destroot.env-append ATLAS=${prefix}/lib \
- LAPACK=${prefix}/lib \
- BLAS=${prefix}/lib
- } else {
- build.env-append ATLAS=None \
- LAPACK=/usr/lib \
- BLAS=/usr/lib
- destroot.env-append ATLAS=None \
- LAPACK=/usr/lib \
- BLAS=/usr/lib
- }
-
-#} else {
-# livecheck.regex archive/[join ${github.tag_prefix} ""](\[\\d+(?:\\.\\d+)*"\]+)${extract.suffix}"
-}
diff --git a/packaging/macosx/ports/python/py26-numpy/files/patch-f2py_setup.py.diff b/packaging/macosx/ports/python/py26-numpy/files/patch-f2py_setup.py.diff
deleted file mode 100644
index 1e3164e73..000000000
--- a/packaging/macosx/ports/python/py26-numpy/files/patch-f2py_setup.py.diff
+++ /dev/null
@@ -1,39 +0,0 @@
---- numpy/f2py/setup.py
-+++ numpy/f2py/setup.py
-@@ -41,21 +41,21 @@ def configuration(parent_package='',top_
- )
-
- config.make_svn_version_py()
-
- def generate_f2py_py(build_dir):
-- f2py_exe = 'f2py'+os.path.basename(sys.executable)[6:]
-+ f2py_exe = 'f2py'
- if f2py_exe[-4:]=='.exe':
- f2py_exe = f2py_exe[:-4] + '.py'
- if 'bdist_wininst' in sys.argv and f2py_exe[-3:] != '.py':
- f2py_exe = f2py_exe + '.py'
- target = os.path.join(build_dir, f2py_exe)
- if newer(__file__, target):
- log.info('Creating %s', target)
- f = open(target, 'w')
- f.write('''\
--#!%s
-+#!@@MPORTS_PYTHON@@
- # See http://cens.ioc.ee/projects/f2py2e/
- import os, sys
- for mode in ["g3-numpy", "2e-numeric", "2e-numarray", "2e-numpy"]:
- try:
- i=sys.argv.index("--"+mode)
-@@ -75,11 +75,11 @@ elif mode=="2e-numpy":
- from numpy.f2py import main
- else:
- sys.stderr.write("Unknown mode: " + repr(mode) + "\\n")
- sys.exit(1)
- main()
--'''%(sys.executable))
-+''')
- f.close()
- return target
-
- config.add_scripts(generate_f2py_py)
-
diff --git a/packaging/macosx/ports/python/py26-numpy/files/patch-fcompiler_g95.diff b/packaging/macosx/ports/python/py26-numpy/files/patch-fcompiler_g95.diff
deleted file mode 100644
index b95a2609a..000000000
--- a/packaging/macosx/ports/python/py26-numpy/files/patch-fcompiler_g95.diff
+++ /dev/null
@@ -1,15 +0,0 @@
---- numpy/distutils/fcompiler/__init__.py
-+++ numpy/distutils/fcompiler/__init__.py
-@@ -708,11 +708,11 @@
- ('win32', ('gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95',
- 'intelvem', 'intelem')),
- ('cygwin.*', ('gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95')),
- ('linux.*', ('gnu95', 'intel', 'lahey', 'pg', 'absoft', 'nag', 'vast', 'compaq',
- 'intele', 'intelem', 'gnu', 'g95', 'pathf95')),
-- ('darwin.*', ('gnu95', 'nag', 'absoft', 'ibm', 'intel', 'gnu', 'g95', 'pg')),
-+ ('darwin.*', ('gnu95', 'nag', 'absoft', 'ibm', 'intel', 'gnu', 'pg')),
- ('sunos.*', ('sun', 'gnu', 'gnu95', 'g95')),
- ('irix.*', ('mips', 'gnu', 'gnu95',)),
- ('aix.*', ('ibm', 'gnu', 'gnu95',)),
- # os.name mappings
- ('posix', ('gnu', 'gnu95',)),
diff --git a/packaging/macosx/ports/python/py26-numpy/files/patch-numpy_core_setup.py.diff b/packaging/macosx/ports/python/py26-numpy/files/patch-numpy_core_setup.py.diff
deleted file mode 100644
index 3aed3b18c..000000000
--- a/packaging/macosx/ports/python/py26-numpy/files/patch-numpy_core_setup.py.diff
+++ /dev/null
@@ -1,34 +0,0 @@
---- numpy/core/setup.py.orig 2014-03-25 19:03:06.000000000 -0400
-+++ numpy/core/setup.py 2014-03-25 19:03:26.000000000 -0400
-@@ -481,7 +481,14 @@
- if isinstance(d, str):
- target_f.write('#define %s\n' % (d))
- else:
-- target_f.write('#define %s %s\n' % (d[0], d[1]))
-+ if d[0]!='SIZEOF_LONG' and d[0]!='SIZEOF_PY_INTPTR_T':
-+ target_f.write('#define %s %s\n' % (d[0], d[1]))
-+ else:
-+ target_f.write('#ifdef __LP64__\n')
-+ target_f.write('#define %s %s\n' % (d[0], 8))
-+ target_f.write('#else\n')
-+ target_f.write('#define %s %s\n' % (d[0], 4))
-+ target_f.write('#endif\n')
-
- # define inline to our keyword, or nothing
- target_f.write('#ifndef __cplusplus\n')
-@@ -581,7 +588,14 @@
- if isinstance(d, str):
- target_f.write('#define %s\n' % (d))
- else:
-- target_f.write('#define %s %s\n' % (d[0], d[1]))
-+ if d[0]!='NPY_SIZEOF_LONG' and d[0]!='NPY_SIZEOF_PY_INTPTR_T':
-+ target_f.write('#define %s %s\n' % (d[0], d[1]))
-+ else:
-+ target_f.write('#ifdef __LP64__\n')
-+ target_f.write('#define %s %s\n' % (d[0], 8))
-+ target_f.write('#else\n')
-+ target_f.write('#define %s %s\n' % (d[0], 4))
-+ target_f.write('#endif\n')
-
- # Define __STDC_FORMAT_MACROS
- target_f.write("""
diff --git a/packaging/macosx/ports/python/py26-numpy/files/patch-numpy_linalg_setup.py.diff b/packaging/macosx/ports/python/py26-numpy/files/patch-numpy_linalg_setup.py.diff
deleted file mode 100644
index 848d46186..000000000
--- a/packaging/macosx/ports/python/py26-numpy/files/patch-numpy_linalg_setup.py.diff
+++ /dev/null
@@ -1,20 +0,0 @@
---- numpy/linalg/setup.py.orig 2013-11-16 08:30:31.000000000 -0500
-+++ numpy/linalg/setup.py 2013-11-16 08:39:27.000000000 -0500
-@@ -37,7 +37,8 @@
- config.add_extension('lapack_lite',
- sources = [get_lapack_lite_sources],
- depends = ['lapack_litemodule.c'] + lapack_lite_src,
-- extra_info = lapack_info
-+ extra_info = lapack_info,
-+ extra_link_args=['-undefined dynamic_lookup -bundle']
- )
-
- # umath_linalg module
-@@ -47,6 +48,7 @@
- depends = ['umath_linalg.c.src'] + lapack_lite_src,
- extra_info = lapack_info,
- libraries = ['npymath'],
-+ extra_link_args=['-undefined dynamic_lookup -bundle']
- )
-
- return config
diff --git a/packaging/macosx/ports/python/py26-numpy/files/wrapper-template b/packaging/macosx/ports/python/py26-numpy/files/wrapper-template
deleted file mode 100644
index 48936d107..000000000
--- a/packaging/macosx/ports/python/py26-numpy/files/wrapper-template
+++ /dev/null
@@ -1,143 +0,0 @@
-#!/bin/sh
-COMPILER='@@@'
-SUFFIX='---'
-PREFIX='&&&'
-OUTPUT_O='NO'
-OUTPUT=''
-NAMED_OUTPUT=''
-LASTFILE=''
-INTEL='NO'
-SIZE32='NO'
-SIZE64='NO'
-NEWARGS=''
-
-SKIP='NO'
-
-for arg in $@
-do
- if [ $SKIP = 'ARCH' ]; then
- # intercept -arch option and set SIZEXX
- SKIP='NO'
- if [ $arg = 'x86_64' ] || [ $arg = 'ppc64' ]; then
- SIZE64='YES'
- else
- SIZE32='YES'
- fi
-
- # which architecture are we compiling for?
- if [ $arg = 'x86_64' ] || [ $arg = 'i386' ]; then
- INTEL='YES'
- fi
-
- elif [ $arg = '-arch' ]; then
- SKIP='ARCH'
-
- elif [ $arg = '--version' ]; then
- ${COMPILER} --version
- exit 0
-
- else
- NEWARGS+="$arg "
-
- # if the -c option is given, the output is .o
- if [ $arg = '-c' ]; then
- OUTPUT_O='YES'
- fi
-
- # if the output file is given by a -o option, record it
- if [ $SKIP = 'O' ]; then
- SKIP='NO'
- NAMED_OUTPUT=$arg
- fi
-
- if [ $arg = '-o' ]; then
- SKIP='O'
- fi
-
- # Note each file ending by ${SUFFIX} and remember the last one
- # Transform them in .o
- if `echo $arg | grep -q "${SUFFIX}$"`; then
- LASTFILE=$arg
- OUTPUT+=`echo $arg | sed "s/${SUFFIX}/\.o/"`
- OUTPUT+=' '
- fi
- fi
-done
-
-# What is the output?
-
-if [ ${NAMED_OUTPUT}"X" != "X" ]; then
- OUTPUT=$NAMED_OUTPUT
-
-elif [ $OUTPUT_O = 'NO' ]; then
- # It is an executable whose is name is the LASTFILE without suffix
- OUTPUT=`echo ${LASTFILE} | sed "s/${SUFFIX}//"`
-fi
-
-# Othewise, the output is just the ${OUTPUT} variable as computed before
-
-# For some reason, -dynamiclib and -lpython2.6 are missing when linking
-# .so files. Add them, except if -bundle is set (incompatible switches)
-if [ `echo $OUTPUT | sed -E 's|.*\.||'` = "so" ] && \
- ! `echo $NEWARGS | grep -q bundle`; then
- NEWARGS="${NEWARGS} ${PREFIX}/lib/libpython2.6.dylib -dynamiclib"
-fi
-
-# Now, compile
-
-if [ $SIZE32 = 'NO' ] && [ $SIZE64 = 'NO' ]; then
- # No size indication given, just proceed with default
- if `${COMPILER} $NEWARGS`; then
- exit 0
- else
- exit 1
- fi
-
-elif [ $SIZE32 = 'YES' ] && [ $SIZE64 = 'NO' ]; then
- # 32-bit
- if `${COMPILER} -m32 $NEWARGS`; then
- exit 0
- else
- exit 1
- fi
-
-elif [ $SIZE32 = 'NO' ] && [ $SIZE64 = 'YES' ]; then
- # 64-bit
- if `${COMPILER} -m64 $NEWARGS`; then
- exit 0
- else
- exit 1
- fi
-
-else
- # Universal case
- if `${COMPILER} -m32 $NEWARGS`; then
- for filename in ${OUTPUT}
- do
- mv ${filename} ${filename}.32
- done
-
- if `${COMPILER} -m64 $NEWARGS`; then
- for filename in ${OUTPUT}
- do
- mv ${filename} ${filename}.64
- if [ $INTEL = 'YES' ]; then
- lipo -create -arch x86_64 ${filename}.64 \
- -arch i386 ${filename}.32 \
- -output ${filename}
- else
- lipo -create -arch ppc64 ${filename}.64 \
- -arch ppc ${filename}.32 \
- -output ${filename}
- fi
-
- rm -f ${filename}.32 ${filename}.64
- done
- else
- exit 1
- fi
- else
- exit 1
- fi
-fi
-exit 0
diff --git a/packaging/macosx/ports/python/py26-setuptools/Portfile b/packaging/macosx/ports/python/py26-setuptools/Portfile
deleted file mode 100644
index b9893a4cb..000000000
--- a/packaging/macosx/ports/python/py26-setuptools/Portfile
+++ /dev/null
@@ -1,61 +0,0 @@
-# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
-# $Id: Portfile 125953 2014-09-30 10:58:10Z jmr@macports.org $
-
-PortSystem 1.0
-PortGroup python 1.0
-
-name py26-setuptools
-version 6.0.2
-categories-append devel
-license {PSF ZPL}
-maintainers jmr openmaintainer
-description distutils enhancement for build and distribution
-long_description \
- setuptools is a collection of enhancements to the Python distutils that \
- allow you to more easily build and distribute Python packages, \
- especially ones that have dependencies on other packages.
-
-platforms darwin
-supported_archs noarch
-
-homepage https://pypi.python.org/pypi/setuptools/
-master_sites https://pypi.python.org/packages/source/s/setuptools/
-distname setuptools-${version}
-
-checksums md5 b79fab610e362fe8e3a9cb92fb9d95ef \
- rmd160 5040f99a8ee3cd5b4040dc1e0a4d7cd9d5e7f7b1 \
- sha256 7029f6ca93e6a78112f1f621f79cab1a611901697a4c131bc5ef2f7a429825f7
-
-python.versions 26
-python.version 26
-python.link_binaries no
-python.move_binaries no
-
-if {$subport eq $name} {
-
- revision 100
-
- if {${python.version} <= 25} {
- version 1.4.2
- distname setuptools-${version}
- checksums md5 13951be6711438073fbe50843e7f141f \
- rmd160 b48086a2aae718fe433a8c882d2d9209aa157b0a \
- sha256 263986a60a83aba790a5bffc7d009ac88114ba4e908e5c90e453b3bf2155dbbd
- }
-
- post-destroot {
- xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
- xinstall -m 644 -W ${worksrcpath} CHANGES.txt \
- DEVGUIDE.txt README.txt ${destroot}${prefix}/share/doc/${subport}
- if {${python.version} <= 25} {
- delete "${destroot}${prefix}/bin/easy_install"
- } else {
- ln -s "${python.prefix}/bin/easy_install-${python.branch}" "${destroot}${prefix}/bin/"
- }
- }
- livecheck.type none
-#} else {
-# livecheck.type regex
-# livecheck.url ${homepage}
-# livecheck.regex setuptools/(\\d+(\\.\\d+)+)
-}