Commit graph

51 commits

Author SHA1 Message Date
David Naylor
eeb1443b97 lang/pypy: update to 2.6.1
Changes:
 - Add external cffi ports (a la python):
   - databases/pypy-gdbm
   - databases/pypy-sqlite3
   - x11-toolkits/pypy-tkinter
 - Add bsd.pypy.mk for consistency between pypy ports.
 - Add bsd.pypy.cffi.mk for consistency with external cffi ports.
 - Switch back to using $PREFIX/pypy-X.Y (the '-' separator is required to
   differentiate between lang/pypy and lang/pypy3)
 - Remove all patches (upstreamed, see announcement below)

ChangeLog:
 - Bug Fixes
   - Revive non-SSE2 support
   - Fixes for detaching _io.Buffer*
   - Clear up contention in the garbage collector between trace-me-later and
     pinning
   - Issues reported with our previous release were resolved after reports from
     users on our issue tracker at https://bitbucket.org/pypy/pypy/issues or on
     IRC at #pypy.
 - New features:
   - cffi was updated to version 1.3
   - The python stdlib was updated to 2.7.10 from 2.7.9
   - vmprof now supports multiple threads
   - The translation process builds cffi import libraries for some stdlib
     packages, which should prevent confusion when package.py is not used
   - better support for gdb debugging
   - FreeBSD should be able to translate PyPy "out of the box" with no patches
 - Numpy:
   - Better support for record dtypes, including the align keyword
   - Implement casting and create output arrays accordingly (still missing some
     corner cases)
   - Support creation of unicode ndarrays
   - Better support ndarray.flags
   - Support axis argument in more functions
   - Refactor array indexing to support ellipses
   - Allow the docstrings of built-in numpy objects to be set at run-time
   - Support the buffered nditer creation keyword
 - Performance improvements:
   - Delay recursive calls to make them non-recursive
   - Skip loop unrolling if it compiles too much code
   - Tweak the heapcache
   - Add a list strategy for lists that store both floats and 32-bit integers.
     The latter are encoded as nonstandard NaNs. Benchmarks show that the speed
     of such lists is now very close to the speed of purely-int or purely-float
     lists.
   - Simplify implementation of ffi.gc() to avoid most weakrefs
   - Massively improve the performance of map() with more than one sequence
    argument

Differential Revision:	https://reviews.freebsd.org/D3285
2015-08-31 19:38:23 +00:00
John Marino
3d54788596 lang/pypy: Fix obvious typo that caused make warning messages
Approved by:	just-fix-it
2015-08-22 13:27:34 +00:00
David Naylor
d4e8620509 lang/pypy: support cffi, fix and simplify.
* Mark as only for i386, amd64 and armv6 (JIT only supported on those archs)
 * Move PyPy dir to pypy26 (for consistency with llvm, et al)
 * Drop PYPY_ARCH (unused)
 * Use shell to detect ${BUILD_WRKSRC}/Makefile [1]
 * Enable CFFI for components that do not have external dependencies
 * Update regression-test to align with upstreams procedures
 * Complete changes for detecting cpu count via sysctl (upstreamed)
 * Properly detect arm (upstreamed) [2]
 * Update pkg-plist generation and regenerate

[1] When make evaluates the dependency for pre-build the variable
${BUILD_WRKSRC} is not fully defined (i.e. ${WRKSRC}) so it does not get
properly expanded causing make to never find the correct Makefile.

PR:		202159 [2]
Reviewed by:	sbruno (prior version)
2015-08-12 18:13:23 +00:00
David Naylor
267d9634a8 lang/pypy: simplify port
- Use upstreams directory layout instead of FreeBSD's preferred directory
   layout [1]
 - Move the pypy installation into $PREFIX/pypy-x.y
 - Remove the ability to build multiple instances (i.e. default to just
   the JIT instance)
 - Install the binary as pypy (instead of pypy-2.6 with a symlink to pypy)
 - Remove the creation of cffi modules (will be outsourced to other ports,
   a la cpython)
 - Remove sqlite3 and gdbm dependencies (i.e. cffi modules)

PR:             183795
Differential Revision:  https://reviews.freebsd.org/D3209
2015-08-01 09:07:22 +00:00
Kubilay Kocak
028218a62f lang/pypy: Fix typo (PPORTREVISION)
Reported by: robak
2015-06-10 01:00:42 +00:00
David Naylor
6f3539a244 lang/pypy: unbreak port due to missing space in '@comment'.
PR:		200658
Submitted by:	Ting-Wei Lan <lantw44@gmail.com>
2015-06-06 19:40:06 +00:00
Kubilay Kocak
77fc9cd189 lang/pypy: Fix build. Temporarily disable CFFI modules
Temporarily disable CFFI module compilation post-build and the shared
CFFI libraries in the packaging lists to due failures finding and
linking tkinter:

Building tk bindings failed.
You can either install development headers package,
add the --without-tk option to skip packaging this
binary CFFI extension, or say --without-cffi.
Traceback (most recent call last):
  File "<builtin>/app_main.py", line 75, in run_toplevel
  File "/usr/ports/lang/pypy/files/compile_cffi.py", line 15, in <module>
    create_cffi_import_libraries(sys.executable, Options(cffi_build_scripts), py.path.local(basedir))
  File "/wrkdirs/usr/ports/lang/pypy/work/pypy-pypy-295ee98b6928/pypy/tool/release/package.py", line 84, in create_cffi_import_libraries
    raise MissingDependenciesError(module)
MissingDependenciesError: _tkinter/tklib_build.py

This change is being committed on behalf of and in leui of maintainer
providing a comprehensive fix, as they are currently AFK.

Reported by:	hawkowl (via IRC, portsmon)
Reviewed by:	dbn (maintainer)
Approved by:	dbn (maintainer)
2015-06-04 06:45:37 +00:00
David Naylor
ea8b47ad51 lang/pypy: update to 2.6.0
Changes:
 * Use pypy.tool.release.package to compile cffi modules.

ChangeLog:
 * Python compatibility:
   * Improve support for TLS 1.1 and 1.2
   * Support for the PYTHONOPTIMIZE environment variable (impacting builtin's
     __debug__ property)
   * Issues reported with our previous release were resolved after reports
     from users on our issue tracker at https://bitbucket.org/pypy/pypy/issues
     or on IRC at #pypy.
 * New features:
   * Add preliminary support for a new lightweight statistical profiler
     vmprof, which has been designed to accomodate profiling JITted code
 * Numpy:
   * Support for object dtype via a garbage collector hook
   * Support for .can_cast and .min_scalar_type as well as beginning a
     refactoring of the internal casting rules
   * Better support for subtypes, via the __array_interface__,
     __array_priority__, and __array_wrap__ methods (still a work-in-progress)
   * Better support for ndarray.flags
 * Performance improvements:
   * Slight improvement in frame sizes, improving some benchmarks
   * Internal refactoring and cleanups leading to improved JIT performance
   * Improved IO performance of zlib and bz2 modules
   * We continue to improve the JIT's optimizations. Our benchmark suite is
     now over 7 times faster than cpython
2015-06-01 20:05:06 +00:00
David Naylor
d762c9d1e9 lang/pypy: update to 2.5.1
Changes:
 * Merge pypy-devel into pypy
 * Drop pypy-devel (was intended to track pypy-current but no automated
   process was implemented)
 * Drop upstreamed patches

PR:		199790
2015-05-18 18:56:27 +00:00
David Naylor
644d0b322f Backport lang/pypy-devel to lang/pypy.
Changes:
 - Update memory requires (less for pypy, more for python).
2015-01-14 18:28:28 +00:00
David Naylor
cec054d64e Add missing patch from r372531. 2014-11-13 17:34:15 +00:00
David Naylor
bed88e02c7 Update lang/pypy to 2.3.1.
This backports changes from pypy-devel.  Although that port has not gone
through standard QA, there have not been any complaints in the months that
it has been available under pypy-devel.
2014-11-13 17:33:29 +00:00
Baptiste Daroussin
77cba41a62 Cleanup plist 2014-10-27 15:23:30 +00:00
Marcus von Appen
734b63302e - Convert ports of irc/ and lang/ to new USES=python
Approved by:	portmgr (implicit)
2014-10-20 17:52:16 +00:00
Martin Wilke
bd48d39657 - Chase database/sqlite3 slib bump
Approved by:	portmgr (myself)
2014-06-27 17:21:06 +00:00
David Naylor
a39d5573ba Update my ports to be compliant with new USES framework and fix other issues.
Changes:
 * various: migrate USE_BZIP2 to USES=tar:bzip2
 * various: migrate USE_XZ to USES=tar:xz
 * multimedia/py-ffmpeg: add and prefer github (GH) as master site
 * ports-mgmt/portbuilder: specify license as BSD2CLAUSE (instead of just BSD)

Most ports are updated infrequently so a single batch commit is preferred over
collating changes per port.
2014-04-24 20:11:01 +00:00
Antoine Brodin
471c720adc Do not violate stagedir
Reported by:	poudriere
With hat:	portmgr
2014-04-02 06:13:52 +00:00
Rene Ladan
50f8eaece1 Python cleanup:
- USE_PYTHON* = 2.X -> USE_PYTHON* = 2
- USE_PYTHON* = 2.X+ -> USE_PYTHON* = yes
Reviewed by:	python (mva, rm)
Approved by:	portmgr-lurkers (mat)
2014-01-13 21:00:02 +00:00
David Naylor
69207e05fb Add missing patch (missing svn add) for lang/pypy.
Without this patch building and packaging would fail so no PORTREVISION
required.

Reported by:	bdrewery, pkg-fallout
2013-12-11 19:28:33 +00:00
David Naylor
3b6e99dce7 Remove LATEST_LINK from my ports and fix CONFLICTS for lang/pypy. 2013-12-10 18:48:22 +00:00
David Naylor
4fd7b4a24e Update lang/pypy to 2.2.1 (back-ported from lang/pypy-devel r336049). 2013-12-10 07:57:46 +00:00
David Naylor
39d5bdb3e6 Add stage support to lang/pypy, lang/pypy-devel and lang/pypy3-devel.
Also, require a modern compiler that can handle c11.  Although this is
not strictly required (just about any C compiler would do) the base GCC
compiler has a memory bug and thus cannot reasonably compile the ports.
2013-11-07 15:08:55 +00:00
Baptiste Daroussin
888ab73a81 Add NO_STAGE all over the place in preparation for the staging support (cat: lang) 2013-09-20 19:53:09 +00:00
David Naylor
f17b68679f Fix the pypy ports.
Be more aggresive in cleaning up temporary directories that pypy leaves
behind in the copied directories (files and directories in __pycache__).
Only .so and .pyc should be left behind in those __pycache__ directories
and no subdirectories.

Also remove the manual requirement for building lang/pypy. Redports
successfully built lang/pypy3-devel (with leftovers) in 19 hours.

Reported by:	Redports
2013-08-12 17:56:40 +00:00
David Naylor
74cc02b4ee Backport and fix-up lang/pypy* ports.
pypy:
 - fix sysconfig.py's include path
 - bump PORTREVISION due to above fix

pypy-devel:
 - remove duplicate '-e' when creating pkg-plist
 - ancillary port functionality (thus no PORTREVISION bump)

pypy3-devel:
 - add missing patch
 - fix pkg-plist
 - build fails without above patch (thus no PORTREVISION bump)
2013-08-11 18:33:33 +00:00
David Naylor
12d034d2b9 Add lang/pypy-devel for non-stable releases of PyPy.
pypy-devel is intended as a staging ground for beta releases and - while
no beta releases are available - snapshots of pypy default branch.

While introducing pypy-devel to build logic has been reworked to better
accomodate pypy3.  The lib-python/2.7 and lib_pypy folders are not renamed
after extraction (with only symbolic links used to emulate the structure).
PyPy still expects the standard structure and the symbolic links satisfy
this change.

The devel port was requested by mva@ to better support commercial clients.
2013-08-11 17:10:41 +00:00
David Naylor
0c4899d875 Update lang/pypy to 2.1.
Changes:
 - Rename the binary, include and library to pypy-2.1 (recommended by mva@).
     This is in preparation to introduce PyPy3 (PyPy implementing Python 3.2)

Highlights:
* JIT support for ARM, architecture versions 6 and 7, hard- and soft-float ABI
* Stacklet support for ARM
* Support for os.statvfs and os.fstatvfs on unix systems
* Improved logging performance
* Faster sets for objects
* Interpreter improvements
* During packaging, compile the CFFI based TK extension
* Pickling of numpy arrays and dtypes
* Subarrays for numpy
* Bugfixes to numpy
* Bugfixes to cffi and ctypes
* Bugfixes to the x86 stacklet support
* Fixed issue 1533: fix an RPython-level OverflowError for
    space.float_w(w_big_long_number). https://bugs.pypy.org/issue1533
* Fixed issue 1552: GreenletExit should inherit from BaseException.
    https://bugs.pypy.org/issue1552
* Fixed issue 1537: numpypy __array_interface__ https://bugs.pypy.org/issue1537
* Fixed issue 1238: Writing to an SSL socket in PyPy sometimes failed with a
    "bad write retry" message. https://bugs.pypy.org/issue1238
2013-08-03 16:18:49 +00:00
David Naylor
3103c35e99 Update lang/pypy to 2.1.b2.
Highlights:
 * Support for os.statvfs and os.fstatvfs on unix systems.
 * Fixed issue 1533: fix an RPython-level OverflowError for
     space.float_w(w_big_long_number).
 * Fixed issue 1552: GreenletExit should inherit from BaseException.
 * Fixed issue 1537: numpypy __array_interface__
 * Fixed issue 1238: Writing to an SSL socket in pypy sometimes failed with a
     "bad write retry" message.
 * distutils: copy CPython's implementation of customize_compiler, dont call
     split on environment variables, honour CFLAGS, CPPFLAGS, LDSHARED and
     LDFLAGS.
 * During packaging, compile the CFFI tk extension.
2013-08-01 18:47:43 +00:00
David Naylor
38a645dfe9 Fix lang/pypy library detection.
The library detection orginally depended on sys.version however that
tends to change a lot and thus a more robust method is used based on
sys.pypy_version_info.

This fixes installation using distutils and corrects output from sysconfig.

Special thanks to Attila Nagy who reported the issue and tracked down
the root issue (allowing me to deliver a quick solution).

Reported by:	Attila Nagy <bra@fsn.hu>
2013-07-30 20:22:47 +00:00
David Naylor
715729d474 Fix lang/pypy (and INDEX build).
Portlint recommends "USE_GCC=yes+" however such an option breaks everything.

Ignore portlint and use "USE+GCC=4.2+" as the port will compile with just about
any valid C compiler.
2013-07-28 20:39:43 +00:00
David Naylor
9def36eeb5 Update lang/pypy to 2.1.b
Changes to port:
 * Abstract ${BUILDDIR} for files/Makefile
 * Remove MAKE_JOBS_SAFE (depreciated)
 * Use "USE_GCC=yes+" as recommended by portlint

Highlights:
 * Bugfixes to the ARM JIT backend, so that ARM is now an officially
supported processor architecture
 * Stacklet support on ARM
 * Interpreter improvements
 * Various numpy improvements
 * Bugfixes to cffi and ctypes
 * Bugfixes to the stacklet support
 * Improved logging performance
 * Faster sets for objects
2013-07-28 20:10:03 +00:00
David Naylor
cae4551aa5 Update lang/pypy to 2.0.2.
- Track the change in build location (s/2.0.2/2.0.x/g)
 - Only tested on amd64 as this is only a point releas
 - If SANDBOX fails to build, install pypy-2.0.2 and try again

ChangeLog:
 * Fix crash in the JIT when calling external C functions in multithreaded context.

Approved by:	eadler,bdrewery (mentors, implicit)
2013-06-02 08:03:12 +00:00
David Naylor
7377997f9c Fix build of lang/pypy (missing patch).
A patch that tought _sqlite3.py where to find sqlite3.h and sqlite3.so was
not added with the previous commit.

Approved by:	eadler,bdrewery (mentors, implicit)
2013-05-21 15:40:54 +00:00
David Naylor
58ecbe40fa Update lang/pypy to 2.0.1.
Port ChangeLog:
 * Sqlite3 added as a dependency
 * DIST_SUBDIR no longer used as upstream now releases with a proper tarball
 * Added ability to translate with pypy running in restricted memory mode
   ( faster than python2.7 and uses less memory!)
 * Added support for pypy modules that use cffi (_sqlite3 and _curses)

Approved by:	eadler,bdrewery (mentors, implicit)
2013-05-20 21:13:01 +00:00
Marcus von Appen
a3a0715f38 - Convert USE_ICONV=yes to USES=iconv
- Change USE_GNOME=pkgconfig|gnomehack to USES=pathfix|pkgconfig while here

Reviewed by:	zeising
2013-04-27 11:59:28 +00:00
Alex Kozlov
e159824929 - Convert USE_GETTEXT to USES (part 3)
Approved by:	portmgr (bapt)
2013-04-24 18:10:30 +00:00
Eitan Adler
1ef28d7c9a pypy does not build on the pointhat configuration, but does build in other configurations.
Approved by:	portmgr (miwi)
2013-03-31 15:58:20 +00:00
Martin Wilke
293a1b0e91 - Mark Broken does not build
Reported by:	pointyhat
Approved by:	portmgr
2013-03-31 08:08:58 +00:00
David Naylor
bba9c27d60 Update lang/pypy to 2.0.b1.
The internals of the port have been substantially reworked:
 * All predefined instances can be selected via options [1]
 * Optionally use options, if user does not overwrite instance list
 * Make translation with pypy an option, if it is available.
 * Make memory checking more refined [2]
 * Add a Wiki page details lang/pypy
 * Fix the test target
 * Refactor build target (easier to review, edit)
 * Rename patches to prevent churn

[1] Although two are broken upstream and one possibly discontinued
[2] My memory limits appear to be too conservative.  Set PYPY_IGNORE_MEM for now

Reviewed by:	Kuro <poyopoyo@puripuri.plala.or.jp>, rm@
Approved by:	bdrewery (mentor)
2013-03-23 16:01:56 +00:00
David Naylor
6248a797e6 - Update to my new FreeBSD address
- Trim header
 - Add myself as creator of devel/svn2git (see r272261)

Approved by:	eadler|bdrewery (mentor)
2013-01-16 20:15:07 +00:00
Baptiste Daroussin
7c354b1913 Decommissioning java 1.5 (EOLed since October 2009):
suppress any reference to JAVA_VERSION=	1.5+ (part2)
2012-12-10 13:18:28 +00:00
Pawel Pekala
1b3302e312 Update pkg-descr
PR:		ports/173833
Submitted by:	poyopoyo@puripuri.plala.or.jp
Approved by:	maintainer
Feature safe:	yes
2012-11-28 21:44:35 +00:00
Jason E. Hale
a2d34f9f47 - Remove quotes from options string
While here:
- Trim Makefile header

PR:		ports/172603
Submitted by:	David Naylor <naylor.b.david@gmail.com> (maintainer)
Approved by:	makc, avilla (mentors, implicit)
Reported by:	Riccardo Torrini
Feature safe:	yes
2012-10-12 01:04:30 +00:00
Marcus von Appen
71031bc141 - Remove superfluous site-package patch after fixing the paths
Reported by:	David Naylor <naylor.b.david@gmail.com> (maintainer)
2012-07-18 19:36:31 +00:00
Marcus von Appen
70b1768d9c - Fix site-packages path
Discussed with:	David Naylor <naylor.b.david@gmail.com>
Approved by:	David Naylor <naylor.b.david@gmail.com>
Obtained from:	https://github.com/DragonSA/pypy/tree/fix-1.9-2
2012-07-17 19:08:21 +00:00
Pawel Pekala
59c15bbfdc Fix detection of i386 platforms
PR:		ports/169607
Submitted by:	David Naylor <naylor.b.david@gmail.com> (maintainer)
2012-07-04 21:41:20 +00:00
Alex Kozlov
5c84a954be - Remove unneeded file
Approved by:	David Naylor <naylor.b.david@gmail.com> (maintainer)
2012-06-30 15:19:49 +00:00
Michael Scheidell
567ac57394 - Update to 1.9 [1]
- Detection of insufficient memory [1]
- Change %%  SUB vaes from fixed at python 27 to use any installed version of python [1]
- Fix syntax of non system include "" vs <> [2]

PR:		ports/168974 [1]
Submitted by:	David Naylor <naylor.b.david@gmail.com> (maintainer) [1]
Reviewed by:	scheidel@ (me) [2]
2012-06-29 23:06:06 +00:00
Pav Lucistnik
8490e09e4b - Disallow from pointyhat, as it seems to receive SIGKILL after two hours of
building, unknown from where

Feature safe:	yes
2012-03-31 18:41:26 +00:00
Li-Wen Hsu
bb60b0ab44 - Update to 1.8
- Add fix for CVE-2012-0845

PR:		ports/165026
Submitted by:	David Naylor <naylor.b.david@gmail.com> (maintainer)
2012-02-19 10:37:02 +00:00