initial import
This commit is contained in:
45
bzr/PKGBUILD
Normal file
45
bzr/PKGBUILD
Normal file
@@ -0,0 +1,45 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=bzr
|
||||
pkgver=2.7.0
|
||||
pkgrel=2
|
||||
pkgdesc="A decentralized revision control system (bazaar)"
|
||||
arch=('i686' 'x86_64')
|
||||
url='https://bazaar.canonical.com/'
|
||||
license=('GPL-2')
|
||||
depends=('tauthon')
|
||||
makedepends=('intltool' 'gettext-tiny')
|
||||
provides=('bazaar' 'gnu-bazaar' 'breezy' 'brz')
|
||||
conflicts=('breezy' 'brz')
|
||||
source=("https://launchpad.net/bzr/${pkgver%.*}/${pkgver}/+download/bzr-${pkgver}.tar.gz"{,.sig}
|
||||
"bzr-lazy-regex.patch")
|
||||
sha512sums=('c39ad3715d865788da74d8de8b469e1dc93d18b6cbcbc569464cdeb9bb2173bf8d7f4f8ee8f7599fbcbbe322817a4c72e785d544e622753699c425c32597d9aa'
|
||||
'SKIP'
|
||||
'7d873a4e6de19ea8af03c6f8f2371364f76c62ebf787a0c9955beead359ea6591831d387c15867fd6638fee0d306966fdc5c5b2c1a3f0910f03280e6df9802af')
|
||||
validpgpkeys=('84736900600FF95EF23513F52975A150DEF6218F') # Vincent Ladeuil
|
||||
|
||||
prepare() {
|
||||
cd bzr-${pkgver}
|
||||
|
||||
sed 's|man/man1|share/man/man1|' -i setup.py
|
||||
sed 's|/usr/bin/env python|/usr/bin/env tauthon|' -i bzrlib/{plugins/bash_completion/bashcomp.py,tests/ssl_certs/create_ssls.py,patiencediff.py,_patiencediff_py.py}
|
||||
|
||||
patch -Np0 -i ${srcdir}/bzr-lazy-regex.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd bzr-${pkgver}
|
||||
|
||||
tauthon setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd bzr-${pkgver}
|
||||
|
||||
tauthon setup.py install --prefix='/usr' --root="${pkgdir}" --optimize='1'
|
||||
|
||||
install -dm 755 "${pkgdir}"/usr/share/bash-completion/completions
|
||||
install -m 644 contrib/bash/bzr "${pkgdir}"/usr/share/bash-completion/completions/
|
||||
|
||||
install -Dm644 COPYING.txt -t "$pkgdir/usr/share/licenses/$pkgname"
|
||||
}
|
||||
20
bzr/bzr-lazy-regex.patch
Normal file
20
bzr/bzr-lazy-regex.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
diff -u bzrlib/lazy_regex.py bzrlib/lazy_regex.py
|
||||
--- bzrlib/lazy_regex.py 2017-01-15 20:36:48 +0000
|
||||
+++ bzrlib/lazy_regex.py 2017-01-30 09:08:25 +0000
|
||||
@@ -1,4 +1,4 @@
|
||||
-# Copyright (C) 2006 Canonical Ltd
|
||||
+# Copyright (C) 2006, 2008-2011, 2017 Canonical Ltd
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -133,0 +134,10 @@
|
||||
+
|
||||
+
|
||||
+# Some libraries calls re.finditer which fails it if receives a LazyRegex.
|
||||
+if getattr(re, 'finditer', False):
|
||||
+ def finditer_public(pattern, string, flags=0):
|
||||
+ if isinstance(pattern, LazyRegex):
|
||||
+ return pattern.finditer(string)
|
||||
+ else:
|
||||
+ return _real_re_compile(pattern, flags).finditer(string)
|
||||
+ re.finditer = finditer_public
|
||||
Reference in New Issue
Block a user