Cabalization
authorJoachim Breitner <mail@joachim-breitner.de>
Sat, 13 Jun 2009 13:48:08 +0000 (15:48 +0200)
committerJoachim Breitner <mail@joachim-breitner.de>
Sat, 13 Jun 2009 13:48:08 +0000 (15:48 +0200)
L-seed.cabal [new file with mode: 0644]
LICENSE [new file with mode: 0644]
Setup.hs [new file with mode: 0644]

diff --git a/L-seed.cabal b/L-seed.cabal
new file mode 100644 (file)
index 0000000..b6c9121
--- /dev/null
@@ -0,0 +1,100 @@
+Name:           L-seed
+Version:        0.1
+Cabal-Version:  >= 1.2
+License:        BSD3
+License-file:   LICENSE
+Author:         Joachim Breitner <mail@joachim-breitner.de>
+Maintainer:     Joachim Breitner <mail@joachim-breitner.de>
+Synopsis:       Plant growing programming game
+Description:
+        The players of this game will write code (the „genome“) that describes
+        how plants (the biological type, not the industrial) will grow. The
+        plants will grow simultaneously on the screen (the „garden“), will
+        compete for light and will multiply. The players can not change the
+        code of a growing plant, but they do have the chance to update their
+        code for the next generation -- when a plant drops a seed, it will run
+        the newest code. All in all, the game aims to be slowly paced and
+        relaxing, something to just watch for a while and something that does
+        not need constant attention by the players.
+        .
+        This package contains the haskell programs, i.e. the game simulation
+        with the visual display. It can be used to locally test the plants.
+Homepage:       http://www.entropia.de/wiki/L-seed
+Category:       Game
+Build-Type:     Simple
+Extra-source-files:
+        examples/*.txt
+        db.conf-example
+
+Flag Database
+  Description:
+        Builds binaries that are required to interact with the SQL database.
+        This is not needed when you just want to test the game locally.
+  Default: False
+
+Flag WebTools
+  Description:
+        Builds binaries that are required for the web interface.
+        This is not needed when you just want to test the game locally.
+  Default: False
+
+Library
+  Hs-Source-Dirs: src/
+  Exposed-Modules:
+        Lseed.Constants                
+        Lseed.Data             
+        Lseed.Data.Functions           
+        Lseed.Geometry         
+        Lseed.Geometry.Generator               
+        Lseed.Grammar.Parse            
+        Lseed.LSystem          
+        Lseed.Logic            
+        Lseed.Mainloop         
+        Lseed.Renderer.Cairo           
+        Lseed.StipeInfo                
+  Build-Depends:
+        base    == 3.*,
+        random,
+        containers,
+        old-time,
+        mtl,
+        cairo,
+        gtk,
+        parsec == 3.*
+
+  if flag(Database) 
+    Build-Depends:
+        HDBC-odbc,
+        HDBC
+    Exposed-Modules:
+        Lseed.DB
+
+  if flag(WebTools) 
+    Build-Depends:
+        json
+
+Executable runGarden
+  Main-Is:        main.hs
+  Hs-Source-Dirs: src/
+
+Executable validate
+  Main-Is:        validate.hs
+  Hs-Source-Dirs: src/
+  if ! flag(WebTools)
+    Buildable:    False
+
+Executable fastScorer
+  Main-Is:        fastScorer.hs
+  Hs-Source-Dirs: src/
+
+Executable dbclient
+  Main-Is:        dbclient.hs
+  Hs-Source-Dirs: src/
+  if ! flag(Database)
+    Buildable:    False
+
+Executable dbscorer
+  Main-Is:        dbscorer.hs
+  Hs-Source-Dirs: src/
+  if ! flag(Database)
+    Buildable:    False
diff --git a/LICENSE b/LICENSE
new file mode 100644 (file)
index 0000000..300eb50
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,27 @@
+Copyright (c) Joachim Breitner, 2009
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+3. Neither the name of the author nor the names of his contributors
+   may be used to endorse or promote products derived from this software
+   without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGE.
diff --git a/Setup.hs b/Setup.hs
new file mode 100644 (file)
index 0000000..9a994af
--- /dev/null
+++ b/Setup.hs
@@ -0,0 +1,2 @@
+import Distribution.Simple
+main = defaultMain