[MacPorts] #38142: giza @0.7.6 - new port file
#38142: giza @0.7.6 - new port file ----------------------------+-------------------------------- Reporter: daniel.price@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: maintainer | Port: giza ----------------------------+-------------------------------- Please find attached a Portfile for giza, a 2D plotting library based on cairo that I wrote and maintain. One of the main things is giza can act as a direct replacement for the older PGPLOT library (port: pgplot). For the giza Portfile I made this aspect a variant. That is, with the +pgplot variant (turned on by default), the build compiles API-compatible replacements for libpgplot.a, libcpgplot.a, libcpgplot.dylib and libpgplot.dylib as well as the usual libgiza. Hence the +pgplot conflicts with port: pgplot, because it effectively replaces it. Have tested the Portfile and all seems to work from my point of view. Should be in ports/science/ I am happy to be the maintainer of this port. Cheers, Daniel -- Ticket URL: <https://trac.macports.org/ticket/38142> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38142: giza @0.7.6 - new port file -----------------------------+-------------------------------- Reporter: daniel.price@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: maintainer Port: giza | -----------------------------+-------------------------------- Comment (by ryandesign@…): * "worksrcdir ${name}-${version}" should be removed; that's the default * /opt/local should not be hardcoded; use ${prefix} * the gcc4x variants should follow the recipe in wiki:PortfileRecipes#gcc * master_sites should be rewritten to avoid redirects as per wiki:howto/AvoidRedirects -- Ticket URL: <https://trac.macports.org/ticket/38142#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38142: giza @0.7.6 - new port file -----------------------------+-------------------------------- Reporter: daniel.price@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: maintainer Port: giza | -----------------------------+-------------------------------- Comment (by daniel.price@…): OK, done these (revised Portfile attached). I didn't detect any redirects using the method on the howto page, so master_sites is now just sourceforge:giza/ which seems to be the most direct path. -- Ticket URL: <https://trac.macports.org/ticket/38142#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38142: giza @0.7.6 - new port file -----------------------------+-------------------------------- Reporter: daniel.price@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: maintainer Port: giza | -----------------------------+-------------------------------- Comment (by khindenburg@…): Are you still interested in updating this to 0.8.1? Also, I don't think all the gcc variants is the correct way of doing that now. -- Ticket URL: <https://trac.macports.org/ticket/38142#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#38142: giza @0.7.6 - new port file -----------------------------+-------------------------------- Reporter: daniel.price@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: maintainer Port: giza | -----------------------------+-------------------------------- Comment (by daniel.price@…): Replying to [comment:4 khindenburg@…]:
Are you still interested in updating this to 0.8.1? Also, I don't think all the gcc variants is the correct way of doing that now.
Sorry for the slow reply. I've updated the Portfile for 0.9.0 and updated the gcc variants to follow the suggested recipe. Would be very grateful if this could be committed. Daniel -- Ticket URL: <https://trac.macports.org/ticket/38142#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#38142: giza @0.7.6 - new port file -----------------------------+-------------------------------- Reporter: daniel.price@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: maintainer Port: giza | -----------------------------+-------------------------------- Comment (by khindenburg@…): It doesn't build here on Mavericks {{{ :info:build ld: warning: directory not found for option '-L/usr/local/gfortran/lib/' :info:build ld: library not found for -lgfortran :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation) }}} -- Ticket URL: <https://trac.macports.org/ticket/38142#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#38142: giza @0.7.6 - new port file -----------------------------+-------------------------------- Reporter: daniel.price@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: maintainer Port: giza | -----------------------------+-------------------------------- Comment (by mf2k@…): Actually, you should use the compilers portgroup. Unfortunately it is not documented yet. But look at the hdf4 as an example. It is easier to implement than the FORTRAN recipe. -- Ticket URL: <https://trac.macports.org/ticket/38142#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#38142: giza @0.7.6 - new port file -----------------------------+-------------------------------- Reporter: daniel.price@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: maintainer Port: giza | -----------------------------+-------------------------------- Comment (by daniel.price@…): I've updated the Portfile to use the compilers portgroup. Also fixed the build problem with -lgfortran. One thing is that the compilers portgroup stuff does not seem to update ${configure.cc} and ${configure.fc} for use in the Portfile, so I have had to do this manually using a loop in the style of the old Fortran recipe. Also, no Fortran compiler is turned on by default, so I've had to add a few lines to make sure that at least one of the Fortran variants is chosen (+gcc48 by default). Let me know if you think this can be done more elegantly. -- Ticket URL: <https://trac.macports.org/ticket/38142#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#38142: giza @0.7.6 - new port file -----------------------------+-------------------------------- Reporter: daniel.price@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: maintainer Port: giza | -----------------------------+-------------------------------- Comment (by khindenburg@…): The default builds fine; but when I try to use -pgplot it fails {{{ :info:build gfortran -I//opt/local/include -I/opt/local/include/cairo -I/opt/local/include -I../include -I../src -c ../interface/giza- fortran.F90 -o giza-fortran.o :info:build /bin/bash: gfortran: command not found }}} -- Ticket URL: <https://trac.macports.org/ticket/38142#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#38142: giza @0.7.6 - new port file -----------------------------+-------------------------------- Reporter: daniel.price@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: maintainer Port: giza | -----------------------------+-------------------------------- Comment (by daniel.price@…): I played around with this but could not get around the fact that macports issues the "make -w all" command to build and "make -w install" to install. The best solution for now is that I've simply removed the variant, so that all libraries and the fortran interface are always compiled. Hence all variants now work. While playing around I updated to 0.9.1 so Portfile is updated there too. -- Ticket URL: <https://trac.macports.org/ticket/38142#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#38142: giza @0.7.6 - new port file -----------------------------+-------------------------------- Reporter: daniel.price@… | Owner: macports-tickets@… Type: submission | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: maintainer Port: giza | -----------------------------+-------------------------------- Changes (by khindenburg@…): * status: new => closed * resolution: => fixed Comment: thanks committed r124753 and r124754 -- Ticket URL: <https://trac.macports.org/ticket/38142#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#38142: giza @0.7.6 - new port file -----------------------------+-------------------------------- Reporter: daniel.price@… | Owner: macports-tickets@… Type: submission | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: maintainer Port: giza | -----------------------------+-------------------------------- Comment (by daniel.price@…): thanks -- Ticket URL: <https://trac.macports.org/ticket/38142#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts