Skip to content

Commit

Permalink
yaml: Add recipe to build yaml.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham committed Apr 19, 2016
1 parent c80048f commit 234d867
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
24 changes: 24 additions & 0 deletions recipes/yaml/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
mkdir build
if errorlevel 1 exit 1

cd build
if errorlevel 1 exit 1

cmake -G ^
"NMake Makefiles" ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
..
if errorlevel 1 exit 1

nmake
if errorlevel 1 exit 1

:: No tests included in the cmake build.
::
:: ctest
:: if errorlevel 1 exit 1

nmake install
if errorlevel 1 exit 1
7 changes: 7 additions & 0 deletions recipes/yaml/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

./configure \
--prefix="${PREFIX}"
make
make check
make install
39 changes: 39 additions & 0 deletions recipes/yaml/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{% set version = "0.1.6" %}

package:
name: yaml
version: {{ version }}

source:
fn: yaml-{{ version }}.tar.gz
url: http://pyyaml.org/download/libyaml/yaml-{{ version }}.tar.gz
md5: 5fe00cda18ca5daeb43762b80c38e06e

build:
number: 0
features:
- vc9 # [win and py27]
- vc10 # [win and py34]
- vc14 # [win and py35]

requirements:
build:
- cmake # [win]
- python # [win]
- pkg-config # [unix]
- libtool # [unix]

test:
commands:
- test -f "${PREFIX}/lib/libyaml.a" # [unix]
- test -f "${PREFIX}/lib/libyaml.dylib" # [osx]
- test -f "${PREFIX}/lib/libyaml.so" # [linux]

about:
home: http://pyyaml.org/wiki/LibYAML'
license: MIT
summary: A C library for parsing and emitting YAML.

extra:
recipe-maintainers:
- jakirkham

0 comments on commit 234d867

Please sign in to comment.