Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#34818 closed defect (invalid)

How to specify library version in depends_lib

Reported by: davidfavor (David Favor) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: Cc:
Port: kdenlive

Description

Moving from kdenlive-0.8 to kdenlive-0.9 requires upgrading mlt to at least 0.7.8 so best to have this as a library dependency.

Require a Portfile guru to suggest best way to do this.

Following fails...

depends_lib-append port:mlt-0.7.8

depends_lib-append port:mlt@0.7.8

depends_lib-append port:mlt+0.7.8

Maybe this has to be accomplished so other way.

I've tried multiple greps through Portfiles looking for an example. No joy.

Suggestions welcome.

Thanks.

Change History (4)

comment:1 Changed 12 years ago by neverpanic (Clemens Lang)

Resolution: invalid
Status: newclosed

MacPorts doesn't support this at the moment.

comment:2 Changed 12 years ago by davidfavor (David Favor)

Resolution: invalid
Status: closedreopened

If possible, add a note to this ticket about a good Portfile example of how to do this.

Close ticket after update, whether you know of an example Portfile or not.

Thanks.

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: reopenedclosed

MacPorts does not have a way to do this.

MacPorts does however upgrade dependencies first. So, commit the update to the mlt port to update it to version 0.7.8 first, then commit the update to update the port that depends on mlt.

For further questions about how to write portfiles, please write to the macports-dev mailing list.

comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

The pango port's pre-configure block gives some examples of how a port could check its dependencies manually. Usually this is not necessary because MacPorts upgrades dependencies first. Pango does it because there are also development version ports (glib2-devel, cairo-devel, pango-devel) and from time to time the development versions and stable versions have not been compatible with one another.

Note: See TracTickets for help on using tickets.