Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conf-snappy #11676

Merged
merged 10 commits into from
Apr 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/conf-snappy/conf-snappy.1/descr
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Virtual package relying on snappy
This package can only install if the snappy library is installed on the system.
14 changes: 14 additions & 0 deletions packages/conf-snappy/conf-snappy.1/files/test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include <snappy.h>
#include <iostream>
using namespace std;

int main() {
string input = "Hello World, Hello World, Hello World!";
string compressed;
snappy::Compress(input.data(), input.size(), &compressed);
cout << input.size() << " => " << compressed.size() << endl;
string output;
snappy::Uncompress(compressed.data(), compressed.size(), &output);
cout << output << endl;
return 0;
}
16 changes: 16 additions & 0 deletions packages/conf-snappy/conf-snappy.1/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
opam-version: "1.2"
author: ["Gabriel Scherer"]
maintainer: "[email protected]"
homepage: "https://google.github.io/snappy/"
bug-reports: "https://github.com/ocaml/opam-repository/issues"
dev-repo: "https://github.com/ocaml/opam-repository.git"
build: [
["c++" "test.cpp" "-lsnappy"]
]
depends: [ "conf-pkg-config" ]
depexts: [
[["debian"] ["libsnappy-dev"]]
[["ubuntu"] ["libsnappy-dev"]]
[["osx" "homebrew"] ["snappy"]]
[["fedora"] ["snappy-devel"]]
]
12 changes: 6 additions & 6 deletions packages/leveldb/leveldb.1.0.2/opam
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
opam-version: "1.2"
maintainer: "[email protected]"
authors: "[email protected]"
homepage: "https://github.com/mfp/ocaml-leveldb"
bug-reports: "https://github.com/mfp/ocaml-leveldb/issues"
license: "LGPL+static"
doc: ["https://github.com/mfp/ocaml-leveldb/blob/master/README.md"]
doc: "https://github.com/mfp/ocaml-leveldb/blob/master/README.md"
dev-repo: "git://github.com/mfp/ocaml-leveldb"
build: ["omake" "-j9"]
build-test: [["omake" "test"] {"%{ounit:installed}"}]
remove: [
Expand All @@ -12,12 +15,9 @@ depends: [
"ocamlfind"
"omake"
"conf-leveldb"
"conf-snappy"
"ounit"
]
depexts: [
[["debian"] ["libsnappy-dev"]]
[["ubuntu"] ["libsnappy-dev"]]
]
patches: [ "link_against_extra_libs.patch" ]
dev-repo: "git://github.com/mfp/ocaml-leveldb"
install: ["omake" "install" "prefix=%{prefix}%"]
available: [ false ]
11 changes: 6 additions & 5 deletions packages/leveldb/leveldb.1.0.3/opam
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
opam-version: "1.2"
maintainer: "[email protected]"
authors: "[email protected]"
homepage: "https://github.com/mfp/ocaml-leveldb"
bug-reports: "https://github.com/mfp/ocaml-leveldb/issues"
license: "LGPL+static"
doc: ["https://github.com/mfp/ocaml-leveldb/blob/master/README.md"]
doc: "https://github.com/mfp/ocaml-leveldb/blob/master/README.md"
dev-repo: "git://github.com/mfp/ocaml-leveldb"
build: ["omake" "-j9"]
build-test: [["omake" "test"] {"%{ounit:installed}"}]
remove: [
Expand All @@ -11,14 +14,12 @@ remove: [
depends: [
"ocamlfind"
"omake"
"conf-snappy"
"conf-leveldb"
"ounit"
]
depexts: [
[["debian"] ["libsnappy-dev"]]
[["ubuntu"] ["libsnappy-dev"]]
]
patches: [ "fix_snappy_link_issue.patch"
"warn_error.patch" ]
dev-repo: "git://github.com/mfp/ocaml-leveldb"
install: ["omake" "install" "prefix=%{prefix}%"]
available: [ ocaml-version < "4.02" ]
7 changes: 2 additions & 5 deletions packages/leveldb/leveldb.1.1.0/opam
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ depends: [
"omake" {build}
"ounit" {build}
"conf-leveldb"
"conf-snappy"
]

depexts: [
[["debian"] ["libsnappy-dev"]]
[["ubuntu"] ["libsnappy-dev"]]
]
available: [ocaml-version < "4.06"]
7 changes: 2 additions & 5 deletions packages/leveldb/leveldb.1.1.1/opam
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ depends: [
"omake" {build}
"ounit" {build}
"conf-leveldb"
"conf-snappy"
]

depexts: [
[["debian"] ["libsnappy-dev"]]
[["ubuntu"] ["libsnappy-dev"]]
]
available: [ocaml-version < "4.06"]
6 changes: 2 additions & 4 deletions packages/leveldb/leveldb.1.1.2/opam
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ depends: [
"ocamlfind" {build}
"omake" {build}
"ounit" {test}
"conf-snappy"
"conf-leveldb"
]
depexts: [
[["debian"] ["libsnappy-dev"]]
[["ubuntu"] ["libsnappy-dev"]]
]
available: [ocaml-version < "4.06"]
13 changes: 7 additions & 6 deletions packages/snappy/snappy.0.0.1/opam
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
opam-version: "1.2"
authors: "[email protected]"
maintainer: "[email protected]"
homepage: "http://snappy.forge.ocamlcore.org"
doc: ["http://snappy.forge.ocamlcore.org/api/index.html"]
homepage: "http://ygrek.org.ua/p/ocaml-snappy/"
doc: ["http://ygrek.org.ua/p/ocaml-snappy/api/index.html"]
bug-reports: "https://github.com/ygrek/ocaml-snappy/issues"
dev-repo: "git://github.com/ygrek/ocaml-snappy"
build: [
["ocaml" "setup.ml" "-configure" "--prefix" prefix]
["ocaml" "setup.ml" "-build"]
Expand All @@ -10,9 +13,7 @@ remove: [["ocamlfind" "remove" "snappy"]]
depends: [
"ocamlfind"
"ocamlbuild" {build}
]
depexts: [
[["debian"] ["libsnappy-dev"]]
[["ubuntu"] ["libsnappy-dev"]]
"conf-snappy"
]
install: ["ocaml" "setup.ml" "-install"]
available:[false]
14 changes: 7 additions & 7 deletions packages/snappy/snappy.0.1.0/opam
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
opam-version: "1.2"
authors: "[email protected]"
maintainer: "[email protected]"
homepage: "http://snappy.forge.ocamlcore.org"
doc: ["http://snappy.forge.ocamlcore.org/api/index.html"]
homepage: "http://ygrek.org.ua/p/ocaml-snappy/"
doc: ["http://ygrek.org.ua/p/ocaml-snappy/api/index.html"]
bug-reports: "https://github.com/ygrek/ocaml-snappy/issues"
dev-repo: "git://github.com/ygrek/ocaml-snappy"
build: [
["ocaml" "setup.ml" "-configure" "--prefix" prefix]
["ocaml" "setup.ml" "-build"]
Expand All @@ -12,11 +15,8 @@ remove: [["ocamlfind" "remove" "snappy"]]
depends: [
"ocamlfind"
"ocamlbuild" {build}
]
depexts: [
[["debian"] ["libsnappy-dev"]]
[["ubuntu"] ["libsnappy-dev"]]
[["osx" "homebrew"] ["snappy"]]
"conf-snappy"
]
patches: [ "myocamlbuild.ml.osx.patch" { os = "darwin" } ]
install: ["ocaml" "setup.ml" "-install"]
available: [ ocaml-version < "4.06" ]