--- - branch: MAIN date: Sun May 10 17:46:59 UTC 2020 files: - new: '1.20' old: '1.19' path: pkgsrc/mk/haskell.mk pathrev: pkgsrc/mk/haskell.mk@1.20 type: modified id: 20200510T174659Z.f8e0f78dd76a97b531704cac046d8c6e347e27f3 log: | mk/haskell.mk: allow to generate PLIST files Since GHC 7.10 or 7.8, the Haskell packages are installed in directories whose name contains the package hash. This made it harder to predict the exact pathname. Havin the exact pathnames in the PLIST file is the ideal, it also helps to record the general structure of the installed files to see whether some file unexpectedly appear or disappear. To enable this for Haskell packages, the various base directories are replaced with placeholders during print-PLIST. These placeholders are translated back to their respective paths when the +PLIST is generated from the PLIST in the package directory. Except for 2 packages, all Haskell packages in main pkgsrc had their package PLIST file removed. To help in adding them back, the pkgsrc developer can set HS_UPDATE_PLIST=yes in mk.conf, which will generate the PLIST directly into ${PKGDIR}/PLIST upon installation. Most packages in pkgsrc-wip still have their old PLIST, and these are migrated automatically as well. module: pkgsrc subject: 'CVS commit: pkgsrc/mk' unixtime: '1589132819' user: rillig