diff options
author | obraun <obraun@FreeBSD.org> | 2004-01-16 07:47:22 +0800 |
---|---|---|
committer | obraun <obraun@FreeBSD.org> | 2004-01-16 07:47:22 +0800 |
commit | 5034ac704fa153bca79f7761a7cef68b398afe19 (patch) | |
tree | bd59588d691992a37159ebdceb230b81eaea1c8e /databases | |
parent | 78cfc2f17f08d0253564b193ec9f8c597c8b23ab (diff) | |
download | freebsd-ports-gnome-5034ac704fa153bca79f7761a7cef68b398afe19.tar.gz freebsd-ports-gnome-5034ac704fa153bca79f7761a7cef68b398afe19.tar.zst freebsd-ports-gnome-5034ac704fa153bca79f7761a7cef68b398afe19.zip |
Add HSQL a SQL binding for Haskell. The port supports only PostgreSQL. MySQL
and ODBC support will be added if someone requests.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/hs-hsql/Makefile | 43 | ||||
-rw-r--r-- | databases/hs-hsql/distinfo | 1 | ||||
-rw-r--r-- | databases/hs-hsql/files/patch-Makefile | 22 | ||||
-rw-r--r-- | databases/hs-hsql/pkg-descr | 8 | ||||
-rw-r--r-- | databases/hs-hsql/pkg-plist | 33 |
6 files changed, 108 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index 97d9c77ad381..cb59f67cb4f2 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -45,6 +45,7 @@ SUBDIR += grass SUBDIR += gtksql SUBDIR += hk_classes + SUBDIR += hs-hsql SUBDIR += java-sqlrelay SUBDIR += jdb SUBDIR += jdbc-oracle816 diff --git a/databases/hs-hsql/Makefile b/databases/hs-hsql/Makefile new file mode 100644 index 000000000000..2f7a16e75434 --- /dev/null +++ b/databases/hs-hsql/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: hsql +# Date created: 2004-01-15 +# Whom: obraun@FreeBSD.org +# +# $FreeBSD$ +# + +PORTNAME= hsql +PORTVERSION= 1.0 +CATEGORIES= databases haskell +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= htoolkit +PKGNAMEPREFIX= hs- + +MAINTAINER= obraun@FreeBSD.org +COMMENT= Haskell access to SQL + +BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \ + psql:${PORTSDIR}/databases/postgresql7 +RUN_DEPENDS= ${BUILD_DEPENDS} + +.if !defined(NOPORTDOCS) +BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock +ALL_TARGET= all docs +.endif + +WRKSRC= ${WRKDIR}/HSQL + +HAS_CONFIGURE= yes +CONFIGURE_ARGS= --prefix=${PREFIX}/lib --enable-postgres +CONFIGURE_ENV+= CFLAGS=-I${LOCALBASE}/include/postgresql/server \ + CPPFLAGS=-I${LOCALBASE}/include/postgresql/server +USE_GMAKE= yes +MAKE_ENV+= DOCSDIR=${DOCSDIR} + +GHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version` +PLIST_SUB+= GHC_VERSION="${GHC_VERSION}" + +post-install: + ${MKDIR} ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/hsql.pkg ${DATADIR} + +.include <bsd.port.mk> diff --git a/databases/hs-hsql/distinfo b/databases/hs-hsql/distinfo new file mode 100644 index 000000000000..c1d99407f533 --- /dev/null +++ b/databases/hs-hsql/distinfo @@ -0,0 +1 @@ +MD5 (hsql-1.0.tar.gz) = 125c42f4553115b2b88e1004e7d1c522 diff --git a/databases/hs-hsql/files/patch-Makefile b/databases/hs-hsql/files/patch-Makefile new file mode 100644 index 000000000000..dedd21f14826 --- /dev/null +++ b/databases/hs-hsql/files/patch-Makefile @@ -0,0 +1,22 @@ +--- Makefile.orig Sun Sep 7 23:24:33 2003 ++++ Makefile Fri Jan 16 00:39:58 2004 +@@ -51,7 +51,7 @@ + mkdir -p doc + $(HADDOCK) -h -o doc $(HS_PPS) + +-install: libHSsql.a $(HI_SRC) docs ++install: libHSsql.a $(HI_SRC) + $(INSTALL) libHSsql.a $(prefix)/libHSsql.a + $(INSTALL) -d $(prefix)/imports/Database + for i in $(HI_SRC); do \ +@@ -61,8 +61,8 @@ + rm -f $(prefix)/HSsql.o + $(GHC_PKG) -u -g -i hsql.pkg + if test -f doc/index.html; then \ +- $(INSTALL) -d $(prefix)/doc/html/hsql; \ +- $(INSTALL) -c doc/* $(prefix)/doc/html/hsql; \ ++ $(INSTALL) -d ${DOCSDIR}; \ ++ $(INSTALL) -c doc/* ${DOCSDIR}; \ + fi + + ODBC/HSQL.hs : ODBC/HSQLStructs.h diff --git a/databases/hs-hsql/pkg-descr b/databases/hs-hsql/pkg-descr new file mode 100644 index 000000000000..cf6dcd753cb9 --- /dev/null +++ b/databases/hs-hsql/pkg-descr @@ -0,0 +1,8 @@ +HSQL is intended to give access to PostgresSQL, MySQL and ODBC databases. The +HSQL is a part of HToolkit project but it is also distributed as separate +bundle. + +WWW: http://htoolkit.sourceforge.net/ + +-- Oliver Braun +obraun@FreeBSD.org diff --git a/databases/hs-hsql/pkg-plist b/databases/hs-hsql/pkg-plist new file mode 100644 index 000000000000..e016057f7cc2 --- /dev/null +++ b/databases/hs-hsql/pkg-plist @@ -0,0 +1,33 @@ +lib/HSsql.o +lib/imports/Database/PostgreSQL/HSQL.hi +lib/libHSsql.a +%%PORTDOCS%%%%DOCSDIR%%/Database.PostgreSQL.HSQL.html +%%PORTDOCS%%%%DOCSDIR%%/doc-index-B.html +%%PORTDOCS%%%%DOCSDIR%%/doc-index-C.html +%%PORTDOCS%%%%DOCSDIR%%/doc-index-D.html +%%PORTDOCS%%%%DOCSDIR%%/doc-index-E.html +%%PORTDOCS%%%%DOCSDIR%%/doc-index-F.html +%%PORTDOCS%%%%DOCSDIR%%/doc-index-G.html +%%PORTDOCS%%%%DOCSDIR%%/doc-index-H.html +%%PORTDOCS%%%%DOCSDIR%%/doc-index-I.html +%%PORTDOCS%%%%DOCSDIR%%/doc-index-L.html +%%PORTDOCS%%%%DOCSDIR%%/doc-index-M.html +%%PORTDOCS%%%%DOCSDIR%%/doc-index-O.html +%%PORTDOCS%%%%DOCSDIR%%/doc-index-P.html +%%PORTDOCS%%%%DOCSDIR%%/doc-index-Q.html +%%PORTDOCS%%%%DOCSDIR%%/doc-index-S.html +%%PORTDOCS%%%%DOCSDIR%%/doc-index-T.html +%%PORTDOCS%%%%DOCSDIR%%/doc-index.html +%%PORTDOCS%%%%DOCSDIR%%/haddock.css +%%PORTDOCS%%%%DOCSDIR%%/haskell_icon.gif +%%PORTDOCS%%%%DOCSDIR%%/index.html +%%DATADIR%%/hsql.pkg +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrm lib/imports/Database/PostgreSQL +@dirrm lib/imports/Database +@dirrm lib/imports +@dirrm %%DATADIR%% +@exec %D/bin/ghc-pkg -u -g -i %D/share/hsql/hsql.pkg +@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec %D/bin/ghc-pkg -r hsql +@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old |