Skip to content

Commit

Permalink
Merge branch 'kkwiek/recipes'
Browse files Browse the repository at this point in the history
  • Loading branch information
mutirri committed May 15, 2014
2 parents 2e663c0 + 5936f9a commit d13f2ad
Show file tree
Hide file tree
Showing 26 changed files with 524 additions and 2 deletions.
2 changes: 2 additions & 0 deletions bottleneck/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python setup.py install
if errorlevel 1 exit 1
11 changes: 11 additions & 0 deletions bottleneck/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

mkdir -vp ${PREFIX}/bin;

export CFLAGS="-Wall -g -m64 -pipe -O2 -march=x86-64 -fPIC"
export CXXLAGS="${CFLAGS}"
export CPPFLAGS="-I${PREFIX}/include"
export LDFLAGS="-L${PREFIX}/lib"

${PYTHON} setup.py install || exit 1;

32 changes: 32 additions & 0 deletions bottleneck/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

package:
name: bottleneck
version: 0.8.0

source:
git_url: https://github.com/kwgoodman/bottleneck.git
git_tag: v0.8.0

build:
number: 0

requirements:
build:
- python
- numpy

run:
- python
- numpy

test:
imports:
- bottleneck

#commands:
# -

about:
home: http://berkeleyanalytics.com/bottleneck
license: Simplified BSD license

2 changes: 2 additions & 0 deletions cytoolz/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python setup.py install
if errorlevel 1 exit 1
13 changes: 13 additions & 0 deletions cytoolz/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

mkdir -vp ${PREFIX}/bin;

export CFLAGS="-Wall -g -m64 -pipe -O2 -march=x86-64 -fPIC"
export CXXLAGS="${CFLAGS}"
export CPPFLAGS="-I${PREFIX}/include"
export LDFLAGS="-L${PREFIX}/lib"

touch requirements.txt;

${PYTHON} setup.py install || exit 1;

33 changes: 33 additions & 0 deletions cytoolz/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

package:
name: cytoolz
version: 0.6.1

source:
fn: cytoolz-0.6.1.tar.gz
url: https://pypi.python.org/packages/source/c/cytoolz/cytoolz-0.6.1.tar.gz
md5: 1e66f47dec333efa80c9ab781ecad452

build:
number: 0

requirements:
build:
- python
- setuptools
- cython

run:
- python

test:
imports:
- cytoolz

#commands:
# -

about:
home: https://github.com/pytoolz/cytoolz/
license: New BSD

2 changes: 2 additions & 0 deletions dulwich/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python setup.py install
if errorlevel 1 exit 1
12 changes: 12 additions & 0 deletions dulwich/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

mkdir -vp ${PREFIX}/bin;

#export CXXLAGS="${CFLAGS}"
#export CPPFLAGS="-I${PREFIX}/include"
#export LDFLAGS="-L${PREFIX}/lib"

touch requirements.txt;

${PYTHON} setup.py install || exit 1;

32 changes: 32 additions & 0 deletions dulwich/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

package:
name: dulwich
version: 0.9.5

source:
fn: dulwich-0.9.5.tar.gz
url: https://pypi.python.org/packages/source/d/dulwich/dulwich-0.9.5.tar.gz
md5: 7ace33f90cd61c7fcd32816eb73d1f5a

build:
number: 0

requirements:
build:
- python
- distribute

run:
- python

test:
imports:
- dulwich

#commands:
# -

about:
home: https://samba.org/~jelmer/dulwich
license: GPLv2 or later

2 changes: 2 additions & 0 deletions gitpython/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python setup.py install
if errorlevel 1 exit 1
6 changes: 6 additions & 0 deletions gitpython/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

mkdir -vp ${PREFIX}/bin;

${PYTHON} setup.py install || exit 1;

35 changes: 35 additions & 0 deletions gitpython/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

package:
name: gitpython
version: 0.3.2

source:
git_url: https://github.com/gitpython-developers/GitPython.git
git_tag: 0.3.2-RC1
#fn:
#url:
#md5:

build:
number: 0

requirements:
build:
- python
- distribute
- ez_setup

run:
- python

test:
imports:
- git

#commands:
# -

about:
home: http://pythonhosted.org/GitPython/
license: New BSD License

2 changes: 2 additions & 0 deletions mongodb/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python setup.py install
if errorlevel 1 exit 1
34 changes: 34 additions & 0 deletions mongodb/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash

MACHINE="$(uname 2>/dev/null)"

export CFLAGS="-Wall -g -m64 -pipe -O2 -march=x86-64 -fPIC"
export CXXLAGS="${CFLAGS}"
export CPPFLAGS="-I${PREFIX}/include"
export LDFLAGS="-L${PREFIX}/lib"

LinuxInstallation() {
# Build dependencies:
# - pcre-devel

scons \
--ssl \
--prefix="${PREFIX}" \
all || return 1;

scons \
--prefix="${PREFIX}" \
install || return 1;

return 0;
}

case ${MACHINE} in
'Linux')
LinuxInstallation || exit 1;
;;
*)
echo -e "Unsupported machine type: ${MACHINE}";
exit 1;
;;
esac
32 changes: 32 additions & 0 deletions mongodb/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

package:
name: mongodb
version: 2.4.9

source:
git_tag: r2.4.9
git_url: https://github.com/mongodb/mongo

build:
number: 0

requirements:
build:
- python
- scons
- openssl

run:
- openssl

test:
#imports:
# -

#commands:
# -

about:
home: http://www.mongodb.org/
license: AGPL-3 Apache-2.0

2 changes: 2 additions & 0 deletions nginx/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python setup.py install
if errorlevel 1 exit 1
63 changes: 63 additions & 0 deletions nginx/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#!/bin/bash

MACHINE="$(uname 2>/dev/null)"

export CFLAGS="-Wall -g -m64 -pipe -O2 -march=x86-64 -fPIC"
export CXXLAGS="${CFLAGS}"
export CPPFLAGS="-I${PREFIX}/include"
export LDFLAGS="-L${PREFIX}/lib"

mkdir -vp ${PREFIX}/bin || exit 1;
mkdir -vp ${PREFIX}/var/log/nginx || exit 1;
touch ${PREFIX}/var/log/nginx/{access,error}.log || exit 1;

cat > ${PREFIX}/bin/nginx <<EOF
#!/bin/bash
CWD="\$(cd "\$(dirname "\${0}")" && pwd -P)"
ROOT_PATH="\$(cd "\${CWD}/../" && pwd -P)"
echo -e ""
echo -e "Setting up ROOT_PATH for nginx to \${ROOT_PATH} ..."
echo -e "Launching nginx ..."
echo -e ""
\${ROOT_PATH}/sbin/nginx -p "\${ROOT_PATH}" "\${@}"
EOF

chmod 755 ${PREFIX}/bin/nginx

LinuxInstallation() {
# Build dependencies:
# - pcre-devel

chmod +x configure;

./configure \
--with-pcre \
--with-http_ssl_module \
--http-client-body-temp-path=etc/nginx/client \
--http-proxy-temp-path=etc/nginx/proxy \
--http-fastcgi-temp-path=etc/nginx/fastcgi \
--http-scgi-temp-path=etc/nginx/scgi \
--http-uwsgi-temp-path=etc/nginx/uwsgi \
--http-log-path=var/log/nginx/access.log \
--conf-path=etc/nginx/nginx.conf \
--lock-path=etc/nginx/nginx.lock \
--error-log-path=var/log/nginx/error.log \
--pid-path=etc/nginx/nginx.pid \
--prefix="${PREFIX}" || return 1;
make || return 1;
make install || return 1;

return 0;
}

case ${MACHINE} in
'Linux')
LinuxInstallation || exit 1;
;;
*)
echo -e "Unsupported machine type: ${MACHINE}";
exit 1;
;;
esac
33 changes: 33 additions & 0 deletions nginx/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

package:
name: nginx
version: 1.4.3

source:
fn: nginx-1.4.3.tar.gz
url: http://nginx.org/download/nginx-1.4.3.tar.gz
#md5:

build:
number: 0

requirements:
build:
- openssl
- zlib

run:
- openssl
- zlib

test:
#imports:
# - nginx

#commands:
# -

about:
home: http://www.nginx.org
license: 2-clause BSD-like license

5 changes: 5 additions & 0 deletions nginx/post-link.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

cat <<EOF >> ${PREFIX}/.messages.txt
This is an install message from the nginx package.
EOF
2 changes: 2 additions & 0 deletions spark/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python setup.py install
if errorlevel 1 exit 1
Loading

0 comments on commit d13f2ad

Please sign in to comment.