[arch-commits] Commit in ranger/repos/community-any (3 files)

Levente Polyak anthraxx at archlinux.org
Wed Nov 21 23:43:09 UTC 2018


    Date: Wednesday, November 21, 2018 @ 23:43:08
  Author: anthraxx
Revision: 409314

archrelease: copy trunk to community-any

Added:
  ranger/repos/community-any/PKGBUILD
    (from rev 409313, ranger/trunk/PKGBUILD)
Deleted:
  ranger/repos/community-any/PKGBUILD
  ranger/repos/community-any/replace-stopiteration-with-bare-return.patch

----------------------------------------------+
 PKGBUILD                                     |   90 ++++++++++++-------------
 replace-stopiteration-with-bare-return.patch |   21 -----
 2 files changed, 45 insertions(+), 66 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-21 23:43:02 UTC (rev 409313)
+++ PKGBUILD	2018-11-21 23:43:08 UTC (rev 409314)
@@ -1,45 +0,0 @@
-# Maintainer: schuay <jakob.gruber at gmail.com>
-# Previous maintainer: Roman Zimbelmann <romanz at lavabit.com>
-
-pkgname=ranger
-pkgver=1.9.1
-pkgrel=3
-pkgdesc='A simple, vim-like file manager'
-arch=('any')
-url='https://ranger.github.io'
-license=('GPL')
-depends=('python')
-optdepends=(
-    'atool: for previews of archives'
-    'elinks: for previews of html pages'
-    'ffmpegthumbnailer: for video previews'
-    'highlight: for syntax highlighting of code'
-    'libcaca: for ASCII-art image previews'
-    'lynx: for previews of html pages'
-    'mediainfo: for viewing information about media files'
-    'odt2txt: for OpenDocument texts'
-    'perl-image-exiftool: for viewing information about media files'
-    'poppler: for pdf previews'
-    'python-chardet: in case of encoding detection problems'
-    'sudo: to use the "run as root"-feature'
-    'transmission-cli: for viewing bittorrent information'
-    'w3m: for previews of images and html pages')
-conflicts=('ranger-git')
-source=("http://ranger.github.io/${pkgname}-${pkgver}.tar.gz"
-        "http://ranger.github.io/${pkgname}-${pkgver}.tar.gz.sig"
-        "replace-stopiteration-with-bare-return.patch")
-sha256sums=('40411b0dd08b0abd2632399751b111359786ae5f1e6df047f49653cb7a9edfd2'
-            'SKIP'
-            '116d6a29139acb7d5216ced45cfcc9faa27ab66acc6aecf4306d9adc7059b872')
-validpgpkeys=('1E9B36EC051FF6F7FFC969A7F08CE1E200FB5CDF') # huterich
-
-package() { 
-  cd "${srcdir}/${pkgname}-${pkgver}"
-
-  # https://github.com/ranger/ranger/pull/1244
-  patch -Np1 < "${srcdir}/replace-stopiteration-with-bare-return.patch"
-
-  # Replace "python" with the python binary you want ranger to use!
-  # (python 2.6 and >=3.1 supported, below 2.6 will certainly not work.)
-  python setup.py -q install --root="${pkgdir}" --optimize=1
-}

Copied: ranger/repos/community-any/PKGBUILD (from rev 409313, ranger/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-11-21 23:43:08 UTC (rev 409314)
@@ -0,0 +1,45 @@
+# Maintainer: schuay <jakob.gruber at gmail.com>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Previous maintainer: Roman Zimbelmann <romanz at lavabit.com>
+
+pkgname=ranger
+pkgver=1.9.2
+pkgrel=1
+pkgdesc='Simple, vim-like file manager'
+arch=('any')
+url='https://ranger.github.io'
+license=('GPL')
+depends=('python')
+optdepends=(
+    'atool: for previews of archives'
+    'elinks: for previews of html pages'
+    'ffmpegthumbnailer: for video previews'
+    'highlight: for syntax highlighting of code'
+    'libcaca: for ASCII-art image previews'
+    'lynx: for previews of html pages'
+    'mediainfo: for viewing information about media files'
+    'odt2txt: for OpenDocument texts'
+    'perl-image-exiftool: for viewing information about media files'
+    'poppler: for pdf previews'
+    'python-chardet: in case of encoding detection problems'
+    'sudo: to use the "run as root"-feature'
+    'transmission-cli: for viewing bittorrent information'
+    'w3m: for previews of images and html pages')
+checkdepends=('python-pytest')
+source=(https://ranger.github.io/${pkgname}-${pkgver}.tar.gz{,.sig})
+sha256sums=('0e1d1b1d3f78c227a6cfa783822e98591ca76a35c643d4814f40f73515d66b8a'
+            'SKIP')
+validpgpkeys=('1E9B36EC051FF6F7FFC969A7F08CE1E200FB5CDF'
+              '66FA95C0F1619BDA520A41F60D63346A5D15D055') # huterich
+
+check() {
+  cd ${pkgname}-${pkgver}
+  make test_pytest
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  python setup.py install --root="${pkgdir}" --optimize=1
+}
+
+# vim: ts=2 sw=2 et:

Deleted: replace-stopiteration-with-bare-return.patch
===================================================================
--- replace-stopiteration-with-bare-return.patch	2018-11-21 23:43:02 UTC (rev 409313)
+++ replace-stopiteration-with-bare-return.patch	2018-11-21 23:43:08 UTC (rev 409314)
@@ -1,21 +0,0 @@
-diff --git a/ranger/gui/widgets/pager.py b/ranger/gui/widgets/pager.py
-index 9afbfd15..d64d4ac1 100644
---- a/ranger/gui/widgets/pager.py
-+++ b/ranger/gui/widgets/pager.py
-@@ -234,7 +234,7 @@ class Pager(Widget):  # pylint: disable=too-many-instance-attributes
-     def _generate_lines(self, starty, startx):
-         i = starty
-         if not self.source:
--            raise StopIteration
-+            return
-         while True:
-             try:
-                 line = self._get_line(i).expandtabs(4)
-@@ -244,5 +244,5 @@ class Pager(Widget):  # pylint: disable=too-many-instance-attributes
-                     line = line[startx:self.wid + startx]
-                 yield line.rstrip().replace('\r\n', '\n')
-             except IndexError:
--                raise StopIteration
-+                return
-             i += 1
-


More information about the arch-commits mailing list