reduce-algebra portfile

Mark Brethen mark.brethen at gmail.com
Tue Dec 13 06:57:04 PST 2011


On Dec 13, 2011, at 12:09 AM, Ryan Schmidt wrote:

> 
> On Dec 13, 2011, at 00:01, Mark Brethen wrote:
> 
>> I finally got it to the build phase using:
>> 
>> pre-build {
>> 	system -W ${worksrcpath}/psl "./make-psl.sh macintel64"
>> }
>> 
>> But the build phase never completed, and I checked the main.log was up to 40 gig so I killed it. The log file was too large to read and figure out what was going on. However, I found the section of the configure script (in /psl) that downloads the binaries from www.zib.de. You mentioned patching the file, so where would you put this? The part of the configure script follows:
>> 
>> ---------
>> # Now I need to build a copy of the "xport" utility. You may view it as
>> # mildly eccentric to build this tool at configure time!
>> 
>> mkdir xport
>> cd xport
>> $srcdir/support-packages/xport-2.05/configure
>> make
>> cd ..
>> 
>> { $as_echo "$as_me:${as_lineno-$LINENO}: Will build this PSL using the $pslver initial binaries" >&5
>> $as_echo "$as_me: Will build this PSL using the $pslver initial binaries" >&6;}
>> 
>> # rm -rf psl
>> mkdir psl
>> cp -r $srcdir/psl-$pslver/* psl
>> 
>> # Now in my new world about the only thing that will have been copied here
>> # will be a file "xport.pat". This can then be used to arrange to fetch the
>> # relevant pre-build PSL binary files from a web-site (www.zib.de) where they
>> # are maintained, and is a scheme adopted here to make thePSL version
>> # available NOW while a full source release is still being worked on.
>> 
>> cd psl
>> { $as_echo "$as_me:${as_lineno-$LINENO}: About to update PSL binaries from master web-site at ZIB" >&5
>> $as_echo "$as_me: About to update PSL binaries from master web-site at ZIB" >&6;}
>> ../xport/xport -fetch
>> # xport.pat should really have "executable bpsl" in it, but in case it does
>> # not I will force executable status here...
>> chmod +x bpsl*
>> cd ..
>> ----------
> 
> You could write a patch that removes the "../xport/xport -fetch" line. If that's all xport is for, you can remove the lines that build xport. Then find the distfile and add it to the MacPorts distfiles variable so MacPorts will fetch it, and add checksums for it to the checksums variable. Decide whether MacPorts should try to decompress this file itself; if not, set "extract.only" to list only the files MacPorts should decompress. In post-extract, you may need to move either the compressed file or the uncompressed result to the place where the configure script wants it to be.
> 
> 
> 
> 

The contents of the xport.pat are as follows:

----------
# This file is used by Arthur Norman to help him synchronize a copy of
# his own private copy of the Reduce tree with copies in (virtual) machines
# where he is checking things. It is probably not relevant to anybody else,
# but life is made much easier for ACN if it is visible here!

Master=panamint scp://acn1@codemist.dyndns.org:/d/projects/reduce-algebra/trunk
Master=gauguin  scp://acn1@gauguin.trin.cam.ac.uk:reduce-algebra/trunk

Omit cslbuild pslbuild generic temp
Omit autom4te.cache **/autom4te.cache .svn **/.svn
Omit **.bak **~ **.log

Omit psl displaytex
Omit csl/embedded/*.o csl/embedded/reduce csl/embedded/reduce.exe
Omit csl/wxWidgets

Binary  **/configure configure **bpsl* **schau **.pl **.parser **.properties
Executable **/configure configure **bpsl* **schau **.pl **.parser

Binary **/bst2groovy **/exbib **/exbibutil **/exindex **/showfmt
----------

Can you make anything of this in terms of where the dist file is?

Mark






More information about the macports-dev mailing list