diff options
author | Duncan Coutts <dcoutts@gentoo.org> | 2007-12-13 17:30:12 +0000 |
---|---|---|
committer | Duncan Coutts <dcoutts@gentoo.org> | 2007-12-13 17:30:12 +0000 |
commit | 5202731a95bb3391e7b26ce4a954871bf285d750 (patch) | |
tree | a3bd7b5c05981965132e5151ba8a98a7e7678cc1 /dev-haskell/hdbc-odbc | |
parent | remove old versions (diff) | |
download | historical-5202731a95bb3391e7b26ce4a954871bf285d750.tar.gz historical-5202731a95bb3391e7b26ce4a954871bf285d750.tar.bz2 historical-5202731a95bb3391e7b26ce4a954871bf285d750.zip |
New version.
Package-Manager: portage-2.1.3.19
Diffstat (limited to 'dev-haskell/hdbc-odbc')
-rw-r--r-- | dev-haskell/hdbc-odbc/ChangeLog | 8 | ||||
-rw-r--r-- | dev-haskell/hdbc-odbc/files/digest-hdbc-odbc-1.1.3.0 | 3 | ||||
-rw-r--r-- | dev-haskell/hdbc-odbc/files/hdbc-odbc-helper.h | 34 | ||||
-rw-r--r-- | dev-haskell/hdbc-odbc/hdbc-odbc-1.1.3.0.ebuild | 44 |
4 files changed, 88 insertions, 1 deletions
diff --git a/dev-haskell/hdbc-odbc/ChangeLog b/dev-haskell/hdbc-odbc/ChangeLog index 018136b41d0e..7a3aaf48cefb 100644 --- a/dev-haskell/hdbc-odbc/ChangeLog +++ b/dev-haskell/hdbc-odbc/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-haskell/hdbc-odbc # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hdbc-odbc/ChangeLog,v 1.11 2007/10/31 13:00:38 dcoutts Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hdbc-odbc/ChangeLog,v 1.12 2007/12/13 17:19:01 dcoutts Exp $ + +*hdbc-odbc-1.1.3.0 (13 Dec 2007) + + 13 Dec 2007; Duncan Coutts <dcoutts@gentoo.org> +files/hdbc-odbc-helper.h, + +hdbc-odbc-1.1.3.0.ebuild: + New version. 31 Oct 2007; Duncan Coutts <dcoutts@gentoo.org> hdbc-odbc-1.0.0.0.ebuild, hdbc-odbc-1.0.1.1.ebuild: diff --git a/dev-haskell/hdbc-odbc/files/digest-hdbc-odbc-1.1.3.0 b/dev-haskell/hdbc-odbc/files/digest-hdbc-odbc-1.1.3.0 new file mode 100644 index 000000000000..1f87a53ad184 --- /dev/null +++ b/dev-haskell/hdbc-odbc/files/digest-hdbc-odbc-1.1.3.0 @@ -0,0 +1,3 @@ +MD5 ad4d3dc37f0f94da122516628355533e HDBC-odbc-1.1.3.0.tar.gz 20250 +RMD160 399fe279bc705a28b1765adcfd41c774b4074e75 HDBC-odbc-1.1.3.0.tar.gz 20250 +SHA256 890911b1f94585b2ed80a0ee51959047b957fde410331a4212d25bf7c53bae6d HDBC-odbc-1.1.3.0.tar.gz 20250 diff --git a/dev-haskell/hdbc-odbc/files/hdbc-odbc-helper.h b/dev-haskell/hdbc-odbc/files/hdbc-odbc-helper.h new file mode 100644 index 000000000000..a9e7fac9331f --- /dev/null +++ b/dev-haskell/hdbc-odbc/files/hdbc-odbc-helper.h @@ -0,0 +1,34 @@ +#ifdef mingw32_HOST_OS +#include <windows.h> +#endif +#include <sql.h> + +extern int sqlSucceeded(SQLRETURN ret); +extern SQLRETURN sqlFreeHandleEnv(SQLHANDLE hdl); + +typedef struct TAG_finalizeonce { + void *encapobj; + int refcount; + int isfinalized; + void *extrainfo; + struct TAG_finalizeonce *parent; +} finalizeonce; + +extern finalizeonce *wrapobjodbc(void *obj, finalizeonce *parentobj); +extern finalizeonce *wrapobjodbc_extra(void *obj, void *extra, + finalizeonce *parentobj); + +extern SQLRETURN sqlFreeHandleDbc_app(finalizeonce *res); +extern void sqlFreeHandleDbc_finalizer(finalizeonce *res); + +extern void sqlFreeHandleSth_app(finalizeonce *res); +extern void sqlFreeHandleSth_finalizer(finalizeonce *res); + +extern SQLINTEGER nullData; +extern void *getSqlOvOdbc3(void); + +extern SQLRETURN disableAutoCommit(SQLHDBC conn); +extern SQLRETURN simpleSqlTables(SQLHSTMT stmt); +extern SQLRETURN simpleSqlColumns(SQLHSTMT stmt, SQLCHAR *tablename, + SQLSMALLINT tnlen); + diff --git a/dev-haskell/hdbc-odbc/hdbc-odbc-1.1.3.0.ebuild b/dev-haskell/hdbc-odbc/hdbc-odbc-1.1.3.0.ebuild new file mode 100644 index 000000000000..20b500ec0ac0 --- /dev/null +++ b/dev-haskell/hdbc-odbc/hdbc-odbc-1.1.3.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hdbc-odbc/hdbc-odbc-1.1.3.0.ebuild,v 1.1 2007/12/13 17:19:01 dcoutts Exp $ + +CABAL_FEATURES="lib profile haddock" +inherit haskell-cabal versionator + +MY_PN=HDBC-odbc +MY_P=${MY_PN}-${PV} + +DESCRIPTION="ODBC database driver for HDBC" +HOMEPAGE="http://software.complete.org/hdbc-odbc" +SRC_URI="http://hackage.haskell.org/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +hdbc_PV=$(get_version_component_range 1-3) + +DEPEND=">=dev-lang/ghc-6.4.1 + dev-haskell/mtl + =dev-haskell/hdbc-${hdbc_PV}* + >=dev-db/unixODBC-2.2" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack "${A}" + + cp "${FILESDIR}/hdbc-odbc-helper.h" "${S}/" + + cabal-mksetup + echo "Extra-Libraries: odbc" >> "${S}/${MY_PN}.cabal" + sed -i -e 's/GHC-Options: -O2 -Wall/GHC-Options: -fvia-C/' \ + -e '/^Extensions:/a \ + , ForeignFunctionInterface' \ + "${S}/${MY_PN}.cabal" + + if version_is_at_least "6.8" "$(ghc-version)"; then + echo "GHC-Options: -XPatternSignatures" >> "${S}/${MY_PN}.cabal" + fi +} |