Skip to content

Commit a6eae9f

Browse files
committed
Prep for Hex package release
1 parent ad437f2 commit a6eae9f

File tree

3 files changed

+52
-12
lines changed

3 files changed

+52
-12
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2018 Greg Mefford
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ More detailed API documentation can be found at
1919

2020
## Installation
2121

22-
This library can be installed by adding `zbar` to your list of dependencies in
23-
`mix.exs`:
22+
This package is [available in Hex](https://hex.pm/packages/zbar) and can be
23+
installed by adding `:zbar` to your list of dependencies in `mix.exs`:
2424

2525
```elixir
2626
def deps do

mix.exs

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@ defmodule Zbar.Mixfile do
22
use Mix.Project
33

44
def project do
5-
[app: :zbar,
6-
version: "0.1.0",
7-
description: "Scan one or more barcodes from a JPEG image",
8-
elixir: "~> 1.4",
9-
make_clean: ["clean"],
10-
compilers: [:elixir_make | Mix.compilers()],
11-
build_embedded: Mix.env == :prod,
12-
start_permanent: Mix.env == :prod,
13-
compilers: [:elixir_make] ++ Mix.compilers,
14-
deps: deps()]
5+
[
6+
app: :zbar,
7+
version: "0.1.0",
8+
description: "Scan one or more barcodes from a JPEG image",
9+
elixir: "~> 1.4",
10+
make_clean: ["clean"],
11+
compilers: [:elixir_make | Mix.compilers()],
12+
build_embedded: Mix.env == :prod,
13+
start_permanent: Mix.env == :prod,
14+
compilers: [:elixir_make] ++ Mix.compilers,
15+
package: package(),
16+
deps: deps(),
17+
]
1518
end
1619

1720
def application do
@@ -25,4 +28,20 @@ defmodule Zbar.Mixfile do
2528
{:ex_doc, "~> 0.16", only: :dev, runtime: false},
2629
]
2730
end
31+
32+
defp package() do
33+
[
34+
files: [
35+
"lib",
36+
"src/*.[ch]",
37+
"Makefile",
38+
"mix.exs",
39+
"README.md",
40+
"LICENSE"
41+
],
42+
maintainers: ["Greg Mefford"],
43+
licenses: ["MIT"],
44+
links: %{"GitHub" => "https://github.com/GregMefford/zbar-elixir"}
45+
]
46+
end
2847
end

0 commit comments

Comments
 (0)