Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Aug 2012 07:13:06 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r302085 - head/www/pecl-APC
Message-ID:  <201208050713.q757D6j3050515@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sun Aug  5 07:13:06 2012
New Revision: 302085
URL: http://svn.freebsd.org/changeset/ports/302085

Log:
  - Update to 3.1.11 [1]
  - Convert to new options framework
  - Sort option handlers
  - Cosmetic change
  
  Changes:	http://pecl.php.net/package-changelog.php?package=APC
  PR:		ports/170325 [1]
  Submitted by:	mm

Modified:
  head/www/pecl-APC/Makefile   (contents, props changed)
  head/www/pecl-APC/distinfo   (contents, props changed)

Modified: head/www/pecl-APC/Makefile
==============================================================================
--- head/www/pecl-APC/Makefile	Sun Aug  5 07:12:05 2012	(r302084)
+++ head/www/pecl-APC/Makefile	Sun Aug  5 07:13:06 2012	(r302085)
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	APC
-DISTVERSION=	3.1.10
+DISTVERSION=	3.1.11
 CATEGORIES=	www
 MASTER_SITES=	http://pecl.php.net/get/
 PKGNAMEPREFIX=	pecl-
@@ -16,50 +16,46 @@ DIST_SUBDIR=	PECL
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Alternative PHP Cache
 
-USE_PHP=	yes
-IGNORE_WITH_PHP=4
-USE_PHPEXT=	yes
-PHP_MODNAME=	apc
+OPTIONS_DEFINE=	FILEHITS IPC SEMAPHORES SPINLOCKS
+FILEHITS_DESC=	Per request cache info
+IPC_DESC=	IPC shm memory support (default: mmap)
+SEMAPHORES_DESC=System V IPC semaphores (default: fcntl)
+SPINLOCKS_DESC=	Spinlocks (experimental)
 
-SUB_FILES=	pkg-message
-PKGMESSAGE=	${WRKDIR}/pkg-message
-
-CONFIGURE_ARGS=	--enable-apc
 CFLAGS+=	-I${LOCALBASE}/include
+CONFIGURE_ARGS=	--enable-apc
+IGNORE_WITH_PHP=4
+PHP_MODNAME=	${PORTNAME:L}
+PKGMESSAGE=	${WRKDIR}/pkg-message
+SUB_FILES=	pkg-message
+USE_PHP=	yes
+USE_PHPEXT=	yes
 
-OPTIONS=	IPC		"Enable IPC shm memory support (default: mmap)"	off \
-		SEMAPHORES	"Enable sysv IPC semaphores (default: fcntl())"	off \
-		SPINLOCKS	"Enable spinlocks (experimental)"		off \
-		FILEHITS	"Enable per request cache info"			off
+PORTDOCS=	CHANGELOG INSTALL NOTICE apc.php
 
-PORTDOCS=	*
+.include <bsd.port.options.mk>
 
-.include <bsd.port.pre.mk>
+.if ${PORT_OPTIONS:MFILEHITS}
+CONFIGURE_ARGS+=	--enable-apc-filehits
+.endif
 
-.if defined(WITH_IPC)
+.if ${PORT_OPTIONS:MIPC}
 CONFIGURE_ARGS+=	--disable-apc-mmap
 .endif
 
-.if defined(WITH_SEMAPHORES)
+.if ${PORT_OPTIONS:MSEMAPHORES}
 CONFIGURE_ARGS+=	--enable-apc-sem
 .endif
 
-.if defined(WITH_SPINLOCKS)
+.if ${PORT_OPTIONS:MSPINLOCKS}
 CONFIGURE_ARGS+=	--enable-apc-spinlocks
 .endif
 
-.if defined(WITH_FILEHITS)
-CONFIGURE_ARGS+=	--enable-apc-filehits
-.endif
-
 post-install:
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/NOTICE ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/apc.php ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+	${MKDIR} ${DOCSDIR}/
+	cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
 .endif
 	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/www/pecl-APC/distinfo
==============================================================================
--- head/www/pecl-APC/distinfo	Sun Aug  5 07:12:05 2012	(r302084)
+++ head/www/pecl-APC/distinfo	Sun Aug  5 07:13:06 2012	(r302085)
@@ -1,2 +1,2 @@
-SHA256 (PECL/APC-3.1.10.tgz) = 99f260b32592f1b50da9c7a83fad3c5cbdb2484fa01aee6cc04caadd8cd4fc44
-SIZE (PECL/APC-3.1.10.tgz) = 156208
+SHA256 (PECL/APC-3.1.11.tgz) = 478ae91c735087dda4f02d03399fb06ceba4355125ad8fd532b187c93004ebc7
+SIZE (PECL/APC-3.1.11.tgz) = 157478



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208050713.q757D6j3050515>