packages feed

BerkeleyDB-0.7: BerkeleyDB.cabal

name: BerkeleyDB
version: 0.7
license: BSD3
license-file: LICENSE
cabal-version: >= 1.4
copyright: (c) 2009 Stephen Blackheath
author: Stephen Blackheath
maintainer: http://blacksapphire.com/antispam/
stability: beta
synopsis: Berkeley DB binding
description:
    Berkeley DB is a fast, scalable, fully transactional database that runs on a local file
    system, and functions as a dictionary of arbitrary-sized binary blobs.
    (It is NOT an SQL-based database.)  This package provides a thin Haskell binding for Berkeley DB.
    .
    This is a work in progress: The coverage of the Berkeley DB API is not yet complete. Tested with
    Berkeley DB version 4.6.
    .
    /CXX flag/ (enabled by default):
    On some platforms, BerkeleyDB won't load into ghci if the CXX flag is enabled.
    The CXX flag is required if you want to use the BerkeleyDBXML package.
    You are recommended to disable this flag if you are not using BerkeleyDBXML.
    To disable it, configure with --flags=-CXX.
    .
    Berkeley DB home page:
    <http://www.oracle.com/database/berkeley-db/index.html>
    .
    Haskell binding tutorial:
    <http://www.haskell.org/haskellwiki/BerkeleyDBXML>
    .
    DARCS repository:
    <http://code.haskell.org/BerkeleyDB/>

category: Database
build-type: Simple
homepage: http://www.haskell.org/haskellwiki/BerkeleyDBXML
extra-source-files:
    Database/Berkeley/db_helper.h,
    examples/tests.hs,
    examples/capitals.hs

Flag CXX
    Default: True
    Description:
        Enable the use of the C++ library db_cxx.
        On some platforms, BerkeleyDB won't load into ghci if this flag is enabled.
        This flag is required for if you want to use the BerkeleyDBXML package.
        It is recommended to disable this flag if you are not using BerkeleyDBXML.

Library
    exposed-modules: Database.Berkeley.Db

    build-depends: base, extensible-exceptions, bytestring >= 0.9
    include-dirs: Database/Berkeley/
    if flag(CXX)
        extra-libraries: db db_cxx
        ghc-options: -pgml c++
        cc-options: -DUSE_DB_CXX
        c-sources: Database/Berkeley/db_helper.cpp
    else
        extra-libraries: db
        c-sources: Database/Berkeley/db_helper.c