Opened 7 years ago

Last modified 8 months ago

#43583 new update

gtk2hs: update to 0.12.5, change master_sites, add livecheck, fix x11 variants

Reported by: mojca (Mojca Miklavec) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: cooljeanius (Eric Gallager), jianguohsiang82@…
Port: gtk2hs


"Inspired by" #39383, I tried to fix gtk2hs, but there are a bunch of issues:

  • the homepage has been changed (I fixed that)
  • sourceforge contains only old versions, so both master_sites and livecheck need to be fixed, but I didn't try to understand the modified build instructions (it might not be a trivial patch)
  • the instructions on should be updated
  • the x11/quartz variants in the ports are completely broken and need to be fixed
  • the list of dependencies might need a review

Change History (7)

comment:1 Changed 7 years ago by mojca (Mojca Miklavec)

The current package doesn't build, see

for example.

But I don't understand enough (and lack motivation to try) to fix the package.

comment:2 Changed 7 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:3 Changed 7 years ago by mojca (Mojca Miklavec)

Looking at this port ... it pulls in so many X11 dependencies already that I don't really see much point in having x11 as a separate variant.

comment:4 Changed 7 years ago by mojca (Mojca Miklavec)

The port could use something like this:

PortSystem          1.0
PortGroup           github 1.0

github.setup        gtk2hs gtk2hs 0_12_5
version             0.12.5
categories          devel graphics
platforms           darwin
maintainers         gwright

description         Portable and native GUI library for Haskell
long_description    gtk2hs is a Haskell binding to GTK, a comprehensive \
                    C GUI library that is portable across many platforms.


checksums           rmd160  cabb3de9df656eeb8c00ed72dd68d6940dc0ef87 \
                    sha256  738381e19929edddab3e7b6ff86efb3847ea3a3688e38d153d107a692027f8f0

depends_build       port:hs-cabal-install \
depends_lib         port:gconf \
                    port:ghc \
                    port:gtk2 \
                    port:gvfs \
                    path:lib/pkgconfig/cairo.pc:cairo \
                    port:librsvg \
                    port:libglade2 \

(I'm not sure about dependencies.) The problem is that the build procedure has apparently changed completely.

Short build instructions are here in README:

cabal install Cabal cabal-meta

cabal clone
cd gtk2hs

cabal install tools
cabal-meta install

It looks like there is no more ./configure or anything like that involved. So basically everything in the port needs to be changed.

comment:5 Changed 7 years ago by mf2k (Frank Schima)

Owner: changed from gwright@… to macports-tickets@…

gwright has retired. See #43784.

comment:6 in reply to:  1 Changed 5 years ago by ryandesign (Ryan Schmidt)

Cc: jianguohsiang82@… added

Replying to mojca@…:

The current package doesn't build, see

for example.

Noted again in duplicate #50358.

comment:7 Changed 8 months ago by dbevans (David B. Evans)

In 386c63b841825206c45d583a6cdb9201e348c294/macports-ports (master):

gtk2hs: update description, homepage, dependencies

  • emphasize binding is for GTK+ 2.x in description
  • change homepage to sourceforge project page, original redirects to a project archive
  • add size to checksums
  • depend on gnome-vfs which provides the required gnome-vfs-2.0, gvfs is for gtk3
  • further changes required or perhaps removal, hasn't built for 6 years or so

See #43583.

Note: See TracTickets for help on using tickets.