From 3ef3767e15268df990dc902ddcab20229c206413 Mon Sep 17 00:00:00 2001 From: Ilya Portnov Date: Thu, 29 Apr 2010 00:11:55 +0600 Subject: [PATCH] First attempt to create a cabal-based build system :) --- LICENSE | 17 +++++++------- Makefile | 4 +- Setup.hs | 3 ++ configure | 2 + framework.cabal | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 80 insertions(+), 10 deletions(-) create mode 100644 Setup.hs create mode 100755 configure create mode 100644 framework.cabal diff --git a/LICENSE b/LICENSE index 94a9ed0..12fc7e0 100644 --- a/LICENSE +++ b/LICENSE @@ -1,11 +1,11 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - Preamble + Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. @@ -68,7 +68,7 @@ patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. - TERMS AND CONDITIONS + TERMS AND CONDITIONS 0. Definitions. @@ -76,7 +76,7 @@ modification follow. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. - + "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. @@ -509,7 +509,7 @@ actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. - + If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties @@ -618,9 +618,9 @@ an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. - END OF TERMS AND CONDITIONS + END OF TERMS AND CONDITIONS - How to Apply These Terms to Your New Programs + How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it @@ -672,3 +672,4 @@ may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . + diff --git a/Makefile b/Makefile index 4b5ae34..6cb2173 100644 --- a/Makefile +++ b/Makefile @@ -4,8 +4,8 @@ all: make -C Blog/ clean: - find . -name *.hi -delete - find . -name *.o -delete + find . -name \*.hi -delete + find . -name \*.o -delete haddock: haddock -h -o html/ --optghc=-iBlog/ Framework/**/*.hs diff --git a/Setup.hs b/Setup.hs new file mode 100644 index 0000000..cd7dc32 --- /dev/null +++ b/Setup.hs @@ -0,0 +1,3 @@ +#!/usr/bin/env runhaskell +import Distribution.Simple +main = defaultMain diff --git a/configure b/configure new file mode 100755 index 0000000..06bd986 --- /dev/null +++ b/configure @@ -0,0 +1,2 @@ +#!/bin/bash +exit 0 diff --git a/framework.cabal b/framework.cabal new file mode 100644 index 0000000..4d30964 --- /dev/null +++ b/framework.cabal @@ -0,0 +1,64 @@ +-- framework.cabal auto-generated by cabal init. For additional +-- options, see +-- http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html#pkg-descr. +-- The name of the package. +Name: framework + +-- The package version. See the Haskell package versioning policy +-- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for +-- standards guiding when and how versions should be incremented. +Version: 0.1 + +-- A short (one-line) description of the package. +Synopsis: Experimental framework for web applications using Haskell + +-- A longer description of the package. +-- Description: + +-- URL for the project homepage or repository. +Homepage: http://iportnov.ru/projects/framework + +-- The license under which the package is released. +License: GPL-3 + +-- The file containing the license text. +License-file: LICENSE + +-- The package author(s). +Author: Ilya V. Portnov + +-- An email address to which users can send suggestions, bug reports, +-- and patches. +Maintainer: portnov84@rambler.ru + +-- A copyright notice. +-- Copyright: + +-- Stability of the pakcage (experimental, provisional, stable...) +Stability: Experimental + +Category: Web + +Build-type: Make + +-- Extra files to be distributed with the package, such as examples or +-- a README. +-- Extra-source-files: + +-- Constraint on the version of Cabal needed to build this package. +Cabal-version: >=1.2 + + +Library + -- Modules exported by the library. + Exposed-modules: Blog.Models, Blog.Invalidation, Blog.Blog, Blog.Templates, Blog.Extensions.Context, Blog.Extensions.Middlewares, Blog.Extensions.Handlers, Blog.Extensions.Signals, Blog.Extensions.FormProcessors, Framework.Urls, Framework.ContextProcessors, Framework.ORM, Framework.SignalTypes, Framework.Pool, Framework.Exceptions, Framework.Storage, Framework.Utils, Framework.Signals, Framework.Config, Framework.Controller, Framework.Pager, Framework.Types, Framework.Wrapper, Framework.Logger, Framework.API, Framework.Cache, Framework.API.UserMessage, Framework.API.SQL, Framework.API.SQLUtils, Framework.API.Sessions, Framework.API.Storage, Framework.API.Logger, Framework.API.CRUD, Framework.API.Cache, Framework.ORM.Models, Framework.ORM.SQL, Framework.ORM.Types, Framework.Http.Sessions, Framework.Http.Static, Framework.Http.SessionTypes, Framework.Http.Middlewares, Framework.Http.Cookies, Framework.Http.PostParser, Framework.Http.HTTPServer, Framework.Http.Response, Framework.Http.Vars, Framework.Http.Httpd, Framework.Cache.Instances, Framework.Cache.Types, Framework.Cache.Cache, Framework.Forms.HTMLTypes, Framework.Forms.Validation, Framework.Forms.Validators, Framework.Forms.Rendering, Framework.Forms.HTML, Framework.Forms.ModelForm, Framework.Forms.Types, Framework.TEngine.TemplateUtil, Framework.TEngine.TemplateFuncs, Framework.TEngine.Types, Framework.TGenerator.TemplateGen, Framework.TGenerator.TemplateParser, Framework.Modules.SHA1, Framework.Modules.Auth.Models, Framework.Modules.Auth.ShowForm, Framework.Modules.Auth.Context, Framework.Modules.Auth.Controllers, Framework.Modules.Auth.Utils, Framework.Modules.Auth.Handlers, Framework.Modules.Registration.Forms, Framework.Modules.Registration.Context, Framework.Modules.Formatters.Markdown, Framework.Modules.TextCaptcha.FormProcessors, Framework.GetText.IO, Framework.GetText.Init, Framework.GetText.HTML, Framework.GetText.Controller + + -- Packages needed in order to build this package. + Build-depends: hdbc, hdbc-mysql, hdbc-postgresql, hdbc-sqlite3, haskell-memcached, network, http, MissingH, Takusen, hgettext, data-hash, pandoc + + -- Modules not exported by this package. + -- Other-modules: + + -- Extra tools (e.g. alex, hsc2hs, ...) needed to build the source. + -- Build-tools: + -- 1.7.2.3