commit:     3a1f74205d9bc8a2499707f55b8eeda297de2ab3
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Thu May 25 09:05:04 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu May 25 10:09:12 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a1f7420

dev-python/smmap2: A sliding window memory map manager

Smmap wraps an interface around mmap and tracks the mapped files as
well as the amount of clients who use it. If the system runs out of
resources, or if a memory limit is reached, it will automatically
unload unused maps to allow continued operation.

Required to bump dev-python/gitdb (now renamed to gitdb2).

Bug: https://bugs.gentoo.org/619508
Closes: https://github.com/gentoo/gentoo/pull/4740
Package-Manager: Portage-2.3.5, Repoman-2.3.1

 dev-python/smmap2/Manifest            |  1 +
 dev-python/smmap2/metadata.xml        | 12 ++++++++++++
 dev-python/smmap2/smmap2-2.0.1.ebuild | 30 ++++++++++++++++++++++++++++++
 3 files changed, 43 insertions(+)

diff --git a/dev-python/smmap2/Manifest b/dev-python/smmap2/Manifest
new file mode 100644
index 00000000000..27e0f964b8a
--- /dev/null
+++ b/dev-python/smmap2/Manifest
@@ -0,0 +1 @@
+DIST smmap2-2.0.1.tar.gz 21948 SHA256 
5c9fd3ac4a30b85d041a8bd3779e16aa704a161991e74b9a46692bc368e68752 SHA512 
7c8d27c06befdabf65049e5e0bac5beb07c19ff398a343d953120b9cb1c9ed203232012f4b12180af20fa0dde8feb0d6e8af3e389932407688bcc345548f2501
 WHIRLPOOL 
973d82e6cd679a82189c617469cb4d749f12d56f8aa0d0cdac9177fb09ae71c3986200730a1b320479a4ee87e9796602f17aadf5b2e12f29d0e950ec9ebcbbbf

diff --git a/dev-python/smmap2/metadata.xml b/dev-python/smmap2/metadata.xml
new file mode 100644
index 00000000000..8c3e7214bd4
--- /dev/null
+++ b/dev-python/smmap2/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="project">
+    <email>pyt...@gentoo.org</email>
+    <name>Python</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="pypi">smmap2</remote-id>
+    <remote-id type="github">gitpython-developers/smmap</remote-id>
+  </upstream>
+</pkgmetadata>

diff --git a/dev-python/smmap2/smmap2-2.0.1.ebuild 
b/dev-python/smmap2/smmap2-2.0.1.ebuild
new file mode 100644
index 00000000000..522ebe5d9e3
--- /dev/null
+++ b/dev-python/smmap2/smmap2-2.0.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+
+inherit distutils-r1
+
+DESCRIPTION="A pure python implementation of a sliding window memory map 
manager"
+HOMEPAGE="
+       https://pypi.python.org/pypi/smmap2
+       https://github.com/gitpython-developers/smmap";
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE="test"
+
+DEPEND="
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       test? (
+               dev-python/nose[${PYTHON_USEDEP}]
+       )"
+RDEPEND=""
+
+python_test() {
+       nosetests -v || die "tests failed under ${EPYTHON}"
+}

Reply via email to