-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from osch/master
luarocks rockspec for development etc
- Loading branch information
Showing
3 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package = "oocairo" | ||
version = "scm-0" | ||
local versionNumber = version:gsub("^(.*)-.-$", "%1") | ||
source = { | ||
url = "https://github.com/awesomeWM/oocairo/archive/master.zip", | ||
dir = "oocairo-master", | ||
} | ||
description = { | ||
summary = "Cairo bindings for lua ", | ||
homepage = "https://github.com/awesomeWM/oocairo", | ||
license = "MIT/X11", | ||
detailed = [[ | ||
Lua-OOCairo provides Lua with full access to the Cairo vector graphics API. | ||
It can be used for drawing onto bitmap images and saving the resulting files | ||
in PNG format, or for generating files in vector formats like SVG and PDF. | ||
]], | ||
} | ||
dependencies = { | ||
"lua >= 5.1, < 5.4", | ||
} | ||
external_dependencies = { | ||
CAIRO = { | ||
header = "cairo/cairo.h", | ||
library = "cairo", | ||
} | ||
} | ||
|
||
build = { | ||
type = "builtin", | ||
modules = { | ||
oocairo = { | ||
defines = { | ||
"VERSION=\""..versionNumber.."\"" | ||
}, | ||
sources = { | ||
"oocairo.c", | ||
}, | ||
libraries = { | ||
"cairo" | ||
}, | ||
incdirs = { | ||
"$(CAIRO_INCDIR)/cairo" | ||
}, | ||
libdirs = { | ||
"$(CAIRO_LIBDIR)" | ||
}, | ||
}, | ||
} | ||
} |
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