Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added symlink to includes for Qwt. #16309

Closed
wants to merge 1 commit into from

3 participants

@savardc

Added an include directory pointing to the Headers in the framework.

@adamv

Check out Pathname#install_symlink; maybe it can turn this into a oneliner?

@adamv
Owner

FWIW, MacPorts puts these in an include/qwt subdir:
https://trac.macports.org/browser/trunk/dports/graphics/qwt-60/Portfile

@jacknagel
Owner

Closing due to no response

@jacknagel jacknagel closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 29, 2012
  1. @savardc
This page is out of date. Refresh to see the latest.
Showing with 11 additions and 0 deletions.
  1. +11 −0 Library/Formula/qwt.rb
View
11 Library/Formula/qwt.rb
@@ -15,6 +15,17 @@ def install
system "qmake -spec macx-g++ -config release"
system "make"
+ ENV.j1
system "make install"
+
+ # The pkg-config files installed suggest that headers can be found in the
+ # `include` directory. Make this so by creating symlinks from `include` to
+ # the Frameworks' Headers folders.
+ include.mkdir
+ Pathname.glob(lib + '*.framework/Headers').each do |path|
+ framework_name = File.basename(File.dirname(path), '.framework')
+ ln_s path.realpath, include+framework_name
+ end
+
end
end
Something went wrong with that request. Please try again.