Browse files

Cabalify, rename executable to cairo-appbase

Modify to use Cabal, the Haskell build system:

  http://www.haskell.org/cabal/

darcs-hash:20060806090639-4b390-e3e95ab9ac6f0e95b80bd20792889f529ee6c3c5.gz
  • Loading branch information...
1 parent 8bc3c2b commit 260c996fd3c0246bf4a5fed5e51706bb160efac8 @kfish committed Aug 6, 2006
Showing with 43 additions and 19 deletions.
  1. +27 −0 LICENSE
  2. +3 −0 Setup.hs
  3. +13 −0 cairo-appbase.cabal
  4. +0 −19 src/Makefile
  5. 0 src/{Drawing2.hs → cairo-appbase.hs}
View
27 LICENSE
@@ -0,0 +1,27 @@
+Copyright (c) Conrad Parker 2006
+
+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 REGENTS AND CONTRIBUTORS ``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.
View
3 Setup.hs
@@ -0,0 +1,3 @@
+#!/usr/bin/env runhaskell
+import Distribution.Simple
+main = defaultMain
View
13 cairo-appbase.cabal
@@ -0,0 +1,13 @@
+Name: cairo-appbase
+Version: 0.1
+Description: Base code for an application using Cairo graphics
+License: BSD3
+License-file: LICENSE
+Author: Conrad Parker
+Maintainer: conradp@cse.unsw.edu.au
+Build-Depends: base, gtk, cairo
+
+Executable: cairo-appbase
+Main-Is: cairo-appbase.hs
+Hs-Source-Dirs: src
+ghc-options: -Wall -fglasgow-exts -O2 -funbox-strict-fields
View
19 src/Makefile
@@ -1,19 +0,0 @@
-
-PROGS = drawing2
-SOURCES = Drawing2.hs
-PACKAGES = gtk cairo
-
-all : $(PROGS)
-
-drawing2 : Drawing2.hs
- $(HC_RULE)
-
-HC_RULE = $(HC) --make $< -o $@ $(HCFLAGS) $(HCEXTRAFLAGS)
-
-HCEXTRAFLAGS = $(if $(HCNEEDSPACKAGE), $(addprefix -package ,$(PACKAGES)))
-
-clean:
- rm -f $(SOURCES:.hs=.hi) $(SOURCES:.hs=.o) $(PROGS)
- rm -f *.png
-
-HC=ghc
View
0 src/Drawing2.hs → src/cairo-appbase.hs
File renamed without changes.

0 comments on commit 260c996

Please sign in to comment.