[arch-commits] Commit in atom/trunk (PKGBUILD symbols-view-use-system-ctags.patch)
Nicola Squartini
tensor5 at archlinux.org
Sat Aug 13 08:24:35 UTC 2016
Date: Saturday, August 13, 2016 @ 08:24:35
Author: tensor5
Revision: 186697
upgpkg: atom 1.9.8-3
Add ctags optional dependency.
Added:
atom/trunk/symbols-view-use-system-ctags.patch
Modified:
atom/trunk/PKGBUILD
-------------------------------------+
PKGBUILD | 11 ++++++++++-
symbols-view-use-system-ctags.patch | 11 +++++++++++
2 files changed, 21 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-08-13 05:05:47 UTC (rev 186696)
+++ PKGBUILD 2016-08-13 08:24:35 UTC (rev 186697)
@@ -3,7 +3,7 @@
pkgname=atom
pkgver=1.9.8
-pkgrel=2
+pkgrel=3
pkgdesc='A hackable text editor for the 21st Century'
arch=('i686' 'x86_64')
url='https://github.com/atom/atom'
@@ -11,6 +11,7 @@
depends=('apm'
'electron')
makedepends=('git' 'npm')
+optdepends=('ctags: symbol indexing support')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/atom/atom/archive/v${pkgver}.tar.gz"
'autocomplete-plus.patch'
'beforeunload.patch'
@@ -20,6 +21,7 @@
'fix-marker-index.patch'
'fix-oniguruma.patch'
'run-as-node.patch'
+ 'symbols-view-use-system-ctags.patch'
'tree-view.patch'
'use-system-apm.patch'
'use-system-electron.patch')
@@ -32,6 +34,7 @@
'2569702bee0508ee38a181f28bc99d6844725de206362a010705d84da09735c3'
'c0ae6c64802bc20219bc9142bd6e62e65853044b4a678d3f7ec72dcb61d22274'
'1533581eeede375924a3431fed7e6641a156f765bf252590d73da4259f07343f'
+ 'a5a2b1fefa29799b3225c4aa3fe0e5b057b2b320f98ad7bc28d3596923e52b41'
'109af01ceae45615994f2ac08292c44db339bf7ef89369b077e04fcfc35aa3dd'
'7771ff6ddf06bedeb37ff47bf98f685cc67585e6f831d2add9a31078383a6fbe'
'23d9d2976ad23f17d7c6e7e09c5de5aceae72a5577f811723bf8c7885b319c05')
@@ -61,6 +64,12 @@
apm clean
apm install
+ # Use system ctags
+ cd node_modules/symbols-view
+ patch -Np1 -i "${srcdir}"/symbols-view-use-system-ctags.patch
+ rm -r vendor
+ cd ../..
+
# Fix for Node 6
cd node_modules/autocomplete-plus
patch -Np1 -i "${srcdir}"/autocomplete-plus.patch
Added: symbols-view-use-system-ctags.patch
===================================================================
--- symbols-view-use-system-ctags.patch (rev 0)
+++ symbols-view-use-system-ctags.patch 2016-08-13 08:24:35 UTC (rev 186697)
@@ -0,0 +1,11 @@
+--- a/lib/tag-generator.coffee
++++ b/lib/tag-generator.coffee
+@@ -56,7 +56,7 @@ class TagGenerator
+ generate: ->
+ tags = {}
+ packageRoot = @getPackageRoot()
+- command = path.join(packageRoot, 'vendor', "ctags-#{process.platform}")
++ command = 'ctags'
+ defaultCtagsFile = path.join(packageRoot, 'lib', 'ctags-config')
+ args = ["--options=#{defaultCtagsFile}", '--fields=+KS']
+
More information about the arch-commits
mailing list