Skip to content
Snippets Groups Projects
Commit 1e426fff authored by Ashley Yakeley's avatar Ashley Yakeley
Browse files

clean up .cabal; first attempt at Windows compilability

darcs-hash:20090417063649-ac6dd-223499b4d550028c3f5cc97094745c4eb72ca60e
parent 781548a5
No related branches found
No related tags found
No related merge requests found
......@@ -7,10 +7,12 @@ import Distribution.Simple.LocalBuildInfo
import Distribution.Simple.Utils
import System.Cmd
import System.Directory
import System.Info
main :: IO ()
main = do let hooks = autoconfUserHooks { runTests = runTestScript }
defaultMainWithHooks hooks
main = if os == "windows"
then defaultMain
else let hooks = autoconfUserHooks { runTests = runTestScript } in defaultMainWithHooks hooks
withCurrentDirectory :: FilePath -> IO a -> IO a
withCurrentDirectory path f = do
......
#ifndef __HSTIME_H__
#define __HSTIME_H__
#if defined(_MSC_VER) || defined(__MINGW32__) || defined(_WIN32)
#else
#include "HsTimeConfig.h"
// Otherwise these clash with similar definitions from other packages:
#undef PACKAGE_BUGREPORT
......@@ -12,6 +15,7 @@
#if HAVE_TIME_H
#include <time.h>
#endif
#endif
long int get_current_timezone_seconds (time_t,int* pdst,char const* * pname);
......
Name: time
Version: 1.1.2.3
Stability: stable
License: BSD3
License-File: LICENSE
Author: Ashley Yakeley
Maintainer: <ashley@semantic.org>
Homepage: http://semantic.org/TimeLib/
Synopsis: A time library
Description: A time library
Category: System
Build-Type: Custom
Cabal-Version: >=1.2
name: time
version: 1.1.2.4
stability: stable
license: BSD3
license-file: LICENSE
author: Ashley Yakeley
maintainer: <ashley@semantic.org>
homepage: http://semantic.org/TimeLib/
synopsis: A time library
description: A time library
category: System
build-type: Custom
cabal-version: >=1.2
x-follows-version-policy:
Extra-Source-Files:
aclocal.m4 configure.ac configure
include/HsTime.h include/HsTimeConfig.h.in
Extra-Tmp-Files:
config.log config.status autom4te.cache
include/HsTimeConfig.h
extra-source-files:
aclocal.m4
configure.ac
configure
include/HsTime.h
include/HsTimeConfig.h.in
extra-tmp-files:
config.log
config.status
autom4te.cache
include/HsTimeConfig.h
Flag split-base
flag split-base
Library {
Build-Depends: base >= 2
library
{
build-depends: base >= 2
if flag(split-base)
Build-Depends: base >= 3, old-locale
Build-Depends: base >= 3, old-locale
else
Build-Depends: base < 3
Build-Depends: base < 3
if os(windows)
Build-Depends: Win32
Exposed-Modules:
exposed-modules:
Data.Time.Calendar,
Data.Time.Calendar.MonthDay,
Data.Time.Calendar.OrdinalDate,
......@@ -43,9 +49,9 @@ Library {
Data.Time.LocalTime,
Data.Time.Format,
Data.Time
Extensions: ForeignFunctionInterface, CPP
C-Sources: cbits/HsTime.c
Other-Modules:
extensions: ForeignFunctionInterface, CPP
c-sources: cbits/HsTime.c
other-modules:
Data.Time.Calendar.Private,
Data.Time.Calendar.Days,
Data.Time.Calendar.Gregorian,
......@@ -58,8 +64,9 @@ Library {
Data.Time.LocalTime.TimeOfDay,
Data.Time.LocalTime.LocalTime,
Data.Time.Format.Parse
Include-Dirs: include
Install-Includes:
HsTime.h HsTimeConfig.h
include-dirs: include
install-includes:
HsTime.h
HsTimeConfig.h
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment