From owner-svn-ports-head@FreeBSD.ORG Wed Feb 5 20:03:03 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 87C7DD50; Wed, 5 Feb 2014 20:03:03 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7172612DF; Wed, 5 Feb 2014 20:03:03 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s15K33rS017947; Wed, 5 Feb 2014 20:03:03 GMT (envelope-from sunpoet@svn.freebsd.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s15K32S9017940; Wed, 5 Feb 2014 20:03:02 GMT (envelope-from sunpoet@svn.freebsd.org) Message-Id: <201402052003.s15K32S9017940@svn.freebsd.org> From: Sunpoet Po-Chuan Hsieh Date: Wed, 5 Feb 2014 20:03:02 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r342832 - in head/devel: . php-scalar_objects X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Feb 2014 20:03:03 -0000 Author: sunpoet Date: Wed Feb 5 20:03:02 2014 New Revision: 342832 URL: http://svnweb.freebsd.org/changeset/ports/342832 QAT: https://qat.redports.org/buildarchive/r342832/ Log: - Add php-scalar_objects 0.0.20140124 Add support for method calls on primitive types in PHP This extension implements the ability to register a class that handles the method calls to a certain primitive type (string, array, ...). As such it allows implementing APIs like $str->length(). The main purpose of this repo is to provide a proof of concept implementation that can be used to design the new APIs. The switch to object syntax for operations on primitive types is a unique opportunity for PHP to redesign many of its inconsistent core APIs. This repo provides the means to quickly prototype and test new APIs as userland code. Once the APIs are figured out it will be proposed for inclusion into PHP. Note: The ability to register type handlers from userland is just for prototyping. WWW: https://github.com/nikic/scalar_objects PR: ports/186221 Submitted by: Gasol Wu Added: head/devel/php-scalar_objects/ head/devel/php-scalar_objects/Makefile (contents, props changed) head/devel/php-scalar_objects/distinfo (contents, props changed) head/devel/php-scalar_objects/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Wed Feb 5 20:02:40 2014 (r342831) +++ head/devel/Makefile Wed Feb 5 20:03:02 2014 (r342832) @@ -3322,6 +3322,7 @@ SUBDIR += php-java-bridge SUBDIR += php-libawl SUBDIR += php-memoize + SUBDIR += php-scalar_objects SUBDIR += php-xdebug SUBDIR += php5-blitz SUBDIR += php5-blitz-devel Added: head/devel/php-scalar_objects/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/php-scalar_objects/Makefile Wed Feb 5 20:03:02 2014 (r342832) @@ -0,0 +1,25 @@ +# Created by: Gasol Wu +# $FreeBSD$ + +PORTNAME= scalar_objects +PORTVERSION= 0.0.20140124 +CATEGORIES= devel +PKGNAMEPREFIX= php- + +MAINTAINER= gasol.wu@gmail.com +COMMENT= Support method calls on primitive types in PHP + +LICENSE= PHP301 + +USE_GITHUB= yes +GH_ACCOUNT= nikic +GH_PROJECT= scalar_objects +GH_TAGNAME= ${GH_COMMIT} +GH_COMMIT= baf4985 + +USE_PHP= yes +USE_PHPEXT= yes +USE_PHPIZE= yes +USE_PHPBUILD= yes + +.include Added: head/devel/php-scalar_objects/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/php-scalar_objects/distinfo Wed Feb 5 20:03:02 2014 (r342832) @@ -0,0 +1,2 @@ +SHA256 (scalar_objects-0.0.20140124.tar.gz) = 705e563663f3d261eaf1e9c5c4442558cddd0b18cea974c72d3a1a724c067ef7 +SIZE (scalar_objects-0.0.20140124.tar.gz) = 35121 Added: head/devel/php-scalar_objects/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/php-scalar_objects/pkg-descr Wed Feb 5 20:03:02 2014 (r342832) @@ -0,0 +1,17 @@ +Add support for method calls on primitive types in PHP + +This extension implements the ability to register a class that handles the +method calls to a certain primitive type (string, array, ...). As such it +allows implementing APIs like $str->length(). + +The main purpose of this repo is to provide a proof of concept implementation +that can be used to design the new APIs. The switch to object syntax for +operations on primitive types is a unique opportunity for PHP to redesign many +of its inconsistent core APIs. This repo provides the means to quickly +prototype and test new APIs as userland code. Once the APIs are figured out it +will be proposed for inclusion into PHP. + +Note: The ability to register type handlers from userland is just for +prototyping. + +WWW: https://github.com/nikic/scalar_objects