Commit Graph

157 Commits

Author SHA1 Message Date
Justin M. Keyes
44e6ee930f build: Target luacheck HEAD.
https://github.com/mpeterv/luacheck/pull/81#issuecomment-261099606

> If you really want to use bleeding-edge version you should get the
> rockspec from master branch, not a fixed commit ...
> The correct way to install from a specific commit is cloning that
> commit and running "luarocks make" from project directory. The reason
> is that running "install" or "build" on an scm rockspec fetches
> sources from master but uses build description from the rockspec
> itself, which may be outdated.
2016-11-17 00:55:39 +01:00
Rui Abreu Ferreira
0ebd30fba7 third-party: Bump luv to v1.9.1-0
Fixes #4620
2016-09-10 18:43:05 +01:00
Björn Linse
7e2348f2b1 eval: use gperf to generate the hash of builtin functions
make api functions highlighted as builtins in vim.vim
2016-08-31 21:57:04 +02:00
Rui Abreu Ferreira
703cf3197f third-party: Windows fix for luv build recipe
The argument quotes in the luv build recipe did not work
in Windows.
2016-08-26 08:09:56 +01:00
Rui Abreu Ferreira
bed61041a0 third-party: Build busted in Windows
Busted now builds on Windows, remove the check. In Windows the binary
is called busted.bat.
2016-08-26 08:09:56 +01:00
Michael Ennen
9da4d0dfee Update to libuv 1.9.1 2016-08-26 08:09:56 +01:00
John Szakmeister
1d4506ee17 third-party: force the use of penlight 1.3.2-2 until busted is fixed
penlight 1.4.0 changed how files are being globbed and busted hasn't
been updated accordingly yet.  See Olivine-Labs/busted#528 for more
information.
2016-08-15 05:55:12 -04:00
John Szakmeister
6647f3c047 third-party: don't build busted in parallel with anything
luarocks has had trouble in the past with multiple build/install
commands running at the same time.
2016-08-15 05:43:25 -04:00
Justin M. Keyes
f1eb303187 Merge #5130 from equalsraf/tb-appveyor
Enable MSYS/MinGW builds in Appveyor
2016-08-07 17:35:10 -04:00
Rui Abreu Ferreira
9da4d1b4cb third-party: Pass along cmake generator in luv recipe 2016-08-07 21:57:29 +01:00
Rui Abreu Ferreira
723366d40b third-party: Build libvterm in MinGW
Add build recipe for libvterm in MinGW, a CMakeLists.txt
file is bundled in third-party/cmake/.
2016-08-07 21:57:29 +01:00
Rui Abreu Ferreira
04012349f6 third-party: Create path in CopyFilesGlob.cmake 2016-08-07 21:57:28 +01:00
Rui Abreu Ferreira
faafd9b70c Build third-party deps in MinGW
Added recipes to build bundled dependencies in native MinGW
toolchains - libuv, luajit, luarocks, msgpack
2016-08-07 21:57:28 +01:00
Rui Abreu Ferreira
db7fdcd0ba MSVC: Build third-party dependencies as release DLLs
Using /MT was causing issues when building luarocks, revert it, use the
dynammic runtime and generate release DLLs for the dependencies.
Some refactoring was required because for linking cmake looks for the
import libraries (.lib) but on runtime executables we need the .dll files
to be in the same folder.

The DLLs are placed in the bin/ folder in order for nvim.exe to run
during the build and tests. The install target installs the DLLs with
the nvim binary - uses GetPrerequisites to find runtime DLLs.

Some minor issues that required adjustments:
- [MSVC] FindMsgpack.cmake now looks for msgpack_import.lib instead of
  msgpack.lib
- The lua-client fails to find libuv.lib, instead it looks for uv.lib,
  added second copy of the file to the install command.
- [MSVC] CMAKE_BUILD_TYPE affects the output paths, default to Release.

Part of these changes are credited to @jasonwilliams200OK who fixed the
third-party recipes to consistently use the same build type.
2016-08-07 21:57:28 +01:00
Justin M. Keyes
fe6ec75725 Merge #4964 from ZyX-I/no-xdg-expand
option: Do not expand options, obtained from XDG vars
2016-08-04 20:59:51 -04:00
David Personette
67062d20ed
CMake: fix USE_BUNDLED_LIBUV
Closes #5114.
2016-07-25 20:56:52 +02:00
ZyX
3878626c05 functests: Add tests for XDG defaults 2016-07-10 02:04:27 +03:00
George Brown
b23b561329 Update jemalloc to 4.2.1 (#4993) 2016-07-03 02:26:47 -04:00
Björn Linse
5cc87d4dab cmdline: Redraw the cmdline after processing events
vim-patch:7.4.1603

TODO(bfredl): if we allow events in HITRETURN and ASKMORE states,
we need to add the necessary redraws as well.
2016-05-24 22:11:37 +02:00
Thiago de Arruda
c18d5917e3 Update lua client to 0.0.1-24
The new version of the lua client uses libmpack as a backend, and some test
scripts had to be updated to reflect that.
2016-04-13 09:21:32 -03:00
Thiago de Arruda
10a8bb02ac third-party: Add missing *_host dependencies to luarocks packages 2016-04-11 23:07:52 -03:00
Thiago de Arruda
4ae7acd152 Add luv as a third party dependency
Luv is a simple lua binding to libuv, which is now used by neovim lua client.
The bundled luv installation a bit different from other dependencies in that it
is installed two times:

- The "BuildLuv.cmake" script downloads and installs a static version of luv
  using its normal cmake build script. This static version will be used later.
- Luv default rockspec is replaced with the alternate under the "rockspecs"
  directory(the alternate rockspec plays nicer with neovim build system)
- The alternate rockspec is used to build/install the lua module and make it
  available to lua scripts.
2016-04-11 23:07:52 -03:00
Thiago de Arruda
3f698b8106 Allow a lua debugger to be specified on functionaltest-lua target 2016-04-11 23:07:52 -03:00
Thiago de Arruda
646ab30858 Add Lua 5.1 as a third party dep
Also add a functionaltest-lua target to run the functional tests using the lua
interpreter and corresponding helper to top-level Makefile
2016-03-07 14:38:39 -03:00
Justin M. Keyes
4e39eee13c deps: upgrade libvterm
New feature: `VTermState->mode.bracketpaste`
  Enabled by default, but note that `vterm_state_reset()` disables it.
  03981def6b
References #3476

New feature: `vterm_state_set_unrecognised_fallbacks`
  acf7f19713

Oh, and terminal reflow works now.
Closes #2514 (but not #3864, that's a bit more tricky)
2016-03-04 20:13:46 -05:00
Justin M. Keyes
62cf44b8ab Update to libuv 1.8.0 2016-02-22 19:28:52 -05:00
Seth Jackson
a7ade5c832 misc: UNIX => Unix #4022
Although UNIX is a registered trademark of The Open Group, it doesn't
really matter whether we refer to these systems as UNIX, Unix, or
Unix-like. So, for consistency, refer to them collectively as Unix.

Related:
http://www.greens.org/about/unix.html
http://www.unixica.com/html/unixunix.html
2016-01-16 18:34:31 -05:00
Thomas Fehér
50db0312f9 build: ensure static jemalloc. #3970
Otherwise the dynamic library is built also and find_library will prefer
that over the static one. That results in linking against the dynamic
library which will not be found after install.

This code:
  8b3c399b6d/third-party/CMakeLists.txt (L130)
should prevent the above problem, but it doesn't hurt to be explicit.
2016-01-09 12:23:02 -05:00
Justin M. Keyes
7643245470 BuildLibuv.cmake: make case consistent 2016-01-08 01:09:22 -05:00
Justin M. Keyes
8b3c399b6d build: use our mirror of LuaJIT-2.0.4.tar.gz
Point to new location.
2015-12-30 23:40:04 -05:00
Justin M. Keyes
930ee40ad3 build: use our mirror of LuaJIT-2.0.4.tar.gz
The luajit.org download URL:
  http://luajit.org/download/LuaJIT-2.0.4.tar.gz
is breaking our travis builds because of connection problems.
2015-12-30 00:41:52 -05:00
Marco Hinz
330794fb05 Luacheck: point to latest rockspec
So far luacheck's rockspec specified only the git protocol. Hence people
behind firewalls/proxies, that block port 9814, had trouble fetching this
dependency via luarocks.

The latest commit updated the rockspec to use either git or https. Thus common
workarounds like this are not needed anymore:

    git config --global url."https://".insteadOf git://

References #3769.
2015-12-01 20:15:03 +01:00
Marco Hinz
818f926eb0 Tests: add luacheck for linting tests
Source: https://github.com/mpeterv/luacheck
Docs:   http://luacheck.readthedocs.org/en/0.12.0/index.html

Run via "make testlint".
2015-11-23 13:57:21 +01:00
Marco Hinz
4680b4f3b1 Remove outdated comment from BuildLuarocks.cmake 2015-11-23 13:27:21 +01:00
John Szakmeister
97bb24d4e5 third-party: enable verbose builds of luajit and libuv
Libuv and LuaJIT like to hide the actual compilation and linking
commands behind nice text.  This change makes them spit out the actual
command line to help us with debugging issues that people are seeing.
2015-11-10 06:19:08 -05:00
John Szakmeister
e34ae35d10 Remove our cliargs workaround use 2.0.rc11 of Busted.
Busted now correctly excludes the 3.0 line of cliargs.
2015-10-28 03:12:48 -04:00
John Szakmeister
804edb0489 Update busted to pick up the CLI fix.
Unfortunately, it's not enough to avoid the rc file.  For now, let's
install a good version of lua_cliargs until the dependency is fixed
upstream.
2015-10-27 05:52:33 -04:00
Florian Walch
65b47a05d6 deps: Update to libtermkey 0.18.
Same code we were using before, only from official release tarball
instead of our GitHub mirror.
2015-10-07 21:28:09 +02:00
Felipe Morales
e29c4bab2a third-party: update jemalloc to 4.0.2
jemalloc 4.0 adds support for OpenBSD, DragonFlyBSD and other platforms.

Release notes: https://github.com/jemalloc/jemalloc/releases/tag/4.0.0

4.0.1 and 4.0.2 are bugfix releases

Release notes: https://github.com/jemalloc/jemalloc/releases/tag/4.0.1
               https://github.com/jemalloc/jemalloc/releases/tag/4.0.2
2015-09-22 07:43:08 +02:00
Justin M. Keyes
7031364c76 test: update lua client to 0.0.1-14 2015-09-10 19:41:44 -04:00
Justin M. Keyes
aea3f70237 test: update lua client to 0.0.1-13 #3281 2015-09-10 02:08:48 -04:00
Florian Walch
fd23d588fe deps: Update unibilium to 1.2.0.
Changes since 1.1.4 (from [1]):

1.1.5   2015-07-17:
        - doc/unibi_{get,set}_ext_*_name: Fix man's “can't break line” warnings
        - Merge pull request #12 from Debian/manpage-warnings
        - fix variable name parsing in %g/%P (gh #14)

1.1.6   2015-07-23:
        - neatify formatting
        - factor out TAP pseudo-library
        - regenerate static tests
        - add screen-256color sanity test
        - make ok() accept printf varargs
        - regenerate static tests
        - mark test functions as potentially unused
        - more test stuff
        - use note for annotations instead of diag
        - regenerate static tests
        - fix nested conditionals
        - add ansi-pfkey test because why not

1.2.0   2015-08-14:
        - add helper functions for unibi_var_t manipulation
        - document semantics of zero-initializing unibi_var_t

[1] https://github.com/mauke/unibilium/compare/v1.1.4...v1.2.0
2015-09-09 17:23:22 +02:00
Florian Walch
b480eb069b CMake: Don't use existing third-party sources by default.
Introduce ALLOW_EXISTING_SRC_DIR option, turned off by default.

The Homebrew formula, which downloads and extracts the third-party
dependency sources before starting the build, would turn this option
ON.
2015-09-09 17:23:22 +02:00
Justin M. Keyes
ea33a75d07 Update to libuv 1.7.3 #3274 2015-09-01 19:23:13 -04:00
Florian Walch
544ec08102 CMake: Allow configuring all DEPS_* variables in third-party. #3080
Previously, only DEPS_INSTALL_DIR could be configured.
2015-07-22 18:27:07 +03:00
Michael Reed
ff3175c4cd deps: Don't pin dependencies
This effectively reverts 585e5d32a3

The pinning was done at a time when `lua_cliargs` caused test failures,
so an older version which didn't was pinned.  We're now using the latest
version (2.5-1), so the cause of those failures were presumably fixed.
2015-07-18 15:52:15 -04:00
Michael Reed
b8bfc0c736 deps: Update busted: 2.0 rc8 -> 2.0 rc10
This removes the dependency on ansicolors, see [1]:

See [2] for a changelog between the two versions.

[1]: https://github.com/Olivine-Labs/busted/pull/373
[2]: https://github.com/Olivine-Labs/busted/compare/v2.0.rc8-0...a6233a277da4e118f663606d54da8df88a27c076
2015-07-18 15:52:15 -04:00
Florian Walch
bac2700e2f CMake: Allow overriding third-party install prefix. 2015-07-08 07:42:16 -03:00
Justin M. Keyes
943c7479c7 build: depend on bleeding-edge luarocks #2739
Recent luarocks adds support for these env vars:
  http_proxy
  https_proxy
  no_proxy

Closes #2482

Changes since previous luarocks version (27 Aug 2014):

  git log --oneline 0587afbb5fe8ceb2f2eea16f486bd6183bf02f29..HEAD

  5d8a165 Merge pull request #371 from ignacio/proxies
  4462ca5 Add `luarocks config` command for querying LuaRocks settings.
  b80244b Merge branch 'master' of https://github.com/keplerproject/luarocks
  dd6f0e7 Update lmathx used for testing Lua 5.3
  70c7577 Merge pull request #366 from Tieske/windows_exitcode
  11b8b48 fixes #365
  0d071fa Back to scm
  7bff020 Mark release 2.2.2
  2f9c115 Merge branch 'master' of https://github.com/keplerproject/luarocks
  9736020 Install .md files as docs
  97b98bf Clip string.gsub results to just one when redacting url.
  2a0a9fa Merge pull request #359 from ignacio/redact_verbose
  968e963 Redact api tokens when using --verbose flag
  9aa5d05 Update upload URL as well.
  cda43ce Merge branch 'master' of https://github.com/keplerproject/luarocks
  022c87d MoonRocks → LuaRocks.org transition complete!
  7b6efb9 Trust the user :)
  2c536b4 Deal with 'no_proxy' env var
  f022fe0 Drop use of config.proxy
  b6b6754 Merge pull request #354 from Tieske/pe_parser
  460e42d update to version 0.3
  2ee6bd7 Merge pull request #349 from ignacio/build_only_deps
  15ad97b Address issues spotted in the review
  6b350de Adds --only-deps flag to install command
  6dd402b Adds new file (fetch/git_https.lua) to Makefile.setup.inc
  46f8ad6 Merge pull request #350 from jszakmeister/add-git-https-support
  989347e Add git+https support.
  0f67be5 Adds --only-deps flag to the 'build' command.
  0fe8556 Update function documentation, as suggested by @ignacio in #347.
  0679559 Decided to step back in turn this into a warning. `luarocks list` on an empty ~/.luarocks is a valid use case.
  40f9173 Fail when given an invalid tree.
  6d5dfcd Fix crash on `luarocks --tree=/path list`. Closes #347.
  1fcf354 Add test that checks for error in default sysconfig. See #346.
  3ce554c Restore comment about second return, but put it in the right function. https://github.com/keplerproject/luarocks/pull/346#discussion_r28008668
  0e3a052 Merge pull request #346 from Tieske/bad_config
  c66a88e bail out on bad config files, fixes #228
  79addc7 Continuing slowly. Distracted by code golf. :)
  58fb6b9 Merge branch 'master' of https://github.com/keplerproject/luarocks
  ed1f916 Starting to port test suite from Unix shell to Lua.
  6f87c47 Merge pull request #343 from xpol/master
  cbde573 And also hide the startup logo for RC.
  5cb4aa7 Merge branch 'master' of https://github.com/keplerproject/luarocks
  303cca7 Add AppVeyor badge
  ad8ba47 Merge pull request #335 from ignacio/appveyor
  a52b5ca Merge branch 'master' of https://github.com/keplerproject/luarocks
  6251735 Add Coveralls coverage badge
  2fcc0cc Add options to hide the MSVC tools' startup logo.
  ff68e97 Fallback for platform variable
  e31c46b Improved the CI scripts
  050d656 Fix summary detection in long paragraphs
  4ad1f1a Remove failing test. Try this some other time.
  db81c2e Force package to be in cache.
  303628a Add more simple tests.
  8d6a9e3 Merge branch 'master' of https://github.com/keplerproject/luarocks
  5b45de2 More small tests.
  066cda4 Merge pull request #341 from keplerproject/add-travis
  2639401 Make localhost a known host.
  a549c6d Try not to block checking server identification.
  7c8e527 Let's see if Travis allow sftp'ing to localhost.
  98e0979 Merge branch 'master' of https://github.com/keplerproject/luarocks
  5f293dd Remove debugging print.
  ed02691 Add trivial tests for `luarocks upload`
  b4ea2a1 Merge pull request #340 from xpol/master
  b9789f3 Revert incorrect remove of cmake_generator support. Only windows (msvc) default cmake_generator are removed.
  a19af6d luacov-coveralls overwrites luacov.report.out!
  1b5bbfc luacov-coveralls did not exit with 0?
  df08baf Run luacov-coveralls from $testing_dir
  f3aaee7 Avoid tests that mess with the testing environment.
  836898f Let's try Coveralls
  b5244be Merge branch 'master' of https://github.com/keplerproject/luarocks
  30430cf Don't overwrite --detailed when given by the user.
  19ca56c Actually direct users to the bug tracker
  57c838e Merge branch 'master' of https://github.com/keplerproject/luarocks
  5495f3c A missing CWD returns "" for lfs.current_dir() on Ubuntu
  db90cb4 Really test for missing parameters.
  d3d74bf A missing CWD returns "" for fs.current_dir on Ubuntu...
  a027595 Let's try harder to fail if CWD does not exist.
  876d9c8 Fix inconsistency in --homepage flag in `luarocks doc` and `luarocks write_rockspec`.
  294e08f Fix --lib flag (and my last commit goof...)
  62d4e05 Fix tests: new flag parser detected invalid flags in the testsuite.
  7f7c006 Add support for space in long option assignments.
  68aa7ae Merge branch 'master' of https://github.com/keplerproject/luarocks
  e869c09 Fail nicely if CWD does not exist. Fixes #147.
  ae51a3c Fix confusing error when unpack fails due to network error
  93cdd54 Adds integration with AppVeyor
  28ade76 Fixes #332.
  51ea074 Expose platform and processor to home config files.
  a02a53a Merge branch 'master' of https://github.com/keplerproject/luarocks
  4c96972 Don't use user tree when running as root. Fixes #303.
  f15e49d Merge pull request #330 from mpeterv/hg-support
  9567ac5 Merge pull request #329 from mpeterv/persist-refactor
  20eb947 Improve hg support
  cf19178 Refactor persist.save_from_table
  3c7c472 Refactor persist.load_into_table
  603b0ea Merge branch 'master' of https://github.com/keplerproject/luarocks
  be3c52d Add extra smartness to configure to check that the user-given flag seems correct. Closes #293.
  d820069 Merge pull request #326 from mpeterv/fix-redact-api
  8739847 Merge branch 'master' of https://github.com/keplerproject/luarocks
  5db7c54 Merge branch 'xpol-master'
  7d22ee5 Open file in 'rb
  90586f6 Merge branch 'master' of https://github.com/keplerproject/luarocks
  bdf218b Remove commented code after remove cfg.cmake_generator.
  b5e2539 Better cmake support.
  df332f6 Fix url redacting when Luasocket is used
  88a903a Add logo :)
  6e21673 Try the one we have as `lua` first!
  4e9a0e3 This is for Makefile.luarocks only.
  ccab32f Merge branch 'new-makefile'
  855259b New set of Makefiles for self-upgrade.
  ff6fdfc Ignore more files.
  92d6363 Make sure suffix is produced when installing via rock (see #323) and copy over site_config.lua, in case we're installing to a different prefix (see https://sourceforge.net/p/luarocks/mailman/message/33608257/)
  dc5f200 Make it a bit more robust.
  4347dc7 Redact API URL to hide API key.
  650c8ae Back to our regularly scheduled programming
  8649a4e Release LuaRocks 2.2.1
  c7a704a Add test files that were not committed before.
  463ee89 Don't crash when modules table is missing.
  d110857 Use the system-installed stat.
  0f9d259 Test success of patching in `unpack`. Closes #316. Includes test cases for the test suite! Yay!
  9a9caf8 We're always using the internal patch module. See #316.
  c9cc478 All 5.x versions of Lua share the same license.
  92c7acb Clarify that runtime support is optional.
  5f3d390 Don't crash when asking for help on invalid cmd.
  46f2d25 Code cleanups suggested by luacheck.
  7fe62f1 Remove unused assignment.
  53e0c65 Direct users to the bug tracker
  2013547 Support both --lua-version and --with-lua-version. Error messages were even already using it by accident!
  48847a4 Support more file extensions as source files.
  23afae6 Merge branch 'master' of https://github.com/keplerproject/luarocks
  c54cbfc Fix behavior of `luarocks pack` on Windows. It was failing when a path contained spaces due to lack of quoting. Closes #308.
  7f6320c Merge pull request #309 from mpeterv/unused_variables
  500741f Removed some unused and global variables
  113ada0 Merge branch 'master' of https://github.com/keplerproject/luarocks
  9204178 Discard excess characters when a tool gives out an octal mode string that's too long. Fixes #53.
  aa4e0d3 Merge pull request #298 from seclorum/master
  9702239 Use updated LuaFileSystem for Lua 5.3
  0f1c937 Updates for Lua 5.3 compatibility
  8d6845e Make conversion more robust for Lua 5.3
  d98c3e0 Make it more robust. (I _think_ win32 needs something similar, but there's the complication of drive letters so I won't touch it now without proper testing.)
  8d588f9 Catch error if filename is a directory
  1885a7f Improve error checking
  f74346e Do not pack scm versions
  cd99315 Fix search of lua interpreter. Closes #301.
  4c503eb Update stdlib for 5.3 (thought I had this in the previous commit!)
  c5501d4 Merge branch 'master' of https://github.com/keplerproject/luarocks
  de654b3 Updates for Lua 5.3 support
  4636244 use cprint version compatible with Lua 5.3
  fc6d30d Update stdlib for Lua 5.3 compatibility
  76e5515 Add Lua 5.3 to the test matrix
  9ab9988 Add test that catches #228.
  0ebdcd4 Updates to testing infrastructure (use new luasec, luacov)
  e7f9680 Error out on bad config files. Alternative implementation to the one given by @Tieske, following discussion in #260. Closes #260. Closes #228.
  02e8bbd Safer guards for OSX Deployment target selection..
  c4558a3 OSX 10.10 Yosemite sw_vers update
  db46b22 Apply change suggested by @siffiejoe. Thanks @catwell for catching this! Closes #295.
  1a1c407 Add test for #295.
  8bbf02e Make test suite detect crashes on tests that should fail gracefully.
  7a7c124 Add check for Fedora systems. Closes #289.
  723bf99 Isolate the convenience hack, for readability.
  a35dd43 Silence complaints from `luarocks upload`. Closes #292.
  af679a9 Fix typo. Closes #294.
  453179d Provide a fallback for when the version number is 'scm', to avoid breaking Windows default paths (which assume something like c:\luarocks\2.2\ ) Closes #288.
  88ea74e Make code more resilient.
  0467eba Merge branch 'master' of https://github.com/keplerproject/luarocks
  8278ed2 Add flag to enable/disable SSL cert check. We disabled SSL certificate checks for wget and curl a while ago, when we first added https repositories. We'll keep the check disabled by default for now, but this adds a config option, `check_certificates=true` that can be used in your config.lua.
  af19063 Don't report WIP versions as releases.
  d15e99f Merge pull request #285 from mpeterv/fix-lint
  86ba23c Fix `luarocks lint`.
  e5cd7a9 Add --outdated as a flag to `luarocks list`. A variation of the feature suggested in #282.
  f0d66ae Support per-field version checking. This will allow us to add fields and bump rockspec version numbers in a well-behaved manner.
2015-05-27 10:28:28 -04:00
Rui Abreu Ferreira
8ef5a61dd6 cmake: Use cmake -E touch instead of touch #2730
CMake has a portable touch command using cmake -E touch, use
it instead of calling touch that is only available in Unix.
2015-05-24 02:22:32 -04:00