[Pkg-haskell-commits] darcs: gtk2hs-buildtools: Initial version.

Marco Túlio Gontijo e Silva marcot at debian.org
Wed May 26 19:42:34 UTC 2010


Wed May 26 17:49:08 UTC 2010  Marco T[_\c3_][_\ba_]lio Gontijo e Silva <marcot at debian.org>
  * Initial version.
  Ignore-this: 70e242501f73813439e4b8f28dc60f8

    A ./changelog
    A ./compat
    A ./control
    A ./copyright
    A ./patches/
    A ./patches/manpages.patch
    A ./patches/series
    A ./rules
    A ./source/
    A ./source/format
    A ./watch

Wed May 26 17:49:08 UTC 2010  Marco Túlio Gontijo e Silva <marcot at debian.org>
  * Initial version.
  Ignore-this: 70e242501f73813439e4b8f28dc60f8
diff -rN -u old-gtk2hs-buildtools/changelog new-gtk2hs-buildtools/changelog
--- old-gtk2hs-buildtools/changelog	1970-01-01 00:00:00.000000000 +0000
+++ new-gtk2hs-buildtools/changelog	2010-05-26 19:42:34.594888132 +0000
@@ -0,0 +1,5 @@
+gtk2hs-buildtools (0.9-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #583101)
+
+ -- Marco Túlio Gontijo e Silva <marcot at debian.org>  Tue, 25 May 2010 09:17:52 -0300
diff -rN -u old-gtk2hs-buildtools/compat new-gtk2hs-buildtools/compat
--- old-gtk2hs-buildtools/compat	1970-01-01 00:00:00.000000000 +0000
+++ new-gtk2hs-buildtools/compat	2010-05-26 19:42:34.590887920 +0000
@@ -0,0 +1 @@
+7
diff -rN -u old-gtk2hs-buildtools/control new-gtk2hs-buildtools/control
--- old-gtk2hs-buildtools/control	1970-01-01 00:00:00.000000000 +0000
+++ new-gtk2hs-buildtools/control	2010-05-26 19:42:34.590887920 +0000
@@ -0,0 +1,26 @@
+Source: gtk2hs-buildtools
+Section: haskell
+Priority: extra
+Maintainer: Debian Haskell Group <pkg-haskell-maintainers at lists.alioth.debian.org>
+Uploaders: Marco Túlio Gontijo e Silva <marcot at debian.org>
+Build-Depends: debhelper (>= 7)
+  , cdbs
+  , haskell-devscripts (>= 0.7)
+  , ghc6
+  , alex
+  , happy
+Standards-Version: 3.8.4
+Homepage: http://www.haskell.org/gtk2hs/
+Vcs-Darcs: http://darcs.debian.org/pkg-haskell/gtk2hs-buildtools
+Vcs-Browser: http://darcs.debian.org/cgi-bin/darcsweb.cgi?r=pkg-haskell/gtk2hs-buildtools
+
+Package: gtk2hs-buildtools
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Tools to build the Gtk2Hs suite of User Interface libraries
+ This package provides a set of helper programs necessary to build the Gtk2Hs
+ suite of libraries. These tools include a modified c2hs binding tool that is
+ used to generate FFI declarations, a tool to build a type hierarchy that
+ mirrors the C type hierarchy of GObjects found in glib, and a generator for
+ signal declarations that are used to call back from C to Haskell. These tools
+ are not needed to actually run Gtk2Hs programs.
diff -rN -u old-gtk2hs-buildtools/copyright new-gtk2hs-buildtools/copyright
--- old-gtk2hs-buildtools/copyright	1970-01-01 00:00:00.000000000 +0000
+++ new-gtk2hs-buildtools/copyright	2010-05-26 19:42:34.590887920 +0000
@@ -0,0 +1,18 @@
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
+Name: gtk2hs-buildtools
+Maintainer: gtk2hs-devel at sourceforge.net
+Source: http://hackage.haskell.org/packages/archive/gtk2hs-buildtools/0.9/gtk2hs-buildtools-0.9.tar.gz
+
+Copyright: 2001-2010, The Gtk2Hs Team
+License: GPL-2
+ This file is free software; you can redistribute it and/or modify it under the
+ terms of the GNU General Public License as published by the Free Software
+ Foundation; either version 2 of the License, or (at your option) any later
+ version.
+ .
+ This file is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+ A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
+ .
+ On Debian systems, the full text of the GNU General Public License version 2
+ can be found in the file `/usr/share/common-licenses/GPL-2'.
diff -rN -u old-gtk2hs-buildtools/patches/manpages.patch new-gtk2hs-buildtools/patches/manpages.patch
--- old-gtk2hs-buildtools/patches/manpages.patch	1970-01-01 00:00:00.000000000 +0000
+++ new-gtk2hs-buildtools/patches/manpages.patch	2010-05-26 19:42:34.590887920 +0000
@@ -0,0 +1,380 @@
+Description: Manpages for the binaries
+ This package ships 3 binaries without manpages.  This patch includes the
+ manpages and changes the build system to install them
+Forwarded:
+ http://sourceforge.net/mailarchive/message.php?msg_name=1274804868-sup-9859%40zezinho
+ http://sourceforge.net/mailarchive/message.php?msg_name=1274874328-sup-8367%40zezinho
+Author: Marco Túlio Gontijo e Silva <marcot at debian.org>
+Last-Update: 2010-05-26
+Index: gtk2hs-buildtools-0.9/Setup.hs
+===================================================================
+--- gtk2hs-buildtools-0.9.orig/Setup.hs	2010-05-26 10:11:38.000000000 -0300
++++ gtk2hs-buildtools-0.9/Setup.hs	2010-05-26 10:13:46.000000000 -0300
+@@ -1,6 +1,42 @@
+ module Main (main) where
+ 
+-import Distribution.Simple
++-- Cabal
++import Distribution.PackageDescription (PackageDescription)
++import Distribution.Simple (defaultMainWithHooks, simpleUserHooks)
++import Distribution.Simple.InstallDirs (CopyDest (..), mandir)
++import Distribution.Simple.LocalBuildInfo (LocalBuildInfo, absoluteInstallDirs)
++import
++  Distribution.Simple.Setup
++  (copyDest, copyVerbosity, fromFlag, installVerbosity)
++import Distribution.Verbosity (Verbosity)
++import Distribution.Simple.UserHooks (UserHooks (..))
++import Distribution.Simple.Utils (copyFiles)
++import System.FilePath ((</>))
+ 
+ main :: IO ()
+-main = defaultMain
++main
++  = defaultMainWithHooks
++    $ simpleUserHooks
++      {postCopy
++          = \ _ flags pkg lbi
++            -> installManpages pkg lbi (fromFlag $ copyVerbosity flags)
++              $ fromFlag $ copyDest flags
++        , postInst
++          = \ _ flags pkg lbi ->
++             installManpages
++               pkg
++               lbi
++               (fromFlag $ installVerbosity flags)
++               NoCopyDest}
++
++manpages :: [FilePath]
++manpages = ["gtk2hsC2hs.1", "gtk2hsHookGenerator.1", "gtk2hsTypeGen.1"]
++
++manDir :: FilePath
++manDir = "man"
++
++installManpages
++  :: PackageDescription -> LocalBuildInfo -> Verbosity -> CopyDest -> IO ()
++installManpages pkg lbi verbosity copy
++  = copyFiles verbosity (mandir (absoluteInstallDirs pkg lbi copy) </> "man1")
++    $ zip (repeat manDir) manpages
+Index: gtk2hs-buildtools-0.9/man/gtk2hsC2hs.1
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ gtk2hs-buildtools-0.9/man/gtk2hsC2hs.1	2010-05-26 09:04:20.000000000 -0300
+@@ -0,0 +1,158 @@
++.\" Hey Emacs! This file is -*- nroff -*- source.
++.\"
++.\" Version $Revision: 0.1 $ from $Date: 2010/05/25 14:07:21 $
++.\"
++.TH GTK2HSC2HS 1 "November 2004" "Version 0.13.4 (gtk2hs branch)" C\->Haskell
++.SH NAME
++gtk2hsC2hs \- C->Haskell Interface Generator
++
++.SH SYNOPSIS
++.B gtk2hsC2hs
++.RB [ OPTIONS ]...
++[
++.I header-file
++]
++.I binding-file
++
++.SH DESCRIPTION
++This manual page briefly describes the
++.B gtk2hsC2hs
++command.  It's a modified version of the \fBc2hs\fR(1) command, which is a
++helper program necessary to build the Gtk2Hs suite of libraries.
++.PP
++
++.SH OPTIONS
++The programs follow the usual GNU command line syntax, with long options
++starting with two dashes (`-'). A summary of options are included below. For
++a complete description, see the other documentation.
++
++.B gtk2hsC2hs
++accepts the following options:
++.TP
++.B  \-h, \-?, \-\-help
++brief help
++.TP
++.B  \-v, \-\-version
++show version information
++.TP
++.BI \-c \ CPP\fR, \ \-\-cpp= CPP
++use executable \fICPP\fR to invoke C preprocessor
++.TP
++.BR \-C \ CPPOPTS\fR, \ \-\-cppopts= CPPOPTS
++pass CPPOPTS to the C preprocessor
++.TP
++.BI \-o \ FILE\fR, \ \-\-output= FILE
++output result to \fIFILE\fR (should end in \fI.hs\fR)
++.TP
++.BI \-t \ PATH\fR, \ \-\-output\-dir= PATH
++place generated files in PATH
++.TP
++.B  \-p \ PLATFORM, \-\-platform=PLATFORM
++platform to use for cross compilation
++.TP
++.B  \-k, \-\-keep
++keep pre-processed C header
++.TP
++.B  \-l \ NAME, \-\-lock=NAME
++wrap each foreign call with the function NAME
++.TP
++.BR \-d \ TYPE\fR, \ \-\-dump= TYPE
++dump internal information (for debugging), where TYPE is one of:
++.RS
++.IP "\(bu \fBtrace\fR" 10
++trace compiler phases
++.IP "\(bu \fBgenbind\fR"   10
++trace binding generation
++.IP "\(bu \fBctrav\fR"   10
++trace C declaration traversal
++.IP "\(bu \fBchs\fR"   10
++dump the binding file (adds \fI.dump\fR to the name)
++.RE
++.PP
++
++.I header-file
++is the header file belonging to the marshalled library. It must end with
++suffix 
++.IR .h .
++
++.I binding-file
++is the corresponding Haskell binding file, which must end with suffix
++.IR .chs .
++
++.I PLATFORM
++The platform name can be one of:
++.IR x86_64-linux .
++.IR i686-linux .
++.IR m68k-palmos .
++This allows for cross-compilation, assuming the rest of your toolchain supports
++that. The default is the current host platform.
++
++The most useful of these options is probably 
++.B  \-\-cppopts
++(or 
++.BR \-C ).
++If the C header file needs any special options (like \-D or \-I) to go
++through the C pre-processor, here is the place to pass them.
++
++.SH EXAMPLES
++
++When used directly, 
++.B gtk2hsC2hs
++is usually called as:
++
++.B gtk2hsC2hs
++.I lib.h Lib.chs
++
++where 
++.I  lib.h
++is the header file and
++.I  Lib.chs
++the Haskell binding module, which define the C- and Haskell-side interface,
++respectively.  If no errors occur, the result is a pure Haskell module
++.IR Lib.hs ,
++which implements the Haskell API of the library.
++
++A more advanced call may look like this:
++
++.BR "gtk2hsC2hs" \ \-\-cppopts=\-I\fI/some/obscure/dir\fR
++\-\-cppopts=\-DEXTRA
++.I lib.h Lib.chs
++
++Often, 
++.I  lib.h
++will not be in the current directory, but in one of the header file
++directories.  Apart from the current directory, C->Haskell looks in two
++places for the header: first, in the standard include directory of the used
++system, this is usually
++.IR /usr/include " and " /usr/local/include ;
++and second, it will look in every directory that is mentioned in a 
++.RI \-I DIR
++option passed to the pre-processor via 
++.BR \-\-cppopts .
++
++.SH CAVEATS
++If you have more than one option that you want to
++give to the pre-processor, use multiple
++.BR \-\-cppopts= \ flags.
++
++.SH "BUGS"
++
++Please report bugs and feature requests in the Gtk2Hs trac
++
++.I http://hackage.haskell.org/trac/gtk2hs/
++
++or to the Gtk2Hs mailing list
++.I gtk2hs-devel at lists.sourceforge.net
++
++.SH COPYRIGHT
++C->Haskell Compiler, version 0.13.4 (gtk2hs branch) Copyright (c) [1999..2004]
++Manuel M T Chakravarty <chak at cse.unsw.edu.au>
++
++.SH AUTHOR
++This page was addapted from the \fBc2hs\fR(1) manpage, by Marco Túlio Gontijo e
++Silva <marcot at debian.org> for the Debian GNU/Linux system (but may be used by
++others), which was mainly assembled from the original documentation of c2hs.
++
++The \fBc2hs\fR(1) was written by Michael Weber
++<michael.weber at post.rwth-aachen.de> for the Debian GNU/Linux system (but may be
++used by others).
+Index: gtk2hs-buildtools-0.9/man/gtk2hsHookGenerator.1
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ gtk2hs-buildtools-0.9/man/gtk2hsHookGenerator.1	2010-05-26 09:04:20.000000000 -0300
+@@ -0,0 +1,62 @@
++.\" Hey Emacs! This file is -*- nroff -*- source.
++.\"
++.\" Version $Revision: 0.1 $ from $Date: 2010/05/25 14:07:21 $
++.\"
++.TH GTK2HSHOOKGENERATOR 1
++.SH NAME
++gtk2hsHookGenerator \- Program to generate callback hook for Gtk signals
++
++.SH SYNOPSIS
++.B gtk2hsHookGenerator
++.RB [\| \-\-template\|\c
++.RI \|= template\-file \|]
++.RB \-\-types\|\c
++.RI \|= types\-file
++.RB [\| \-\-import\|\c
++.RI \|= import \|]
++.RB \-\-modname\|\c
++.RI \|= moduleName
++>
++.RI outFile
++
++.SH DESCRIPTION
++This manual page briefly describes the
++.B gtk2hsHookGenerator
++command.  It's a helper program necessary to build the Gtk2Hs suite of
++libraries.
++.PP
++
++.SH OPTIONS
++The programs follow the usual GNU command line syntax, with long options
++starting with two dashes (`-'). A summary of options are included below. For
++a complete description, see the other documentation.
++
++.B gtk2hsHookGenerator
++accepts the following options:
++.TP
++.BI \-\-template= template-file
++specify a path to the Signal.chs.template file
++.TP
++.BI \-\-types= types-file
++specify a path a gtkmarshal.list file
++.TP
++.BI \-\-import= import
++specify a module to be imported into the template file
++.TP
++.BI \-\-modname= moduleName
++the module name for
++. I outFile
++
++.SH "BUGS"
++
++Please report bugs and feature requests in the Gtk2Hs trac
++
++.I http://hackage.haskell.org/trac/gtk2hs/
++
++or to the Gtk2Hs mailing list
++.I gtk2hs-devel at lists.sourceforge.net
++
++.SH AUTHOR
++This page was addapted from the \fBgtk2hsC2hs\fR(1) manpage, by Marco Túlio
++Gontijo e Silva <marcot at debian.org> for the Debian GNU/Linux system (but may be
++used by others).
+Index: gtk2hs-buildtools-0.9/man/gtk2hsTypeGen.1
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ gtk2hs-buildtools-0.9/man/gtk2hsTypeGen.1	2010-05-26 09:04:20.000000000 -0300
+@@ -0,0 +1,88 @@
++.\" Hey Emacs! This file is -*- nroff -*- source.
++.\"
++.\" Version $Revision: 0.1 $ from $Date: 2010/05/25 14:07:21 $
++.\"
++.TH GTK2HSTYPEGEN 1
++.SH NAME
++gtk2hsTypeGen \- Program to generate Gtk's object hierarchy in Haskell
++
++.SH SYNOPSIS
++.B gtk2hsTypeGen
++.RB [\| \-\-tag\|\c
++.RI \|= tag \ ...]
++.RB [\| \-\-lib\|\c
++.RI \|= lib \|]
++.RB [\| \-\-prefix\|\c
++.RI \|= prefix \|]
++.RB [\| \-\-modname\|\c
++.RI \|= modName \|]
++.RB [\| \-\-import\|\c
++.RI \|=[*] importName \ ...]
++.RB [\| \-\-forward\|\c
++.RI \|=[*] fwdName \ ...]
++.RB [\| \-\-destructor\|\c
++.RI \|= destrName \|]
++.RB [\| \-\-hierarchy\|\c
++.RI \|= hierName \|]
++
++.SH DESCRIPTION
++This manual page briefly describes the
++.B gtk2hsTypeGen
++command.  It's a helper program necessary to build the Gtk2Hs suite of
++libraries.
++.PP
++
++.SH OPTIONS
++The programs follow the usual GNU command line syntax, with long options
++starting with two dashes (`-'). A summary of options are included below. For
++a complete description, see the other documentation.
++
++.B gtk2hsTypeGen
++accepts the following options:
++.TP
++.BI \-\-tag= tag
++generate entries that have the tag
++.I tag.
++Specify `default' for types without tags
++.TP
++.BI \-\-lib= lib
++set the lib to use in the c2hs {#context #} declaration (the default is `gtk')
++.TP
++.BI \-\-prefix= prefix
++set the prefix to use in the c2hs {#context #} declaration (the default is
++`gtk')
++.TP
++.BI \-\-modname= modName
++specify module name if it does not match the file name, eg a hierarchical
++module name
++.TP
++.BI \-\-import="[*]" importName
++additionally import this module without re-exporting it.  Use an asterix as
++prefix if the import should be a .chs import statement, as well as exported
++from the generated module.
++.TP
++.BI \-\-forward="[*]" fwdName
++specify a number of modules that are imported.    Use an asterix as
++prefix if the import should be a .chs import statement, as well as exported
++from the generated module.
++.TP
++.BI \-\-destructor= destrName
++specify a non-standard C function pointer that is called to destroy the objects
++.TP
++.BI \-\-hierarchy= hierName
++the name of the file containing the hierarchy list, defaults to the built-in
++list
++
++.SH "BUGS"
++
++Please report bugs and feature requests in the Gtk2Hs trac
++
++.I http://hackage.haskell.org/trac/gtk2hs/
++
++or to the Gtk2Hs mailing list
++.I gtk2hs-devel at lists.sourceforge.net
++
++.SH AUTHOR
++This page was addapted from the \fBgtk2hsHookGenerator\fR(1) manpage, by Marco
++Túlio Gontijo e Silva <marcot at debian.org> for the Debian GNU/Linux system (but
++may be used by others).
diff -rN -u old-gtk2hs-buildtools/patches/series new-gtk2hs-buildtools/patches/series
--- old-gtk2hs-buildtools/patches/series	1970-01-01 00:00:00.000000000 +0000
+++ new-gtk2hs-buildtools/patches/series	2010-05-26 19:42:34.590887920 +0000
@@ -0,0 +1 @@
+manpages.patch
diff -rN -u old-gtk2hs-buildtools/rules new-gtk2hs-buildtools/rules
--- old-gtk2hs-buildtools/rules	1970-01-01 00:00:00.000000000 +0000
+++ new-gtk2hs-buildtools/rules	2010-05-26 19:42:34.590887920 +0000
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/hlibrary.mk
+
+DEB_SETUP_GHC6_CONFIGURE_ARGS = --datasubdir=gtk2hs-buildtools
+
+build/gtk2hs-buildtools:: build-ghc6-stamp
+
+install/gtk2hs-buildtools::
+	$(DEB_SETUP_BIN_NAME) copy --builddir=dist-ghc6 \
+		--destdir=debian/gtk2hs-buildtools/
+	rm -r debian/gtk2hs-buildtools/usr/share/doc/gtk2hs-buildtools-0.9
diff -rN -u old-gtk2hs-buildtools/source/format new-gtk2hs-buildtools/source/format
--- old-gtk2hs-buildtools/source/format	1970-01-01 00:00:00.000000000 +0000
+++ new-gtk2hs-buildtools/source/format	2010-05-26 19:42:34.586887708 +0000
@@ -0,0 +1 @@
+3.0 (quilt)
diff -rN -u old-gtk2hs-buildtools/watch new-gtk2hs-buildtools/watch
--- old-gtk2hs-buildtools/watch	1970-01-01 00:00:00.000000000 +0000
+++ new-gtk2hs-buildtools/watch	2010-05-26 19:42:34.586887708 +0000
@@ -0,0 +1,5 @@
+version=3
+opts="downloadurlmangle=s|archive/([\w\d_-]+)/([\d\.]+)/|archive/$1/$2/$1-$2.tar.gz|,\
+filenamemangle=s|(.*)/$|gtk2hs-buildtools-$1.tar.gz|" \
+    http://hackage.haskell.org/packages/archive/gtk2hs-buildtools \
+    ([\d\.]*\d)/





More information about the Pkg-haskell-commits mailing list