From 99d7889c959bdb82dbbf8e202063280c0a093d71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pop=20Qvarnstro=CC=88m?= Date: Thu, 8 Sep 2011 23:02:07 +0200 Subject: [PATCH] Lua: Ensure liblua.dylib is created Adding versionless soft link in INSTALL_LIB to allow linking with -llua (see homebrew issue #6350 for an example) (Related to name change in commit 9228a05f98). Fixes #7642. Fixes #6648. Closes #7561. Closes #7517. Closes #6235. Signed-off-by: Charlie Sharpsteen --- Library/Formula/lua.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Formula/lua.rb b/Library/Formula/lua.rb index 914ef7fef976..1830bd28e204 100644 --- a/Library/Formula/lua.rb +++ b/Library/Formula/lua.rb @@ -64,11 +64,12 @@ def install TO_MAN= lua.1 luac.1 # Lua version and release. -@@ -64,6 +64,7 @@ install: dummy +@@ -64,6 +64,8 @@ install: dummy cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC) cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB) cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN) + ln -s -f liblua.5.1.4.dylib $(INSTALL_LIB)/liblua.5.1.dylib ++ ln -s -f liblua.5.1.dylib $(INSTALL_LIB)/liblua.dylib ranlib: cd src && cd $(INSTALL_LIB) && $(RANLIB) $(TO_LIB)