Created formula for libfcgi #10398

Closed
wants to merge 1 commit into from

2 participants

@martijnthe

This forumula will build and install the FastCGI static/dynamic libraries and the cgi-fcgi tool.

@martijnthe martijnthe FastCGI 2.4.0
This forumula will build and install the FastCGI static/dynamic libraries and the cgi-fcgi tool.
8ddb490
@jacknagel jacknagel commented on the diff Feb 22, 2012
Library/Formula/fastcgi.rb
+ system "otool -f /usr/local/lib/libfcgi++.la"
+ system "otool -f /usr/local/lib/libfcgi.0.0.0.dylib"
+ system "otool -f /usr/local/lib/libfcgi.0.dylib"
+ system "otool -f /usr/local/lib/libfcgi.dylib"
+ system "otool -f /usr/local/lib/libfcgi.a"
+ system "otool -f /usr/local/lib/libfcgi.la"
+ # Verify if headers are installed
+ system "test -e /usr/local/include/fastcgi.h"
+ system "test -e /usr/local/include/fastcgi.h"
+ system "test -e /usr/local/include/fastcgi.h"
+ system "test -e /usr/local/include/fcgi_stdi"
+ system "test -e /usr/local/include/fcgiapp.h"
+ system "test -e /usr/local/include/fcgimisc.h"
+ system "test -e /usr/local/include/fcgio.h"
+ system "test -e /usr/local/include/fcgios.h"
+ system "test -e /usr/local/include/fcgi_config.h"

Can't hardcode /usr/local (has to be HOMEBREW_PREFIX), the otool and test stuff is unnecessary.

Usually the executable, if the formula provides one; many just do foo --version to check that the executable actually works, though some actually have nice tests that actually exercise program functionality.

Libraries are harder to test. It would be nice to compile a test program to ensure the lib can be linked, though I don't think any formula do this currently. We usually just skip the test on things that only build libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@jacknagel

Also we have this: brew info fcgi. Though there should be a fastcgi alias.

@jacknagel jacknagel closed this Feb 22, 2012
@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.