diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2012-03-09 21:37:32 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2012-03-09 21:37:32 -0300 |
| commit | c02b9ea700bcf8e7a345d5074a678f6e9bf5f89b (patch) | |
| tree | ce1706888036624eefb7486f0a3496660ab4b1bc | |
| parent | 37aded056fae788088855b36281b1d23b0131fdb (diff) | |
| parent | d2a4573ad42be8fe68bfd2b0aa73658f5748b1d8 (diff) | |
| download | luarocks-c02b9ea700bcf8e7a345d5074a678f6e9bf5f89b.tar.gz luarocks-c02b9ea700bcf8e7a345d5074a678f6e9bf5f89b.tar.bz2 luarocks-c02b9ea700bcf8e7a345d5074a678f6e9bf5f89b.zip | |
Merge branch 'master' of github.com:keplerproject/luarocks
| -rw-r--r-- | Makefile | 3 | ||||
| -rw-r--r-- | src/luarocks/cfg.lua | 11 |
2 files changed, 13 insertions, 1 deletions
| @@ -104,7 +104,8 @@ check_makefile: | |||
| 104 | cleanup_bins: | 104 | cleanup_bins: |
| 105 | for f in $(BIN_FILES) ;\ | 105 | for f in $(BIN_FILES) ;\ |
| 106 | do \ | 106 | do \ |
| 107 | sed -i.bak "s,^#!.*lua.*,#!/usr/bin/env lua,;/^package.path/d" src/bin/$$f ;\ | 107 | mv src/bin/$$f{,.bak} ;\ |
| 108 | sed "s,^#!.*lua.*,#!/usr/bin/env lua,;/^package.path/d" < src/bin/$$f.bak > src/bin/$$f ;\ | ||
| 108 | rm src/bin/$$f.bak ;\ | 109 | rm src/bin/$$f.bak ;\ |
| 109 | done | 110 | done |
| 110 | 111 | ||
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua index 8527ba52..af1062f8 100644 --- a/src/luarocks/cfg.lua +++ b/src/luarocks/cfg.lua | |||
| @@ -77,6 +77,9 @@ elseif system == "Darwin" then | |||
| 77 | elseif system == "Linux" then | 77 | elseif system == "Linux" then |
| 78 | detected.unix = true | 78 | detected.unix = true |
| 79 | detected.linux = true | 79 | detected.linux = true |
| 80 | elseif system == "SunOS" then | ||
| 81 | detected.unix = true | ||
| 82 | detected.solaris = true | ||
| 80 | elseif system and system:match("^CYGWIN") then | 83 | elseif system and system:match("^CYGWIN") then |
| 81 | detected.unix = true | 84 | detected.unix = true |
| 82 | detected.cygwin = true | 85 | detected.cygwin = true |
| @@ -372,6 +375,14 @@ if detected.openbsd then | |||
| 372 | defaults.variables.STATFLAG = "-f '%Op'" | 375 | defaults.variables.STATFLAG = "-f '%Op'" |
| 373 | end | 376 | end |
| 374 | 377 | ||
| 378 | if detected.solaris then | ||
| 379 | defaults.arch = "solaris-"..proc | ||
| 380 | defaults.platforms = {"unix", "solaris"} | ||
| 381 | defaults.variables.MAKE = "gmake" | ||
| 382 | defaults.variables.CC = "gcc" | ||
| 383 | defaults.variables.LD = "gcc" | ||
| 384 | end | ||
| 385 | |||
| 375 | -- Expose some more values detected by LuaRocks for use by rockspec authors. | 386 | -- Expose some more values detected by LuaRocks for use by rockspec authors. |
| 376 | defaults.variables.LUA = defaults.lua_interpreter | 387 | defaults.variables.LUA = defaults.lua_interpreter |
| 377 | defaults.variables.LIB_EXTENSION = defaults.lib_extension | 388 | defaults.variables.LIB_EXTENSION = defaults.lib_extension |
