Gentoo Archives: gentoo-commits

From: "Amadeusz Zolnowski (aidecoe)" <aidecoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/diff-match-patch: metadata.xml ChangeLog diff-match-patch-20110725.1.ebuild
Date: Tue, 27 Dec 2011 13:07:29
Message-Id: 20111227130718.F34662004B@flycatcher.gentoo.org
1 aidecoe 11/12/27 13:07:18
2
3 Added: metadata.xml ChangeLog
4 diff-match-patch-20110725.1.ebuild
5 Log:
6 dev-python/diff-match-patch: Initial ebuild.
7
8 (Portage version: 2.1.10.43/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.1 dev-python/diff-match-patch/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/diff-match-patch/metadata.xml?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/diff-match-patch/metadata.xml?rev=1.1&content-type=text/plain
15
16 Index: metadata.xml
17 ===================================================================
18 <?xml version="1.0" encoding="UTF-8"?>
19 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
20 <pkgmetadata>
21 <herd>no-herd</herd>
22 <maintainer>
23 <email>aidecoe@g.o</email>
24 <name>Amadeusz Żołnowski</name>
25 </maintainer>
26 <longdescription lang="en">
27 The Diff Match and Patch libraries offer robust algorithms to perform
28 the operations required for synchronizing plain text.
29
30 Diff: Compare two blocks of plain text and efficiently return a list of
31 differences.
32
33 Match: Given a search string, find its best fuzzy match in a block of
34 plain text. Weighted for both accuracy and location.
35
36 Patch: Apply a list of patches onto plain text. Use best-effort to apply
37 patch even when the underlying text doesn't match.
38
39 Diff Match and Patch libraries are currently available in Java,
40 JavaScript, C++, C#, Objective C, Lua and Python, although this package
41 contains only Python implementation. Regardless of language, each
42 library features the same API and the same functionality. All versions
43 also have comprehensive test harnesses.
44 </longdescription>
45 </pkgmetadata>
46
47
48
49
50 1.1 dev-python/diff-match-patch/ChangeLog
51
52 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/diff-match-patch/ChangeLog?rev=1.1&view=markup
53 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/diff-match-patch/ChangeLog?rev=1.1&content-type=text/plain
54
55 Index: ChangeLog
56 ===================================================================
57 # ChangeLog for dev-python/diff-match-patch
58 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
59 # $Header: /var/cvsroot/gentoo-x86/dev-python/diff-match-patch/ChangeLog,v 1.1 2011/12/27 13:07:18 aidecoe Exp $
60
61 *diff-match-patch-20110725.1 (27 Dec 2011)
62
63 27 Dec 2011; Amadeusz Żołnowski <aidecoe@g.o>
64 +diff-match-patch-20110725.1.ebuild, +metadata.xml:
65 Initial ebuild.
66
67
68
69
70 1.1 dev-python/diff-match-patch/diff-match-patch-20110725.1.ebuild
71
72 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/diff-match-patch/diff-match-patch-20110725.1.ebuild?rev=1.1&view=markup
73 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/diff-match-patch/diff-match-patch-20110725.1.ebuild?rev=1.1&content-type=text/plain
74
75 Index: diff-match-patch-20110725.1.ebuild
76 ===================================================================
77 # Copyright 1999-2011 Gentoo Foundation
78 # Distributed under the terms of the GNU General Public License v2
79 # $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 $
80
81 EAPI=4
82
83 PYTHON_DEPEND="*"
84 SUPPORT_PYTHON_ABIS="1"
85
86 inherit distutils
87
88 DESCRIPTION="Diff, match and patch algorithms for plain text"
89 HOMEPAGE="http://code.google.com/p/google-diff-match-patch/"
90 SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
91
92 LICENSE="Apache-2.0"
93 SLOT="0"
94 KEYWORDS="~amd64"
95 IUSE=""
96
97 DEPEND=""
98 RDEPEND="${DEPEND}"
99
100 TEST_SCRIPT="${PN//-/_}/${PN//-/_}_test.py"
101
102 src_prepare() {
103 python_convert_shebangs -r 2 python2/*
104 }
105
106 src_test() {
107 testing() {
108 local pylib="build-${PYTHON_ABI}/lib"
109 PYTHONPATH="${pylib}" "$(PYTHON)" "${pylib}/${TEST_SCRIPT}"
110 }
111 python_execute_function testing
112 }
113
114 src_install() {
115 distutils_src_install
116
117 delete_tests() {
118 rm "${D}/$(python_get_sitedir)/${TEST_SCRIPT}" || die
119 }
120
121 python_execute_function -q delete_tests
122 }