Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Feb 2005 23:38:07 -0300 (BRT)
From:      Marcus Grando <marcus@corp.grupos.com.br>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        mat@FreeBSD.org
Subject:   ports/78003: REPOCOPY: databases/pear-sqlite -> databases/pecl-sqlite
Message-ID:  <20050224023807.2B46720A57@corp.grupos.com.br>
Resent-Message-ID: <200502240240.j1O2eKKI020083@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         78003
>Category:       ports
>Synopsis:       REPOCOPY: databases/pear-sqlite -> databases/pecl-sqlite
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 24 02:40:20 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Marcus Grando
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
Grupos Internet S/A
>Environment:
System: FreeBSD corp.grupos.com.br 4.11-STABLE FreeBSD 4.11-STABLE #41: Sun Feb 13 17:30:27 BRST 2005 root@corp.grupos.com.br:/usr/obj/usr/src/sys/CORP i386


	
>Description:
REPOCOPY: databases/pear-sqlite -> databases/pecl-sqlite

Now is pecl package. http://pecl.php.net/package/sqlite

After repocopy apply patch below

+ Update to 1.0.3
+ Remove pkg-message

	
>How-To-Repeat:
	
>Fix:

	

--- pecl-sqlite.patch begins here ---
diff -ruN pecl-sqlite.old/Makefile pecl-sqlite/Makefile
--- pecl-sqlite.old/Makefile	Thu May  6 10:19:24 2004
+++ pecl-sqlite/Makefile	Wed Feb 23 23:24:37 2005
@@ -6,59 +6,50 @@
 #
 
 PORTNAME=	sqlite
-PORTVERSION=	1.0.2
-CATEGORIES=	databases www pear
+PORTVERSION=	1.0.3
+CATEGORIES=	databases www
+MASTER_SITES=	http://pecl.php.net/get/
+PKGNAMEPREFIX=	pecl-
+DISTNAME=	SQLite-${PORTVERSION}
+EXTRACT_SUFX=	.tgz
+DIST_SUBDIR=	PECL
 
 MAINTAINER=	mat@FreeBSD.org
-COMMENT=	PEAR classes to access sqlite databases
-
-BUILD_DEPENDS=	${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
-RUN_DEPENDS=	${BUILD_DEPENDS}
+COMMENT=	PECL classes to access sqlite databases
 
 WRKSRC=		${WRKDIR}/SQLite-${PORTVERSION}
 PKGMESSAGE=	${WRKDIR}/pkg-message
 
 USE_PHP=	yes
 USE_PHPIZE=	yes
+USE_PHPEXT=	yes
+PHP_MODNAME=	sqlite
+
+CONFIGURE_ARGS=	--with-sqlite
+
+DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
+EXAMPLESDIR=	${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
 
 .include <bsd.port.pre.mk>
-.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
 
-.if exists(${LOCALBASE}/bin/php-config)
-EXT_DIR!=	${LOCALBASE}/bin/php-config --extension-dir | ${SED} -e \
-			"s:${PHP_BASE}/::"
+.if ${PHP_VER} == 5
+BROKEN=		Please use databases/php${PHP_VER}-sqlite
+.endif
+
+.if !defined(NOPORTDOCS)
+PORTDOCS=	*
 .endif
-PHP_DIR?=	${LOCALBASE}/etc
-PHP_INI=	${PHP_DIR}/php.ini
-PLIST_SUB+=	EXTDIR=${EXT_DIR}
-
-DOCSDIR=	${PEARDIR}/docs/${PORTNAME}
-DOCS=		CREDITS README
-TESTDIR=	${PEARDIR}/tests/${PORTNAME}
-
-post-install-script:
-	@${STRIP_CMD} ${PHP_BASE}/${EXT_DIR}/sqlite.so
-# Configure extension_dir
-	@if [ ! -f ${PHP_INI} ]; then \
-		${ECHO_MSG} "===>   Creating ${PHP_INI} for PHP" ; \
-		${CP} -p ${PHP_INI}-dist ${PHP_INI} ; \
-	fi
+
+post-install:
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
-.for FILE in ${DOCS}
-	@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
-.endfor
-	@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
-	@${MKDIR} ${TESTDIR}
-	@${CP} -Rp ${WRKSRC}/tests/* ${TESTDIR}
-	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${TESTDIR}
-	@${ECHO_MSG} "===> Examples installed in ${TESTDIR}."
+	@${MKDIR} ${DOCSDIR}/tests
+	@${INSTALL_DATA} ${WRKSRC}/CREDITS ${DOCSDIR}
+	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+	@${INSTALL_DATA} ${WRKSRC}/tests/* ${DOCSDIR}/tests
+
+	@${MKDIR} ${EXAMPLESDIR}
+	@${INSTALL_DATA} ${WRKSRC}/sqlite.php ${EXAMPLESDIR}
 .endif
-	@${ECHO_MSG}
-	@${SED} -e "s:%%INI%%:${PHP_INI}:"	\
-		-e "s:%%BASE%%:${PHP_BASE}/${EXT_DIR}:" \
-		${.CURDIR}/pkg-message > ${PKGMESSAGE}
-	@${CAT} ${PKGMESSAGE}
-	@${ECHO_MSG}
 
 .include <bsd.port.post.mk>
diff -ruN pecl-sqlite.old/distinfo pecl-sqlite/distinfo
--- pecl-sqlite.old/distinfo	Thu May  6 10:19:24 2004
+++ pecl-sqlite/distinfo	Wed Feb 23 22:25:30 2005
@@ -1,2 +1,2 @@
-MD5 (PEAR/sqlite-1.0.2.tgz) = a6ddfe1136e35ad7feddc9ce9bfac991
-SIZE (PEAR/sqlite-1.0.2.tgz) = 362412
+MD5 (PECL/SQLite-1.0.3.tgz) = 3741cb211f9eb3f77de086e96d232e95
+SIZE (PECL/SQLite-1.0.3.tgz) = 371189
diff -ruN pecl-sqlite.old/pkg-descr pecl-sqlite/pkg-descr
--- pecl-sqlite.old/pkg-descr	Thu May  6 10:19:24 2004
+++ pecl-sqlite/pkg-descr	Wed Feb 23 23:13:02 2005
@@ -2,4 +2,4 @@
 Programs that link with the SQLite library can have SQL database access
 without running a separate RDBMS process.
 
-WWW: http://pear.php.net/package/sqlite
+WWW: http://pecl.php.net/package/sqlite
diff -ruN pecl-sqlite.old/pkg-message pecl-sqlite/pkg-message
--- pecl-sqlite.old/pkg-message	Thu May  6 10:19:24 2004
+++ pecl-sqlite/pkg-message	Wed Dec 31 21:00:00 1969
@@ -1,5 +0,0 @@
-************************************************************************
-Do not forget to configure your %%INI%% file:
-set
-extension_dir = "%%BASE%%"
-************************************************************************
diff -ruN pecl-sqlite.old/pkg-plist pecl-sqlite/pkg-plist
--- pecl-sqlite.old/pkg-plist	Thu May  6 10:19:24 2004
+++ pecl-sqlite/pkg-plist	Wed Feb 23 22:43:59 2005
@@ -1,25 +1,2 @@
-%%EXTDIR%%/sqlite.so
-%%PKGREGDIR%%/package.xml
-%%PORTDOCS%%%%PEARDIR%%/docs/sqlite/CREDITS
-%%PORTDOCS%%%%PEARDIR%%/docs/sqlite/README
-%%PORTDOCS%%%%PEARDIR%%/tests/sqlite/blankdb.inc
-%%PORTDOCS%%%%PEARDIR%%/tests/sqlite/sqlite_001.phpt
-%%PORTDOCS%%%%PEARDIR%%/tests/sqlite/sqlite_002.phpt
-%%PORTDOCS%%%%PEARDIR%%/tests/sqlite/sqlite_003.phpt
-%%PORTDOCS%%%%PEARDIR%%/tests/sqlite/sqlite_004.phpt
-%%PORTDOCS%%%%PEARDIR%%/tests/sqlite/sqlite_005.phpt
-%%PORTDOCS%%%%PEARDIR%%/tests/sqlite/sqlite_006.phpt
-%%PORTDOCS%%%%PEARDIR%%/tests/sqlite/sqlite_007.phpt
-%%PORTDOCS%%%%PEARDIR%%/tests/sqlite/sqlite_008.phpt
-%%PORTDOCS%%%%PEARDIR%%/tests/sqlite/sqlite_009.phpt
-%%PORTDOCS%%%%PEARDIR%%/tests/sqlite/sqlite_010.phpt
-%%PORTDOCS%%%%PEARDIR%%/tests/sqlite/sqlite_011.phpt
-%%PORTDOCS%%%%PEARDIR%%/tests/sqlite/sqlite_012.phpt
-%%PORTDOCS%%%%PEARDIR%%/tests/sqlite/sqlite_013.phpt
-%%PORTDOCS%%%%PEARDIR%%/tests/sqlite/sqlite_014.phpt
-%%PORTDOCS%%%%PEARDIR%%/tests/sqlite/sqlite_015.phpt
-%%PORTDOCS%%%%PEARDIR%%/tests/sqlite/sqlite_016.phpt
-%%PORTDOCS%%%%PEARDIR%%/tests/sqlite/sqlite_017.phpt
-%%PORTDOCS%%@dirrm %%PEARDIR%%/docs/sqlite
-%%PORTDOCS%%@dirrm %%PEARDIR%%/tests/sqlite/
-@dirrm %%PKGREGDIR%%
+%%PORTDOCS%%%%EXAMPLESDIR%%/sqlite.php
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
--- pecl-sqlite.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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