Skip to content

Commit 96c6fb7

Browse files
authored
use XML2_jll (#131)
1 parent 9239519 commit 96c6fb7

File tree

9 files changed

+5
-121
lines changed

9 files changed

+5
-121
lines changed

.appveyor.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
environment:
22
matrix:
3-
- julia_version: 1.0
43
- julia_version: 1.3
54
- julia_version: latest
65

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ Manifest.toml
44
*.jl.mem
55
/.envrc
66
/libxml2*
7-
/deps/build.log
8-
/deps/deps.jl
9-
/deps/usr/
107
/docs/out.xml
118
/docs/build/
129
/docs/site/

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ os:
44
- linux
55
- osx
66
julia:
7-
- 1.0
87
- 1.3
98
- nightly
109
matrix:

Project.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ authors = ["Kenta Sato <[email protected]>"]
44
version = "1.0.0"
55

66
[deps]
7-
BinaryProvider = "b99e7846-7c00-51b0-8f62-c81ae34c0232"
8-
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
97
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
8+
XML2_jll = "02c8fc9c-b97f-50b9-bbe4-9be30ff0a78a"
109

1110
[compat]
12-
BinaryProvider = "0.5"
13-
julia = "1"
11+
julia = "1.3"
1412

1513
[extras]
1614
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,8 @@ Install EzXML.jl as follows:
2929
julia -e 'using Pkg; Pkg.add("EzXML")'
3030
```
3131

32-
This package depends on [libxml2](http://xmlsoft.org/) 2.9.9, which will be
33-
installed automatically from
34-
[Yggdrasil](https://github.com/JuliaPackaging/Yggdrasil/releases/tag/XML2-v2.9.9%2B0)
35-
via [BinaryProvider.jl](https://github.com/JuliaPackaging/BinaryProvider.jl).
36-
Windows, Linux, macOS, and FreeBSD are now supported.
32+
This package depends on [libxml2](http://xmlsoft.org/) 2.9.9, which will be automatically installed as an artifact via [XML2_jll.jl](https://github.com/JuliaBinaryWrappers/XML2_jll.jl) if you use Julia 1.3 or later.
33+
Currently, Windows, Linux, macOS, and FreeBSD are now supported.
3734

3835
Usage
3936
-----

deps/build.jl

Lines changed: 0 additions & 2 deletions
This file was deleted.

deps/build_XML2.v2.9.9.jl

Lines changed: 0 additions & 48 deletions
This file was deleted.

deps/build_Zlib.v1.2.11.jl

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/EzXML.jl

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,8 @@ export
102102
hasnodeattributes,
103103
nodeattributes
104104

105-
using Libdl
106105
using Printf: @printf
107-
108-
# Load libxml2.
109-
const libxml2path = joinpath(dirname(@__FILE__), "..", "deps", "deps.jl")
110-
if !isfile(libxml2path)
111-
error("EzXML.jl is not installed properly, run Pkg.build(\"EzXML\") and restart Julia.")
112-
end
113-
include(libxml2path)
114-
check_deps()
106+
using XML2_jll: libxml2
115107

116108
include("error.jl")
117109
include("node.jl")

0 commit comments

Comments
 (0)