net-libs/libbloom: add bloom fiter library
authorYixun Lan <dlan@gentoo.org>
Thu, 1 Mar 2018 09:25:08 +0000 (17:25 +0800)
committerYixun Lan <dlan@gentoo.org>
Thu, 1 Mar 2018 10:27:30 +0000 (18:27 +0800)
this library is used by shadowsocks-libev

Package-Manager: Portage-2.3.19, Repoman-2.3.6

net-libs/libbloom/Manifest [new file with mode: 0644]
net-libs/libbloom/libbloom-1.5.ebuild [new file with mode: 0644]
net-libs/libbloom/metadata.xml [new file with mode: 0644]

diff --git a/net-libs/libbloom/Manifest b/net-libs/libbloom/Manifest
new file mode 100644 (file)
index 0000000..aa50a8b
--- /dev/null
@@ -0,0 +1 @@
+DIST libbloom-1.5.tar.gz 1210081 BLAKE2B 8af463c487c2898c5a4cf3f7541490e2b069d4667ccda4b536f347535be5c7f5664c8ee17e0789ac5325feb8f325ae30a89e2de34323962e89378724cf130a84 SHA512 0dd69e3ee102e5808ba4350c71d212876db56235e263f8d5a66d6c3616d2e51cc18b5ca3a5a946d79c12751d9cc5667f7c633d77645c4b88a4d16ea344b51929
diff --git a/net-libs/libbloom/libbloom-1.5.ebuild b/net-libs/libbloom/libbloom-1.5.ebuild
new file mode 100644 (file)
index 0000000..665848c
--- /dev/null
@@ -0,0 +1,21 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A simple and small bloom filter implementation in plain C."
+HOMEPAGE="https://github.com/jvirkki/libbloom"
+SRC_URI="https://github.com/jvirkki/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_install() {
+       doheader bloom.h
+       dolib.so build/${PN}.so*
+}
diff --git a/net-libs/libbloom/metadata.xml b/net-libs/libbloom/metadata.xml
new file mode 100644 (file)
index 0000000..1cb3ccb
--- /dev/null
@@ -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>dlan@gentoo.org</email>
+               <name>Yixun Lan</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">jvirkki/libbloom</remote-id>
+       </upstream>
+</pkgmetadata>