From 91263b07cf717ac40e28782a3dac9addd17d353b Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Mon, 27 Jun 2011 14:45:31 +0000 Subject: [PATCH] Sql3 is an interface to the popular Sqlite3 database. The module provides a minimal wrapper around Sqlite3's C interface which is designed to give the developer access to all of Sqlite3's features in a way that is convenient for Pure programmers. WWW: http://docs.pure-lang.googlecode.com/hg/pure-sql3.html PR: ports/156103 Submitted by: Zhihao Yuan --- databases/Makefile | 1 + databases/pure-sql3/Makefile | 39 +++++++++++++++++++++++++++++++++++ databases/pure-sql3/distinfo | 2 ++ databases/pure-sql3/pkg-descr | 6 ++++++ 4 files changed, 48 insertions(+) create mode 100644 databases/pure-sql3/Makefile create mode 100644 databases/pure-sql3/distinfo create mode 100644 databases/pure-sql3/pkg-descr diff --git a/databases/Makefile b/databases/Makefile index c8834e371a0b..eaa9d37a072d 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -631,6 +631,7 @@ SUBDIR += postgresql91-contrib SUBDIR += postgresql_autodoc SUBDIR += powerarchitect + SUBDIR += pure-sql3 SUBDIR += puredb SUBDIR += pxlib SUBDIR += pxtools diff --git a/databases/pure-sql3/Makefile b/databases/pure-sql3/Makefile new file mode 100644 index 000000000000..789936c70328 --- /dev/null +++ b/databases/pure-sql3/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: pure-sql3 +# Date created: 2011-03-18 +# Whom: Zhihao Yuan +# +# $FreeBSD$ +# + +PORTNAME= pure-sql3 +PORTVERSION= 0.4 +CATEGORIES= databases +MASTER_SITES= http://pure-lang.googlecode.com/files/ + +MAINTAINER= lichray@gmail.com +COMMENT= Pure langauge binding to the SQLite3 library + +LIB_DEPENDS+= pure.7:${PORTSDIR}/lang/pure \ + sqlite3:${PORTSDIR}/databases/sqlite3 + +LICENSE_FILE= ${WRKSRC}/COPYING + +USE_GCC= 4.2+ +USE_GMAKE= yes +PLIST_FILES= lib/pure/sql3.pure \ + lib/pure/sql3util.so + +MAKE_ARGS+= prefix=${PREFIX} CPPFLAGS+=-I${LOCALBASE}/include \ + LDFLAGS+=-L${LOCALBASE}/lib CFLAGS="${CFLAGS}" + +PORTEXAMPLES= * + +.include + +post-install: +.if !defined(NOPORTEXAMPLES) + @${MKDIR} ${EXAMPLESDIR} + (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}) +.endif + +.include diff --git a/databases/pure-sql3/distinfo b/databases/pure-sql3/distinfo new file mode 100644 index 000000000000..78dc57a55b6e --- /dev/null +++ b/databases/pure-sql3/distinfo @@ -0,0 +1,2 @@ +SHA256 (pure-sql3-0.4.tar.gz) = 6e6835169ad00b18ecc06b3b156f4ea4a26a3e0ee4a7780a88cee2e7deab7ce1 +SIZE (pure-sql3-0.4.tar.gz) = 41610 diff --git a/databases/pure-sql3/pkg-descr b/databases/pure-sql3/pkg-descr new file mode 100644 index 000000000000..2d2a6d8edbfc --- /dev/null +++ b/databases/pure-sql3/pkg-descr @@ -0,0 +1,6 @@ +Sql3 is an interface to the popular Sqlite3 database. The module provides a +minimal wrapper around Sqlite3's C interface which is designed to give the +developer access to all of Sqlite3's features in a way that is convenient +for Pure programmers. + +WWW: http://docs.pure-lang.googlecode.com/hg/pure-sql3.html