I am running with my cabal.port.mk[1] patches which include this
SUBST_VARS += DISTNAME MODCABAL_STEM MODCABAL_VERSION PKGNAME
I try to regenerate x11/xmonad/pkg/PLIST[2] with `make update-plist` and
the result comes out with ${MODCABAL_STEM}-${MODCABAL_VERSION} contrary
to my expectation of it using ${DISTNAME}.
The relevant variables seem to suggest my expectation is in line with
update-plist(1):
> Most SUBST_VARS variables will be back-substituted into the regenerated
> packing-lists, starting from the longest variable values.
$ make show="MODCABAL_STEM MODCABAL_VERSION DISTNAME SUBST_VARS"
xmonad
0.15
xmonad-0.15
DISTNAME MODCABAL_STEM MODCABAL_VERSION PKGNAME ARCH BASE_PKGPATH FLAVOR_EXT
FULLPKGNAME HOMEPAGE LOCALBASE LOCALSTATEDIR MACHINE_ARCH MAINTAINER PREFIX
RCDIR SYSCONFDIR TRUEPREFIX X11BASE PKGSTEM
If I manually replace ${MODCABAL_STEM}-${MODCABAL_VERSION} with
${DISTNAME}, update-plist leaves it alone.
Thanks
Greg
1.
https://github.com/blackgnezdo/ports/blob/54db9ab4253ed2ba0f294bb4e0695e2da50175aa/devel/cabal/cabal.port.mk
2.
https://github.com/blackgnezdo/ports/blob/54db9ab4253ed2ba0f294bb4e0695e2da50175aa/x11/xmonad/pkg/PLIST