[MacPorts] #61861: gimp-resynthesizer: uses "python2", underquoted AC_CONFIG_HEADERS, lib dependency, license
MacPorts
noreply at macports.org
Sun Dec 20 12:27:53 UTC 2020
#61861: gimp-resynthesizer: uses "python2", underquoted AC_CONFIG_HEADERS, lib
dependency, license
---------------------------------+----------------------
Reporter: ryandesign | Owner: pietvo
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: gimp-resynthesizer |
---------------------------------+----------------------
Comment (by ryandesign):
Replying to [comment:3 pietvo]:
> I found out that these lines are interpreted by `gimp` itself, not by
the OS. It looks for `#!/usr/bin/env` and then looks up the rest in a
table. Both `python` and `python2` are mapped to
`/opt/local/bin/python2.7`. So I guess the `python2` is only chosen for
documentary purposes.
> This also means that my patch is both unnecessary and harmless. I'll
remove it.
Ah ok.
> > > `gimp2` has the default variant `+python27`, so usually the
dependency on `python2.7` is already satisfied. But if `gimp2` is
installed with `-python27` then all hope is lost, because the plugin won't
work. Is there a way to set a dependency on `gimp2` with the `python27`
variant enforced?
> >
> > This can be accomplished using the `require_active_variants` procedure
of the active_variants 1.1 portgroup.
> > {{{
> > PortGroup active_variants 1.1
> > require_active_variants path:lib/pkgconfig/gimp-2.0.pc:gimp2 python27
> > }}}
> >
> I'll use that.
>
> > > Re: the `lib:libgimp-2.0:gimp2`, this was done to catch also
`gimp2-devel`. Is there a way to specify either `gimp2` or `gimp2-devel`?
> >
> > Other ports use `path:lib/pkgconfig/gimp-2.0.pc:gimp2`
> >
> I suppose that's covered by the two lines above.
Well you need to specify `path:lib/pkgconfig/gimp-2.0.pc:gimp2` in both
places: in `depends_whatever` and in `require_active_variants`.
--
Ticket URL: <https://trac.macports.org/ticket/61861#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list