Skip to content

Commit

Permalink
Initial Languages BDSM extension set.
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Aug 6, 2011
0 parents commit 579445d
Show file tree
Hide file tree
Showing 116 changed files with 663 additions and 0 deletions.
Empty file added R/CHANGELOG.md
Empty file.
4 changes: 4 additions & 0 deletions R/README.md
@@ -0,0 +1,4 @@
# R BDSM Extension

R Website: http://cran.r-project.org/

Empty file added R/TODO.md
Empty file.
1 change: 1 addition & 0 deletions R/VERSION
@@ -0,0 +1 @@
0.0.1
8 changes: 8 additions & 0 deletions R/actions/help
@@ -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
1 change: 1 addition & 0 deletions R/config/defaults
@@ -0,0 +1 @@
version=2.13.0
1 change: 1 addition & 0 deletions R/config/md5
@@ -0,0 +1 @@
R-2.13.0.tar.gz=ecfb928067cfd932e75135f8b8bba3e7
6 changes: 6 additions & 0 deletions R/modules/shell/initialize
@@ -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")
1 change: 1 addition & 0 deletions R/modules/shell/modules
@@ -0,0 +1 @@
ext/package
1 change: 1 addition & 0 deletions README
@@ -0,0 +1 @@
A BDSM extension set providing extensions for managing various programming languages.
Empty file added erlang/CHANGELOG.md
Empty file.
2 changes: 2 additions & 0 deletions erlang/README.md
@@ -0,0 +1,2 @@
# Erlang Extension Template

Empty file added erlang/TODO.md
Empty file.
1 change: 1 addition & 0 deletions erlang/VERSION
@@ -0,0 +1 @@
0.0.1
8 changes: 8 additions & 0 deletions erlang/actions/help
@@ -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
2 changes: 2 additions & 0 deletions erlang/config/defaults
@@ -0,0 +1,2 @@
version=R13B04
base_url=http://erlang.org/download
1 change: 1 addition & 0 deletions erlang/config/md5
@@ -0,0 +1 @@
otp_src_R13B04.tar.gz=ca6da4921e438891967900aa6a084341
24 changes: 24 additions & 0 deletions erlang/modules/shell/initialize
@@ -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"

1 change: 1 addition & 0 deletions erlang/modules/shell/modules
@@ -0,0 +1 @@
modules ext/package
4 changes: 4 additions & 0 deletions gcc-fortran/CHANGELOG.md
@@ -0,0 +1,4 @@
# BDSM Extension Change Log

* 0.0.1 - Initial Extension Release

4 changes: 4 additions & 0 deletions gcc-fortran/README.md
@@ -0,0 +1,4 @@
# Extension README

This extension has the purpose...

9 changes: 9 additions & 0 deletions gcc-fortran/TODO.md
@@ -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

1 change: 1 addition & 0 deletions gcc-fortran/VERSION
@@ -0,0 +1 @@
0.0.1
7 changes: 7 additions & 0 deletions gcc-fortran/actions/help
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

description "${extension} BDSM extension."

action "help" "Display help for ${extension}."

show_help usage
2 changes: 2 additions & 0 deletions gcc-fortran/config/defaults
@@ -0,0 +1,2 @@
version=4.6.0
archive_format=tar.bz2
1 change: 1 addition & 0 deletions gcc-fortran/config/md5
@@ -0,0 +1 @@
gcc-fortran-4.6.0.tar.bz2=a4687a9035c3e92db7e84fc01fc548ef
7 changes: 7 additions & 0 deletions gcc-fortran/modules/shell/cli
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

if [[ ! "${configure_flags[*]}" =~ *--prefix* ]]
then
configure_flags+=(--prefix "${install_path}")
fi

6 changes: 6 additions & 0 deletions gcc-fortran/modules/shell/initialize
@@ -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"

1 change: 1 addition & 0 deletions gcc-fortran/modules/shell/modules
@@ -0,0 +1 @@
ext/package
4 changes: 4 additions & 0 deletions gcc/CHANGELOG.md
@@ -0,0 +1,4 @@
# BDSM Extension Change Log

* 0.0.1 - Initial Extension Release

5 changes: 5 additions & 0 deletions gcc/README.md
@@ -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/
4 changes: 4 additions & 0 deletions gcc/TODO.md
@@ -0,0 +1,4 @@
# Extension TODO List

* TODO: Package and release the extension.

1 change: 1 addition & 0 deletions gcc/VERSION
@@ -0,0 +1 @@
0.0.1
10 changes: 10 additions & 0 deletions gcc/actions/help
@@ -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
3 changes: 3 additions & 0 deletions gcc/config/defaults
@@ -0,0 +1,3 @@
version=4.6.0
archive_format=tar.bz2
website_url=http://gcc.gnu.org/
1 change: 1 addition & 0 deletions gcc/config/md5
@@ -0,0 +1 @@
gcc-4.6.0.tar.bz2=93d1c436bf991564524701259b6285a2
7 changes: 7 additions & 0 deletions gcc/modules/shell/cli
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

if [[ ! "${configure_flags[*]}" =~ *--prefix* ]]
then
configure_flags+=(--prefix "${install_path}")
fi

24 changes: 24 additions & 0 deletions gcc/modules/shell/initialize
@@ -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
1 change: 1 addition & 0 deletions gcc/modules/shell/modules
@@ -0,0 +1 @@
ext/package
Empty file added ghc/CHANGELOG.md
Empty file.
2 changes: 2 additions & 0 deletions ghc/README.md
@@ -0,0 +1,2 @@
# Extension Template

Empty file added ghc/TODO.md
Empty file.
1 change: 1 addition & 0 deletions ghc/VERSION
@@ -0,0 +1 @@
0.0.1
9 changes: 9 additions & 0 deletions ghc/actions/help
@@ -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

2 changes: 2 additions & 0 deletions ghc/config/defaults
@@ -0,0 +1,2 @@
version=7.0.2
archive_format=tar.bz2
1 change: 1 addition & 0 deletions ghc/config/md5
@@ -0,0 +1 @@
#ghc-7.0.2-src.tar.bz2=
8 changes: 8 additions & 0 deletions ghc/modules/shell/dsl
@@ -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"
#

12 changes: 12 additions & 0 deletions ghc/modules/shell/initialize
@@ -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
#
1 change: 1 addition & 0 deletions ghc/modules/shell/modules
@@ -0,0 +1 @@
ext/package
4 changes: 4 additions & 0 deletions go/CHANGELOG.md
@@ -0,0 +1,4 @@
# BDSM Extension Change Log

* 0.0.1 - Initial Extension Release

4 changes: 4 additions & 0 deletions go/README.md
@@ -0,0 +1,4 @@
# Extension README

This extension installs the go programming language.

4 changes: 4 additions & 0 deletions go/TODO.md
@@ -0,0 +1,4 @@
# Extension TODO List

* TODO: Package and release the extension.

1 change: 1 addition & 0 deletions go/VERSION
@@ -0,0 +1 @@
0.0.1
7 changes: 7 additions & 0 deletions go/actions/help
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

description "${extension} BDSM extension."

action "help" "Display help for ${extension}."

show_help usage
1 change: 1 addition & 0 deletions go/config/defaults
@@ -0,0 +1 @@
version=head
2 changes: 2 additions & 0 deletions go/config/md5
@@ -0,0 +1,2 @@
# The format for this file is: ${downloaded file name}=${md5 sum}, For example,
#bash-4.2.tar.gz=3fb927c7c33022f1c327f14a81c0d4b0
46 changes: 46 additions & 0 deletions go/modules/shell/dsl
@@ -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
}

1 change: 1 addition & 0 deletions go/modules/shell/modules
@@ -0,0 +1 @@
ext/package
Empty file added lua/CHANGELOG.md
Empty file.
2 changes: 2 additions & 0 deletions lua/README.md
@@ -0,0 +1,2 @@
# Extension Template

Empty file added lua/TODO.md
Empty file.
1 change: 1 addition & 0 deletions lua/VERSION
@@ -0,0 +1 @@
0.0.1
9 changes: 9 additions & 0 deletions lua/actions/help
@@ -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

2 changes: 2 additions & 0 deletions lua/config/defaults
@@ -0,0 +1,2 @@
version=5.2.0-alpha
base_url=http://www.lua.org/work
1 change: 1 addition & 0 deletions lua/config/md5
@@ -0,0 +1 @@
lua-5.2.0-alpha.tar.gz=1c4a4aaa04e0cb658507d3aa1ee80825
33 changes: 33 additions & 0 deletions lua/modules/shell/dsl
@@ -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?
}
4 changes: 4 additions & 0 deletions lua/modules/shell/initialize
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

true "${package_dir:="${package_name}-${package_version}"}"

1 change: 1 addition & 0 deletions lua/modules/shell/modules
@@ -0,0 +1 @@
ext/package
4 changes: 4 additions & 0 deletions perl/CHANGELOG.md
@@ -0,0 +1,4 @@
# BDSM Extension Change Log

* 0.0.1 - Initial Perl Extension Release

4 changes: 4 additions & 0 deletions perl/README.md
@@ -0,0 +1,4 @@
# BDSM Extension README

This extension manages Perl installations.

3 changes: 3 additions & 0 deletions perl/TODO.md
@@ -0,0 +1,3 @@
# BDSM Extension TODO List

* TODO: Package and release the extension.
1 change: 1 addition & 0 deletions perl/VERSION
@@ -0,0 +1 @@
0.0.1

0 comments on commit 579445d

Please sign in to comment.