From nobody@FreeBSD.org  Thu Nov 24 05:38:39 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C22DB1065678
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Nov 2011 05:38:39 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id B2D788FC18
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Nov 2011 05:38:39 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pAO5cdgr090955
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Nov 2011 05:38:39 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pAO5cdYN090954;
	Thu, 24 Nov 2011 05:38:39 GMT
	(envelope-from nobody)
Message-Id: <201111240538.pAO5cdYN090954@red.freebsd.org>
Date: Thu, 24 Nov 2011 05:38:39 GMT
From: Oleg Pudeyev <oleg@bsdpower.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: new port: archivers/php5-phar
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         162807
>Category:       ports
>Synopsis:       new port: archivers/php5-phar
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 24 05:40:08 UTC 2011
>Closed-Date:    Fri Nov 25 15:51:28 UTC 2011
>Last-Modified:  Fri Nov 25 15:51:28 UTC 2011
>Originator:     Oleg Pudeyev
>Release:        8.2-STABLE
>Organization:
>Environment:
FreeBSD athena.universe 8.2-STABLE FreeBSD 8.2-STABLE #1: Sun Sep  4 23:27:08 EDT 2011     root@athena.universe:/home/build/obj/nfs/src/sys/ATHENA  i386

>Description:
Attached is a new port for phar extension in php. It is available starting with php 5.3.0.

I had to set CFLAGS and LDFLAGS manually because phar extension does not understand --with-pcre-dir. See https://bugs.php.net/bug.php?id=60370 I filed upstream.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- lang/php5/Makefile.ext.orig	2011-11-23 22:46:19.429053038 -0500
+++ lang/php5/Makefile.ext	2011-11-23 23:41:04.174696968 -0500
@@ -264,6 +264,14 @@
 CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}
 .endif
 
+.if ${PHP_MODNAME} == "phar"
+CONFIGURE_ARGS+=--enable-phar
+# does not work: https://bugs.php.net/bug.php?id=60370
+#		--with-pcre-dir=${LOCALBASE}
+CFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
+.endif
+
 .if ${PHP_MODNAME} == "posix"
 CONFIGURE_ARGS+=--enable-posix
 .endif
--- /dev/null	2011-11-23 23:41:23.000000000 -0500
+++ archivers/php5-phar/Makefile	2011-11-23 22:45:46.224033965 -0500
@@ -0,0 +1,14 @@
+# New ports collection makefile for:	php5-phar
+# Date created:			23 Nov 2011
+# Whom:				Oleg Pudeyev <oleg@bsdpower.com>
+#
+# $FreeBSD$
+#
+
+CATEGORIES=	archivers
+
+MASTERDIR=	${.CURDIR}/../../lang/php5
+
+PKGNAMESUFFIX=	-phar
+
+.include "${MASTERDIR}/Makefile"


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ale 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Thu Nov 24 15:52:56 UTC 2011 
Responsible-Changed-Why:  
can u please have a look here, thx. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162807 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/162807: commit references a PR
Date: Fri, 25 Nov 2011 15:49:31 +0000 (UTC)

 ale         2011-11-25 15:48:57 UTC
 
   FreeBSD ports repository
 
   Modified files:
     archivers            Makefile 
   Added files:
     archivers/php5-phar  Makefile 
     archivers/php5-phar/files patch-config.m4 patch-phar.c 
   Log:
   Add php5-phar extension.
   
   PR:             ports/162807
   Submitted by:   Oleg Pudeyev <oleg@bsdpower.com>
   Feature safe:   yes
   
   Revision  Changes    Path
   1.268     +1 -0      ports/archivers/Makefile
   1.1       +14 -0     ports/archivers/php5-phar/Makefile (new)
   1.1       +41 -0     ports/archivers/php5-phar/files/patch-config.m4 (new)
   1.1       +11 -0     ports/archivers/php5-phar/files/patch-phar.c (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: ale 
State-Changed-When: Fri Nov 25 15:50:54 UTC 2011 
State-Changed-Why:  
Committed. Many php5 extensions don't support external pcre. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162807 
>Unformatted:
