diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2004-05-06 13:19:24 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2004-05-06 13:19:24 +0000 |
commit | 84eab4b870dd307749db494fcf997453ad777feb (patch) | |
tree | ef24596734df4c787050865c9ac3b46bcefa4344 /databases/pecl-sqlite | |
parent | 2681ce42a1ff072c39a38a72647e447e351a1726 (diff) | |
download | ports-84eab4b870dd307749db494fcf997453ad777feb.tar.gz ports-84eab4b870dd307749db494fcf997453ad777feb.zip |
Notes
Diffstat (limited to 'databases/pecl-sqlite')
-rw-r--r-- | databases/pecl-sqlite/Makefile | 64 | ||||
-rw-r--r-- | databases/pecl-sqlite/distinfo | 2 | ||||
-rw-r--r-- | databases/pecl-sqlite/pkg-descr | 5 | ||||
-rw-r--r-- | databases/pecl-sqlite/pkg-message | 5 | ||||
-rw-r--r-- | databases/pecl-sqlite/pkg-plist | 25 |
5 files changed, 101 insertions, 0 deletions
diff --git a/databases/pecl-sqlite/Makefile b/databases/pecl-sqlite/Makefile new file mode 100644 index 000000000000..fd6afee3f5c7 --- /dev/null +++ b/databases/pecl-sqlite/Makefile @@ -0,0 +1,64 @@ +# Ports collection makefile for: pear-sqlite +# Date created: 2004-04-30 +# Whom: mat +# +# $FreeBSD$ +# + +PORTNAME= sqlite +PORTVERSION= 1.0.2 +CATEGORIES= databases www pear + +MAINTAINER= mat@FreeBSD.org +COMMENT= PEAR classes to access sqlite databases + +BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR +RUN_DEPENDS= ${BUILD_DEPENDS} + +WRKSRC= ${WRKDIR}/SQLite-${PORTVERSION} +PKGMESSAGE= ${WRKDIR}/pkg-message + +USE_PHP= yes +USE_PHPIZE= yes + +.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}/::" +.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 +.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}." +.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 --git a/databases/pecl-sqlite/distinfo b/databases/pecl-sqlite/distinfo new file mode 100644 index 000000000000..f7198656b2f8 --- /dev/null +++ b/databases/pecl-sqlite/distinfo @@ -0,0 +1,2 @@ +MD5 (PEAR/sqlite-1.0.2.tgz) = a6ddfe1136e35ad7feddc9ce9bfac991 +SIZE (PEAR/sqlite-1.0.2.tgz) = 362412 diff --git a/databases/pecl-sqlite/pkg-descr b/databases/pecl-sqlite/pkg-descr new file mode 100644 index 000000000000..b3f120f5777f --- /dev/null +++ b/databases/pecl-sqlite/pkg-descr @@ -0,0 +1,5 @@ +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 diff --git a/databases/pecl-sqlite/pkg-message b/databases/pecl-sqlite/pkg-message new file mode 100644 index 000000000000..5c566215b575 --- /dev/null +++ b/databases/pecl-sqlite/pkg-message @@ -0,0 +1,5 @@ +************************************************************************ +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 new file mode 100644 index 000000000000..e6b6addf45a2 --- /dev/null +++ b/databases/pecl-sqlite/pkg-plist @@ -0,0 +1,25 @@ +%%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%% |