Created
July 24, 2016 17:46
-
-
Save donglixp/16722d232109832dfbe36b072539423e to your computer and use it in GitHub Desktop.
fbpython-0.1-1.rockspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- Copyright (c) 2014, Facebook, Inc. | |
-- All rights reserved. | |
-- | |
-- This source code is licensed under the BSD-style license found in the | |
-- LICENSE file in the root directory of this source tree. An additional grant | |
-- of patent rights can be found in the PATENTS file in the same directory. | |
-- | |
package = 'fbpython' | |
version = '0.1-1' | |
source = { | |
url = 'https://github.com/facebook/fblualib', | |
} | |
description = { | |
summary = 'FB Lua - Python Bridge', | |
detailed = [[ | |
XXX | |
]], | |
homepage = 'https://github.com/facebook/fblualib', | |
license = 'BSD', | |
} | |
supported_platforms = { | |
'unix', | |
} | |
dependencies = { | |
'penlight >= 1.3.1', | |
} | |
source = { | |
url = 'https://github.com/facebook/fblualib', | |
dir = 'fblualib/python', | |
} | |
build = { | |
type = 'command', | |
build_command = [[ | |
cmake -E make_directory build && | |
cd build && | |
cmake -DROCKS_PREFIX=$(PREFIX) \ | |
-DROCKS_LUADIR=$(LUADIR) \ | |
-DROCKS_LIBDIR=$(LIBDIR) \ | |
-DCMAKE_INSTALL_PREFIX:PATH=/afs/inf.ed.ac.uk/user/s14/s1478528/usr \ | |
-DCMAKE_C_COMPILER=/opt/rh/devtoolset-3/root/usr/bin/gcc -DCMAKE_CXX_COMPILER=/opt/rh/devtoolset-3/root/usr/bin/g++ \ | |
-DTHPP_INCLUDE_DIR=/afs/inf.ed.ac.uk/user/s14/s1478528/usr/include/thpp \ | |
-DTHPP_LIBRARY=/afs/inf.ed.ac.uk/user/s14/s1478528/usr/lib \ | |
.. && | |
$(MAKE) | |
]], | |
install_command = [[ | |
cd build && $(MAKE) install | |
]], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment