summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2004-05-06 13:19:24 +0000
committerMathieu Arnold <mat@FreeBSD.org>2004-05-06 13:19:24 +0000
commit84eab4b870dd307749db494fcf997453ad777feb (patch)
treeef24596734df4c787050865c9ac3b46bcefa4344 /databases
parent- Update to 1.5.7 (diff)
Add pear-sqlite 1.0.2, PEAR classes to access sqlite databases.
Notes
Notes: svn path=/head/; revision=108553
Diffstat (limited to 'databases')
-rw-r--r--databases/Makefile1
-rw-r--r--databases/pear-sqlite/Makefile64
-rw-r--r--databases/pear-sqlite/distinfo2
-rw-r--r--databases/pear-sqlite/pkg-descr5
-rw-r--r--databases/pear-sqlite/pkg-message5
-rw-r--r--databases/pear-sqlite/pkg-plist25
-rw-r--r--databases/pecl-sqlite/Makefile64
-rw-r--r--databases/pecl-sqlite/distinfo2
-rw-r--r--databases/pecl-sqlite/pkg-descr5
-rw-r--r--databases/pecl-sqlite/pkg-message5
-rw-r--r--databases/pecl-sqlite/pkg-plist25
11 files changed, 203 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 1e495a5181ce..3340a31b4d78 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -197,6 +197,7 @@
SUBDIR += p5-sqlrelay
SUBDIR += pear-DB
SUBDIR += pear-DB_Pager
+ SUBDIR += pear-sqlite
SUBDIR += pgaccess
SUBDIR += pgadmin3
SUBDIR += pgbash
diff --git a/databases/pear-sqlite/Makefile b/databases/pear-sqlite/Makefile
new file mode 100644
index 000000000000..fd6afee3f5c7
--- /dev/null
+++ b/databases/pear-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/pear-sqlite/distinfo b/databases/pear-sqlite/distinfo
new file mode 100644
index 000000000000..f7198656b2f8
--- /dev/null
+++ b/databases/pear-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/pear-sqlite/pkg-descr b/databases/pear-sqlite/pkg-descr
new file mode 100644
index 000000000000..b3f120f5777f
--- /dev/null
+++ b/databases/pear-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/pear-sqlite/pkg-message b/databases/pear-sqlite/pkg-message
new file mode 100644
index 000000000000..5c566215b575
--- /dev/null
+++ b/databases/pear-sqlite/pkg-message
@@ -0,0 +1,5 @@
+************************************************************************
+Do not forget to configure your %%INI%% file:
+set
+extension_dir = "%%BASE%%"
+************************************************************************
diff --git a/databases/pear-sqlite/pkg-plist b/databases/pear-sqlite/pkg-plist
new file mode 100644
index 000000000000..e6b6addf45a2
--- /dev/null
+++ b/databases/pear-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%%
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%%