On 2020/04/30 14:59, Klemens Nanni wrote: > PREFIX contains DESTDIR, see bsd.port.mk(5) for TRUEPREFIX. The latter > is what ought to be the path once packaged/installed on your system, > the former is build environment specific (DESTDIR) and must therefore > not end up in packages. > > Perhaps there is a more clever way to fix this, but diff below fixes > your problem py patching TRUEPREFIX instead of PREFIX: this way > /usr/local/bin/lein ends up with > > LEIN_JAR=/usr/local/share/leiningen/leiningen-2.9.1-standalone.zip > > and works as expected on *every system*. > > Thanks for noticing as well as pointing out the issue at once. > > Feedback? OK?
ok. though I would just use ${TRUEPREFIX}/share/java rather than introduce a new variable, TRUEPREFIX is in default SUBST_VARS.