New formula: pgplot 5.2.2 #11233

Closed
wants to merge 1 commit into
from

Projects

None yet

4 participants

@RuiPereira
Contributor

The PGPLOT Graphics Subroutine Library is a Fortran-
or C-callable, device-independent graphics package
for making simple scientific graphs.

@Sharpie
Contributor
Sharpie commented Apr 22, 2012

brew test hangs---demo never exits.

@RuiPereira
Contributor

The test needs to be verbose. Adding ARGV << '-v' to the first line of the test works, but it still needs user input... To fix that a small expect script should do the work:

  def test
    File.open('test_pgplot', 'w') do |t|
      t.write(<<-EOS                                                                                                                                                                                       
spawn #{prefix}/examples/pgdemo1                                                                                                                                                                           
expect {                                                                                                                                                                                                   
   NULL     {send "/XWINDOW\n"; exp_continue}                                                                                                                                                              
   RETURN   {send "\n"; exp_continue}                                                                                                                                                                      
}                                                                                                                                                                                                          
EOS
              )
    end
    system "expect test_pgplot; killall pgxwin_server"
  end
@RuiPereira
Contributor

Improved test code.

@mindriot101
Contributor

I can confirm that this formula works (OSX Lion 10.7.3)

@RuiPereira
Contributor

@Sharpie: is the test code acceptable in the current state?

@adamv
Contributor
adamv commented Oct 29, 2012

Installing gives me:

Error: pgxwin_server does not exist
@RuiPereira
Contributor

The X11 dependency handling in homebrew changed since this PR was submitted. Formula updated and original commit rebased. It works now.

@adamv adamv was assigned Oct 30, 2012
@adamv
Contributor
adamv commented Oct 30, 2012

Still getting an install error: https://gist.github.com/3980904

@RuiPereira RuiPereira New formula: pgplot 5.2.2
The PGPLOT Graphics Subroutine Library is a Fortran-
or C-callable, device-independent graphics package
for making simple scientific graphs.
184043a
@RuiPereira
Contributor

It seems your homebrew path breaks the default fortran 72 character limit. I added -ffixed-line-length-none to explicitly ignore that limit. It does not seem to break anything else and works for me, could you try again?

@Sharpie
Contributor
Sharpie commented Oct 30, 2012

I added -ffixed-line-length-none to explicitly ignore that limit.

That's probably worth adding to the default flags for GFortran. We're not using punchcards so sticking to the old 72 character limit makes no sense these days.

@RuiPereira
Contributor

Agreed.

@adamv
Contributor
adamv commented Oct 30, 2012

Working for now now; I'll pull this and a new issue can be opened for changing the defaults.

@adamv adamv added a commit that closed this pull request Oct 30, 2012
@RuiPereira @adamv RuiPereira + adamv pgplot 5.2.2
The PGPLOT Graphics Subroutine Library is a Fortran-
or C-callable, device-independent graphics package
for making simple scientific graphs.

Closes #11233.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
3869763
@adamv adamv closed this in 3869763 Oct 30, 2012
@snakeyroc3 snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this pull request Dec 17, 2012
@RuiPereira @adamv RuiPereira + adamv pgplot 5.2.2
The PGPLOT Graphics Subroutine Library is a Fortran-
or C-callable, device-independent graphics package
for making simple scientific graphs.

Closes #11233.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
6d2a7a1
@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.