Opened 4 years ago

Closed 4 years ago

#60249 closed enhancement (fixed)

lilypond @2.20.0 doesn't have mactex variant

Reported by: rpspringuel (Fr. Samuel Springuel) Owned by: nerdling (Jeremy Lavergne)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc: dliessi (Davide Liessi)
Port: lilypond

Description

Unlike the lilypond-devel port, the lilypond port (i.e. for the stable version) doesn't have a mactex variant and thus will install redundant texlive files on systems where MacTeX is already present.

Change History (4)

comment:1 Changed 4 years ago by dliessi (Davide Liessi)

Cc: dliessi added

comment:2 Changed 4 years ago by lemzwerg (Werner Lemberg)

A first step: https://github.com/macports/macports-ports/pull/6728

Next step is to add the mactex variant to the 'lilypond' Portfile (in a separate pull request).

I guess the differences will be then small enough to make subports. However, I have no idea how to do that, so any guidance will be much appreciated.

comment:3 in reply to:  2 Changed 4 years ago by dliessi (Davide Liessi)

Replying to lemzwerg:

I guess the differences will be then small enough to make subports. However, I have no idea how to do that, so any guidance will be much appreciated.

You can declare a subport by writing subport subport-name { ... } where the braces enclose the subport-specific instructions (e.g., add, overwrite, remove dependencies and option values). If not all differences can be enclosed in the subport block, you can test for the subport name in specific places with, e.g., if {"${name}-devel" eq ${subport}} { ... }.

For an example, see https://github.com/macports/macports-ports/blob/master/editors/frescobaldi/Portfile.

I can help if you want, or, if you prefer, I can do it myself once the portfiles are synchronised.

comment:4 Changed 4 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: assignedclosed

Lilypond is now using subports since 09756722d03ece47ed9f63a86e0f86b1489fe993, so the variant is now there.

Note: See TracTickets for help on using tickets.