Re: [31806] trunk/dports/security/afflib/Portfile
On Dec 7, 2007, at 23:41, ricci@macports.org wrote:
Revision: 31806 http://trac.macosforge.org/projects/macports/changeset/31806 Author: ricci@macports.org Date: 2007-12-07 21:41:46 -0800 (Fri, 07 Dec 2007)
Log Message: ----------- add a pre-destroot step to copy over the lib and include files
If this changes the complement of files that get installed by the port, you should increment the revision so anyone who had the previous complement of files gets informed of the update.
Modified Paths: -------------- trunk/dports/security/afflib/Portfile
Modified: trunk/dports/security/afflib/Portfile =================================================================== --- trunk/dports/security/afflib/Portfile 2007-12-08 04:25:07 UTC (rev 31805) +++ trunk/dports/security/afflib/Portfile 2007-12-08 05:41:46 UTC (rev 31806) @@ -33,7 +33,19 @@ --with-ssl=${prefix} \ --with-zlib=${prefix}
+pre-destroot { + ## install things that don't get automatically installed (say, libs, headers...) + ## really the auto* stuff needs to be reworked, below is a band-aid + xinstall -d ${destroot}/${prefix}/lib + xinstall -m 0644 ${worksrcpath}/lib/.libs/libafflib.a ${destroot}/ ${prefix}/lib/ + xinstall -d ${destroot}/${prefix}/include/${name}/lib + foreach header [glob ${worksrcpath}/lib/*.h] { + xinstall -m 0644 $header ${destroot}${prefix}/include/${name}/lib + } + xinstall -m 0644 ${worksrcpath}/config.h ${destroot}${prefix}/ include/${name}/ +}
There shouldn't be a slash between ${destroot} and ${prefix}. ($ {prefix} already begins with a slash.)
On Sat, Dec 08, 2007 at 12:48:09AM -0600, Ryan Schmidt wrote:
On Dec 7, 2007, at 23:41, ricci@macports.org wrote:
Revision: 31806 http://trac.macosforge.org/projects/macports/changeset/31806 Author: ricci@macports.org Date: 2007-12-07 21:41:46 -0800 (Fri, 07 Dec 2007)
Log Message: ----------- add a pre-destroot step to copy over the lib and include files
If this changes the complement of files that get installed by the port, you should increment the revision so anyone who had the previous complement of files gets informed of the update.
Yeah, I didn't (foolishly assuming nobody else would have installed it yet - which is probably true, though someone might have caught the first instance of the Portfile and not done an update before they get to it). [snip]
There shouldn't be a slash between ${destroot} and ${prefix}. ($ {prefix} already begins with a slash.)
Heh, strong habituation to have a slash between path-element variables. I know I typed one every time, missed removing that one. -eric
participants (2)
-
Eric Hall
-
Ryan Schmidt