Commit 7f6430e2 authored by olgeni's avatar olgeni
Browse files

Add devel/elixir-poison, a JSON library written in Elixir.

parent 5baa3cc2
......@@ -411,6 +411,7 @@
SUBDIR += elftoaout
SUBDIR += elixir-conform
SUBDIR += elixir-exrm
SUBDIR += elixir-poison
SUBDIR += embb
SUBDIR += epl.el
SUBDIR += epm
......
# $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>
SHA256 (devinus-poison-1.4.0_GH0.tar.gz) = cf229316eea9950aa68c1317ba7d33d04d67e0362ae6d105d22ce901ae9cb6ce
SIZE (devinus-poison-1.4.0_GH0.tar.gz) = 28465
--- 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
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
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment