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,70 +0,0 @@
1
- #!/bin/sh
2
-
3
- # Uncomment this line if you want to debug the script
4
- # set -x
5
-
6
- source_directory=$1
7
- build_directory=$(pwd)
8
-
9
- # Check the requirements
10
- if test "x${QTDIR}x" == "xx"; then
11
- echo "QTDIR has to be set for the qtscriptgenerator to build!";
12
- exit -1;
13
- fi
14
-
15
- echo "Creating the generator"
16
- if test -e $build_directory/generator; then
17
- if ! test -d $build_directory/generator; then
18
- echo "$build_directory/generator exists and is not a directory!" >&2;
19
- exit -1;
20
- fi
21
- else
22
- mkdir $build_directory/generator
23
- rc=$?
24
- if test $rc -ne 0; then
25
- echo "Could not create $build_directory/generator: $rc" >&2;
26
- exit -1;
27
- fi
28
- fi
29
-
30
- cd generator
31
-
32
- echo " - calling qmake"
33
- qmake $source_directory/generator/generator.pro
34
- rc=$?
35
- if test $rc -ne 0; then
36
- echo "qmake failed with error code: $rc" >&2;
37
- exit -1;
38
- fi
39
-
40
- echo "Generator created successfully"
41
- cd ..
42
-
43
- echo "Creating the bindings"
44
- if test -e $build_directory/qtbindings; then
45
- if ! test -d $build_directory/qtbindings; then
46
- echo "$build_directory/qtbindings exists and is not a directory!" >&2;
47
- exit -1;
48
- fi
49
- else
50
- mkdir $build_directory/qtbindings
51
- rc=$?
52
- if test $rc -ne 0; then
53
- echo "Could not create $build_directory/qtbindings: $rc" >&2;
54
- exit -1;
55
- fi
56
- fi
57
- cd qtbindings
58
-
59
- echo " - calling qmake"
60
- qmake $source_directory/qtbindings/qtbindings.pro
61
- rc=$?
62
- if test $rc -ne 0; then
63
- echo "qmake failed with error code: $rc" >&2;
64
- exit -1;
65
- fi
66
-
67
- echo "Bindings created successfully"
68
- cd ..
69
-
70
- exit 0
@@ -1,39 +0,0 @@
1
- #!/bin/sh
2
-
3
- # Uncomment this line if you want to debug the script
4
- # set -x
5
-
6
- source_directory=$1
7
- build_directory=$(pwd)
8
-
9
- # Check the requirements
10
- if test "x${QTDIR}x" == "xx"; then
11
- echo "QTDIR has to be set for the qtscriptgenerator to build!";
12
- exit -1;
13
- fi
14
-
15
- echo "Installing the bindings"
16
-
17
- # Try to determine the QT_INSTALL_PLUGINS value
18
- QT_INSTALL_PLUGINS=$(qmake -query QT_INSTALL_PLUGINS)
19
-
20
-
21
- echo " - copying plugins/scripts to $QT_INSTALL_PLUGINS"
22
- for file in $( ls plugins/script ); do
23
- if test ! -e $QT_INSTALL_PLUGINS/script/$file -o $file -nt $QT_INSTALL_PLUGINS/script/$file; then
24
- echo "Installing $file"
25
- cp plugins/script/$file $QT_INSTALL_PLUGINS/script
26
- else
27
- echo "Skipping $file"
28
- fi
29
- done
30
-
31
- rc=$?
32
- if test $rc -ne 0; then
33
- echo "cp failed with error code: $rc" >&2;
34
- exit -1;
35
- fi
36
-
37
- echo "Bindings successfully installed"
38
-
39
- exit 0
@@ -1,10 +0,0 @@
1
- #!/bin/sh
2
-
3
- # Uncomment this line if you want to debug the script
4
- # set -x
5
-
6
- source_directory=$1
7
- build_directory=$(pwd)
8
-
9
- echo " - calling make"
10
- make
@@ -1,14 +0,0 @@
1
- #!/bin/sh
2
-
3
- # Uncomment this line if you want to debug the script
4
- # set -x
5
-
6
- source_directory=$1
7
- build_directory=$(pwd)
8
-
9
- python ${source_directory}/configure.py \
10
- --confirm-license \
11
- --bindir=$INSTALL_PREFIX/bin \
12
- --destdir=$INSTALL_PREFIX/lib$LIB_SUFFIX/python$PYTHON_VERSION/site-packages \
13
- --sipdir=$INSTALL_PREFIX/share/sip \
14
- --plugin-destdir=$INSTALL_PREFIX/lib$LIB_SUFFIX/plugins
@@ -1,10 +0,0 @@
1
- #!/bin/sh
2
-
3
- # Uncomment this line if you want to debug the script
4
- # set -x
5
-
6
- source_directory=$1
7
- build_directory=$(pwd)
8
-
9
- echo "- making install"
10
- make install
@@ -1,10 +0,0 @@
1
- #!/bin/sh
2
-
3
- # Uncomment this line if you want to debug the script
4
- # set -x
5
-
6
- source_directory=$1
7
- build_directory=$(pwd)
8
-
9
- echo " - calling make"
10
- make
@@ -1,13 +0,0 @@
1
- #!/bin/sh
2
-
3
- # Uncomment this line if you want to debug the script
4
- # set -x
5
-
6
- source_directory=$1
7
- build_directory=$(pwd)
8
-
9
- python ${source_directory}/configure.py \
10
- -b $INSTALL_PREFIX/bin \
11
- -d $INSTALL_PREFIX/lib$LIB_SUFFIX/python$PYTHON_VERSION/site-packages \
12
- -v $INSTALL_PREFIX/share/sip \
13
- -e $INSTALL_PREFIX/include/python$PYTHON_VERSION
@@ -1,10 +0,0 @@
1
- #!/bin/sh
2
-
3
- # Uncomment this line if you want to debug the script
4
- # set -x
5
-
6
- source_directory=$1
7
- build_directory=$(pwd)
8
-
9
- echo "- making install"
10
- make install
@@ -1,16 +0,0 @@
1
- #!/bin/sh
2
-
3
-
4
- if test -e /etc/SuSE-brand; then
5
- file="<%= settings['KDE_PREFIX'] %>/share/apps/kwrited"
6
- if test -f $file; then
7
- echo "sudo chown 0 $file && sudo chmod u+s $file"
8
- sudo chown 0 $file && sudo chmod u+s $file
9
- fi
10
-
11
- file="<%= settings['KDE_PREFIX'] %>/lib<%= settings['LIB_SUFFIX'] %>/kde4/libexec/kcheckpass"
12
- if test -f $file; then
13
- echo "sudo chgrp shadow $file && sudo chmod g+s $file"
14
- sudo chgrp shadow $file && sudo chmod g+s $file
15
- fi
16
- fi
@@ -1,22 +0,0 @@
1
- # Standard sessions file
2
- #
3
- # This file is used to tell x display managers (xdm,gdm,kdm) how to start the
4
- # kde session.
5
- #
6
- # Copy this file to /usr/share/xsession. You have to configure kdm to use this
7
- # directory. See "<%= settings['KDE_PREFIX'] %>/share/config/kdm/kdmrc".
8
- # Search for SessionsDirs.
9
- #
10
- # This script expects a script mystartkde. See "files xsession". When both are
11
- # there a new session Type "KDE 4 Trunk" should be available from your X
12
- # Display Manager.
13
- [Desktop Entry]
14
- X-SuSE-translate=true
15
- Encoding=UTF-8
16
- Type=XSession
17
- Exec=<%= settings['KDE_PREFIX'] %>/bin/mystartkde
18
- TryExec=<%= settings['KDE_PREFIX'] %>/bin/startkde
19
- Name=KDE 4 Trunk (unstable)
20
- Comment=KDE Desktop Environment 4 Trunk (unstable)
21
-
22
-
@@ -1,93 +0,0 @@
1
- #!/bin/sh
2
- # vim:ft=sh
3
- # A script to start the kde workspace.
4
- #
5
- # You can use it in two ways. Just copy the content to the given path.
6
- #
7
- # 1. $HOME/.xsession
8
- # ------------------
9
- # Select "custom" session when logging in. This will use that script.
10
- #
11
- # 2. <%= settings['KDE_PREFIX'] %>/bin/mystartkde
12
- # See "files xsession" on how to use that. Make sure the script is executable.
13
-
14
-
15
- # Little helper function that adds to a path like environment variable. It
16
- # checks if the path is already there before doing that.
17
- function path_add
18
- {
19
- test -d $2 || return
20
-
21
- case "x${!1}x" in
22
- "xx")
23
- eval "${1}"="$2"
24
- ;;
25
-
26
- x*:$2:*x)
27
- # Value already part of var.
28
- ;;
29
-
30
- "x$2x")
31
- # Value already part of var.
32
- ;;
33
-
34
- x$2:*x)
35
- # Value already part of var.
36
- ;;
37
-
38
- x*:$2x)
39
- # Value already part of var.
40
- ;;
41
-
42
- *)
43
- eval "${1}=$2:${!1}"
44
- ;;
45
- esac;
46
- }
47
-
48
- # Initialize the vars from the setting file. This scripts is sourced after
49
- # your shell login files (bash_profile, profile ...). We override any setting
50
- # made there!
51
- CMAKE_PREFIX_PATH="<%= settings['CMAKE_PREFIX_PATH'] %>"
52
- LD_LIBRARY_PATH="<%= settings['LD_LIBRARY_PATH'] %>"
53
- PATH="<%= settings['PATH'] %>"
54
- PKG_CONFIG_PATH="<%= settings['PKG_CONFIG_PATH'] %>"
55
- PYTHONPATH="<%= settings['PYTHONPATH'] %>"
56
- XDG_DATA_DIRS="<%= settings['XDG_DATA_DIRS'] %>"
57
- unset STRIGI_PLUGIN_PATH
58
- unset KDEDIRS
59
-
60
- # Now add the necessary directories from the recipe. If they exist.
61
- for path in "<%= settings['QT_PREFIX'] %>" "<%= settings['KOFFICE_PREFIX'] %>" "<%= settings['KDEDEVEL_PREFIX'] %>" "<%= settings['KDE_PREFIX'] %>" "<%= settings['KDESUPPORT_PREFIX'] %>" ; do
62
- if test -d $path ; then
63
- path_add "CMAKE_PREFIX_PATH" $path;
64
- path_add "KDEDIRS" $path;
65
- path_add "LD_LIBRARY_PATH" $path/lib<%= settings['LIB_SUFFIX'] %>;
66
- path_add "PATH" $path/bin;
67
- path_add "PKG_CONFIG_PATH" $path/lib<%= settings['LIB_SUFFIX'] %>/pkgconfig;
68
- path_add "PYTHONPATH" $path/lib<%= settings['LIB_SUFFIX'] %>/python<%= settings['PYTHON_VERSION'] %>/site-packages;
69
- path_add "STRIGI_PLUGIN_PATH" $path/lib<%= settings['LIB_SUFFIX'] %>/strigi;
70
- path_add "XDG_DATA_DIRS" $path/share;
71
- fi
72
- done
73
-
74
- # Export the variables.
75
- export CMAKE_PREFIX_PATH
76
- export KDEDIRS
77
- export LD_LIBRARY_PATH
78
- export PATH
79
- export PKG_CONFIG_PATH
80
- export PYTHONPATH
81
- export STRIGI_PLUGIN_PATH
82
- export XDG_DATA_DIRS
83
-
84
- # Add $HOME/bin if it exists
85
- path_add "PATH" "$HOME/bin"
86
- path_add "PATH" "$HOME/local/bin"
87
-
88
- # Now start the standard kde login script.
89
- <%= settings['KDE_PREFIX'] %>/bin/startkde
90
-
91
- # If you experience problems on logout it is sometimes helpful to make copies
92
- # of the xsession-errors file on logout.
93
- # cp $HOME/.xsession-errors $HOME/.xsession-errors-`date +"%Y%m%d%H%M"`
@@ -1,10 +0,0 @@
1
- SHORT: "Build the kde 4.x development branch."
2
- LONG: |
3
- A recipe to build the kde4 development branch. The core modules and some
4
- additional extragear and playground modules are provided.
5
-
6
- Warning: This is the development branch for the next kde release. It is not
7
- necessarily stable!
8
- WEBSITE: http://www.kde.org
9
- REPOSITORY: svn://anonsvn.kde.org/home/kde/trunk
10
- BROWSE_REPOSITORY: http://websvn.kde.org/trunk
@@ -1,22 +0,0 @@
1
- #############################################################################
2
- # KDEBINDINGS
3
- #############################################################################
4
- environment kdebindings < kde
5
- var PYTHON_PATH set "<%= settings['KDE_PREFIX'] %>/lib<%= settings['LIB_SUFFIX'] %>/python2.6/site_packages"
6
- end
7
-
8
- module kdebindings < kde
9
- use environment kdebindings
10
- build-system cmake
11
- # Currently onto2vocabulary crashes for me.
12
- option BUILD_csharp "false"
13
- option BUILD_ruby "true"
14
- option BUILD_python "true"
15
- option BUILD_php "false"
16
- option BUILD_falcon "false"
17
- option BUILD_java "false"
18
- option BUILD_smoke "true"
19
- option WITH_Nepomuk "false"
20
- end
21
- end
22
-
@@ -1,104 +0,0 @@
1
- #############################################################################
2
- # KDE
3
- #############################################################################
4
- environment kde < kdesupport
5
- var CMAKE_PREFIX_PATH prepend "<%= settings['KDE_PREFIX'] %>"
6
- var KDEDIRS prepend "<%= settings['KDE_PREFIX'] %>"
7
- var LD_LIBRARY_PATH prepend "<%= settings['KDE_PREFIX'] %>/lib<%= settings['LIB_SUFFIX'] %>"
8
- var MANPATH prepend "<%= settings['KDE_PREFIX'] %>/share/man"
9
- var PATH prepend "<%= settings['KDE_PREFIX'] %>/bin"
10
- var PKG_CONFIG_PATH prepend "<%= settings['KDE_PREFIX'] %>/lib<%= settings['LIB_SUFFIX'] %>/pkgconfig"
11
- var STRIGI_PLUGIN_PATH prepend "<%= settings['KDE_PREFIX'] %>/lib<%= settings['LIB_SUFFIX'] %>/strigi"
12
- var XDG_DATA_DIRS prepend "<%= settings['KDE_PREFIX'] %>"
13
- end
14
-
15
- module kde TEMPLATE
16
- build-prefix "<%= settings['BUILD_DIR'] %>"
17
- install-prefix "<%= settings['KDE_PREFIX'] %>"
18
- use build-system cmake
19
- use environment kde
20
- use repository kde-core
21
- use vcs git-svn
22
- end
23
-
24
- module kde-core < kde TEMPLATE
25
- end
26
-
27
- #############################################################################
28
- # KDELIBS
29
- #############################################################################
30
- module "kdesupport/oxygen-icons" < kdesupport
31
- # It's part part of KDE and it's not. That's why i put it here for now.
32
- # Don't use a KDE/ prefix before it is not necessary to update it very
33
- # often.
34
- remote-path "oxygen-icons"
35
- use repository "kde-icons"
36
- end
37
-
38
-
39
- module "KDE/kdelibs" < "kde-core"
40
- # We use the default environment here to make sure kdelibs is able to
41
- # bootstrap
42
- use environment kdesupport
43
- remote-path "kdelibs"
44
- end
45
-
46
-
47
- feature webkit
48
- short description "WebKit related modules"
49
-
50
- module "KDE/kwebkitpart" < kde
51
- use repository kde
52
- remote-path "extragear/base/kwebkitpart"
53
- end
54
-
55
- end # feature webkit
56
-
57
- module "KDE/kdepimlibs" < "kde-core"
58
- remote-path "kdepimlibs"
59
- end
60
-
61
-
62
- #############################################################################
63
- # PyKDE4
64
- #############################################################################
65
- # The module is needed for plasmas python support.
66
-
67
- feature "scripting"
68
-
69
- feature "python"
70
-
71
- module "KDE/pykde4" < kde
72
- remote-path "kdebindings/python/pykde4"
73
- build-system cmake
74
- # option BUILD_Nepomuk "false"
75
- option PYTHON_LIBS_WITH_KDE_LIBS "true"
76
- option SIP_DEFAULT_SIP_DIR "<%= settings['KDE_PREFIX'] %>/share/sip"
77
- option SIP_INCLUDES "<%= settings['SIP_INCLUDES'] %>"
78
- end
79
- end
80
- end
81
-
82
- end
83
-
84
- #############################################################################
85
- # KDEBASE/...
86
- #############################################################################
87
- module "KDE/kdebase/runtime" < "kde-core"
88
- remote-path "kdebase/runtime"
89
- end
90
-
91
- module "KDE/kdebase/workspace" < "kde-core"
92
- remote-path "kdebase/workspace"
93
- build-system cmake
94
- option PYTHON_LIBS_WITH_KDE_LIBS "true"
95
- end
96
- end
97
-
98
- module "KDE/kdebase/apps" < "kde-core"
99
- remote-path "kdebase/apps"
100
- end
101
-
102
- module "KDE/kdepim" < kde
103
- remote-path "kdepim"
104
- end