How to make installation conditional in pkg-plist

Thierry Thomas thierry at FreeBSD.org
Tue Jul 26 17:14:11 UTC 2016


Le mar 26 jul 16 à 18:57:16 +0200, Montgomery-Smith, Stephen <stephen at missouri.edu>
 écrivait :

> Currently the ports math/vtk6 and science/paraview both try to install 
> the same file: share/cmake/hdf5/libhdf5.settings.  It is described in 
> this bug report.
> 
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211334
> 
> My proposed solution is that each port only installs the file if it 
> doesn't already exist, and only deinstalls the file if it installed it. 
> I am planning to figure out some kind of @exec solution for the pkg-plist.
> 
> Has anyone already solved this problem in other situations?  I prefer 
> not to reinvent something if good solutions already exist.
> 
> Failing that, does anyone have good ideas on how to do this, or even 
> alternative solutions?

This file is already installed by the port science/hdf5, but under
$PREFIX/lib.

I would suggest to:
- modify science/hdf5 to create a symlink under share/cmake/hdf5
- patch math/vtk6 and science/paraview to not install this file.

Regards,
-- 
Th. Thomas.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 949 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20160726/43778a0b/attachment.sig>


More information about the freebsd-ports mailing list