summaryrefslogtreecommitdiff
path: root/dev-erlang/fast_xml
diff options
context:
space:
mode:
Diffstat (limited to 'dev-erlang/fast_xml')
-rw-r--r--dev-erlang/fast_xml/Manifest13
-rw-r--r--dev-erlang/fast_xml/fast_xml-1.1.14.ebuild24
-rw-r--r--dev-erlang/fast_xml/fast_xml-1.1.15.ebuild24
-rw-r--r--dev-erlang/fast_xml/fast_xml-1.1.18.ebuild26
-rw-r--r--dev-erlang/fast_xml/fast_xml-1.1.22.ebuild24
-rw-r--r--dev-erlang/fast_xml/fast_xml-1.1.3.ebuild25
-rw-r--r--dev-erlang/fast_xml/files/1.1.18-0001-Fix-unittests.patch92
-rw-r--r--dev-erlang/fast_xml/metadata.xml11
8 files changed, 239 insertions, 0 deletions
diff --git a/dev-erlang/fast_xml/Manifest b/dev-erlang/fast_xml/Manifest
new file mode 100644
index 000000000000..b7a22a5f7a5a
--- /dev/null
+++ b/dev-erlang/fast_xml/Manifest
@@ -0,0 +1,13 @@
+AUX 1.1.18-0001-Fix-unittests.patch 2917 SHA256 f0bfcceaf2a415c8a155328a846122802347657dfbd74fad5b7e43c1fc2b5dff SHA512 6be65dd5a6ec8002b29ab589e9e2e1e1c09a5880150d05e88d4d1c9d2b86b597af5e05aff81475d6618a583856ca737f0daa9693b33e370a6ed12d83cfe613e4 WHIRLPOOL 7f1a8da02e7b45f8a44729dc14dcddf0b42777e97fc310b394e358f504778eac05787739d8776731b17688bf84b9e428b7e843137ff15f7a412f66a54c0c4760
+DIST fast_xml-1.1.14.tar.gz 86918 SHA256 84be7134c6bb9deaadc28000fa957e34750af51abcc67dd908f2ebc528b4c899 SHA512 3475d5cc5ab670cade221b5ffb610d2dbc52d9699e8d32d17eb3b13da1a486d8351776a50284cdd37ee9d4b6606221c60928f836669a325cb1692290a88d5d1e WHIRLPOOL d05b49323b4d5fc83cea685a36c577faa397d606aeb9ca1e2e450442fd7fed19c22bd7d33e1ef9495b9e2798ea259cb32fcdc704c5227be3009b5d75aa07a120
+DIST fast_xml-1.1.15.tar.gz 86948 SHA256 3cab1d45b67ae9f703e51480a4607f670caafede6fbdb4126e94a34b56a381f5 SHA512 3792ec8aca5ee8c40f53a356badcc9685ed071903500b0405a4d8b3620605eba1b8d1351efb5115497e022811dfca3382522318decc6207df1e4d81db3d0c94a WHIRLPOOL 9de1ba9e907f85edb67be8b3f2e69e741fce3bc9a7b3c12ef419d0cf965cda27989fa4881c92483b2f8b9f268a2ddf03781911a18e57ec5ac64e285adcae5b5e
+DIST fast_xml-1.1.18.tar.gz 89244 SHA256 9cf774dc117ac6c9e8737b810ca9991788b878188b1608a668094b1b377957e5 SHA512 5f6867e2f56d8e3d68337d477f215ac52fe01b3f31792605dcca31f3d8dc8b590d5d24798cf245f7af3cb5dc903530e5950d5ea4d8e0d650c091b7d87cf32e0c WHIRLPOOL b5f96204e53f9a009fe9e7c145cd86798e27d778b3e6c018d0168ed562318c2a8b09a0848498cd48ddbcb8ea1bc923cf8a7bf89309e09745879696d1343d8739
+DIST fast_xml-1.1.22.tar.gz 92408 SHA256 0163e7bd11b6705732fd7281209925e39534c9ea123887574218422c34762d7c SHA512 33c79cf34d6b0093cf98d11c5b68855d4201a6891786cc3caabd7dded81a04118638ce091cda1f1c86729ea8c8765214332cc34a361bbfb3c5958dbc2027a384 WHIRLPOOL 996a26db674cdf358d4e7031f24141afc69aefcd6dab112853c1cc6d02aa6c89c9761486d0e84827102faf4df72ac940b5992b16976fdb743c9fce5c16065d95
+DIST fast_xml-1.1.3.tar.gz 84926 SHA256 59de96e3defc02c9b916d4cc02545cd963c282266a09ce248ac6b6be4b2347ae SHA512 644934d6538ddf2b49863883a66255966b47f933594aff10325dca7785802d28d3223f79941fb4cfa33776e5a1a5fa74fe84422b7077241fb33fff1c52bd044a WHIRLPOOL 0361480089f055f2cb5afd2662072e9bf12ebfc651fc2dd242feb9797ff805a3b4956a8169fdc513c41b4d6142894a964e4d361d97f39c68ba3526a0d9ad1e51
+EBUILD fast_xml-1.1.14.ebuild 576 SHA256 170c16b81f8e02c0e03b25aec8618ae4707d20d4baf7537d843d168e246b1714 SHA512 96b2e45f6bb6332ea123ce6da765c6b39e719329d30e0f8a70cdf9712986f305c208a85bf51a887b1e49a1ec95b3c5654255d53ea25c93f7e8d4a5a547136f2d WHIRLPOOL 32eb27709f5fb2101ed27212619e05006ef0011328211ae74b32783aa70ac182b789aa5036f7b6761eff463bc8dbe2707efda65bba17d30cbcb708e39a4a065b
+EBUILD fast_xml-1.1.15.ebuild 574 SHA256 1192667ef37f87dee796e781e56cd799c34445b35159b783f34abe54bbb3f9b4 SHA512 621f76b1869cdcdefe103c4f8ac774868c72b9b2d102441db8a6e7c4dc3d84013f19a92fe6a24d93011cb4d24cde95d6951552d4e21d423bdd467e0fbe1b5b99 WHIRLPOOL 7b966d7df03a260240c90d1131e8404c2b983b441a6b666baf3a57a25988a053d2f784125dffff4dcc73e5bb6a175fa27803790e31367c78b9af95bfbe97faae
+EBUILD fast_xml-1.1.18.ebuild 635 SHA256 9d57a7545531d219c4cb299a2170a43551cb1c065e1b3b8b37fb17569137302a SHA512 b07c8707e8dbf3cb72dfa901df478eccf554a320c4065e14a1c019760805ec13eb22b024272efe495ab63f3ef55e6dd135777d5ba2893e14dce95ddf400e65f3 WHIRLPOOL 1b6ddf30678f6889e0bf966d89f83c4358d10d8a37ce692c0408352b0fb826a9a71b23ba0a4b0fe70fc0df60486d4e7d4f53da249ae794cff8f78e74797fd02b
+EBUILD fast_xml-1.1.22.ebuild 577 SHA256 aea38e56adddf9583e61d621a402b61ae11063e19d597056d100b92fb2440ca8 SHA512 00a913dd534626d7223edbe0d10143094bd8b9e38d4316ed89df1f6d36111cb1789109d49688e15afa896c3be736e2ee5e4368cbbc86d14ebb7444d2f2eb2bf6 WHIRLPOOL 1a07efbafc932deba844859e2e2051d0692a773b32a109a6cae741423b9afc5b3ab79894d93baa64ad574c75db7038a7eae9dc1120fa62f340629d329963be25
+EBUILD fast_xml-1.1.3.ebuild 595 SHA256 80377e3571b42a8928a85437f01f091f4050b889013bfdd2e42645ed66d524be SHA512 ff50bb3865d38d31763f563d3d7771b9fb06201aef491703e727cece6015fa5161093d42727ac80bc7e126c86959b66757d81617a4ad94914b0f34480335ed72 WHIRLPOOL 51224b229370b2fc9e4468df880a56b965c396c7e8e3caaf11f1a93ff1613a2c8ac4300731628f257bda41cb7cef88aaf79abaaab86d9c58cac8e468c168cb43
+MISC ChangeLog 1882 SHA256 2a07e4583ca4c4c2d6753cc8af1582b8965ffd5c58c40dd9aa9e9c5c92488f50 SHA512 ee77ae309b3329afef3427bb7882bfc17fc1923386315e1be7c102a2e99ebecdee5836b8b13920dce95b086a7611698cbf11bac118fea333d0dcc3581a524da5 WHIRLPOOL c240887a5928666af9539daccddebdbf0a1adaa2b79dd21d197a374b3df3c3a47e1a040c99bde1ac86c4bf7fe4ca9fdf667fb00e8a1c582e25e8931433b7c85d
+MISC metadata.xml 338 SHA256 5fcdec103c7976e476cb745454b6ed023feb012cd59b8fb11cac2a6f621e4954 SHA512 334d44bf23902819adc99490123ab35400bc934f5876d0cfd2a3ce05110a33c2462a30e0a5be39cc4947ba86b1eb274a18b5fbd4529fd2fc2aa061789d2e31be WHIRLPOOL 63190506a92796114ddb0816beb500afc1982c8f7abf651f881142c2e53683b386dbcbb27f1a8fc6dc9af90ffad9abfd653ba437fb0d213d81bac7d5bb8e28d3
diff --git a/dev-erlang/fast_xml/fast_xml-1.1.14.ebuild b/dev-erlang/fast_xml/fast_xml-1.1.14.ebuild
new file mode 100644
index 000000000000..75a9c8e2828e
--- /dev/null
+++ b/dev-erlang/fast_xml/fast_xml-1.1.14.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="Fast Expat based Erlang XML parsing library"
+HOMEPAGE="https://github.com/processone/fast_xml"
+SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
+ -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
+IUSE="test"
+
+RDEPEND=">=dev-erlang/p1_utils-1.0.4
+ >=dev-lang/erlang-17.1
+ dev-libs/expat"
+DEPEND="${RDEPEND}
+ test? ( >=dev-lang/elixir-1.1 )"
+
+DOCS=( CHANGELOG.md README.md )
diff --git a/dev-erlang/fast_xml/fast_xml-1.1.15.ebuild b/dev-erlang/fast_xml/fast_xml-1.1.15.ebuild
new file mode 100644
index 000000000000..b37d24b8cec5
--- /dev/null
+++ b/dev-erlang/fast_xml/fast_xml-1.1.15.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="Fast Expat based Erlang XML parsing library"
+HOMEPAGE="https://github.com/processone/fast_xml"
+SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
+ -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
+IUSE="test"
+
+RDEPEND=">=dev-erlang/p1_utils-1.0.5
+ >=dev-lang/erlang-17.1
+ dev-libs/expat"
+DEPEND="${RDEPEND}
+ test? ( >=dev-lang/elixir-1.1 )"
+
+DOCS=( CHANGELOG.md README.md )
diff --git a/dev-erlang/fast_xml/fast_xml-1.1.18.ebuild b/dev-erlang/fast_xml/fast_xml-1.1.18.ebuild
new file mode 100644
index 000000000000..4fb74ffd2639
--- /dev/null
+++ b/dev-erlang/fast_xml/fast_xml-1.1.18.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="Fast Expat based Erlang XML parsing library"
+HOMEPAGE="https://github.com/processone/fast_xml"
+SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
+ -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
+IUSE="test"
+
+RDEPEND=">=dev-erlang/p1_utils-1.0.6
+ >=dev-lang/erlang-17.1
+ dev-libs/expat"
+DEPEND="${RDEPEND}
+ test? ( >=dev-lang/elixir-1.1 )"
+
+DOCS=( CHANGELOG.md README.md )
+
+PATCHES=( "${FILESDIR}"/${PV}-0001-Fix-unittests.patch )
diff --git a/dev-erlang/fast_xml/fast_xml-1.1.22.ebuild b/dev-erlang/fast_xml/fast_xml-1.1.22.ebuild
new file mode 100644
index 000000000000..b0d200c85dd4
--- /dev/null
+++ b/dev-erlang/fast_xml/fast_xml-1.1.22.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="Fast Expat based Erlang XML parsing library"
+HOMEPAGE="https://github.com/processone/fast_xml"
+SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
+ -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
+IUSE="test"
+
+RDEPEND=">=dev-erlang/p1_utils-1.0.7
+ >=dev-lang/erlang-17.1
+ dev-libs/expat"
+DEPEND="${RDEPEND}
+ test? ( >=dev-lang/elixir-1.1 )"
+
+DOCS=( CHANGELOG.md README.md )
diff --git a/dev-erlang/fast_xml/fast_xml-1.1.3.ebuild b/dev-erlang/fast_xml/fast_xml-1.1.3.ebuild
new file mode 100644
index 000000000000..4c98982c6edd
--- /dev/null
+++ b/dev-erlang/fast_xml/fast_xml-1.1.3.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit rebar
+
+DESCRIPTION="Fast Expat based Erlang XML parsing library"
+HOMEPAGE="https://github.com/processone/fast_xml"
+SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
+ -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
+IUSE="test"
+
+RDEPEND=">=dev-erlang/p1_utils-1.0.0
+ >=dev-lang/erlang-17.1
+ <dev-lang/erlang-19
+ dev-libs/expat"
+DEPEND="${RDEPEND}
+ test? ( >=dev-lang/elixir-1.1 )"
+
+DOCS=( CHANGELOG.md README.md )
diff --git a/dev-erlang/fast_xml/files/1.1.18-0001-Fix-unittests.patch b/dev-erlang/fast_xml/files/1.1.18-0001-Fix-unittests.patch
new file mode 100644
index 000000000000..c5113bde70d1
--- /dev/null
+++ b/dev-erlang/fast_xml/files/1.1.18-0001-Fix-unittests.patch
@@ -0,0 +1,92 @@
+From 4b65d1603c9b16cf440e0b434673de9d7bdca6b5 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= <pchmielowski@process-one.net>
+Date: Mon, 2 Jan 2017 10:58:33 +0100
+Subject: [PATCH] Load locally build .so file when performing tests
+
+This should help with issue #19 and #20
+---
+ src/fxml.erl | 5 ++++-
+ src/fxml_stream.erl | 11 +++++++----
+ test/fxml_test.erl | 6 ++----
+ 3 files changed, 13 insertions(+), 9 deletions(-)
+
+diff --git a/src/fxml.erl b/src/fxml.erl
+index 935bf28..ed6e535 100644
+--- a/src/fxml.erl
++++ b/src/fxml.erl
+@@ -36,7 +36,7 @@
+ append_subtags/2, get_path_s/2,
+ replace_tag_attr/3, replace_subtag/2, to_xmlel/1]).
+
+--export([load_nif/0]).
++-export([load_nif/0, load_nif/1]).
+
+ -include("fxml.hrl").
+ -export_type([xmlel/0]).
+@@ -44,6 +44,9 @@
+ %% Replace element_to_binary/1 with NIF
+ load_nif() ->
+ SOPath = p1_nif_utils:get_so_path(?MODULE, [fast_xml], "fxml"),
++ load_nif(SOPath).
++
++load_nif(SOPath) ->
+ case catch erlang:load_nif(SOPath, 0) of
+ ok -> ok;
+ Err -> error_logger:warning_msg("unable to load fxml NIF: ~p~n", [Err]),
+diff --git a/src/fxml_stream.erl b/src/fxml_stream.erl
+index a2fcb01..ee1a949 100644
+--- a/src/fxml_stream.erl
++++ b/src/fxml_stream.erl
+@@ -30,7 +30,7 @@
+ -export([new/1, new/2, new/3, parse/2, close/1, reset/1,
+ change_callback_pid/2, parse_element/1]).
+
+--export([load_nif/0]).
++-export([load_nif/0, load_nif/1]).
+
+ -include("fxml.hrl").
+
+@@ -54,13 +54,16 @@
+ -export_type([xml_stream_state/0, xml_stream_el/0]).
+
+ load_nif() ->
+- NifFile = p1_nif_utils:get_so_path(?MODULE, [fast_xml], "fxml_stream"),
+- case erlang:load_nif(NifFile, 0) of
++ SOPath = p1_nif_utils:get_so_path(?MODULE, [fast_xml], "fxml_stream"),
++ load_nif(SOPath).
++
++load_nif(SOPath) ->
++ case erlang:load_nif(SOPath, 0) of
+ ok ->
+ ok;
+ {error, {Reason, Txt}} ->
+ error_logger:error_msg("failed to load NIF ~s: ~s",
+- [NifFile, Txt]),
++ [SOPath, Txt]),
+ {error, Reason}
+ end.
+
+diff --git a/test/fxml_test.erl b/test/fxml_test.erl
+index e41a3dc..0bd2f91 100644
+--- a/test/fxml_test.erl
++++ b/test/fxml_test.erl
+@@ -39,7 +39,8 @@ close(State) ->
+ ?assertEqual(true, fxml_stream:close(State)).
+
+ start_test() ->
+- ?assertEqual(ok, application:start(fast_xml)).
++ ?assertEqual(ok, fxml:load_nif(p1_nif_utils:get_so_path(fxml, [], "fxml"))),
++ ?assertEqual(ok, fxml_stream:load_nif(p1_nif_utils:get_so_path(fxml_stream, [], "fxml_stream"))).
+
+ tag_test() ->
+ ?assertEqual(#xmlel{name = <<"root">>},
+@@ -877,6 +878,3 @@ rpc_empty_response_test() ->
+ Result = {response, []},
+ ?assertEqual({ok, Result}, fxmlrpc:decode(Response)),
+ ?assertEqual(Response, fxmlrpc:encode(Result)).
+-
+-application_stop_test() ->
+- ?assertEqual(ok, application:stop(fast_xml)).
+--
+2.11.0
+
diff --git a/dev-erlang/fast_xml/metadata.xml b/dev-erlang/fast_xml/metadata.xml
new file mode 100644
index 000000000000..38512c27ac99
--- /dev/null
+++ b/dev-erlang/fast_xml/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>aidecoe@gentoo.org</email>
+ <name>Amadeusz Żołnowski</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">processone/fast_xml</remote-id>
+ </upstream>
+</pkgmetadata>