summaryrefslogtreecommitdiff
path: root/rockspecs.lua
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2013-01-08 19:33:39 +0000
committerReuben Thomas <rrt@sc3d.org>2013-01-08 19:33:39 +0000
commitd2db8f840b10d86397082150dae04e613ed23f98 (patch)
treeb132e70479808556b662f90c4038a6e651eb3875 /rockspecs.lua
parent7a011b28996890121a5e47d689e974577675442d (diff)
downloadlrexlib-d2db8f840b10d86397082150dae04e613ed23f98.tar.gz
Simplify build system, and release directly from git
Diffstat (limited to 'rockspecs.lua')
-rw-r--r--rockspecs.lua21
1 files changed, 10 insertions, 11 deletions
diff --git a/rockspecs.lua b/rockspecs.lua
index 3fe2615..d95e647 100644
--- a/rockspecs.lua
+++ b/rockspecs.lua
@@ -1,31 +1,30 @@
-local flavours = {"PCRE", "POSIX", "oniguruma", "TRE", "GNU"}
-
-- Rockspec data
-- Variables to be interpolated:
--
-- flavour: regex library
-- version
--- md5sum: checksum of distribution tarball
--- When Lua 5.1 support is dropped, use an env argument with loadfile
--- instead of wrapping in a table
+local flavours = {"PCRE", "POSIX", "oniguruma", "TRE", "GNU"}
+local version_dashed = version:gsub ("%.", "-")
+
+-- FIXME: When Lua 5.1 support is dropped, use an env argument with
+-- loadfile instead of wrapping in a table
return {
default = {
package = "Lrexlib-"..flavour,
version = version.."-1",
source = {
- url = "https://github.com/downloads/rrthomas/lrexlib/lrexlib-"..version..".zip",
- md5 = md5sum
+ url = "git://github.com/rrthomas/zee.git",
+ tag = "rel-"..version_dashed,
},
description = {
summary = "Regular expression library binding ("..flavour.." flavour).",
detailed = [[
- Lrexlib is a regular expression library for Lua 5.1 and 5.2, which
- provides bindings for several regular expression libraries.
- This rock provides the ]]..flavour..[[ bindings.
- ]],
+Lrexlib is a regular expression library for Lua 5.1 and 5.2, which
+provides bindings for several regular expression libraries.
+This rock provides the ]]..flavour..[[ bindings.]],
homepage = "http://github.com/rrthomas/lrexlib",
license = "MIT/X11"
},