aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2015-06-30 21:52:00 +0800
committerolgeni <olgeni@FreeBSD.org>2015-06-30 21:52:00 +0800
commit7f6430e23ff956bb4595c2693bdd9d9de0faa693 (patch)
tree54995f41f180ce15cd05f3bcf450f2d7503a6116 /devel
parent5baa3cc292a1682f4a347715329158d17edc7c2f (diff)
downloadfreebsd-ports-gnome-7f6430e23ff956bb4595c2693bdd9d9de0faa693.tar.gz
freebsd-ports-gnome-7f6430e23ff956bb4595c2693bdd9d9de0faa693.tar.zst
freebsd-ports-gnome-7f6430e23ff956bb4595c2693bdd9d9de0faa693.zip
Add devel/elixir-poison, a JSON library written in Elixir.
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/elixir-poison/Makefile36
-rw-r--r--devel/elixir-poison/distinfo2
-rw-r--r--devel/elixir-poison/files/patch-mix.exs15
-rw-r--r--devel/elixir-poison/pkg-descr8
-rw-r--r--devel/elixir-poison/pkg-plist26
6 files changed, 88 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index ea8f0d15c9c6..f83fa941bcfd 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -411,6 +411,7 @@
SUBDIR += elftoaout
SUBDIR += elixir-conform
SUBDIR += elixir-exrm
+ SUBDIR += elixir-poison
SUBDIR += embb
SUBDIR += epl.el
SUBDIR += epm
diff --git a/devel/elixir-poison/Makefile b/devel/elixir-poison/Makefile
new file mode 100644
index 000000000000..be6a57d3e9b9
--- /dev/null
+++ b/devel/elixir-poison/Makefile
@@ -0,0 +1,36 @@
+# $FreeBSD$
+
+PORTNAME= poison
+PORTVERSION= 1.4.0
+CATEGORIES= devel
+PKGNAMEPREFIX= elixir-
+
+MAINTAINER= olgeni@FreeBSD.org
+COMMENT= Pure Elixir JSON library
+
+LICENSE= ISCL
+
+BUILD_DEPENDS= elixir:${PORTSDIR}/lang/elixir
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+
+PLIST_SUB= VERSION="${PORTVERSION}"
+
+USE_GITHUB= yes
+GH_ACCOUNT= devinus
+
+do-build:
+ @cd ${WRKSRC} && MIX_ENV=prod mix compile
+
+post-build:
+ @${LN} -s ${WRKSRC}/_build/prod/lib/${PORTNAME}/ebin ${WRKSRC}/ebin
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/elixir/lib/${PORTNAME}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/elixir/lib/${PORTNAME}/ebin
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/elixir/lib/${PORTNAME}/lib
+ ${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/elixir/lib/${PORTNAME}/ebin
+ cd ${WRKSRC}/lib && ${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/lib/elixir/lib/${PORTNAME}/lib
+
+.include <bsd.port.mk>
diff --git a/devel/elixir-poison/distinfo b/devel/elixir-poison/distinfo
new file mode 100644
index 000000000000..9c6657f1f006
--- /dev/null
+++ b/devel/elixir-poison/distinfo
@@ -0,0 +1,2 @@
+SHA256 (devinus-poison-1.4.0_GH0.tar.gz) = cf229316eea9950aa68c1317ba7d33d04d67e0362ae6d105d22ce901ae9cb6ce
+SIZE (devinus-poison-1.4.0_GH0.tar.gz) = 28465
diff --git a/devel/elixir-poison/files/patch-mix.exs b/devel/elixir-poison/files/patch-mix.exs
new file mode 100644
index 000000000000..236c5c265ef2
--- /dev/null
+++ b/devel/elixir-poison/files/patch-mix.exs
@@ -0,0 +1,15 @@
+--- mix.exs.orig 2015-06-30 13:45:21 UTC
++++ mix.exs
+@@ -29,11 +29,7 @@ defmodule Poison.Mixfile do
+ #
+ # Type `mix help deps` for more examples and options
+ defp deps do
+- [{:earmark, "~> 0.1", only: :docs},
+- {:ex_doc, "~> 0.7", only: :docs},
+- {:jiffy, github: "davisp/jiffy", only: :bench},
+- {:exjsx, github: "talentdeficit/exjsx", only: :bench},
+- {:jazz, github: "meh/jazz", only: :bench}]
++ []
+ end
+
+ defp package do
diff --git a/devel/elixir-poison/pkg-descr b/devel/elixir-poison/pkg-descr
new file mode 100644
index 000000000000..7acf80a233e8
--- /dev/null
+++ b/devel/elixir-poison/pkg-descr
@@ -0,0 +1,8 @@
+Poison is a new JSON library for Elixir focusing on wicked-fast
+speed without sacrificing simplicity, completeness, or correctness.
+Poison takes several approaches to be the fastest JSON library for
+Elixir. Poison uses extensive sub binary matching, a hand-rolled
+parser using several techniques that are known to benefit HiPE for
+native compilation, IO list encoding and single-pass decoding.
+
+WWW: https://github.com/devinus/poison
diff --git a/devel/elixir-poison/pkg-plist b/devel/elixir-poison/pkg-plist
new file mode 100644
index 000000000000..c56b7d339d2e
--- /dev/null
+++ b/devel/elixir-poison/pkg-plist
@@ -0,0 +1,26 @@
+lib/elixir/lib/poison/ebin/Elixir.Poison.Decode.beam
+lib/elixir/lib/poison/ebin/Elixir.Poison.Decoder.Any.beam
+lib/elixir/lib/poison/ebin/Elixir.Poison.Decoder.beam
+lib/elixir/lib/poison/ebin/Elixir.Poison.Encode.beam
+lib/elixir/lib/poison/ebin/Elixir.Poison.EncodeError.beam
+lib/elixir/lib/poison/ebin/Elixir.Poison.Encoder.Any.beam
+lib/elixir/lib/poison/ebin/Elixir.Poison.Encoder.Atom.beam
+lib/elixir/lib/poison/ebin/Elixir.Poison.Encoder.BitString.beam
+lib/elixir/lib/poison/ebin/Elixir.Poison.Encoder.Float.beam
+lib/elixir/lib/poison/ebin/Elixir.Poison.Encoder.HashDict.beam
+lib/elixir/lib/poison/ebin/Elixir.Poison.Encoder.HashSet.beam
+lib/elixir/lib/poison/ebin/Elixir.Poison.Encoder.Integer.beam
+lib/elixir/lib/poison/ebin/Elixir.Poison.Encoder.List.beam
+lib/elixir/lib/poison/ebin/Elixir.Poison.Encoder.Map.beam
+lib/elixir/lib/poison/ebin/Elixir.Poison.Encoder.Range.beam
+lib/elixir/lib/poison/ebin/Elixir.Poison.Encoder.Stream.beam
+lib/elixir/lib/poison/ebin/Elixir.Poison.Encoder.beam
+lib/elixir/lib/poison/ebin/Elixir.Poison.Parser.beam
+lib/elixir/lib/poison/ebin/Elixir.Poison.SyntaxError.beam
+lib/elixir/lib/poison/ebin/Elixir.Poison.beam
+lib/elixir/lib/poison/ebin/poison.app
+lib/elixir/lib/poison/lib/poison.ex
+lib/elixir/lib/poison/lib/poison/decoder.ex
+lib/elixir/lib/poison/lib/poison/encoder.ex
+lib/elixir/lib/poison/lib/poison/parser.ex
+%%PORTDOCS%%%%DOCSDIR%%/README.md