sikmir

python-mapnik 3.0.13-2

Jul 7th, 2017
128
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git c/.SRCINFO i/.SRCINFO
  2. index fdf2c85..6af5408 100644
  3. --- c/.SRCINFO
  4. +++ i/.SRCINFO
  5. @@ -1,7 +1,7 @@
  6.  pkgbase = python-mapnik
  7.     pkgdesc = Python3 bindings for Mapnik
  8.     pkgver = 3.0.13
  9. -   pkgrel = 1
  10. +   pkgrel = 2
  11.     url = https://github.com/mapnik/python-mapnik
  12.     arch = any
  13.     license = LGPL
  14. @@ -11,7 +11,9 @@ pkgbase = python-mapnik
  15.     depends = python-cairo
  16.     depends = python-pypdf2
  17.     source = https://github.com/mapnik/python-mapnik/archive/v3.0.13.tar.gz
  18. +   source = setup.py.diff
  19.     sha1sums = 0b60b471fb2afad080e703cf3ceae72e31633344
  20. +   sha1sums = 3473d5405fe90d3a70d01556d64735eafbdb3bb7
  21.  
  22.  pkgname = python-mapnik
  23.  
  24. diff --git c/PKGBUILD i/PKGBUILD
  25. index fccc2a7..4bc163a 100644
  26. --- c/PKGBUILD
  27. +++ i/PKGBUILD
  28. @@ -3,7 +3,7 @@
  29.  
  30.  pkgname=python-mapnik
  31.  pkgver=3.0.13
  32. -pkgrel=1
  33. +pkgrel=2
  34.  
  35.  pkgdesc="Python3 bindings for Mapnik"
  36.  url="https://github.com/mapnik/python-mapnik"
  37. @@ -13,11 +13,18 @@ license=('LGPL')
  38.  depends=('python' 'mapnik' 'python-cairo' 'python-pypdf2')
  39.  makedepends=('python-setuptools')
  40.  
  41. -source=("https://github.com/mapnik/python-mapnik/archive/v$pkgver.tar.gz")
  42. -sha1sums=('0b60b471fb2afad080e703cf3ceae72e31633344')
  43. +source=("https://github.com/mapnik/python-mapnik/archive/v$pkgver.tar.gz"
  44. +        "setup.py.diff")
  45. +sha1sums=('0b60b471fb2afad080e703cf3ceae72e31633344'
  46. +          '3473d5405fe90d3a70d01556d64735eafbdb3bb7')
  47. +
  48. +prepare() {
  49. +   cd ${pkgname}-${pkgver}
  50. +   patch -Np1 < ../setup.py.diff
  51. +}
  52.  
  53.  package() {
  54. -   cd python-mapnik-$pkgver
  55. +   cd ${pkgname}-$pkgver
  56.     PYCAIRO=true python setup.py install --root="$pkgdir" --optimize=1
  57.  }
  58.  
  59. diff --git c/setup.py.diff i/setup.py.diff
  60. new file mode 100644
  61. index 0000000..ff2fc4c
  62. --- /dev/null
  63. +++ i/setup.py.diff
  64. @@ -0,0 +1,12 @@
  65. +diff -Naur python-mapnik-3.0.13.orig/setup.py python-mapnik-3.0.13/setup.py
  66. +--- python-mapnik-3.0.13.orig/setup.py 2017-07-07 11:31:25.759886322 +0300
  67. ++++ python-mapnik-3.0.13/setup.py  2017-07-07 11:32:01.690208344 +0300
  68. +@@ -227,6 +227,8 @@
  69. +
  70. + extra_comp_args = check_output([mapnik_config, '--cflags']).split(' ')
  71. +
  72. ++extra_comp_args = list(filter(lambda arg: arg != "-fvisibility=hidden", extra_comp_args))
  73. ++
  74. + if os.environ.get("PYCAIRO", "false") == "true":
  75. +     try:
  76. +         extra_comp_args.append('-DHAVE_PYCAIRO')
RAW Paste Data