mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
Add HSQL a SQL binding for Haskell. The port supports only PostgreSQL. MySQL
and ODBC support will be added if someone requests.
This commit is contained in:
parent
0c575993b8
commit
e04c5951e1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=98237
@ -45,6 +45,7 @@
|
||||
SUBDIR += grass
|
||||
SUBDIR += gtksql
|
||||
SUBDIR += hk_classes
|
||||
SUBDIR += hs-hsql
|
||||
SUBDIR += java-sqlrelay
|
||||
SUBDIR += jdb
|
||||
SUBDIR += jdbc-oracle816
|
||||
|
43
databases/hs-hsql/Makefile
Normal file
43
databases/hs-hsql/Makefile
Normal file
@ -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>
|
1
databases/hs-hsql/distinfo
Normal file
1
databases/hs-hsql/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (hsql-1.0.tar.gz) = 125c42f4553115b2b88e1004e7d1c522
|
22
databases/hs-hsql/files/patch-Makefile
Normal file
22
databases/hs-hsql/files/patch-Makefile
Normal file
@ -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
|
8
databases/hs-hsql/pkg-descr
Normal file
8
databases/hs-hsql/pkg-descr
Normal file
@ -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
|
33
databases/hs-hsql/pkg-plist
Normal file
33
databases/hs-hsql/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user