Date: Tuesday, March 25, 2014 @ 04:13:07 Author: fyan Revision: 108224
archrelease: copy trunk to community-any Added: python2-pydot/repos/community-any/ python2-pydot/repos/community-any/PKGBUILD (from rev 108223, python2-pydot/trunk/PKGBUILD) python2-pydot/repos/community-any/noncomma.patch (from rev 108223, python2-pydot/trunk/noncomma.patch) ----------------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ noncomma.patch | 19 +++++++++++++++++++ 2 files changed, 58 insertions(+) Copied: python2-pydot/repos/community-any/PKGBUILD (from rev 108223, python2-pydot/trunk/PKGBUILD) =================================================================== --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2014-03-25 03:13:07 UTC (rev 108224) @@ -0,0 +1,39 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@gmail.com> +# Contrinutor: shining <shinin...@gmail.com> +# Contributor: phillid <dbphillipsnz _at_thingy_that_swirly_a_symbol gmaildott comm> + +_pypiname=pydot +pkgname=python2-$_pypiname +pkgver=1.0.28 +pkgrel=3 +pkgdesc="Python interface to Graphviz's Dot language" +arch=('any') +url="http://code.google.com/p/pydot/" +license=('MIT') +provides=("pydot=$pkgver") +conflicts=('pydot') +replaces=('pydot') +depends=('python2-pyparsing' 'graphviz') +makedepends=('python2-setuptools') +source=("http://pydot.googlecode.com/files/$_pypiname-$pkgver.tar.gz" + "noncomma.patch") +md5sums=('c0a7a027176a62c412fd0f54951af692' + 'c709dccc04dfa1960b64fbd8aa7c5da7') + +prepare() { + cd $_pypiname-$pkgver + # Fix compatibility with pyparsing >=2.0 + patch -p0 -i "${srcdir}/noncomma.patch" +} + +build() { + cd $_pypiname-$pkgver + python2 setup.py build +} + +package() { + cd $_pypiname-$pkgver + python2 setup.py install -O1 --install-data=/usr/share/pydot --root="$pkgdir" + install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} Copied: python2-pydot/repos/community-any/noncomma.patch (from rev 108223, python2-pydot/trunk/noncomma.patch) =================================================================== --- community-any/noncomma.patch (rev 0) +++ community-any/noncomma.patch 2014-03-25 03:13:07 UTC (rev 108224) @@ -0,0 +1,19 @@ +--- dot_parser.py 2014-03-03 01:04:18.028561791 +0100 ++++ dot_parser.py 2014-03-03 01:08:32.811564628 +0100 +@@ -25,7 +25,7 @@ + from pyparsing import ( nestedExpr, Literal, CaselessLiteral, Word, Upcase, OneOrMore, ZeroOrMore, + Forward, NotAny, delimitedList, oneOf, Group, Optional, Combine, alphas, nums, + restOfLine, cStyleComment, nums, alphanums, printables, empty, quotedString, +- ParseException, ParseResults, CharsNotIn, _noncomma, dblQuotedString, QuotedString, ParserElement ) ++ ParseException, ParseResults, CharsNotIn, dblQuotedString, QuotedString, ParserElement ) + + + class P_AttrList: +@@ -414,6 +414,7 @@ + + double_quoted_string = QuotedString('"', multiline=True, unquoteResults=False) # dblQuotedString + ++ _noncomma = "".join( [ c for c in printables if c != "," ] ) + alphastring_ = OneOrMore(CharsNotIn(_noncomma + ' ')) + + def parse_html(s, loc, toks):