Re: extract gzip files

2018-12-02 Thread Rainer Müller
On 30.11.18 18:09, Mark Brethen wrote: > This doesn’t work: > > extract.suffix= .gz > extract.cmd = gunzip > extract.pre_args = -c > extract.post_args = "> ${workpath}" This cannot work as ${workpath} is a directory and you cannot redirect output to a directory, you wou

Re: extract gzip files

2018-12-02 Thread Joshua Root
On 2018-12-3 01:08 , Rainer Müller wrote: > On 30.11.18 18:09, Mark Brethen wrote: >> This doesn’t work: >> >> extract.suffix= .gz >> extract.cmd = gunzip >> extract.pre_args = -c >> extract.post_args = "> ${workpath}" > > This cannot work as ${workpath} is a directory a

Re: extract gzip files

2018-12-02 Thread Ryan Schmidt
On Nov 30, 2018, at 08:13, Mark Brethen wrote: > For *.gz files (no tar), what’s the proper way to extract them to > extract_dir? MacPorts doesn't have specific support for this built-in, I guess because it wasn't thought to be a common enough use case. But there are several ports in the t

Re: extract gzip files

2018-12-02 Thread Mark Brethen
Abiword used this solution: distname AbiWord-${version}-10.2 extract.suffix .dmg.gz extract.post_args > ${workpath}/${distname}.dmg but I seven files, all .ps.gz, will this work with distfiles instead? Alternatively, I could use extract {} and then change destroot to destroot { xinstall

Re: extract gzip files

2018-12-02 Thread Mark Brethen
This works, avoids overriding extract, but is less direct: extract.cmd cp extract.pre_args extract.post_args ${workpath}/. destroot { xinstall -d ${destroot}${prefix}/share/doc/${name} foreach f ${distfiles} { set stem [file rootname [file

Re: extract gzip files

2018-12-02 Thread Ryan Schmidt
On Dec 2, 2018, at 15:20, Mark Brethen wrote: > On Dec 2, 2018, at 2:32 PM, Mark Brethen wrote: > >> Abiword used this solution: >> >> distname AbiWord-${version}-10.2 >> extract.suffix .dmg.gz >> extract.post_args > ${workpath}/${distname}.dmg >> >> but I seven files, all .ps.gz, will this

calculix-ccx fails to build

2018-12-02 Thread Mark Brethen
The log file is 193kb: :info:build make: *** No rule to make target `-ltaucs', needed by `ccx_2.14'. Stop. :info:build make: Leaving directory `/opt/local/var/macports/build/_Users_marbre_ports_cad_calculix-ccx/calculix-ccx/work/ccx_2.14/src' :info:build Command failed: cd "/opt/local/var/mac

Re: calculix-ccx fails to build

2018-12-02 Thread Mark Brethen
I found this in the install readme: If you like to use TAUCS as solver, install TAUCS in /usr/local/taucs (and lapack, blas and metis in /usr/local/taucs/external/lib/linux) and change the Makefile in /usr/local/CalculiX/ccx_2.14/src as follows: a) add "-I ../../../taucs/src -I ../.