summaryrefslogtreecommitdiff
path: root/dev-python/python-fchksum
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/python-fchksum
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/python-fchksum')
-rw-r--r--dev-python/python-fchksum/Manifest6
-rw-r--r--dev-python/python-fchksum/files/python-fchksum-1.7.1-md5-align.patch26
-rw-r--r--dev-python/python-fchksum/metadata.xml8
-rw-r--r--dev-python/python-fchksum/python-fchksum-1.7.1-r1.ebuild21
4 files changed, 61 insertions, 0 deletions
diff --git a/dev-python/python-fchksum/Manifest b/dev-python/python-fchksum/Manifest
new file mode 100644
index 000000000000..2096ca6e027f
--- /dev/null
+++ b/dev-python/python-fchksum/Manifest
@@ -0,0 +1,6 @@
+AUX python-fchksum-1.7.1-md5-align.patch 699 SHA256 287086f2f454e8d840a8d8433d44362fe5fbcb02c2fbbd9c09b3ab00199ec0ba SHA512 53b32029e211ee374c8b3a10680959af36a7a85b2b243bfc13fde6b195236fc2a6295e2d3b66be621773105f709467f48a711b2bc8de2342245a300aa55c557b WHIRLPOOL 42af56b266dda8244940b60ac4336b99d0fd02079f052fc9a036de5039181fd3eb704984299fe2ae6e04ad15533ea3cc531a39d18e48decfaa1c471575996fe7
+DIST python-fchksum-1.7.1.tar.gz 26724 SHA256 407625d2bf38be6fcbe8b01007d1803b5c5bd97249114c076edef4fd061405a7 SHA512 59b561e2938c41bcda2b98eb3fa0670be3fd85f8cb67368132ce239cac21760a5e9a5a05be2429992fa480ccd2e2aa457df7b4a07e709acbe42be9b1559f3060 WHIRLPOOL 474c2045dbe776b162be5388eedaadea8f26f5f9620ffb4c8eb86bbdcb8a124137522f9b20f11596cf828cc965afcfde492802484dae484852ac27ed147d176a
+EBUILD python-fchksum-1.7.1-r1.ebuild 690 SHA256 83187cc6351215e032b442d3c5d8a64ac97e1f75929774b6f33283d525e71bce SHA512 127e5626f4928c20809c1820981e2e3eccfe3e5cac70fda95667e93184c3a39502c3080b97fe286b31bebf216b16d471a63284e0480f51e77667f1887a1d7d4a WHIRLPOOL bf28eafef0307b1f86a7e2af8e61cf62fc4588ae9695c5e9f0bf41ca249d6422bc237dc3027c6fabc94d4fb3ac6f5ed46605db3fb76286299f8716d31d3b5314
+MISC ChangeLog 2503 SHA256 bd76ad02ae5530a2a384f09d191a052289e771c79d860d7a5dd089b323c5314d SHA512 9768c3e0fcd9e0ca9b61f269128da8d5b0dcf3a06ac6a2f32e80fa170eb6b03bd8deaebc65ee21da8e74f7a5f15334e88edc833583c9afebcdc6f887b03ca1ff WHIRLPOOL 462385392e74ca567e1d0f53d8f1dc2fb6e15a8c2175f940f02dd0bded944910d60d91fb4653d76c6caf37b9142f0872e5e92b1971b46faa7c0b1dfcdf2a4ed1
+MISC ChangeLog-2015 5669 SHA256 bcec5de48dffc3f067c5ce4c2dc5030b19ea5516c15ef95d0ef9e7ca980f3a88 SHA512 1f1168864ce5550154b07a48061c26b809850dbf69f47b0ddb4e33bf622a1ef555e35b49f5614fc7adeca081cb58c23cf36b722900a70fd0011568e6bc750966 WHIRLPOOL 22873ab0e3fe053e645867cc5a9e2197c0ec1710e81b26757ec866ff1019a0d6f19076f6dd71327b70e2682d75de1fc2c968f0df830c16610cfdc6e3d0c482e4
+MISC metadata.xml 236 SHA256 4709fa7f17a11d5eae6dd884b488d3c6eb8f85e9b63fe3684b4f234d3b9b14a9 SHA512 0f2c2a0401b53543eac90eafdd4d11c5913be07f47b968e2892ca92c265adbd9564f02a491ff2607d7031194ba3e50c7720851537341b1541120821c487147a3 WHIRLPOOL d73790bb41c2cefb5e2f7b163fc95a79b9674d9808ca34cef58fbc8c5a765023a0be285508a2e7f5f70eadc5725cf8d63553d599e4b367f52fac3374de347abb
diff --git a/dev-python/python-fchksum/files/python-fchksum-1.7.1-md5-align.patch b/dev-python/python-fchksum/files/python-fchksum-1.7.1-md5-align.patch
new file mode 100644
index 000000000000..1adfa627fdd8
--- /dev/null
+++ b/dev-python/python-fchksum/files/python-fchksum-1.7.1-md5-align.patch
@@ -0,0 +1,26 @@
+the alignment of resbuf is not guaranteed, so use memcpy to move
+the bytes in/out. on arches which can do unaligned accesses, this
+will generate the same code.
+
+patch by Mike Frysinger
+
+--- a/md5.c
++++ b/md5.c
+@@ -74,10 +74,13 @@ md5_read_ctx (ctx, resbuf)
+ const struct md5_ctx *ctx;
+ void *resbuf;
+ {
+- ((md5_uint32 *) resbuf)[0] = SWAP (ctx->A);
+- ((md5_uint32 *) resbuf)[1] = SWAP (ctx->B);
+- ((md5_uint32 *) resbuf)[2] = SWAP (ctx->C);
+- ((md5_uint32 *) resbuf)[3] = SWAP (ctx->D);
++ md5_uint32 swap;
++#define set(i, c) { swap = SWAP (ctx->c); memcpy (resbuf + (i * 4), &swap, 4); }
++ set (0, A);
++ set (1, B);
++ set (2, C);
++ set (3, D);
++#undef set
+
+ return resbuf;
+ }
diff --git a/dev-python/python-fchksum/metadata.xml b/dev-python/python-fchksum/metadata.xml
new file mode 100644
index 000000000000..9e5274c5b4ae
--- /dev/null
+++ b/dev-python/python-fchksum/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-python/python-fchksum/python-fchksum-1.7.1-r1.ebuild b/dev-python/python-fchksum/python-fchksum-1.7.1-r1.ebuild
new file mode 100644
index 000000000000..a80d84cefb96
--- /dev/null
+++ b/dev-python/python-fchksum/python-fchksum-1.7.1-r1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Python module to find the checksum of files"
+HOMEPAGE="http://code.fluffytapeworm.com/projects"
+SRC_URI="http://code.fluffytapeworm.com/projects/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND="sys-libs/zlib"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-md5-align.patch )