[MacPorts] #34706: ncarg: problem with build dependency to triangle

MacPorts noreply at macports.org
Thu May 31 16:20:20 PDT 2012


#34706: ncarg: problem with build dependency to triangle
--------------------------------------+-------------------------------------
 Reporter:  Peter.Danecek@…           |       Owner:  macports-tickets@…                   
     Type:  defect                    |      Status:  new                                  
 Priority:  Low                       |   Milestone:                                       
Component:  ports                     |     Version:  2.1.1                                
 Keywords:                            |        Port:  ncarg                                
--------------------------------------+-------------------------------------
 The ncarg port has a quite weird dependency to triangle:

 The port claims build time dependency to {{{port:triangle}}} whoever it
 depends on the source/distfile, not sure if it really requires triangle to
 be installed, but assume not.

 {{{
 pre-configure {
     system "cd ${workpath}/${g2clib_worksrcdir}; make all"
     file copy ${workpath}/${g2clib_worksrcdir}/libgrib2c.a ${worksrcpath}
     system "cd ${worksrcpath}/config; \
         make -f Makefile.ini; \
         ./ymake -config `pwd`"
     system "unzip -o
 ${prefix}/var/macports/distfiles/triangle/triangle.zip -d /tmp; \
         mv /tmp/triangle.* ${worksrcpath}/ni/src/lib/hlu"
 }
 }}}

 The last two rows seem to unzip the distfile and copy it to the work
 directory. This assumes that the distfile is present. However, this might
 NOT be the case, if triangle is already present on the system and the
 distfile was purged, it won't fetch any more and the build fails.

 Work-around:
 A {{{port fetch triangle}}} before the installation of ncarg solves the
 problem, but I guess there should be a better solution.

-- 
Ticket URL: <https://trac.macports.org/ticket/34706>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list