From: Duncan C. <dun...@us...> - 2005-03-23 17:09:04
|
Update of /cvsroot/gtk2hs/gtk2hs/glib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25408/glib Added Files: glib.cabal.in Log Message: GHC 6.4 cabal support: add new cabal package file templates. configure.ac: bump version to make it clear we're in a development mode (we can no longer use _pre since cabal does not like that as a version number). Add test for cabal support (ghc >= 6.4). Add *.cabal.in files to the list of files that need substitution in AC_OUTPUT. acinclude.m4: modify the way the flags are formatted depending on whether USE_CABAL is set. The old package format used " quotes around elements in string lists, the new cabal package format does not. Makefile.am: use $(PKGEXT) to specify which package file to use, the .cabal one or the .pkg one. Add -ignore-package glib when compiling modules in each package (conditionally on USE_CABAL) since otheriwse if the package is already installed the compilation would fail. Modify the package registering code. Use sed to substitute for ${pkglibdir} since ghc-pkg no longer does substitution. Also substitute for ${modules} the list of modules in the package. --- NEW FILE: glib.cabal.in --- name: glib version: @PACKAGE_VERSION@ license: LGPL license-file: COPYING.LIB maintainer: gtk...@li... stability: provisional homepage: http://gtk2hs.sourceforge.net/ exposed: True exposed-modules: ${modules} import-dirs: @hidir@/glib library-dirs: @GLIB_LIBDIR_CQ@ hs-libraries: HSglib extra-libraries: @GLIB_LIBS_CQ@ include-dirs: @GLIB_CFLAGS_CQ@ includes: glib.h, glib-object.h depends: haskell98 extra-ld-opts: @GLIB_LIBEXTRA_CQ@ |