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.
This commit is contained in:
kili 2010-06-16 13:57:39 +00:00
parent 22e710f8c9
commit e4cf727550
5 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,29 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/06/16 13:57:39 kili Exp $
COMMENT = tools to build Gtk2Hs
DISTNAME = gtk2hs-buildtools-0.9
CATEGORIES = devel
HOMEPAGE = http://www.haskell.org/gtk2hs/
MAINTAINER = Matthias Kilian <kili@openbsd.org>
# GPL2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = c m util
MODULES = lang/ghc converters/libiconv
MODGHC_BUILD = cabal hackage nort
BUILD_DEPENDS = ::devel/alex \
::devel/happy
LIB_DEPENDS = gmp::devel/gmp
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (gtk2hs-buildtools-0.9.tar.gz) = nLxj0iK1GON45aQnac5Z0Q==
RMD160 (gtk2hs-buildtools-0.9.tar.gz) = jWEbXYu2DBtlLGMaGvQdh3h47I0=
SHA1 (gtk2hs-buildtools-0.9.tar.gz) = NO9ySxHvl8tecqxC/zmsm4O1BwU=
SHA256 (gtk2hs-buildtools-0.9.tar.gz) = JYbEGTlGAcGEDYJ9Ms2512vJTXHAP9+iPI0Ey6mcayA=
SIZE (gtk2hs-buildtools-0.9.tar.gz) = 211787

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-gtk2hs-buildtools_cabal,v 1.1.1.1 2010/06/16 13:57:39 kili Exp $
--- gtk2hs-buildtools.cabal.orig Tue May 25 10:22:42 2010
+++ gtk2hs-buildtools.cabal Thu Jun 10 21:18:22 2010
@@ -107,7 +107,7 @@ Executable gtk2hsC2hs
c2hs/base/syms
c2hs/base/syntax
c-sources: c2hs/toplevel/c2hs_config.c
- if os(darwin)
+ if os(darwin) || os(openbsd)
cpp-options: -D_C2HS_CPP_IS_GCC
else
cpp-options: -D_C2HS_CPP_LANG_SINGLE

View File

@ -0,0 +1,7 @@
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.

View File

@ -0,0 +1,12 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/06/16 13:57:39 kili Exp $
@bin bin/gtk2hsC2hs
@bin bin/gtk2hsHookGenerator
@bin bin/gtk2hsTypeGen
@comment share/doc/${DISTNAME}/
@comment share/doc/${DISTNAME}/COPYING
share/${DISTNAME}/
share/${DISTNAME}/callbackGen/
share/${DISTNAME}/callbackGen/Signal.chs.template
share/${DISTNAME}/hierarchyGen/
share/${DISTNAME}/hierarchyGen/Hierarchy.chs.template
share/${DISTNAME}/hierarchyGen/hierarchy.list