diff options
author | Ronuk Raval | 2019-01-06 14:13:29 -0500 |
---|---|---|
committer | Ronuk Raval | 2019-01-06 14:15:34 -0500 |
commit | 34eab9d1900cc5340f2e903c3bd73e18091acfc0 (patch) | |
tree | 029e1700602247210eb66d31dff4080ba696eb0c | |
parent | a37f2594352b05b05c805b808843330381164ec5 (diff) | |
download | aur-34eab9d1900cc5340f2e903c3bd73e18091acfc0.tar.gz |
update to 5.8
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 75 | ||||
-rw-r--r-- | leo-dist.patch | 37 |
4 files changed, 112 insertions, 28 deletions
@@ -1,21 +1,31 @@ pkgbase = leo pkgdesc = Literate programmer's editor, outliner, and project manager - pkgver = 5.7.3 + pkgver = 5.8 pkgrel = 1 url = http://leoeditor.com/ arch = any license = custom - depends = python-pyqt5 - depends = shared-mime-info depends = desktop-file-utils + depends = jupyter-nbformat + depends = python-docutils + depends = python-keyring + depends = python-pyflakes + depends = python-pylint + depends = python-pypandoc + depends = python-pyqt5 + depends = python-semantic-version depends = python-setuptools + depends = python-sphinx + depends = python-wheel + depends = shared-mime-info + depends = twine optdepends = python-pyenchant: spellchecking support - optdepends = python-docutils: viewrendered support - optdepends = python-sphinx: documentation support - source = leo-5.7.3.tar.gz::https://github.com/leo-editor/leo-editor/archive/5.7.3.tar.gz + source = leo-5.8.tar.gz::https://github.com/leo-editor/leo-editor/archive/5.8.tar.gz + source = leo-dist.patch source = leo.desktop source = leo.xml - sha256sums = 4021a614f26b0a043818e67b97a24bffb54c90efca8709c045ddbaab3c4a5512 + sha256sums = ef8413acebb1a032ef8ba6972eb96179a3cd893eb0dd33bf0b84ca78e3c34e31 + sha256sums = 552321ab4df5c1b9ecc26aca925bacdc0ef0aca18f04e65b7fa856ff6b8bee87 sha256sums = 7b326791378eefedecee2474c4e1a497838d2a06ff4259a195d817c38588395b sha256sums = 630852279324b0d9acf656c4684f16777d64f49b4062bd101c5cddbfc33c82cb diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000000..135bf34e046 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/pkg +/src +/*.pkg.tar.xz +/leo-*.tar.gz @@ -1,35 +1,68 @@ +# Maintainer: Ronuk Raval <ronuk.raval at gmail dot com> +# Contributor: Narrat <autumn-wind at web dot de> # Contributor: David Scholl <djscholl at gmail dot com> pkgname=leo -pkgver=5.7.3 +pkgver=5.8 pkgrel=1 pkgdesc="Literate programmer's editor, outliner, and project manager" arch=('any') url="http://leoeditor.com/" license=('custom') -depends=('python-pyqt5' 'shared-mime-info' 'desktop-file-utils' - 'python-setuptools') -optdepends=('python-pyenchant: spellchecking support' - 'python-docutils: viewrendered support' - 'python-sphinx: documentation support') -source=(${pkgname}-${pkgver}.tar.gz::https://github.com/leo-editor/leo-editor/archive/${pkgver}.tar.gz - leo.desktop - leo.xml) -sha256sums=('4021a614f26b0a043818e67b97a24bffb54c90efca8709c045ddbaab3c4a5512' - '7b326791378eefedecee2474c4e1a497838d2a06ff4259a195d817c38588395b' - '630852279324b0d9acf656c4684f16777d64f49b4062bd101c5cddbfc33c82cb') +# Many of these are actually developer-only dependencies, but the launch +# scripts will throw `DistributionNotFound` without them. +# +# Upstream is working on fixing their dependency specifications: +# https://github.com/leo-editor/leo-editor/issues/968#issuecomment-435644438 +depends=( + desktop-file-utils + jupyter-nbformat + python-docutils + python-keyring + python-pyflakes + python-pylint + python-pypandoc + python-pyqt5 + python-semantic-version + python-setuptools + python-sphinx + python-wheel + shared-mime-info + twine +) +optdepends=('python-pyenchant: spellchecking support') +source=( + ${pkgname}-${pkgver}.tar.gz::https://github.com/leo-editor/leo-editor/archive/${pkgver}.tar.gz + leo-dist.patch + leo.desktop + leo.xml +) +sha256sums=( + ef8413acebb1a032ef8ba6972eb96179a3cd893eb0dd33bf0b84ca78e3c34e31 + 5140c9daf92eb0b3bacea022bb6a7e46911cb727d8372fdb756a31f8bcd6c8f0 + 7b326791378eefedecee2474c4e1a497838d2a06ff4259a195d817c38588395b + 630852279324b0d9acf656c4684f16777d64f49b4062bd101c5cddbfc33c82cb +) -build() { - cd "${pkgname}-${pkgver}" - python setup.py build +prepare() { + cd "leo-editor-${pkgver}" + + # leo's packaging workflow currently requires several workarounds to + # function: + # + # https://github.com/leo-editor/leo-editor/issues/968#issuecomment-451763826 + patch -p1 < ../leo-dist.patch } package() { - cd "${pkgname}-${pkgver}" + cd "leo-editor-${pkgver}" + + # leo's setup.py has a hardcoded clean step that always removes the `build` + # directory. So providing separate `build()` and `package()` steps is futile. + python setup.py install --root="$pkgdir/" --optimize=1 - python setup.py install --root="$pkgdir/" --optimize=1 --skip-build - install -D -m644 LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE.TXT" - install -D -m644 "$srcdir/leo.desktop" "$pkgdir/usr/share/applications/leo.desktop" - install -D -m644 "$srcdir/leo.xml" "$pkgdir/usr/share/mime/packages/leo.xml" - install -D -m644 "leo/Icons/application-x-leo-outline.png" "$pkgdir/usr/share/pixmaps/leo.png" + install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -D -m644 "$srcdir/leo.desktop" "$pkgdir/usr/share/applications/leo.desktop" + install -D -m644 "$srcdir/leo.xml" "$pkgdir/usr/share/mime/packages/leo.xml" + install -D -m644 "leo/Icons/application-x-leo-outline.png" "$pkgdir/usr/share/pixmaps/leo.png" } diff --git a/leo-dist.patch b/leo-dist.patch new file mode 100644 index 00000000000..a83d82fda27 --- /dev/null +++ b/leo-dist.patch @@ -0,0 +1,37 @@ +diff -Naur leo-editor-5.8/MANIFEST.in leo-editor-5.8-patch/MANIFEST.in +--- leo-editor-5.8/MANIFEST.in 1969-12-31 19:00:00.000000000 -0500 ++++ leo-editor-5.8-patch/MANIFEST.in 2019-01-06 12:29:19.567721953 -0500 +@@ -0,0 +1,22 @@ ++# Processed in order listed ++# Global ++#recursive-include leo *.* # not needed when using `graft` ++graft leo ++global-exclude *.py[cod] __pycache__ *.so ++ ++# Root folder ++include *.TXT ++include launchLeo.py ++include profileLeo.py ++include pylint-leo.bat ++include pylint-leo.py ++include *.nsi ++ ++# Exclusions ++# same as scrub_datafiles in setup.py, prior to Github commit 9982d17e2470ac8313050b8a0288cd39d7ad4f5b ++prune leo/test ++prune leo/doc/html ++ ++# Issue #603, https://github.com/leo-editor/leo-editor/issues/603 ++include leo/doc/html/conf.py ++include leo/doc/html/index.html +diff -Naur leo-editor-5.8/setup.py leo-editor-5.8-patch/setup.py +--- leo-editor-5.8/setup.py 2018-10-01 12:15:11.000000000 -0400 ++++ leo-editor-5.8-patch/setup.py 2019-01-06 12:30:37.254242095 -0500 +@@ -156,6 +156,7 @@ + include_package_data=True, # also include MANIFEST files in wheels + setup_requires=setup_requires, + install_requires=user_requires, ++ scripts=['leo/dist/leo-install.py'], + entry_points={ + 'console_scripts': ['leo-c = leo.core.runLeo:run_console', + 'leo-console = leo.core.runLeo:run_console', |