build-tool 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. data.tar.gz.sig +0 -0
  2. data/History.txt +14 -0
  3. data/Manifest.txt +5 -36
  4. data/lib/build-tool.rb +1 -1
  5. data/lib/build-tool/build-system/autoconf.rb +26 -11
  6. data/lib/build-tool/build-system/base.rb +7 -0
  7. data/lib/build-tool/build-system/custom.rb +0 -4
  8. data/lib/build-tool/build-system/qt.rb +6 -0
  9. data/lib/build-tool/cfg/lexer.rb +49 -0
  10. data/lib/build-tool/cfg/lexer.rex +19 -0
  11. data/lib/build-tool/cfg/node.rb +4 -0
  12. data/lib/build-tool/cfg/parser.rb +495 -401
  13. data/lib/build-tool/cfg/parser.y +34 -2
  14. data/lib/build-tool/cfg/visitor.rb +46 -6
  15. data/lib/build-tool/commands.rb +7 -4
  16. data/lib/build-tool/commands/build.rb +3 -0
  17. data/lib/build-tool/commands/configure.rb +5 -0
  18. data/lib/build-tool/commands/ctags.rb +6 -0
  19. data/lib/build-tool/commands/environments/list.rb +5 -0
  20. data/lib/build-tool/commands/environments/set.rb +6 -0
  21. data/lib/build-tool/commands/fetch.rb +8 -0
  22. data/lib/build-tool/commands/files.rb +7 -0
  23. data/lib/build-tool/commands/gc.rb +4 -0
  24. data/lib/build-tool/commands/history.rb +7 -0
  25. data/lib/build-tool/commands/info.rb +2 -0
  26. data/lib/build-tool/commands/install.rb +3 -1
  27. data/lib/build-tool/commands/lsfeatures.rb +3 -0
  28. data/lib/build-tool/commands/modules/info.rb +15 -0
  29. data/lib/build-tool/commands/modules/list.rb +8 -3
  30. data/lib/build-tool/commands/modules/shell.rb +1 -1
  31. data/lib/build-tool/commands/rebase.rb +6 -0
  32. data/lib/build-tool/commands/recipes.rb +0 -4
  33. data/lib/build-tool/commands/recipes/add.rb +45 -0
  34. data/lib/build-tool/commands/recipes/incoming.rb +66 -0
  35. data/lib/build-tool/commands/recipes/info.rb +4 -0
  36. data/lib/build-tool/commands/recipes/install.rb +11 -1
  37. data/lib/build-tool/commands/recipes/list.rb +2 -0
  38. data/lib/build-tool/configuration.rb +3 -0
  39. data/lib/build-tool/module.rb +27 -3
  40. data/lib/build-tool/vcs/archive.rb +58 -30
  41. data/lib/build-tool/vcs/base.rb +14 -0
  42. data/lib/build-tool/vcs/mercurial.rb +113 -0
  43. data/lib/build-tool/vcs/svn.rb +20 -2
  44. data/lib/mj/error.rb +7 -0
  45. data/lib/mj/vcs/git.rb +133 -0
  46. metadata +9 -40
  47. metadata.gz.sig +2 -3
  48. data/recipes/kde/custom/qt/qtscriptgenerator/compile.sh +0 -77
  49. data/recipes/kde/custom/qt/qtscriptgenerator/configure.sh +0 -70
  50. data/recipes/kde/custom/qt/qtscriptgenerator/install.sh +0 -39
  51. data/recipes/kde/custom/scripting/pyqt4/compile.sh +0 -10
  52. data/recipes/kde/custom/scripting/pyqt4/configure.sh +0 -14
  53. data/recipes/kde/custom/scripting/pyqt4/install.sh +0 -10
  54. data/recipes/kde/custom/scripting/sip/compile.sh +0 -10
  55. data/recipes/kde/custom/scripting/sip/configure.sh +0 -13
  56. data/recipes/kde/custom/scripting/sip/install.sh +0 -10
  57. data/recipes/kde/files/finish_installation.sh +0 -16
  58. data/recipes/kde/files/kde4.desktop +0 -22
  59. data/recipes/kde/files/xsession +0 -93
  60. data/recipes/kde/info.yaml +0 -10
  61. data/recipes/kde/kde-bindings.recipe +0 -22
  62. data/recipes/kde/kde-core.recipe +0 -104
  63. data/recipes/kde/kde-devel.recipe +0 -38
  64. data/recipes/kde/kde-finance.recipe +0 -17
  65. data/recipes/kde/kde-graphics.recipe +0 -27
  66. data/recipes/kde/kde-kdevelop.recipe +0 -116
  67. data/recipes/kde/kde-l10n.recipe +0 -14
  68. data/recipes/kde/kde-multimedia.recipe +0 -31
  69. data/recipes/kde/kde-network.recipe +0 -55
  70. data/recipes/kde/kde-office.recipe +0 -28
  71. data/recipes/kde/kde-plasma.recipe +0 -117
  72. data/recipes/kde/kde-qt.recipe +0 -122
  73. data/recipes/kde/kde-scripting.recipe +0 -63
  74. data/recipes/kde/kde-support.recipe +0 -73
  75. data/recipes/kde/kde-utils.recipe +0 -22
  76. data/recipes/kde/kde-webdev.recipe +0 -41
  77. data/recipes/kde/recipe +0 -155
  78. data/recipes/kde/recipe-local +0 -146
  79. data/recipes/kde/settings.yaml +0 -69
  80. data/recipes/kde43/info.yaml +0 -10
  81. data/recipes/kde43/recipe +0 -256
  82. data/recipes/kde43/recipe-local +0 -146
  83. data/recipes/kde43/settings.yaml +0 -32
@@ -1,122 +0,0 @@
1
- #############################################################################
2
- # SERVER DEFINITIONS
3
- #############################################################################
4
- server "qt.gitorious.org"
5
- protocol "git"
6
- host "qt.gitorious.org"
7
- end
8
-
9
- server "git.freedesktop.org"
10
- protocol "git"
11
- host "git.freedesktop.org"
12
- end
13
-
14
- #############################################################################
15
- # REPOSITORIES
16
- #############################################################################
17
- repository "kdeqt.gitorious.org"
18
- use server "gitorious.org"
19
- path "+kde-developers/qt/kde-qt.git"
20
- end
21
-
22
- repository "poppler.freedesktop.org"
23
- use server "git.freedesktop.org"
24
- path "git/poppler/poppler"
25
- end
26
-
27
- #############################################################################
28
- # Qt
29
- #############################################################################
30
- environment qt < default
31
- var CMAKE_PREFIX_PATH prepend "<%= settings['QT_PREFIX'] %>"
32
- var KDEDIRS prepend "<%= settings['QT_PREFIX'] %>"
33
- var LD_LIBRARY_PATH prepend "<%= settings['QT_PREFIX'] %>/lib<%= settings['LIB_SUFFIX'] %>"
34
- var MANPATH prepend "<%= settings['QT_PREFIX'] %>/share/man"
35
- var PATH prepend "<%= settings['QT_PREFIX'] %>/bin"
36
- var PKG_CONFIG_PATH prepend "<%= settings['QT_PREFIX'] %>/lib<%= settings['LIB_SUFFIX'] %>/pkgconfig"
37
- var XDG_DATA_DIRS prepend "<%= settings['QT_PREFIX'] %>/share"
38
- var QTDIR set "<%= settings['QTDIR'] %>"
39
- end
40
-
41
- module qt TEMPLATE
42
- install-prefix "<%= settings['QT_PREFIX'] %>"
43
- build-prefix "<%= settings['BUILD_DIR'] %>"
44
- use environment qt
45
- end
46
-
47
- # The configure options come from the README.kde-qt file from
48
- # <git://gitorious.org/+kde-developers/qt/kde-qt.git>. In case of trouble
49
- # check for changes there.
50
- # -developer-build -> Activate addition qt-internal debug stuff.
51
- # -nomake-examples -> Do not compile the examples
52
- # -nomake-demos -> Do not compile the demos
53
- #
54
- # Add the following options if you like.
55
- # -no-phonon # To not compile phonon.
56
- # -no-exception # is gone! You will lose QXmlPattern which means
57
- # # qtscriptgenerator, some plasma stuff and koffice will
58
- # # not compile.
59
- # -declarative # Build the declarative module.
60
- module "qt/qt" < qt
61
- build-system qt
62
- option flags "-no-phonon-backend -developer-build -debug -fast -no-separate-debug-info -nomake examples -nomake demos -confirm-license -opensource -libdir <%= settings['QT_PREFIX'] %>/lib<%= settings['LIB_SUFFIX'] %> -plugindir <%= settings['QT_PREFIX'] %>/lib<%= settings['LIB_SUFFIX'] %>/plugins"
63
- end
64
- use environment default
65
- use repository "kdeqt.gitorious.org"
66
- vcs git
67
- # Add the nokia qt repository as a external
68
- remote "qtsoftware"
69
- use server "qt.gitorious.org"
70
- end
71
- end
72
- # The remote branch we rebase against.
73
- remote-path "origin/master"
74
- end
75
-
76
- module "qt/qimageblitz" < qt
77
- use environment qt
78
- use build-system cmake
79
- use vcs git-svn
80
- use repository kde
81
- remote-path "kdesupport/qimageblitz"
82
- end
83
-
84
- module "qt/qca2" < qt
85
- use environment qt
86
- use build-system cmake
87
- use vcs git-svn
88
- use repository kde
89
- remote-path "kdesupport/qca"
90
- end
91
-
92
- module "qt/qtscriptgenerator" < qt
93
- repository "qt-labs"
94
- use server "gitorious.org"
95
- path "qt-labs/qtscriptgenerator.git"
96
- end
97
- use vcs git
98
- build-system custom
99
- inplace
100
- end
101
- remote-path "4.6"
102
- end
103
-
104
- module "qt/poppler" < qt
105
- use environment qt
106
- use build-system cmake
107
- use repository "poppler.freedesktop.org"
108
- use vcs git
109
- remote-path "master"
110
- end
111
-
112
- module "qt/qjson" < qt
113
- use environment qt
114
- use build-system cmake
115
- repository "qt-qjson"
116
- use server "gitorious.org"
117
- path "qjson/qjson.git"
118
- end
119
- use vcs git
120
- remote-path "master"
121
- end
122
-
@@ -1,63 +0,0 @@
1
- #############################################################################
2
- # KDE SCRIPTING SUPPORT
3
- #############################################################################
4
- #
5
- # This recipe contains the requirements needed for the kde scripting support.
6
-
7
- feature "python"
8
-
9
- short description "KDE Python scripting support"
10
-
11
- #############################################################################
12
- # SERVER DEFINITIONS
13
- #############################################################################
14
- server "riverbankcomputing"
15
- protocol "http"
16
- host "www.riverbankcomputing.com"
17
- path "static/Downloads"
18
- end
19
-
20
- #############################################################################
21
- # REPOSITORIES
22
- #############################################################################
23
- repository "riverbankcomputing"
24
- use server "riverbankcomputing"
25
- end
26
-
27
- #############################################################################
28
- # SCRIPTING
29
- #############################################################################
30
- environment kde
31
- var PYTHONPATH prepend "<%= settings['KDE_PREFIX'] %>/lib<%= settings['LIB_SUFFIX'] %>/python2.6/site-packages"
32
- end
33
-
34
- module scripting TEMPLATE
35
- install-prefix "<%= settings['KDE_PREFIX'] %>"
36
- build-prefix "<%= settings['BUILD_DIR'] %>"
37
- use environment kde
38
- end
39
-
40
- module "scripting/sip" < scripting
41
- use repository "riverbankcomputing"
42
- use vcs archive
43
- # remote-path "sip4/sip-4.9.3.tar.gz"
44
- remote-path "sip4/sip-4.10.1.tar.gz"
45
- build-system custom
46
- option PYTHON_VERSION "<%= settings['PYTHON_VERSION'] %>"
47
- option LIB_SUFFIX "<%= settings['LIB_SUFFIX'] %>"
48
- inplace
49
- end
50
- end
51
-
52
- module "scripting/pyqt4" < scripting
53
- use repository "riverbankcomputing"
54
- use vcs archive
55
- remote-path "PyQt4/PyQt-x11-gpl-4.7.2.tar.gz"
56
- build-system custom
57
- option PYTHON_VERSION "<%= settings['PYTHON_VERSION'] %>"
58
- option LIB_SUFFIX "<%= settings['LIB_SUFFIX'] %>"
59
- inplace
60
- end
61
- end
62
-
63
- end
@@ -1,73 +0,0 @@
1
- #############################################################################
2
- # KDESUPPORT RECIPE
3
- #############################################################################
4
-
5
- #############################################################################
6
- # SERVER
7
- #############################################################################
8
- environment kdesupport < qt
9
- var CMAKE_PREFIX_PATH prepend "<%= settings['KDESUPPORT_PREFIX'] %>"
10
- var KDEDIRS prepend "<%= settings['KDESUPPORT_PREFIX'] %>"
11
- var LD_LIBRARY_PATH prepend "<%= settings['KDESUPPORT_PREFIX'] %>/lib<%= settings['LIB_SUFFIX'] %>"
12
- var PATH prepend "<%= settings['KDESUPPORT_PREFIX'] %>/bin"
13
- var PKG_CONFIG_PATH prepend "<%= settings['KDESUPPORT_PREFIX'] %>/lib<%= settings['LIB_SUFFIX'] %>/pkgconfig"
14
- var STRIGI_PLUGIN_PATH prepend "<%= settings['KDESUPPORT_PREFIX'] %>/lib<%= settings['LIB_SUFFIX'] %>/strigi"
15
- var XDG_DATA_DIRS prepend "<%= settings['KDESUPPORT_PREFIX'] %>"
16
- end
17
-
18
- module kdesupport TEMPLATE
19
- build-prefix "<%= settings['BUILD_DIR'] %>"
20
- install-prefix "<%= settings['KDESUPPORT_PREFIX'] %>"
21
- use build-system cmake
22
- use environment kdesupport
23
- use repository kde-support
24
- use vcs git-svn
25
- end
26
-
27
- module "kdesupport/automoc" < kdesupport end
28
- module "kdesupport/polkit-qt" < kdesupport end
29
- module "kdesupport/soprano" < kdesupport end
30
- module "kdesupport/akonadi" < kdesupport end
31
- module "kdesupport/phonon" < kdesupport
32
- repository phonon
33
- use server "kdedevelopers.gitorious.org"
34
- path "phonon/phonon.git"
35
- end
36
- use vcs git
37
- remote-path "master"
38
- end
39
-
40
- module "kdesupport/dbusmenu-qt" < kdesupport
41
- repository dbusmenu-qt
42
- use server "kdedevelopers.gitorious.org"
43
- path "dbusmenu/dbusmenu-qt.git"
44
- end
45
- use vcs git
46
- remote-path "master"
47
- end
48
-
49
- module "kdesupport/strigi" < kdesupport end
50
- module "kdesupport/attica" < kdesupport end
51
-
52
- module "kdesupport/oscaf" < kdesupport
53
- repository "oscaf"
54
- server "oscaf"
55
- protocol "https"
56
- host "oscaf.svn.sourceforge.net"
57
- path "svnroot/oscaf"
58
- end
59
- path "trunk"
60
- end
61
- remote-path "ontologies"
62
- end
63
-
64
- module "kdesupport/taglib" < kdesupport
65
- build-system cmake
66
- # These options are needed to compile amarok. See amaroks README file
67
- # for more information.
68
- option WITH_MP4 "1"
69
- option WITH_ASF "1"
70
- end
71
- end
72
- module "kdesupport/taglib-extras" < kdesupport end
73
-
@@ -1,22 +0,0 @@
1
- #############################################################################
2
- # UTILS STUFF
3
- #############################################################################
4
- module "utils/kdeutils" < kde
5
- remote-path "kdeutils"
6
- end
7
-
8
- module "utils/yakuake" < kde
9
- use repository kde
10
- remote-path "extragear/utils/yakuake"
11
- end
12
-
13
- module "utils/kdiff3" < kde
14
- use repository kde
15
- remote-path "extragear/utils/kdiff3"
16
- end
17
-
18
- module "utils/krusader" < kde
19
- use repository kde
20
- remote-path "extragear/utils/krusader"
21
- end
22
-
@@ -1,41 +0,0 @@
1
- #############################################################################
2
- # KDEVELOP IDE
3
- #############################################################################
4
-
5
- module kdewebdev < kde TEMPLATE
6
- use environment kdevelop
7
- use repository kde
8
- install-prefix "<%= settings['KDEDEVEL_PREFIX'] %>"
9
- end
10
-
11
-
12
- module "webdev/quanta" < kdewebdev
13
- use vcs git
14
- repository "webdev-quanta"
15
- use server "kdedevelopers.gitorious.org"
16
- path "kdevelop/quanta.git"
17
- end
18
- remote-path "master"
19
- end
20
-
21
- module "webdev/php" < kdewebdev
22
- use vcs git
23
- repository "webdev-php"
24
- use server "kdedevelopers.gitorious.org"
25
- path "kdevelop/php.git"
26
- end
27
- remote-path "master"
28
- end
29
-
30
- module "webdev/php-docs" < kdewebdev
31
- use vcs git
32
- repository "webdev-php-docs"
33
- path "kdevelop/php-docs.git"
34
- use server "kdedevelopers.gitorious.org"
35
- end
36
- remote-path "master"
37
- end
38
-
39
- module "webdev/upload" < kdewebdev
40
- remote-path "extragear/sdk/kdevelop-plugins/upload"
41
- end
data/recipes/kde/recipe DELETED
@@ -1,155 +0,0 @@
1
- #############################################################################
2
- # GLOBAL SETTINGS
3
- #############################################################################
4
- log-directory "<%= settings['BUILD_DIR'] %>/log"
5
-
6
- build-system cmake
7
- option CMAKE_BUILD_TYPE "Debug"
8
- option CMAKE_CXXFLAGS "-Wall -pipe -O0"
9
- option CMAKE_VERBOSE_MAKEFILE "1"
10
- option LIB_SUFFIX "<%= settings['LIB_SUFFIX'] %>"
11
- end
12
-
13
- #############################################################################
14
- # SERVER DEFINITIONS
15
- #############################################################################
16
- server "svn.kde.org"
17
- protocol "svn"
18
- host "anonsvn.kde.org"
19
- path "home/kde"
20
- end
21
-
22
- server "gitorious.org"
23
- host "git://gitorious.org"
24
- end
25
-
26
- server "kdedevelopers.gitorious.org"
27
- host "git://gitorious.org"
28
- end
29
-
30
- #############################################################################
31
- # REPOSITORIES
32
- #############################################################################
33
- # The following complicated structure is needed to make the recipes for
34
- # releases and trunk look similar.
35
- repository "kde"
36
- use server "svn.kde.org"
37
- path "trunk"
38
- end
39
-
40
- repository "kde-core"
41
- use server "svn.kde.org"
42
- path "trunk/KDE"
43
- end
44
-
45
- repository "kde-support"
46
- use server "svn.kde.org"
47
- path "trunk"
48
- end
49
-
50
- repository "kde-icons"
51
- use server "svn.kde.org"
52
- path "trunk/kdesupport"
53
- end
54
-
55
-
56
- #############################################################################
57
- # DEFAULTS
58
- #############################################################################
59
- environment default
60
- var MAKEFLAGS set "<%= settings['MAKEFLAGS'] %>"
61
- var PATH set "<%= settings['PATH'] %>"
62
- var LD_LIBRARY_PATH set "<%= settings['LD_LIBRARY_PATH'] %>"
63
- var CMAKE_PREFIX_PATH set "<%= settings['CMAKE_PREFIX_PATH'] %>"
64
- var PKG_CONFIG_PATH set "<%= settings['PKG_CONFIG_PATH'] %>"
65
- var KDEDIRS set "<%= settings['KDEDIRS'] %>"
66
- var XDG_DATA_DIRS set "<%= settings['XDG_DATA_DIRS'] %>"
67
- var PYTHONPATH set "<%= settings['PYTHONPATH'] %>"
68
- end
69
-
70
- feature kdeqt
71
- short description "KDE Qt Repository"
72
- include "kde-qt.recipe"
73
- end # feature kdeqt
74
-
75
- feature support
76
- short description "KDE Support Modules"
77
- include "kde-support.recipe"
78
- end # feature support
79
-
80
- feature scripting
81
- short description "KDE Scripting Support"
82
- include "kde-scripting.recipe"
83
- end # feature scripting
84
-
85
- include "kde-core.recipe"
86
-
87
- feature multimedia
88
- short description "KDE Multimedia Applications"
89
- include "kde-multimedia.recipe"
90
- end # feature multimedia
91
-
92
- feature graphics
93
- short description "KDE Graphics Applications"
94
- include "kde-graphics.recipe"
95
- end # feature graphics
96
-
97
- feature network
98
- short description "KDE Network Applications"
99
- include "kde-network.recipe"
100
- end # feature network
101
-
102
- feature utils
103
- short description "KDE Utils"
104
- include "kde-utils.recipe"
105
- end # feature utils
106
-
107
- feature plasma
108
- short description "KDE Plasma"
109
- include "kde-plasma.recipe"
110
- end # feature plasma
111
-
112
- feature devel
113
- short description "KDE Development Tools (SDK)"
114
- include "kde-devel.recipe"
115
- end # feature devel
116
-
117
- feature kdevelop
118
- short description "KDevelop (IDE)"
119
- include "kde-kdevelop.recipe"
120
- end # feature kdevelop
121
-
122
- feature office
123
- short description "KDE Office Suite"
124
- include "kde-office.recipe"
125
- end # feature office
126
-
127
- feature bindings
128
- short description "KDE Language Bindings"
129
- include "kde-bindings.recipe"
130
- end # feature bindings
131
-
132
- feature l10n
133
- short description "KDE Localization"
134
- include "kde-l10n.recipe"
135
- end # feature l10n
136
-
137
- feature webdev
138
- short description "KDE Web Development (Quanta + KDevelop Plugins)"
139
- include "kde-webdev.recipe"
140
- end # feature webdev
141
-
142
- feature finance
143
- short description "KDE Finance Applications"
144
- include "kde-finance.recipe"
145
- end # feature finance
146
-
147
- #############################################################################
148
- # SOME ADDITIONAL STUFF
149
- #############################################################################
150
- # *TODO* namespace those module properly
151
- module kdeedu < kde end
152
- module kdegames < kde end
153
-
154
-
155
-