Opened 13 years ago

Closed 13 years ago

#32949 closed enhancement (fixed)

drop dependency on gtk2, so librsvg can be made a dependency of gtk2

Reported by: neverpanic (Clemens Lang) Owned by: pixilla (Bradley Giesbrecht)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc:
Port: librsvg

Description

librsvg is required for gtk2 applications to show SVG icons. However, librsvg cannot be made a dependency of gtk2, because librsvg depends on gtk2.

However, librsvg seems to build just fine without gtk2, so could you please consider dropping this dependency?

Attachments (1)

Portfile.patch (1.4 KB) - added by neverpanic (Clemens Lang) 13 years ago.
Patch against the Portfile

Download all attachments as: .zip

Change History (6)

comment:1 Changed 13 years ago by pixilla (Bradley Giesbrecht)

Clements, do you have a patch?

comment:2 Changed 13 years ago by pixilla (Bradley Giesbrecht)

Clemens, sorry about misspelling your name.

A while back I wanted an svg converter for makeicns and did not want a big build chain. I created a local port (librsvg-minimal) to test a minimal librsvg build.

librsvg-minimal

If I renamed this port to "librsvg" would this be a suitable replacement for the current librsvg port? I would like to avoid making problems for librsvg dependent ports.

comment:3 Changed 13 years ago by neverpanic (Clemens Lang)

Since librsvg's documentation lacks information on why gtk is a dependency I took a look at the configure script and noticed the following:

  1. librsvg will not build the GTK+ theme engine, if gtk2 was not found
  2. librsvg will not build rsvg-view or rsvg-view-3, if neither gtk2 nor gtk3 were found
  3. librsvg will not generate HTML documentation with gtk-doc, if the gtk-doc port is not installed (which can be worked around by declaring a dependency on gtk-doc)

So, dropping the dependency on gtk is not a no-op, but doable imho. We could move the support for gtk into a variant. I'll propose a patch.

Changed 13 years ago by neverpanic (Clemens Lang)

Attachment: Portfile.patch added

Patch against the Portfile

comment:4 Changed 13 years ago by pixilla (Bradley Giesbrecht)

Version: 2.0.32.0.4

Clemens, if a depends_lib librsvg is added to the gtk2 port then the new +gtk variant in your librsvg patch can not depend back to gtk2.

comment:5 Changed 13 years ago by pixilla (Bradley Giesbrecht)

Resolution: fixed
Status: newclosed

See r90665

Note: See TracTickets for help on using tickets.