Skip to content

Commit 557bfca

Browse files
author
Ricky Cormier
committed
implemented debian packaging
1. Added support for debian packaging 2. Slight project restructuring to simplify packaging 3. Removed unnecessary trailing white space
1 parent 586eebb commit 557bfca

File tree

16 files changed

+97
-33
lines changed

16 files changed

+97
-33
lines changed

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
lua-lunitx (0.6.0) stable; urgency=low
2+
3+
* Initial packaging effort
4+
5+
-- Ricky Cormier <ricky@last.fm> Tue, 26 Jul 2011 22:08:05 +0000

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7

debian/control

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Source: lua-lunitx
2+
Section: unknown
3+
Priority: extra
4+
Maintainer: Ricky Cormier <ricky@last.fm>
5+
Build-Depends: debhelper (>= 7)
6+
Standards-Version: 3.7.3
7+
8+
Package: lua-lunitx
9+
Architecture: all
10+
Depends: ${shlibs:Depends}, ${misc:Depends}
11+
Description: Lunit is a unit testing framework for lua.
12+

debian/copyright

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
Copyright:
2+
3+
Copyright (c) 2004-2010 Michael Roth <mroth@nessie.de>
4+
5+
License:
6+
7+
Lunit License
8+
-------------
9+
10+
Lunit is written by Michael Roth <mroth@nessie.de> and is licensed
11+
under the terms of the MIT license reproduced below.
12+
13+
========================================================================
14+
15+
Copyright (c) 2004-2010 Michael Roth <mroth@nessie.de>
16+
17+
Permission is hereby granted, free of charge, to any person
18+
obtaining a copy of this software and associated documentation
19+
files (the "Software"), to deal in the Software without restriction,
20+
including without limitation the rights to use, copy, modify, merge,
21+
publish, distribute, sublicense, and/or sell copies of the Software,
22+
and to permit persons to whom the Software is furnished to do so,
23+
subject to the following conditions:
24+
25+
The above copyright notice and this permission notice shall be
26+
included in all copies or substantial portions of the Software.
27+
28+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
29+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
30+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
31+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
32+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
33+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
34+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
35+
36+
========================================================================
37+

debian/lua-lunitx.install

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lua/* usr/share/lua/5.1
2+

debian/rules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/make -f
2+
3+
export DH_VERBOSE=1
4+
5+
%:
6+
dh $@

debian/source/local-options

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tar-ignore = ".git"

lunit.lua renamed to lua/lunit.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
99
Copyright (c) 2004, 2006-2010 Michael Roth <mroth@nessie.de>
1010
11-
Permission is hereby granted, free of charge, to any person
11+
Permission is hereby granted, free of charge, to any person
1212
obtaining a copy of this software and associated documentation
1313
files (the "Software"), to deal in the Software without restriction,
1414
including without limitation the rights to use, copy, modify, merge,
1515
publish, distribute, sublicense, and/or sell copies of the Software,
1616
and to permit persons to whom the Software is furnished to do so,
1717
subject to the following conditions:
1818
19-
The above copyright notice and this permission notice shall be
19+
The above copyright notice and this permission notice shall be
2020
included in all copies or substantial portions of the Software.
2121
2222
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
@@ -58,16 +58,16 @@ local _G = _G
5858

5959
local lunit
6060

61-
if _VERSION >= 'Lua 5.2' then
61+
if _VERSION >= 'Lua 5.2' then
6262

6363
lunit = {}
6464
_ENV = lunit
65-
65+
6666
else
6767

6868
module("lunit")
6969
lunit = _M
70-
70+
7171
end
7272

7373

@@ -458,7 +458,7 @@ do
458458
end
459459
end
460460
end
461-
461+
462462
function lunit.module(name,seeall)
463463
local m = {}
464464
if seeall == "seeall" then
@@ -597,7 +597,7 @@ end
597597

598598

599599
local lunitpat2luapat
600-
do
600+
do
601601
local conv = {
602602
["^"] = "%^",
603603
["$"] = "%$",
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
1010
Copyright (c) 2006-2008 Michael Roth <mroth@nessie.de>
1111
12-
Permission is hereby granted, free of charge, to any person
12+
Permission is hereby granted, free of charge, to any person
1313
obtaining a copy of this software and associated documentation
1414
files (the "Software"), to deal in the Software without restriction,
1515
including without limitation the rights to use, copy, modify, merge,
1616
publish, distribute, sublicense, and/or sell copies of the Software,
1717
and to permit persons to whom the Software is furnished to do so,
1818
subject to the following conditions:
1919
20-
The above copyright notice and this permission notice shall be
20+
The above copyright notice and this permission notice shall be
2121
included in all copies or substantial portions of the Software.
2222
2323
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
@@ -53,16 +53,16 @@ lunit = require "lunit"
5353

5454
local lunit_console
5555

56-
if _VERSION >= 'Lua 5.2' then
56+
if _VERSION >= 'Lua 5.2' then
5757

5858
lunit_console = setmetatable({},{__index = _ENV})
5959
_ENV = lunit_console
60-
60+
6161
else
6262

6363
module( "lunit-console", package.seeall )
6464
lunit_console = _M
65-
65+
6666
end
6767

6868

@@ -94,7 +94,7 @@ local msgs = {}
9494
function begin()
9595
local total_tc = 0
9696
local total_tests = 0
97-
97+
9898
msgs = {} -- e
9999

100100
for tcname in lunit.testcases() do
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
and to permit persons to whom the Software is furnished to do so,
1818
subject to the following conditions:
1919
20-
The above copyright notice and this permission notice shall be
20+
The above copyright notice and this permission notice shall be
2121
included in all copies or substantial portions of the Software.
2222
2323
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
@@ -35,15 +35,15 @@ local lunit = require "lunitx"
3535

3636
lunit.console = require "lunit.console"
3737

38-
if _VERSION >= 'Lua 5.2' then
38+
if _VERSION >= 'Lua 5.2' then
3939

4040
lunit.selftest = lunit.module("lunit.selftest","seeall")
4141
_ENV = lunit.selftest
42-
42+
4343
else
4444

4545
module("lunit.selftest", package.seeall)
46-
46+
4747
end
4848

4949
local a_number = 123
@@ -59,14 +59,14 @@ local ipairs = ipairs
5959

6060
local module -- = module
6161

62-
if _VERSION >= 'Lua 5.2' then
62+
if _VERSION >= 'Lua 5.2' then
6363

6464
module = function (name, unk) _ENV = lunit.module(name) end
65-
65+
6666
else
6767

6868
module = _G.module
69-
69+
7070
end
7171

7272

@@ -748,7 +748,7 @@ function test_assert_number()
748748
end
749749

750750
function test_assert_string()
751-
assert_string( a_string )
751+
assert_string( a_string )
752752
assert_string( a_string, "A message" )
753753

754754
assert_error( function() assert_string( nil ) end)

0 commit comments

Comments
 (0)