-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDeLuaPackaging.cmake
123 lines (101 loc) · 3.01 KB
/
DeLuaPackaging.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
include(My/Package)
my_package(
NAME "delua${DeLua_RELEASE}"
VERSION "${Lua_VERSION}"
CATEGORY "Interpreters"
CONTACT "Jürgen 'George' Sawinski <juergen.sawinski@mpinb.mpg.de>"
VENDOR "MPI f. Neurobiol. of Behavior — caesar, Bonn, Germany"
DESCRIPTION {
SUMMARY "Simple, extensible, embeddable programming language."
FULL "\
This is Lua ${Lua_VERSION}, released on ${Lua_DATE}.
> Lua is a powerful, efficient, lightweight, embeddable scripting language.
> It supports procedural programming, object-oriented programming, functional
> programming, data-driven programming, and data description.
Delua is the CMake'ified version of the Lua (http://www.lua.org) sources. It
may be used to build Lua binaries and packages on all major operating systems,
or can be embedded in other projects.
Minor adaptions to the original Lua sources (such as handling of the search
path) were made, and, a C++ interface (using exceptions) was added. For a full
list of modifications, see: https://github.com/jsawbbo/delua
"
}
LICENSE {
TAG "MIT"
FILE ${DeLua_SOURCE_DIR}/LICENSE
}
URL {
HOMEPAGE "https://github.com/jsawbbo/delua"
ABOUT "https://www.lua.org/about.html"
HELP "https://www.lua.org/docs.html"
}
ICON {
FILE "${DeLua_SOURCE_DIR}/lua/doc/logo.gif"
}
COMPONENTS {
# COMPONENT runtime {
# DEFAULT
# INSTALL YES
# DISPLAY_NAME "Runtime"
# BEGIN
# # sub-component....
# END
# }
# COMPONENT common-development
# INSTALL NO
# DISPLAY_NAME "Common development files"
# DEPENDS runtime
# BEGIN
# GROUP something
# DISPLAY_NAME Something
# END
# COMPONENT development
# INSTALL NO
# DISPLAY_NAME "Development files"
# DEPENDS runtime common-development
# COMPONENT documentation
# INSTALL NO
# DISPLAY_NAME "Documentation"
# DEPENDS runtime
}
)
#my_package(NSIS
#)
#
#my_package(DMG
#)
#
#my_package(RPM
#)
my_package(DEB COMMON
SECTION interpreters
)
my_package(DEB
DISTRIBUTION Ubuntu
DERIVATIVE TRUE
MAINTAINER "Juergen 'George' Sawinski <juergen.sawinski@mpinb.mpg.de>"
RELEASE "${DeLua_VERSION_PATCH}$<CODENAME>${DeLua_VERSION_TWEAK}"
DEPENDS "libc (>=2.35)"
COMPONENTS {
COMPONENT common {
NAME delua-common
SUFFIX OFF
ARCHITECTURE all
}
COMPONENT runtime {
SUFFIX OFF
DEPENDS common
SHLIBDEPS libc
# RECOMMENDS documentation
}
COMPONENT development {
SUFFIX dev
DEPENDS common runtime
# RECOMMENDS documentation
}
COMPONENT documentation {
SUFFIX doc
DEPENDS runtime
}
}
)