Page MenuHomeFreeBSD

Replace USE_GHOSTSCRIPT with USES=ghostscript
ClosedPublic

Authored by kwm on Jun 29 2015, 9:01 AM.
Tags
None
Referenced Files
F104978598: D2938.id7030.diff
Wed, Dec 11, 7:47 AM
Unknown Object (File)
Tue, Dec 10, 7:59 PM
Unknown Object (File)
Thu, Dec 5, 2:53 PM
Unknown Object (File)
Wed, Dec 4, 6:49 PM
Unknown Object (File)
Sat, Nov 30, 2:42 AM
Unknown Object (File)
Mon, Nov 25, 6:16 PM
Unknown Object (File)
Mon, Nov 25, 11:46 AM
Unknown Object (File)
Sun, Nov 24, 9:57 PM
Subscribers

Details

Summary

First draft of new ghostscript.mk USES. Only included the bare minimum to
not spam this review with all the USE_GHOSTSCRIPT changes. Would like
feedback on the ghostscript.mk content before proceeding with converting
the ports tree, and submitting that for exp-run.

Test Plan

tested with print/libspecter with different arguments.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kwm retitled this revision from to Replace USE_GHOSTSCRIPT with USES=ghostscript.
kwm updated this object.
kwm edited the test plan for this revision. (Show Details)
kwm added a reviewer: bapt.

At first glance it looks good, but that means all the ports using USE_GHOSTSCRIPT should also be converted and a course this will have to go though a couple of exp-runs :)

antoine added inline comments.
Mk/Uses/ghostscript.mk
35

IIRC bsd.port.mk already does the S/,/ /g

print/libspectre/Makefile
7

why bump?

kwm edited edge metadata.

Update

Unbump libspecter no revision bump needed.
Add bsd.sanity.mk lines about USE_GHOSTSCRIPT
Add check to check if GHOSTSCRIPT_DEFAULT is a valid value
bsd.port.mk already does _ARGS:S/,/ / so we don't have to.

And I forgot to include CHANGES, will be back in the next update.

mat added inline comments.
Mk/Uses/ghostscript.mk
60

maybe add the invalid value in the IGNORE message, like ... value: ${GHOSTSCRIPT_DEFAULT}, please ...

kwm marked an inline comment as done.

Small update

Report the actualy incorrect GHOSTSCRIPT_DEFAULT value in the error message
Add CHANGES again.

kwm marked an inline comment as done.

Add antoine@'s suggestion add back WITHOUT_X11 processing.

I tried to write some code to check if OPTIONS_DEFINE=X11 was set and
honoring PORT_OPTIONS:MX11 but I couldn't get that working.

Either we leave it like this or I'm open for suggestions on how to impliment
that.

kwm marked an inline comment as not done.

Drop drupal.mk uses.
Chase ports updates.

This revision was automatically updated to reflect the committed changes.