Permalink
Browse files

Initial Languages BDSM extension set.

  • Loading branch information...
0 parents commit 579445dbeff8aaaad06c03ae6407a4f2009ba9d1 @wayneeseguin wayneeseguin committed Aug 6, 2011
Showing with 663 additions and 0 deletions.
  1. 0 R/CHANGELOG.md
  2. +4 −0 R/README.md
  3. 0 R/TODO.md
  4. +1 −0 R/VERSION
  5. +8 −0 R/actions/help
  6. +1 −0 R/config/defaults
  7. +1 −0 R/config/md5
  8. +6 −0 R/modules/shell/initialize
  9. +1 −0 R/modules/shell/modules
  10. +1 −0 README
  11. 0 erlang/CHANGELOG.md
  12. +2 −0 erlang/README.md
  13. 0 erlang/TODO.md
  14. +1 −0 erlang/VERSION
  15. +8 −0 erlang/actions/help
  16. +2 −0 erlang/config/defaults
  17. +1 −0 erlang/config/md5
  18. +24 −0 erlang/modules/shell/initialize
  19. +1 −0 erlang/modules/shell/modules
  20. +4 −0 gcc-fortran/CHANGELOG.md
  21. +4 −0 gcc-fortran/README.md
  22. +9 −0 gcc-fortran/TODO.md
  23. +1 −0 gcc-fortran/VERSION
  24. +7 −0 gcc-fortran/actions/help
  25. +2 −0 gcc-fortran/config/defaults
  26. +1 −0 gcc-fortran/config/md5
  27. +7 −0 gcc-fortran/modules/shell/cli
  28. +6 −0 gcc-fortran/modules/shell/initialize
  29. +1 −0 gcc-fortran/modules/shell/modules
  30. +4 −0 gcc/CHANGELOG.md
  31. +5 −0 gcc/README.md
  32. +4 −0 gcc/TODO.md
  33. +1 −0 gcc/VERSION
  34. +10 −0 gcc/actions/help
  35. +3 −0 gcc/config/defaults
  36. +1 −0 gcc/config/md5
  37. +7 −0 gcc/modules/shell/cli
  38. +24 −0 gcc/modules/shell/initialize
  39. +1 −0 gcc/modules/shell/modules
  40. 0 ghc/CHANGELOG.md
  41. +2 −0 ghc/README.md
  42. 0 ghc/TODO.md
  43. +1 −0 ghc/VERSION
  44. +9 −0 ghc/actions/help
  45. +2 −0 ghc/config/defaults
  46. +1 −0 ghc/config/md5
  47. +8 −0 ghc/modules/shell/dsl
  48. +12 −0 ghc/modules/shell/initialize
  49. +1 −0 ghc/modules/shell/modules
  50. +4 −0 go/CHANGELOG.md
  51. +4 −0 go/README.md
  52. +4 −0 go/TODO.md
  53. +1 −0 go/VERSION
  54. +7 −0 go/actions/help
  55. +1 −0 go/config/defaults
  56. +2 −0 go/config/md5
  57. +46 −0 go/modules/shell/dsl
  58. +1 −0 go/modules/shell/modules
  59. 0 lua/CHANGELOG.md
  60. +2 −0 lua/README.md
  61. 0 lua/TODO.md
  62. +1 −0 lua/VERSION
  63. +9 −0 lua/actions/help
  64. +2 −0 lua/config/defaults
  65. +1 −0 lua/config/md5
  66. +33 −0 lua/modules/shell/dsl
  67. +4 −0 lua/modules/shell/initialize
  68. +1 −0 lua/modules/shell/modules
  69. +4 −0 perl/CHANGELOG.md
  70. +4 −0 perl/README.md
  71. +3 −0 perl/TODO.md
  72. +1 −0 perl/VERSION
  73. +8 −0 perl/actions/help
  74. +3 −0 perl/config/defaults
  75. +1 −0 perl/config/md5
  76. +50 −0 perl/modules/shell/cli
  77. +50 −0 perl/modules/shell/dsl
  78. +1 −0 perl/modules/shell/modules
  79. +4 −0 php/CHANGELOG.md
  80. +4 −0 php/README.md
  81. +4 −0 php/TODO.md
  82. +1 −0 php/VERSION
  83. +9 −0 php/actions/help
  84. +3 −0 php/config/defaults
  85. +1 −0 php/config/md5
  86. +5 −0 php/modules/shell/initialize
  87. +2 −0 php/modules/shell/modules
  88. +4 −0 pypy/CHANGELOG.md
  89. +4 −0 pypy/README.md
  90. +9 −0 pypy/TODO.md
  91. +1 −0 pypy/VERSION
  92. +7 −0 pypy/actions/help
  93. +3 −0 pypy/config/defaults
  94. +6 −0 pypy/config/md5
  95. +9 −0 pypy/modules/shell/dependencies
  96. +58 −0 pypy/modules/shell/dsl
  97. +9 −0 pypy/modules/shell/initialize
  98. +1 −0 pypy/modules/shell/modules
  99. +4 −0 python/CHANGELOG.md
  100. +4 −0 python/README.md
  101. +4 −0 python/TODO.md
  102. +1 −0 python/VERSION
  103. +7 −0 python/actions/help
  104. +2 −0 python/config/defaults
  105. +2 −0 python/config/md5
  106. +7 −0 python/modules/shell/initialize
  107. +1 −0 python/modules/shell/modules
  108. +4 −0 ruby/CHANGELOG.md
  109. +4 −0 ruby/README.md
  110. +3 −0 ruby/TODO.md
  111. +1 −0 ruby/VERSION
  112. +10 −0 ruby/actions/help
  113. +2 −0 ruby/config/defaults
  114. +6 −0 ruby/config/md5
  115. +8 −0 ruby/modules/shell/initialize
  116. +1 −0 ruby/modules/shell/modules
No changes.
@@ -0,0 +1,4 @@
+# R BDSM Extension
+
+R Website: http://cran.r-project.org/
+
No changes.
@@ -0,0 +1 @@
+0.0.1
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+description "${extension} BDSM extension."
+
+action "package install" "Installs ${package_name} ${package_version}."
+action "package uninstall" "Installs ${package_name} ${package_version}."
+
+show_help usage
@@ -0,0 +1 @@
+version=2.13.0
@@ -0,0 +1 @@
+R-2.13.0.tar.gz=ecfb928067cfd932e75135f8b8bba3e7
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+
+package_definition \
+ base_url "http://cran.cnr.berkeley.edu/src/base/R-${package_version//.*}"
+
+configure_flags+=("--enable-R-shlib")
@@ -0,0 +1 @@
+ext/package
1 README
@@ -0,0 +1 @@
+A BDSM extension set providing extensions for managing various programming languages.
No changes.
@@ -0,0 +1,2 @@
+# Erlang Extension Template
+
No changes.
@@ -0,0 +1 @@
+0.0.1
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+description "${extension} BDSM extension."
+
+action "install" "Install ${package_name} ${package_version}."
+action "uninstall" "Uninstall ${package_name} ${package_version}."
+
+show_help usage
@@ -0,0 +1,2 @@
+version=R13B04
+base_url=http://erlang.org/download
@@ -0,0 +1 @@
+otp_src_R13B04.tar.gz=ca6da4921e438891967900aa6a084341
@@ -0,0 +1,24 @@
+#!/usr/bin/env bash
+
+package_definition \
+ file "otp_src_${package_version}.${archive_format}" \
+ dir "otp_src_${package_version}"
+
+package_dependencies=( ncurses openssl )
+
+configure_flags=(
+ --enable-hipe
+ --enable-smp-support
+ --enable-threads
+ --enable-kernel-poll
+)
+
+if os_is_darwin
+then
+ configure_flags[${#configure_flags[@]}]="--enable-darwin-64bit"
+fi
+
+# It is important to build single threaded,
+# which is very amusing given it is for Erlang...
+make_flags="-j1"
+
@@ -0,0 +1 @@
+modules ext/package
@@ -0,0 +1,4 @@
+# BDSM Extension Change Log
+
+* 0.0.1 - Initial Extension Release
+
@@ -0,0 +1,4 @@
+# Extension README
+
+This extension has the purpose...
+
@@ -0,0 +1,9 @@
+# Extension TODO List
+
+* TODO: Package and release the extension.
+* TODO: Write the extension actions
+* TODO: Adjust the cli to meet the extensions requirements
+* TODO: Write the extension functions
+* TODO: Write the extension initialize
+* TODO: Write the extension README
+
@@ -0,0 +1 @@
+0.0.1
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+description "${extension} BDSM extension."
+
+action "help" "Display help for ${extension}."
+
+show_help usage
@@ -0,0 +1,2 @@
+version=4.6.0
+archive_format=tar.bz2
@@ -0,0 +1 @@
+gcc-fortran-4.6.0.tar.bz2=a4687a9035c3e92db7e84fc01fc548ef
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+if [[ ! "${configure_flags[*]}" =~ *--prefix* ]]
+then
+ configure_flags+=(--prefix "${install_path}")
+fi
+
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+
+package_definition \
+ base_url "http://mirror.rit.edu/gnu/gcc/gcc-${package_version}"
+ dir "gcc-${package_version}/libgfortran"
+
@@ -0,0 +1 @@
+ext/package
@@ -0,0 +1,4 @@
+# BDSM Extension Change Log
+
+* 0.0.1 - Initial Extension Release
+
@@ -0,0 +1,5 @@
+# Extension README
+
+This extension installs the GNU Compiler Collection (GCC)
+
+For more information about GCC visit the website at http://gcc.gnu.org/
@@ -0,0 +1,4 @@
+# Extension TODO List
+
+* TODO: Package and release the extension.
+
@@ -0,0 +1 @@
+0.0.1
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+
+description "${extension} BDSM extension."
+
+action "package install" "Installs ${package_name} ${package_version}."
+action "package uninstall" "Installs ${package_name} ${package_version}."
+
+action "help" "Display help for ${extension}."
+
+show_help usage
@@ -0,0 +1,3 @@
+version=4.6.0
+archive_format=tar.bz2
+website_url=http://gcc.gnu.org/
@@ -0,0 +1 @@
+gcc-4.6.0.tar.bz2=93d1c436bf991564524701259b6285a2
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+if [[ ! "${configure_flags[*]}" =~ *--prefix* ]]
+then
+ configure_flags+=(--prefix "${install_path}")
+fi
+
@@ -0,0 +1,24 @@
+#!/usr/bin/env bash
+
+package_definition \
+ base_url "http://mirror.rit.edu/gnu/gcc/gcc-${package_version}"
+
+for library in gmp mpfr mpc iconv
+do
+ if path_exists "${packages_path}/${library}/active"
+ then
+ configure_flags+=( --with-${library}="${packages_path}/active" )
+ else
+ error "${library} was not found installed via bdsm,"\
+ " install it and then retry."
+ fi
+done
+unset library
+
+if os_is_darwin
+then
+ # --build=${build_arch}-apple-darwin${os_major_version}
+ # TODO: allow --languages flag from CLI
+ # "--enable-languages=c,c++,objc,obj-c++,fortran"
+ configure_flags+=("--enable-fully-dynamic-string" "--enable-languages=c,objc,fortran")
+fi
@@ -0,0 +1 @@
+ext/package
No changes.
@@ -0,0 +1,2 @@
+# Extension Template
+
No changes.
@@ -0,0 +1 @@
+0.0.1
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+description "${extension} BDSM extension."
+
+action "install" "Installs ${package_name} ${package_version}."
+action "uninstall" "Uninstalls ${package_name} ${package_version}."
+
+show_help usage
+
@@ -0,0 +1,2 @@
+version=7.0.2
+archive_format=tar.bz2
@@ -0,0 +1 @@
+#ghc-7.0.2-src.tar.bz2=
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+#
+# Before building,
+# echo "EXTRA_CABAL_CONFIGURE_FLAGS = --extra-include-dirs=${prefix_path}/include --extra-lib-dirs=${prefix_path}/lib" \
+# >> "mk/build.mk"
+#
+
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+package_definition \
+ base_url "http://haskell.org/ghc/dist/${package_version}" \
+ file "${package_name}-${package_version}-src.${archive_format}"
+
+#
+# http://haskell.org/ghc/download_ghc_7_0_2#distros
+#
+# haskell-platform
+# http://lambda.galois.com/hp-tmp/2011.2.0.0/haskell-platform-2011.2.0.0.tar.gz
+#
@@ -0,0 +1 @@
+ext/package
@@ -0,0 +1,4 @@
+# BDSM Extension Change Log
+
+* 0.0.1 - Initial Extension Release
+
@@ -0,0 +1,4 @@
+# Extension README
+
+This extension installs the go programming language.
+
@@ -0,0 +1,4 @@
+# Extension TODO List
+
+* TODO: Package and release the extension.
+
@@ -0,0 +1 @@
+0.0.1
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+description "${extension} BDSM extension."
+
+action "help" "Display help for ${extension}."
+
+show_help usage
@@ -0,0 +1 @@
+version=head
@@ -0,0 +1,2 @@
+# The format for this file is: ${downloaded file name}=${md5 sum}, For example,
+#bash-4.2.tar.gz=3fb927c7c33022f1c327f14a81c0d4b0
@@ -0,0 +1,46 @@
+#!/usr/bin/env bash
+
+go_fetch()
+{
+ enter "${source_path}"
+ if command_exists hg
+ then
+ remove_paths "${source_path}/${package_dir}"
+ ensure_paths_exist "${source_path}"
+ enter "${source_path}"
+ #TODO: use fetch_uri !!!
+ hg clone -u release https://go.googlecode.com/hg/ "${source_path}/${package_dir}"
+ else
+ error "go requires mercurial, please install the mercurial bdsm package first."
+ fi
+}
+
+go_build()
+{
+ export GOROOT="${source_path}/${package_dir}"
+ enter "${source_path}/${package_dir}/src"
+ ./all.bash
+}
+
+go_install()
+{
+ local _path _paths _file _files
+
+ enter "${source_path}/${package_dir}"
+
+ for dir in pkg lib include bin misc src
+ do
+ _paths=($( find "${source_path}/${package_dir}/${dir}" -type d ))
+ for _path in "${_paths[@]}"
+ do
+ ensure_paths_exist "${install_path}${_path##${source_path}/${package_dir}}"
+ done
+
+ _files=($( find "${source_path}/${package_dir}/${dir}" -type f ))
+ for _file in "${_files[@]}"
+ do
+ cp -f "${_file}" "${install_path}${_file##${source_path}/${package_dir}}"
+ done
+ done
+}
+
@@ -0,0 +1 @@
+ext/package
No changes.
@@ -0,0 +1,2 @@
+# Extension Template
+
No changes.
@@ -0,0 +1 @@
+0.0.1
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+description "${extension} BDSM extension."
+
+action "package install" "Installs ${package_name} ${package_version}."
+action "package uninstall" "Installs ${package_name} ${package_version}."
+
+show_help usage
+
@@ -0,0 +1,2 @@
+version=5.2.0-alpha
+base_url=http://www.lua.org/work
@@ -0,0 +1 @@
+lua-5.2.0-alpha.tar.gz=1c4a4aaa04e0cb658507d3aa1ee80825
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+
+lua_build()
+{
+ log "Building ${package_name} ${package_version}"
+ # Override make command based on platform type.
+ if os_is_linux
+ then
+ make linux
+ elif os_is_darwin
+ then
+ make darwin
+ elif os_is_solaris
+ then
+ make solaris
+ elif os_is_aix
+ then
+ make aix
+ else # posix...
+ make posix
+ fi
+}
+
+lua_install()
+{
+ log "Installing ${package_name} ${package_version}"
+ (
+ enter "src/"
+ copy_files to "${install_path}/bin" lua luac mode 0755
+ )
+
+ # TODO: Do we want any of the library files?
+}
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+
+true "${package_dir:="${package_name}-${package_version}"}"
+
@@ -0,0 +1 @@
+ext/package
@@ -0,0 +1,4 @@
+# BDSM Extension Change Log
+
+* 0.0.1 - Initial Perl Extension Release
+
@@ -0,0 +1,4 @@
+# BDSM Extension README
+
+This extension manages Perl installations.
+
@@ -0,0 +1,3 @@
+# BDSM Extension TODO List
+
+* TODO: Package and release the extension.
@@ -0,0 +1 @@
+0.0.1
Oops, something went wrong.

0 comments on commit 579445d

Please sign in to comment.