summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-07-20 21:16:52 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-07-20 21:16:52 +0300
commite050165e4b64a86e6b2c572afea305b9d51e2231 (patch)
treea46d763d5b7d5a11f21f3db834f914b22a6a8a08
parent8d3b0ffd6e0862d950c4d2ad3abef349b39df1ba (diff)
rapidjson added
i2pd: added copyright string
-rw-r--r--metadata/categories.conf1
-rw-r--r--packages/dev-libs/rapidjson/rapidjson-scm.exheres-06
-rw-r--r--packages/dev-libs/rapidjson/rapidjson.exlib48
-rw-r--r--packages/net-vpn/i2pd/i2pd-scm.exheres-01
4 files changed, 56 insertions, 0 deletions
diff --git a/metadata/categories.conf b/metadata/categories.conf
index b4971d0..88ff033 100644
--- a/metadata/categories.conf
+++ b/metadata/categories.conf
@@ -1,5 +1,6 @@
app-backup
app-misc
+dev-libs
dev-util
media-gfx
net-im
diff --git a/packages/dev-libs/rapidjson/rapidjson-scm.exheres-0 b/packages/dev-libs/rapidjson/rapidjson-scm.exheres-0
new file mode 100644
index 0000000..e27c7a3
--- /dev/null
+++ b/packages/dev-libs/rapidjson/rapidjson-scm.exheres-0
@@ -0,0 +1,6 @@
+# Distributed under the terms of the GNU General Public License v2
+# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
+
+require rapidjson
+
+PLATFORMS="~amd64 ~x86"
diff --git a/packages/dev-libs/rapidjson/rapidjson.exlib b/packages/dev-libs/rapidjson/rapidjson.exlib
new file mode 100644
index 0000000..21bdf6d
--- /dev/null
+++ b/packages/dev-libs/rapidjson/rapidjson.exlib
@@ -0,0 +1,48 @@
+# Distributed under the terms of the GNU General Public License v2
+# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
+
+
+SCM_EXTERNAL_REFS="
+ thirdparty/gtest:gtest
+"
+
+SCM_SECONDARY_REPOSITORIES="gtest"
+
+SCM_gtest_REPOSITORY="https://github.com/google/googletest.git"
+
+
+require github [ user=miloyip ]
+require cmake [ api=2 ]
+
+SUMMARY="A fast JSON parser/generator for C++ with both SAX/DOM style API"
+HOMEPAGE="http://rapidjson.org/"
+
+LICENCES="MIT"
+
+SLOT="0"
+
+export_exlib_phases src_configure
+
+MYOPTIONS="
+ doc
+ examples
+"
+
+
+DEPENDENCIES="
+ test:
+ dev-cpp/gtest
+ dev-util/valgrind
+ build:
+ doc? ( app-doc/doxygen )
+"
+
+rapidjson_src_configure() {
+ local cmakeparams=(
+ -DRAPIDJSON_BUILD_DOC=$(option doc && echo ON || echo OFF)
+ -DRAPIDJSON_BUILD_EXAMPLES=$(option examples && echo ON || echo OFF)
+ -DRAPIDJSON_BUILD_THIRDPARTY_GTEST=OFF
+ -DRAPIDJSON_BUILD_TESTS=$(expecting_tests && echo ON || echo OFF)
+ )
+ ecmake "${cmakeparams[@]}"
+}
diff --git a/packages/net-vpn/i2pd/i2pd-scm.exheres-0 b/packages/net-vpn/i2pd/i2pd-scm.exheres-0
index de7f22a..de9dbbd 100644
--- a/packages/net-vpn/i2pd/i2pd-scm.exheres-0
+++ b/packages/net-vpn/i2pd/i2pd-scm.exheres-0
@@ -1,4 +1,5 @@
# Distributed under the terms of the GNU General Public License v2
+# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
SCM_REPOSITORY="git://github.com/PurpleI2P/i2pd"
require scm-git systemd-service cmake [ api=2 ]