Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Commit

Permalink
Added recipe for mongodb 2.4.9 package
Browse files Browse the repository at this point in the history
  • Loading branch information
mutirri committed Mar 1, 2014
1 parent 5d23218 commit dd274fe
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
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

0 comments on commit dd274fe

Please sign in to comment.