dev-python/diff-match-patch: Initial ebuild.
authorAmadeusz Żołnowski <aidecoe@gentoo.org>
Tue, 27 Dec 2011 13:07:18 +0000 (13:07 +0000)
committerAmadeusz Żołnowski <aidecoe@gentoo.org>
Tue, 27 Dec 2011 13:07:18 +0000 (13:07 +0000)
Package-Manager: portage-2.1.10.43/cvs/Linux x86_64

dev-python/diff-match-patch/ChangeLog [new file with mode: 0644]
dev-python/diff-match-patch/Manifest [new file with mode: 0644]
dev-python/diff-match-patch/diff-match-patch-20110725.1.ebuild [new file with mode: 0644]
dev-python/diff-match-patch/metadata.xml [new file with mode: 0644]

diff --git a/dev-python/diff-match-patch/ChangeLog b/dev-python/diff-match-patch/ChangeLog
new file mode 100644 (file)
index 0000000..40ce9e9
--- /dev/null
@@ -0,0 +1,10 @@
+# ChangeLog for dev-python/diff-match-patch
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/diff-match-patch/ChangeLog,v 1.1 2011/12/27 13:07:18 aidecoe Exp $
+
+*diff-match-patch-20110725.1 (27 Dec 2011)
+
+  27 Dec 2011; Amadeusz Żołnowski <aidecoe@gentoo.org>
+  +diff-match-patch-20110725.1.ebuild, +metadata.xml:
+  Initial ebuild.
+
diff --git a/dev-python/diff-match-patch/Manifest b/dev-python/diff-match-patch/Manifest
new file mode 100644 (file)
index 0000000..bcc0d5f
--- /dev/null
@@ -0,0 +1,18 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+DIST diff-match-patch-20110725.1.tar.gz 53208 RMD160 cbbd5d9d6085bdf362a9a3213ec5854d04d6df9b SHA1 83d8d921f983af44dfd12acfc74f592b3151c764 SHA256 d876417dcf4210765e0c705b97d1b278588bf82304ec6d875e33f61447266300
+EBUILD diff-match-patch-20110725.1.ebuild 1011 RMD160 834351d9b706ba3bbe3c3b408a691cdcae386f99 SHA1 6652b63e1c7a3f1162072ea3897ab456c8efd9eb SHA256 d23f52a1e553a91b9cb0b53e3f272c3bcc5ba722611e207b922fe9838757353f
+MISC ChangeLog 402 RMD160 4b4f304394b7b1e26dde4fdf22c338b4a9a40150 SHA1 9e58f1218594adf5ce96dcce6b002602f4ecc1cf SHA256 a18c0f266095ee7da8ba33567a71d43e366ff35a9130922a43644c5bb782cca1
+MISC metadata.xml 1113 RMD160 f67c4d7b48a787e0953cd95c6fbfdfbfaa9b265a SHA1 edf12019b6687e2764f2b0d4af3f87a7795238e7 SHA256 675405a69eb14999322524a35c2069c9632e9dbfbfaf6932e32677fd458be9ea
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.18 (GNU/Linux)
+
+iQEcBAEBAgAGBQJO+cMMAAoJEPATRTHh2/q1eNoH/2+N/6CxwHNDyhwdoFjZ2T0c
+gDllX5fQ0H3ZXIANvWTC42F/EW9LtDDWAGH+FRKmjifVZr0jyLO5UMfBN2fkr1Qh
+9OTWUSWu9yGzYRzK0Z2vpVMfhpDja/4ueuSeGUrnmBSR6kvsFrAZRYMuyRrxgULB
+rSsgD1P1fAgIZJoS47crsHCyDExUWVfLBnVEZxybLMoleJsb2FhpTMyKuoDAvE7k
+9shnjjl8HlZqbsYASoRd54kwIskOuUaNQF69ft7XuJZwPUuw3md2kzHFfbApXve7
+KlU36HfQ9Fq6nGfKb8WOHSTO51vc7LpTbt33nrtDLeyUSOchNwBNbxwuVKqyalM=
+=GSaf
+-----END PGP SIGNATURE-----
diff --git a/dev-python/diff-match-patch/diff-match-patch-20110725.1.ebuild b/dev-python/diff-match-patch/diff-match-patch-20110725.1.ebuild
new file mode 100644 (file)
index 0000000..dd0c06c
--- /dev/null
@@ -0,0 +1,46 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/diff-match-patch/diff-match-patch-20110725.1.ebuild,v 1.1 2011/12/27 13:07:18 aidecoe Exp $
+
+EAPI=4
+
+PYTHON_DEPEND="*"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit distutils
+
+DESCRIPTION="Diff, match and patch algorithms for plain text"
+HOMEPAGE="http://code.google.com/p/google-diff-match-patch/"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+TEST_SCRIPT="${PN//-/_}/${PN//-/_}_test.py"
+
+src_prepare() {
+       python_convert_shebangs -r 2 python2/*
+}
+
+src_test() {
+       testing() {
+               local pylib="build-${PYTHON_ABI}/lib"
+               PYTHONPATH="${pylib}" "$(PYTHON)" "${pylib}/${TEST_SCRIPT}"
+       }
+       python_execute_function testing
+}
+
+src_install() {
+       distutils_src_install
+
+       delete_tests() {
+               rm "${D}/$(python_get_sitedir)/${TEST_SCRIPT}" || die
+       }
+
+       python_execute_function -q delete_tests
+}
diff --git a/dev-python/diff-match-patch/metadata.xml b/dev-python/diff-match-patch/metadata.xml
new file mode 100644 (file)
index 0000000..d187606
--- /dev/null
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <herd>no-herd</herd>
+       <maintainer>
+               <email>aidecoe@gentoo.org</email>
+               <name>Amadeusz Żołnowski</name>
+       </maintainer>
+       <longdescription lang="en">
+               The Diff Match and Patch libraries offer robust algorithms to perform
+               the operations required for synchronizing plain text.
+
+               Diff: Compare two blocks of plain text and efficiently return a list of
+               differences.
+
+               Match: Given a search string, find its best fuzzy match in a block of
+               plain text. Weighted for both accuracy and location.
+
+               Patch: Apply a list of patches onto plain text. Use best-effort to apply
+               patch even when the underlying text doesn't match.
+
+               Diff Match and Patch libraries are currently available in Java,
+               JavaScript, C++, C#, Objective C, Lua and Python, although this package
+               contains only Python implementation.  Regardless of language, each
+               library features the same API and the same functionality.  All versions
+               also have comprehensive test harnesses.
+       </longdescription>
+</pkgmetadata>
+