ldb-hs: Use cabal build system rather then make

Jelmer Vernooij jelmer at samba.org
Sun May 11 23:19:02 GMT 2008


Mon Nov 28 22:04:27 CET 2005  Jelmer Vernooij <jelmer at samba.org>
  * Use cabal build system rather then make

    R ./Makefile
    A ./Setup.hs
    M ./ldb.cabal -10 +14

Mon Nov 28 22:04:27 CET 2005  Jelmer Vernooij <jelmer at samba.org>
  * Use cabal build system rather then make
diff -rN -u old-ldb-hs/ldb.cabal new-ldb-hs/ldb.cabal
--- old-ldb-hs/ldb.cabal	2008-05-12 01:19:02.000000000 +0200
+++ new-ldb-hs/ldb.cabal	2008-05-12 01:19:02.000000000 +0200
@@ -1,10 +1,14 @@
-name: ldb
-version: 1.0
-license: LGPL
-license-file: COPYING
-maintainer: jelmer at samba.org
-stability: provisional
-homepage: http://samba.org/~jelmer/ldb.hs
-category: System
-build-depends: 
-exposed-modules: ${modules}
+Name: ldb
+Version: 1.0
+License: LGPL
+License-File: COPYING
+Maintainer: jelmer at samba.org
+Copyright: Copyright (c) 2005 Jelmer Vernooij
+Stability: provisional
+Homepage: http://samba.org/~jelmer/ldb.hs
+Exposed-modules: LDB
+Synopsis:	Haskell bindings to LDB
+Category:       Database Library
+Build-Depends:  base, haskell98
+Extensions:	ForeignFunctionInterface
+Ghc-Options:	-O
diff -rN -u old-ldb-hs/Makefile new-ldb-hs/Makefile
--- old-ldb-hs/Makefile	2008-05-12 01:19:02.000000000 +0200
+++ new-ldb-hs/Makefile	1970-01-01 01:00:00.000000000 +0100
@@ -1,18 +0,0 @@
-HC ?= ghc
-HCFLAGS += -fglasgow-exts 
-C2HS = c2hs
-C2HSFLAGS = -l
-
-all: LDB.hs
-
-%.o: %.hs
-	$(HC) $(HCFLAGS) -L. $<
-
-test: test.o LDB.o
-	$(HC) $(HCFLAGS) -L. $^
-	
-clean:
-	rm -f LDB.hs LDB.chi LDB.h *.hi *.o
-
-%.hs: %.chs
-	$(C2HS) $(C2HSFLAGS) $<
diff -rN -u old-ldb-hs/Setup.hs new-ldb-hs/Setup.hs
--- old-ldb-hs/Setup.hs	1970-01-01 01:00:00.000000000 +0100
+++ new-ldb-hs/Setup.hs	2008-05-12 01:19:02.000000000 +0200
@@ -0,0 +1,12 @@
+#!/usr/bin/env runhaskell
+
+import System (system, ExitCode)
+
+import Distribution.Simple
+import Distribution.PackageDescription
+
+-- for the argument types of the `postInst' hook
+import Distribution.Setup
+import Distribution.Simple.LocalBuildInfo
+
+main = defaultMainWithHooks defaultUserHooks




More information about the samba-cvs mailing list