json_spirit: Bugfixes
diff --git a/devel/json_spirit/Portfile b/devel/json_spirit/Portfile
new file mode 100644
index 0000000..2044e85
--- /dev/null
+++ b/devel/json_spirit/Portfile
@@ -0,0 +1,36 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id: Portfile 92628 2012-05-02 18:40:00Z ryandesign@macports.org $
+
+PortSystem 1.0
+PortGroup cmake 1.0
+
+name json_spirit
+version 4.05
+categories devel
+platforms darwin
+license MIT
+revision 1
+
+maintainers uwe-arzt.de:mail
+
+description JSON Spirit is a C++ library that reads and writes JSON files or streams.
+long_description JSON is a text file format similar to XML, but less verbose. It has been\
+ called XML lite. This article describes JSON Spirit, a C++ library\
+ that reads and writes JSON files or streams. It is written using the\
+ Boost Spirit parser generator. If you are already using Boost, you can\
+ use JSON Spirit without any additional dependencies.
+
+homepage http://www.codeproject.com/KB/recipes/JSON_Spirit.aspx
+
+# this is a mirror on my homepage, because codeproject requires an login
+# the author allows the mirror (and also the license)
+master_sites http://www.uwe-arzt.de/files/
+distname ${name}_v${version}
+use_zip yes
+
+checksums sha1 abc23f20d04a5d52ef3dc3accd8046474f68105f \
+ rmd160 fe9ee702ce9b4f6164d3d9b8f67ba7c6dfb9d7fd
+
+depends_lib port:boost
+
+patchfiles CMakeLists.patch
diff --git a/devel/json_spirit/files/CMakeLists.patch b/devel/json_spirit/files/CMakeLists.patch
new file mode 100644
index 0000000..3444ac7
--- /dev/null
+++ b/devel/json_spirit/files/CMakeLists.patch
@@ -0,0 +1,12 @@
+diff --git CMakeLists.txt CMakeLists.txt
+index c57d69b..0b9ef30 100644
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -15,6 +15,7 @@ INSTALL(
+ ${CMAKE_SOURCE_DIR}/json_spirit/json_spirit_value.h
+ ${CMAKE_SOURCE_DIR}/json_spirit/json_spirit_writer.h
+ ${CMAKE_SOURCE_DIR}/json_spirit/json_spirit_writer_template.h
++ ${CMAKE_SOURCE_DIR}/json_spirit/json_spirit_writer_options.h
+ DESTINATION include)
+
+ INSTALL(