From owner-svn-ports-head@FreeBSD.ORG Fri Nov 8 21:37:07 2013 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 ESMTP id DF6325D1; Fri, 8 Nov 2013 21:37:07 +0000 (UTC) (envelope-from antoine@FreeBSD.org) 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 B36632233; Fri, 8 Nov 2013 21:37:07 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rA8Lb7SV060660; Fri, 8 Nov 2013 21:37:07 GMT (envelope-from antoine@svn.freebsd.org) Received: (from antoine@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rA8Lb7Kp060656; Fri, 8 Nov 2013 21:37:07 GMT (envelope-from antoine@svn.freebsd.org) Message-Id: <201311082137.rA8Lb7Kp060656@svn.freebsd.org> From: Antoine Brodin Date: Fri, 8 Nov 2013 21:37:07 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r333261 - head/devel/pear 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.14 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: Fri, 08 Nov 2013 21:37:08 -0000 Author: antoine Date: Fri Nov 8 21:37:06 2013 New Revision: 333261 URL: http://svnweb.freebsd.org/changeset/ports/333261 Log: Preliminary work on devel/pear to allow staging of pear classes: - create 3 empty directories when pkg_install is used - regenerate .depdb post package install to prevent fs/stage violations - add a note about staging this port, install-pear.php seems to be the way - bump PORTREVISION Reviewed by: bapt, ports@ Added: head/devel/pear/pkg-install (contents, props changed) Modified: head/devel/pear/Makefile head/devel/pear/pkg-plist Modified: head/devel/pear/Makefile ============================================================================== --- head/devel/pear/Makefile Fri Nov 8 19:52:00 2013 (r333260) +++ head/devel/pear/Makefile Fri Nov 8 21:37:06 2013 (r333261) @@ -3,7 +3,7 @@ PORTNAME= pear PORTVERSION= 1.9.4 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel MASTER_SITES= http://miwibox.org/distfiles/ @@ -19,6 +19,8 @@ USE_PHP_BUILD= yes PEARDIR= ${PREFIX}/share/pear +# https://github.com/pear/pear-core/blob/master/install-pear.php +# supports ${SETENV} INSTALL_ROOT=${STAGEDIR} NO_STAGE= yes post-patch: @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" \ Added: head/devel/pear/pkg-install ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pear/pkg-install Fri Nov 8 21:37:06 2013 (r333261) @@ -0,0 +1,11 @@ +#!/bin/sh + +if [ "$2" != "POST-INSTALL" ]; then + exit 0 +fi + +# Regenerate %%PEARDIR%%/.depdb post-install +# This is to prevent fs or stage violation for first dependent port +${PKG_PREFIX}/bin/pear list > /dev/null + +exit 0 Modified: head/devel/pear/pkg-plist ============================================================================== --- head/devel/pear/pkg-plist Fri Nov 8 19:52:00 2013 (r333260) +++ head/devel/pear/pkg-plist Fri Nov 8 21:37:06 2013 (r333261) @@ -166,6 +166,9 @@ etc/pear.conf.sample @rmtry share/pear/.lock @dirrmtry share/pear/.channels/.alias @dirrmtry share/pear/.channels +@exec mkdir -p %D/share/pear/.registry/.channel.__uri +@exec mkdir -p %D/share/pear/.registry/.channel.doc.php.net +@exec mkdir -p %D/share/pear/.registry/.channel.pecl.php.net @dirrmtry share/pear/.registry/.channel.__uri @dirrmtry share/pear/.registry/.channel.doc.php.net @dirrmtry share/pear/.registry/.channel.pecl.php.net