diff --git a/databases/pecl-sqlite/Makefile b/databases/pecl-sqlite/Makefile index fd6afee3f5c7..538e9f28b6d8 100644 --- a/databases/pecl-sqlite/Makefile +++ b/databases/pecl-sqlite/Makefile @@ -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} +MAINTAINER= ports@FreeBSD.org +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 -.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 +IGNORE= Please use databases/php${PHP_VER}-sqlite .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} +.if !defined(NOPORTDOCS) +PORTDOCS= * +.endif -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 diff --git a/databases/pecl-sqlite/distinfo b/databases/pecl-sqlite/distinfo index f7198656b2f8..4fedc76ea0da 100644 --- a/databases/pecl-sqlite/distinfo +++ b/databases/pecl-sqlite/distinfo @@ -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 --git a/databases/pecl-sqlite/pkg-descr b/databases/pecl-sqlite/pkg-descr index b3f120f5777f..0318b88555c8 100644 --- a/databases/pecl-sqlite/pkg-descr +++ b/databases/pecl-sqlite/pkg-descr @@ -2,4 +2,4 @@ SQLite is a C library that implements an embeddable SQL database engine. 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 --git a/databases/pecl-sqlite/pkg-message b/databases/pecl-sqlite/pkg-message deleted file mode 100644 index 5c566215b575..000000000000 --- a/databases/pecl-sqlite/pkg-message +++ /dev/null @@ -1,5 +0,0 @@ -************************************************************************ -Do not forget to configure your %%INI%% file: -set -extension_dir = "%%BASE%%" -************************************************************************ diff --git a/databases/pecl-sqlite/pkg-plist b/databases/pecl-sqlite/pkg-plist index e6b6addf45a2..bdf8a480fb1c 100644 --- a/databases/pecl-sqlite/pkg-plist +++ b/databases/pecl-sqlite/pkg-plist @@ -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%%