[arch-commits] Commit in atom/repos (56 files)
Nicola Squartini
tensor5 at archlinux.org
Sat Oct 22 15:30:16 UTC 2016
Date: Saturday, October 22, 2016 @ 15:30:16
Author: tensor5
Revision: 192977
archrelease: copy trunk to community-i686, community-x86_64
Added:
atom/repos/community-i686/PKGBUILD
(from rev 192976, atom/trunk/PKGBUILD)
atom/repos/community-i686/autocomplete-plus.patch
(from rev 192976, atom/trunk/autocomplete-plus.patch)
atom/repos/community-i686/beforeunload.patch
(from rev 192976, atom/trunk/beforeunload.patch)
atom/repos/community-i686/deprecated-api.patch
(from rev 192976, atom/trunk/deprecated-api.patch)
atom/repos/community-i686/fix-atom-sh.patch
(from rev 192976, atom/trunk/fix-atom-sh.patch)
atom/repos/community-i686/fix-ime-events-handler.patch
(from rev 192976, atom/trunk/fix-ime-events-handler.patch)
atom/repos/community-i686/fix-license-path.patch
(from rev 192976, atom/trunk/fix-license-path.patch)
atom/repos/community-i686/fix-oniguruma.patch
(from rev 192976, atom/trunk/fix-oniguruma.patch)
atom/repos/community-i686/fix-pane-resize-handle.patch
(from rev 192976, atom/trunk/fix-pane-resize-handle.patch)
atom/repos/community-i686/run-as-node.patch
(from rev 192976, atom/trunk/run-as-node.patch)
atom/repos/community-i686/symbols-view-use-system-ctags.patch
(from rev 192976, atom/trunk/symbols-view-use-system-ctags.patch)
atom/repos/community-i686/use-system-apm.patch
(from rev 192976, atom/trunk/use-system-apm.patch)
atom/repos/community-i686/use-system-electron.patch
(from rev 192976, atom/trunk/use-system-electron.patch)
atom/repos/community-x86_64/PKGBUILD
(from rev 192976, atom/trunk/PKGBUILD)
atom/repos/community-x86_64/autocomplete-plus.patch
(from rev 192976, atom/trunk/autocomplete-plus.patch)
atom/repos/community-x86_64/beforeunload.patch
(from rev 192976, atom/trunk/beforeunload.patch)
atom/repos/community-x86_64/deprecated-api.patch
(from rev 192976, atom/trunk/deprecated-api.patch)
atom/repos/community-x86_64/fix-atom-sh.patch
(from rev 192976, atom/trunk/fix-atom-sh.patch)
atom/repos/community-x86_64/fix-ime-events-handler.patch
(from rev 192976, atom/trunk/fix-ime-events-handler.patch)
atom/repos/community-x86_64/fix-license-path.patch
(from rev 192976, atom/trunk/fix-license-path.patch)
atom/repos/community-x86_64/fix-oniguruma.patch
(from rev 192976, atom/trunk/fix-oniguruma.patch)
atom/repos/community-x86_64/fix-pane-resize-handle.patch
(from rev 192976, atom/trunk/fix-pane-resize-handle.patch)
atom/repos/community-x86_64/run-as-node.patch
(from rev 192976, atom/trunk/run-as-node.patch)
atom/repos/community-x86_64/symbols-view-use-system-ctags.patch
(from rev 192976, atom/trunk/symbols-view-use-system-ctags.patch)
atom/repos/community-x86_64/use-system-apm.patch
(from rev 192976, atom/trunk/use-system-apm.patch)
atom/repos/community-x86_64/use-system-electron.patch
(from rev 192976, atom/trunk/use-system-electron.patch)
Deleted:
atom/repos/community-i686/PKGBUILD
atom/repos/community-i686/autocomplete-plus.patch
atom/repos/community-i686/beforeunload.patch
atom/repos/community-i686/deprecated-api.patch
atom/repos/community-i686/fix-atom-sh.patch
atom/repos/community-i686/fix-ime-events-handler.patch
atom/repos/community-i686/fix-license-path.patch
atom/repos/community-i686/fix-marker-index.patch
atom/repos/community-i686/fix-oniguruma.patch
atom/repos/community-i686/fix-pane-resize-handle.patch
atom/repos/community-i686/run-as-node.patch
atom/repos/community-i686/symbols-view-use-system-ctags.patch
atom/repos/community-i686/tree-view.patch
atom/repos/community-i686/use-system-apm.patch
atom/repos/community-i686/use-system-electron.patch
atom/repos/community-x86_64/PKGBUILD
atom/repos/community-x86_64/autocomplete-plus.patch
atom/repos/community-x86_64/beforeunload.patch
atom/repos/community-x86_64/deprecated-api.patch
atom/repos/community-x86_64/fix-atom-sh.patch
atom/repos/community-x86_64/fix-ime-events-handler.patch
atom/repos/community-x86_64/fix-license-path.patch
atom/repos/community-x86_64/fix-marker-index.patch
atom/repos/community-x86_64/fix-oniguruma.patch
atom/repos/community-x86_64/fix-pane-resize-handle.patch
atom/repos/community-x86_64/run-as-node.patch
atom/repos/community-x86_64/symbols-view-use-system-ctags.patch
atom/repos/community-x86_64/tree-view.patch
atom/repos/community-x86_64/use-system-apm.patch
atom/repos/community-x86_64/use-system-electron.patch
------------------------------------------------------+
/PKGBUILD | 262 +++++++++++++++++
/autocomplete-plus.patch | 22 +
/beforeunload.patch | 28 +
/deprecated-api.patch | 34 ++
/fix-atom-sh.patch | 208 +++++++++++++
/fix-ime-events-handler.patch | 94 ++++++
/fix-license-path.patch | 44 ++
/fix-oniguruma.patch | 26 +
/fix-pane-resize-handle.patch | 36 ++
/run-as-node.patch | 22 +
/symbols-view-use-system-ctags.patch | 22 +
/use-system-apm.patch | 32 ++
/use-system-electron.patch | 226 ++++++++++++++
community-i686/PKGBUILD | 166 ----------
community-i686/autocomplete-plus.patch | 11
community-i686/beforeunload.patch | 14
community-i686/deprecated-api.patch | 17 -
community-i686/fix-atom-sh.patch | 102 ------
community-i686/fix-ime-events-handler.patch | 47 ---
community-i686/fix-license-path.patch | 22 -
community-i686/fix-marker-index.patch | 37 --
community-i686/fix-oniguruma.patch | 13
community-i686/fix-pane-resize-handle.patch | 18 -
community-i686/run-as-node.patch | 11
community-i686/symbols-view-use-system-ctags.patch | 11
community-i686/tree-view.patch | 11
community-i686/use-system-apm.patch | 29 -
community-i686/use-system-electron.patch | 76 ----
community-x86_64/PKGBUILD | 166 ----------
community-x86_64/autocomplete-plus.patch | 11
community-x86_64/beforeunload.patch | 14
community-x86_64/deprecated-api.patch | 17 -
community-x86_64/fix-atom-sh.patch | 102 ------
community-x86_64/fix-ime-events-handler.patch | 47 ---
community-x86_64/fix-license-path.patch | 22 -
community-x86_64/fix-marker-index.patch | 37 --
community-x86_64/fix-oniguruma.patch | 13
community-x86_64/fix-pane-resize-handle.patch | 18 -
community-x86_64/run-as-node.patch | 11
community-x86_64/symbols-view-use-system-ctags.patch | 11
community-x86_64/tree-view.patch | 11
community-x86_64/use-system-apm.patch | 29 -
community-x86_64/use-system-electron.patch | 76 ----
43 files changed, 1056 insertions(+), 1170 deletions(-)
Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-i686/PKGBUILD 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,166 +0,0 @@
-# $Id$
-# Maintainer: Nicola Squartini <tensor5 at gmail.com>
-
-pkgname=atom
-pkgver=1.10.2
-pkgrel=4
-pkgdesc='A hackable text editor for the 21st Century'
-arch=('i686' 'x86_64')
-url='https://github.com/atom/atom'
-license=('MIT' 'custom')
-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'
- 'deprecated-api.patch'
- 'fix-atom-sh.patch'
- 'fix-ime-events-handler.patch'
- 'fix-license-path.patch'
- 'fix-marker-index.patch'
- 'fix-oniguruma.patch'
- 'fix-pane-resize-handle.patch'
- 'run-as-node.patch'
- 'symbols-view-use-system-ctags.patch'
- 'tree-view.patch'
- 'use-system-apm.patch'
- 'use-system-electron.patch')
-sha256sums=('de47aa7d80b3e31f1c42823fec6e98a9473021c022970a8548cb36c498a7e6f8'
- '58198d214edc434580c5764f749e26fb686d77c3c983d01f247f48aec84eb1a4'
- 'e92e23bbf839bec6611b2ac76c1f5bba35b476983b0faa9b310288e2956247a2'
- '6fca91b3e80248a96fc4b6b0228602d4dd68ef851cb059a97a7379e72e53b432'
- 'd3eb239f53feb3181fb4d57d2db391d7b31ce2188c5bd5b79d9ed3133351cd90'
- '51e8f64206cdc96bddd934ffbf0a3b3509617deb9c9aad0ccb21df4b5b72dfee'
- 'a606d1efbea1f68a0a9c250b1d7023315a5392fa23f220600304c7308be7ebbb'
- '2569702bee0508ee38a181f28bc99d6844725de206362a010705d84da09735c3'
- 'c0ae6c64802bc20219bc9142bd6e62e65853044b4a678d3f7ec72dcb61d22274'
- '41aaa35b638e29d28b5d92077b7b242725046cc11d4c51d3eca589eaed977ec5'
- '991626ab07c90643e14039a1367769761262ddbc108a66193c08fe146b0222e9'
- 'a5a2b1fefa29799b3225c4aa3fe0e5b057b2b320f98ad7bc28d3596923e52b41'
- '109af01ceae45615994f2ac08292c44db339bf7ef89369b077e04fcfc35aa3dd'
- '0c9a815a3e6f13134cd648af67e1de3b9c24297b731d5815967a08256ec54f58'
- '1ee2fac6dd1f1ffb82b312a716fc96d8a838a16a727894ab3240979a5773fb0d')
-
-prepare() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- patch -Np1 -i "${srcdir}"/fix-atom-sh.patch
- patch -Np1 -i "${srcdir}"/use-system-electron.patch
- patch -Np1 -i "${srcdir}"/use-system-apm.patch
- patch -Np1 -i "${srcdir}"/fix-license-path.patch
-
- # apm with system (updated) nodejs cannot 'require' modules inside asar
- sed -e "s/, 'generate-asar'//" -i build/Gruntfile.coffee
-
- # Fix for Electron 1.2.0
- patch -Np1 -i "${srcdir}"/beforeunload.patch
- patch -Np1 -i "${srcdir}"/run-as-node.patch
-
- # Fix for Electron 1.3.0
- patch -Np1 -i "${srcdir}"/fix-pane-resize-handle.patch
-
- # Fix for Electron 1.4.0
- patch -Np1 -i "${srcdir}"/fix-ime-events-handler.patch
-}
-
-build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- export ATOM_RESOURCE_PATH="$srcdir/atom-$pkgver"
- # If unset, ~/.atom/.node-gyp/.atom/.npm is used
- export NPM_CONFIG_CACHE="${HOME}/.atom/.npm"
- 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
- cd ../..
- cd node_modules/tree-view
- patch -Np1 -i "${srcdir}"/tree-view.patch
- cd ../..
-
- # Fix for Electron 1.3
- _node_gyp="node-gyp rebuild --target=$(</usr/lib/electron/version) --dist-url=https://atom.io/download/atom-shell"
- cd node_modules/marker-index
- patch -Np1 -i "${srcdir}"/fix-marker-index.patch
- ${_node_gyp}
- cd ../oniguruma
- patch -Np1 -i "${srcdir}"/fix-oniguruma.patch
- ${_node_gyp}
- cd ../../
-
- _packagesToDedupe=('abbrev'
- 'amdefine'
- 'atom-space-pen-views'
- 'cheerio'
- 'domelementtype'
- 'fs-plus'
- 'grim'
- 'highlights'
- 'humanize-plus'
- 'iconv-lite'
- 'inherits'
- 'loophole'
- 'oniguruma'
- 'q'
- 'request'
- 'rimraf'
- 'roaster'
- 'season'
- 'sigmund'
- 'semver'
- 'through'
- 'temp')
- apm dedupe ${_packagesToDedupe[@]}
- cd build
- npm install
- cd ..
- script/grunt --channel=stable
-}
-
-package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- install -d -m 755 "${pkgdir}"/usr/lib
- cp -r out/Atom/resources/app "${pkgdir}"/usr/lib
- mv "${pkgdir}"/usr/lib/app "${pkgdir}"/usr/lib/atom
-
- install -d -m 755 "${pkgdir}/usr/share/applications"
- sed -e "s|<%= appName %>|Atom|" \
- -e "s/<%= description %>/${pkgdesc}/" \
- -e "s|<%= installDir %>/share/<%= appFileName %>/atom|electron --app=/usr/lib/atom|" \
- -e "s|<%= iconPath %>|atom|" \
- resources/linux/atom.desktop.in > "${pkgdir}/usr/share/applications/atom.desktop"
-
- for size in 16 24 32 48 64 128 256 512 1024; do
- install -D -m 644 resources/app-icons/stable/png/${size}.png \
- "${pkgdir}"/usr/share/icons/hicolor/${size}x${size}/apps/atom.png
- done
- ln -sf ../../../share/icons/hicolor/1024x1024/apps/atom.png \
- "${pkgdir}"/usr/lib/atom/resources/atom.png
-
- install -D -m 755 out/Atom/resources/new-app/atom.sh "${pkgdir}/usr/bin/atom"
-
- install -D -m 644 out/Atom/resources/LICENSE.md \
- "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
-
- # Remove useless stuff
- find "${pkgdir}"/usr/lib/atom/node_modules \
- -name "*.a" -exec rm '{}' \; \
- -or -name "*.bat" -exec rm '{}' \; \
- -or -name "benchmark" -prune -exec rm -r '{}' \; \
- -or -name "doc" -prune -exec rm -r '{}' \; \
- -or -name "html" -prune -exec rm -r '{}' \; \
- -or -name "man" -prune -exec rm -r '{}' \; \
- -or -path "*/less/gradle" -prune -exec rm -r '{}' \; \
- -or -path "*/task-lists/src" -prune -exec rm -r '{}' \;
-}
Copied: atom/repos/community-i686/PKGBUILD (from rev 192976, atom/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,131 @@
+# $Id$
+# Maintainer: Nicola Squartini <tensor5 at gmail.com>
+
+pkgname=atom
+pkgver=1.11.2
+pkgrel=1
+pkgdesc='A hackable text editor for the 21st Century'
+arch=('i686' 'x86_64')
+url='https://github.com/atom/atom'
+license=('MIT' 'custom')
+depends=('apm'
+ 'electron')
+makedepends=('git' 'npm')
+optdepends=('ctags: symbol indexing support')
+options=(!emptydirs)
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/atom/atom/archive/v${pkgver}.tar.gz"
+ 'autocomplete-plus.patch'
+ 'beforeunload.patch'
+ 'deprecated-api.patch'
+ 'fix-atom-sh.patch'
+ 'fix-ime-events-handler.patch'
+ 'fix-license-path.patch'
+ 'fix-oniguruma.patch'
+ 'fix-pane-resize-handle.patch'
+ 'run-as-node.patch'
+ 'symbols-view-use-system-ctags.patch'
+ 'use-system-apm.patch'
+ 'use-system-electron.patch')
+sha256sums=('b7c09d03d950b0a6aca82225f072d9005d5681887e3a7c466b0504bf64d7c5cd'
+ '58198d214edc434580c5764f749e26fb686d77c3c983d01f247f48aec84eb1a4'
+ '9c419697ed1ce272a864f1a89c91d4a2e314f88ba1dc6f1836468db6572f95b6'
+ '6fca91b3e80248a96fc4b6b0228602d4dd68ef851cb059a97a7379e72e53b432'
+ 'b0c94877962e98818b8c14865c35ac0d0e088838e24670264069b7417ce1b6ab'
+ '25ccca2a773f6bf449691eac10fc4e78f5c2d264092c9f792177f6bd7ea32cce'
+ '883b0be8b68cda5d1004e99e8c1622ca633cf3eaf5c4aad7cc25f8dcb1235350'
+ 'c0ae6c64802bc20219bc9142bd6e62e65853044b4a678d3f7ec72dcb61d22274'
+ '41aaa35b638e29d28b5d92077b7b242725046cc11d4c51d3eca589eaed977ec5'
+ 'b17d546406362572d94b5aee6cc66d9a55fd3967fc256d54f5070cc6ff415554'
+ 'a5a2b1fefa29799b3225c4aa3fe0e5b057b2b320f98ad7bc28d3596923e52b41'
+ '8ad15829dd52df15eb2a963f96b5f1869950c6e90ed8dfeac2a3202d8389d4a2'
+ 'c246a7ee41a2b0f9334b6130abf58587fc70a85f5a24922e2e4083c213e6468a')
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ patch -Np1 -i "${srcdir}"/fix-atom-sh.patch
+ patch -Np1 -i "${srcdir}"/use-system-electron.patch
+ patch -Np1 -i "${srcdir}"/use-system-apm.patch
+ patch -Np1 -i "${srcdir}"/fix-license-path.patch
+
+ # Fix for Electron 1.2.0
+ patch -Np1 -i "${srcdir}"/beforeunload.patch
+ patch -Np1 -i "${srcdir}"/run-as-node.patch
+
+ # Fix for Electron 1.3.0
+ patch -Np1 -i "${srcdir}"/fix-pane-resize-handle.patch
+
+ # Fix for Electron 1.4.0
+ patch -Np1 -i "${srcdir}"/fix-ime-events-handler.patch
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ export ATOM_RESOURCE_PATH="$srcdir/atom-$pkgver"
+ # If unset, ~/.atom/.node-gyp/.atom/.npm is used
+ export NPM_CONFIG_CACHE="${HOME}/.atom/.npm"
+ 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
+ cd ../..
+
+ # Fix for Electron 1.3
+ _node_gyp="node-gyp rebuild --target=$(</usr/lib/electron/version) --dist-url=https://atom.io/download/atom-shell"
+ cd node_modules/oniguruma
+ patch -Np1 -i "${srcdir}"/fix-oniguruma.patch
+ ${_node_gyp}
+ cd ../../
+
+ cd script
+ npm install
+ ./build
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ install -d -m 755 "${pkgdir}"/usr/lib
+ cp -r out/app "${pkgdir}"/usr/lib/atom
+
+ install -d -m 755 "${pkgdir}/usr/share/applications"
+ sed -e "s|<%= appName %>|Atom|" \
+ -e "s/<%= description %>/${pkgdesc}/" \
+ -e "s|<%= installDir %>/share/<%= appFileName %>/atom|electron --app=/usr/lib/atom|" \
+ -e "s|<%= iconPath %>|atom|" \
+ resources/linux/atom.desktop.in > "${pkgdir}/usr/share/applications/atom.desktop"
+
+ for size in 16 24 32 48 64 128 256 512 1024; do
+ install -D -m 644 resources/app-icons/stable/png/${size}.png \
+ "${pkgdir}"/usr/share/icons/hicolor/${size}x${size}/apps/atom.png
+ done
+ ln -sf ../../../share/icons/hicolor/1024x1024/apps/atom.png \
+ "${pkgdir}"/usr/lib/atom/resources/atom.png
+
+ install -D -m 755 atom.sh "${pkgdir}/usr/bin/atom"
+
+ install -d -m 755 "${pkgdir}/usr/share/licenses/${pkgname}"
+ node -e "require('./script/lib/get-license-text')().then((licenseText) => require('fs').writeFileSync('${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md', licenseText))"
+
+ # Remove useless stuff
+ rm "${pkgdir}"/usr/lib/atom/node_modules/.bin/pegjs
+ find "${pkgdir}"/usr/lib/atom/node_modules \
+ -name "*.a" -exec rm '{}' \; \
+ -or -name "*.bat" -exec rm '{}' \; \
+ -or -name "*.node" -exec chmod a-x '{}' \; \
+ -or -name "benchmark" -prune -exec rm -r '{}' \; \
+ -or -name "doc" -prune -exec rm -r '{}' \; \
+ -or -name "html" -prune -exec rm -r '{}' \; \
+ -or -name "man" -prune -exec rm -r '{}' \; \
+ -or -path "*/less/gradle" -prune -exec rm -r '{}' \; \
+ -or -path "*/task-lists/src" -prune -exec rm -r '{}' \;
+}
Deleted: community-i686/autocomplete-plus.patch
===================================================================
--- community-i686/autocomplete-plus.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-i686/autocomplete-plus.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,11 +0,0 @@
---- a/lib/autocomplete-manager.coffee
-+++ b/lib/autocomplete-manager.coffee
-@@ -441,7 +441,7 @@ class AutocompleteManager
- return @isCurrentFileBlackListedCache
-
- minimatch ?= require('minimatch')
-- fileName = path.basename(@buffer.getPath())
-+ fileName = path.basename(@buffer.getPath() or '')
- for blacklistGlob in @fileBlacklist
- if minimatch(fileName, blacklistGlob)
- @isCurrentFileBlackListedCache = true
Copied: atom/repos/community-i686/autocomplete-plus.patch (from rev 192976, atom/trunk/autocomplete-plus.patch)
===================================================================
--- community-i686/autocomplete-plus.patch (rev 0)
+++ community-i686/autocomplete-plus.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,11 @@
+--- a/lib/autocomplete-manager.coffee
++++ b/lib/autocomplete-manager.coffee
+@@ -441,7 +441,7 @@ class AutocompleteManager
+ return @isCurrentFileBlackListedCache
+
+ minimatch ?= require('minimatch')
+- fileName = path.basename(@buffer.getPath())
++ fileName = path.basename(@buffer.getPath() or '')
+ for blacklistGlob in @fileBlacklist
+ if minimatch(fileName, blacklistGlob)
+ @isCurrentFileBlackListedCache = true
Deleted: community-i686/beforeunload.patch
===================================================================
--- community-i686/beforeunload.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-i686/beforeunload.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,14 +0,0 @@
---- a/src/window-event-handler.coffee
-+++ b/src/window-event-handler.coffee
-@@ -145,9 +145,8 @@
- @atomEnvironment.storeWindowDimensions()
- if confirmed
- @atomEnvironment.unloadEditorWindow()
-- else
-- @applicationDelegate.didCancelWindowUnload()
--
-+ return
-+ @applicationDelegate.didCancelWindowUnload()
- confirmed
-
- handleWindowUnload: =>
Copied: atom/repos/community-i686/beforeunload.patch (from rev 192976, atom/trunk/beforeunload.patch)
===================================================================
--- community-i686/beforeunload.patch (rev 0)
+++ community-i686/beforeunload.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,14 @@
+--- a/src/window-event-handler.coffee
++++ b/src/window-event-handler.coffee
+@@ -161,9 +161,8 @@
+ @atomEnvironment.storeWindowDimensions()
+ if confirmed
+ @atomEnvironment.unloadEditorWindow()
+- else
+- @applicationDelegate.didCancelWindowUnload()
+-
++ return
++ @applicationDelegate.didCancelWindowUnload()
+ confirmed
+
+ handleWindowUnload: =>
Deleted: community-i686/deprecated-api.patch
===================================================================
--- community-i686/deprecated-api.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-i686/deprecated-api.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,17 +0,0 @@
---- a/src/browser/atom-window.coffee
-+++ b/src/browser/atom-window.coffee
-@@ -24,11 +24,11 @@
- options =
- show: false
- title: 'Atom'
-- 'web-preferences':
-- 'direct-write': true
-+ 'webPreferences':
-+ 'directWrite': true
-
- if @isSpec
-- options['web-preferences']['page-visibility'] = true
-+ options.webPreferences.backgroundThrottling = false
-
- # Don't set icon on Windows so the exe's ico will be used as window and
- # taskbar's icon. See https://github.com/atom/atom/issues/4811 for more.
Copied: atom/repos/community-i686/deprecated-api.patch (from rev 192976, atom/trunk/deprecated-api.patch)
===================================================================
--- community-i686/deprecated-api.patch (rev 0)
+++ community-i686/deprecated-api.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,17 @@
+--- a/src/browser/atom-window.coffee
++++ b/src/browser/atom-window.coffee
+@@ -24,11 +24,11 @@
+ options =
+ show: false
+ title: 'Atom'
+- 'web-preferences':
+- 'direct-write': true
++ 'webPreferences':
++ 'directWrite': true
+
+ if @isSpec
+- options['web-preferences']['page-visibility'] = true
++ options.webPreferences.backgroundThrottling = false
+
+ # Don't set icon on Windows so the exe's ico will be used as window and
+ # taskbar's icon. See https://github.com/atom/atom/issues/4811 for more.
Deleted: community-i686/fix-atom-sh.patch
===================================================================
--- community-i686/fix-atom-sh.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-i686/fix-atom-sh.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,102 +0,0 @@
---- a/atom.sh
-+++ b/atom.sh
-@@ -1,20 +1,5 @@
- #!/bin/bash
-
--if [ "$(uname)" == 'Darwin' ]; then
-- OS='Mac'
--elif [ "$(expr substr $(uname -s) 1 5)" == 'Linux' ]; then
-- OS='Linux'
--else
-- echo "Your platform ($(uname -a)) is not supported."
-- exit 1
--fi
--
--if [ "$(basename $0)" == 'atom-beta' ]; then
-- BETA_VERSION=true
--else
-- BETA_VERSION=
--fi
--
- while getopts ":wtfvh-:" opt; do
- case "$opt" in
- -)
-@@ -52,66 +37,22 @@
- export ELECTRON_ENABLE_LOGGING=1
- fi
-
--if [ $OS == 'Mac' ]; then
-- if [ -n "$BETA_VERSION" ]; then
-- ATOM_APP_NAME="Atom Beta.app"
-- else
-- ATOM_APP_NAME="Atom.app"
-- fi
-+ATOM_PATH="electron --app=/usr/lib/atom"
-
-- if [ -z "${ATOM_PATH}" ]; then
-- # If ATOM_PATH isnt set, check /Applications and then ~/Applications for Atom.app
-- if [ -x "/Applications/$ATOM_APP_NAME" ]; then
-- ATOM_PATH="/Applications"
-- elif [ -x "$HOME/Applications/$ATOM_APP_NAME" ]; then
-- ATOM_PATH="$HOME/Applications"
-- else
-- # We havent found an Atom.app, use spotlight to search for Atom
-- ATOM_PATH="$(mdfind "kMDItemCFBundleIdentifier == 'com.github.atom'" | grep -v ShipIt | head -1 | xargs -0 dirname)"
--
-- # Exit if Atom can't be found
-- if [ ! -x "$ATOM_PATH/$ATOM_APP_NAME" ]; then
-- echo "Cannot locate Atom.app, it is usually located in /Applications. Set the ATOM_PATH environment variable to the directory containing Atom.app."
-- exit 1
-- fi
-- fi
-- fi
-+ATOM_HOME="${ATOM_HOME:-$HOME/.atom}"
-+mkdir -p "$ATOM_HOME"
-
-- if [ $EXPECT_OUTPUT ]; then
-- "$ATOM_PATH/$ATOM_APP_NAME/Contents/MacOS/Atom" --executed-from="$(pwd)" --pid=$$ "$@"
-- exit $?
-- else
-- open -a "$ATOM_PATH/$ATOM_APP_NAME" -n --args --executed-from="$(pwd)" --pid=$$ --path-environment="$PATH" "$@"
-- fi
--elif [ $OS == 'Linux' ]; then
-- SCRIPT=$(readlink -f "$0")
-- USR_DIRECTORY=$(readlink -f $(dirname $SCRIPT)/..)
--
-- if [ -n "$BETA_VERSION" ]; then
-- ATOM_PATH="$USR_DIRECTORY/share/atom-beta/atom"
-- else
-- ATOM_PATH="$USR_DIRECTORY/share/atom/atom"
-- fi
--
-- ATOM_HOME="${ATOM_HOME:-$HOME/.atom}"
-- mkdir -p "$ATOM_HOME"
--
-- : ${TMPDIR:=/tmp}
--
-- [ -x "$ATOM_PATH" ] || ATOM_PATH="$TMPDIR/atom-build/Atom/atom"
--
-- if [ $EXPECT_OUTPUT ]; then
-- "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@"
-+if [ $EXPECT_OUTPUT ]; then
-+ $ATOM_PATH --executed-from="$(pwd)" --pid=$$ "$@"
-+ exit $?
-+else
-+ (
-+ nohup $ATOM_PATH --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1
-+ if [ $? -ne 0 ]; then
-+ cat "$ATOM_HOME/nohup.out"
- exit $?
-- else
-- (
-- nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1
-- if [ $? -ne 0 ]; then
-- cat "$ATOM_HOME/nohup.out"
-- exit $?
-- fi
-- ) &
- fi
-+ ) &
- fi
-
- # Exits this process when Atom is used as $EDITOR
Copied: atom/repos/community-i686/fix-atom-sh.patch (from rev 192976, atom/trunk/fix-atom-sh.patch)
===================================================================
--- community-i686/fix-atom-sh.patch (rev 0)
+++ community-i686/fix-atom-sh.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,104 @@
+--- a/atom.sh
++++ b/atom.sh
+@@ -1,20 +1,5 @@
+ #!/bin/bash
+
+-if [ "$(uname)" == 'Darwin' ]; then
+- OS='Mac'
+-elif [ "$(expr substr $(uname -s) 1 5)" == 'Linux' ]; then
+- OS='Linux'
+-else
+- echo "Your platform ($(uname -a)) is not supported."
+- exit 1
+-fi
+-
+-if [ "$(basename $0)" == 'atom-beta' ]; then
+- BETA_VERSION=true
+-else
+- BETA_VERSION=
+-fi
+-
+ while getopts ":wtfvh-:" opt; do
+ case "$opt" in
+ -)
+@@ -52,68 +37,22 @@
+ export ELECTRON_ENABLE_LOGGING=1
+ fi
+
+-if [ $OS == 'Mac' ]; then
+- if [ -n "$BETA_VERSION" ]; then
+- ATOM_APP_NAME="Atom Beta.app"
+- ATOM_EXECUTABLE_NAME="Atom Beta"
+- else
+- ATOM_APP_NAME="Atom.app"
+- ATOM_EXECUTABLE_NAME="Atom"
+- fi
++ATOM_PATH="electron --app=/usr/lib/atom"
+
+- if [ -z "${ATOM_PATH}" ]; then
+- # If ATOM_PATH isnt set, check /Applications and then ~/Applications for Atom.app
+- if [ -x "/Applications/$ATOM_APP_NAME" ]; then
+- ATOM_PATH="/Applications"
+- elif [ -x "$HOME/Applications/$ATOM_APP_NAME" ]; then
+- ATOM_PATH="$HOME/Applications"
+- else
+- # We havent found an Atom.app, use spotlight to search for Atom
+- ATOM_PATH="$(mdfind "kMDItemCFBundleIdentifier == 'com.github.atom'" | grep -v ShipIt | head -1 | xargs -0 dirname)"
+-
+- # Exit if Atom can't be found
+- if [ ! -x "$ATOM_PATH/$ATOM_APP_NAME" ]; then
+- echo "Cannot locate Atom.app, it is usually located in /Applications. Set the ATOM_PATH environment variable to the directory containing Atom.app."
+- exit 1
+- fi
+- fi
+- fi
++ATOM_HOME="${ATOM_HOME:-$HOME/.atom}"
++mkdir -p "$ATOM_HOME"
+
+- if [ $EXPECT_OUTPUT ]; then
+- "$ATOM_PATH/$ATOM_APP_NAME/Contents/MacOS/$ATOM_EXECUTABLE_NAME" --executed-from="$(pwd)" --pid=$$ "$@"
+- exit $?
+- else
+- open -a "$ATOM_PATH/$ATOM_APP_NAME" -n --args --executed-from="$(pwd)" --pid=$$ --path-environment="$PATH" "$@"
+- fi
+-elif [ $OS == 'Linux' ]; then
+- SCRIPT=$(readlink -f "$0")
+- USR_DIRECTORY=$(readlink -f $(dirname $SCRIPT)/..)
+-
+- if [ -n "$BETA_VERSION" ]; then
+- ATOM_PATH="$USR_DIRECTORY/share/atom-beta/atom"
+- else
+- ATOM_PATH="$USR_DIRECTORY/share/atom/atom"
+- fi
+-
+- ATOM_HOME="${ATOM_HOME:-$HOME/.atom}"
+- mkdir -p "$ATOM_HOME"
+-
+- : ${TMPDIR:=/tmp}
+-
+- [ -x "$ATOM_PATH" ] || ATOM_PATH="$TMPDIR/atom-build/Atom/atom"
+-
+- if [ $EXPECT_OUTPUT ]; then
+- "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@"
++if [ $EXPECT_OUTPUT ]; then
++ $ATOM_PATH --executed-from="$(pwd)" --pid=$$ "$@"
++ exit $?
++else
++ (
++ nohup $ATOM_PATH --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1
++ if [ $? -ne 0 ]; then
++ cat "$ATOM_HOME/nohup.out"
+ exit $?
+- else
+- (
+- nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1
+- if [ $? -ne 0 ]; then
+- cat "$ATOM_HOME/nohup.out"
+- exit $?
+- fi
+- ) &
+ fi
++ ) &
+ fi
+
+ # Exits this process when Atom is used as $EDITOR
Deleted: community-i686/fix-ime-events-handler.patch
===================================================================
--- community-i686/fix-ime-events-handler.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-i686/fix-ime-events-handler.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,47 +0,0 @@
---- a/src/text-editor-component.coffee
-+++ b/src/text-editor-component.coffee
-@@ -119,6 +119,7 @@ class TextEditorComponent
- @updateSync()
- @checkForVisibilityChange()
- @initialized = true
-+ @checkpointForIME = null
-
- destroy: ->
- @mounted = false
-@@ -309,19 +310,20 @@ class TextEditorComponent
- # User escape to cancel
- # 4. compositionend fired
- # OR User chooses a completion
-- # 4. compositionend fired
-- # 5. textInput fired; event.data == the completion string
-+ # 4. textInput fired; event.data == the completion string
-+ # 5. compositionend fired
-
-- checkpoint = null
- @domNode.addEventListener 'compositionstart', =>
- if @openedAccentedCharacterMenu
- @editor.selectLeft()
- @openedAccentedCharacterMenu = false
-- checkpoint = @editor.createCheckpoint()
-+ @checkpointForIME = @editor.createCheckpoint()
- @domNode.addEventListener 'compositionupdate', (event) =>
- @editor.insertText(event.data, select: true)
- @domNode.addEventListener 'compositionend', (event) =>
-- @editor.revertToCheckpoint(checkpoint)
-+ if @checkpointForIME
-+ @editor.revertToCheckpoint(@checkpointForIME)
-+ @checkpointForIME = null
- event.target.value = ''
-
- # Listen for selection changes and store the currently selected text
-@@ -373,6 +375,10 @@ class TextEditorComponent
- onTextInput: (event) =>
- event.stopPropagation()
-
-+ if @checkpointForIME
-+ @editor.revertToCheckpoint(@checkpointForIME)
-+ @checkpointForIME = null
-+
- # WARNING: If we call preventDefault on the input of a space character,
- # then the browser interprets the spacebar keypress as a page-down command,
- # causing spaces to scroll elements containing editors. This is impossible
Copied: atom/repos/community-i686/fix-ime-events-handler.patch (from rev 192976, atom/trunk/fix-ime-events-handler.patch)
===================================================================
--- community-i686/fix-ime-events-handler.patch (rev 0)
+++ community-i686/fix-ime-events-handler.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,47 @@
+--- a/src/text-editor-component.coffee
++++ b/src/text-editor-component.coffee
+@@ -111,6 +111,7 @@ class TextEditorComponent
+ @updateSync()
+ @checkForVisibilityChange()
+ @initialized = true
++ @checkpointForIME = null
+
+ destroy: ->
+ @mounted = false
+@@ -301,19 +302,20 @@ class TextEditorComponent
+ # User escape to cancel
+ # 4. compositionend fired
+ # OR User chooses a completion
+- # 4. compositionend fired
+- # 5. textInput fired; event.data == the completion string
++ # 4. textInput fired; event.data == the completion string
++ # 5. compositionend fired
+
+- checkpoint = null
+ @domNode.addEventListener 'compositionstart', =>
+ if @openedAccentedCharacterMenu
+ @editor.selectLeft()
+ @openedAccentedCharacterMenu = false
+- checkpoint = @editor.createCheckpoint()
++ @checkpointForIME = @editor.createCheckpoint()
+ @domNode.addEventListener 'compositionupdate', (event) =>
+ @editor.insertText(event.data, select: true)
+ @domNode.addEventListener 'compositionend', (event) =>
+- @editor.revertToCheckpoint(checkpoint)
++ if @checkpointForIME
++ @editor.revertToCheckpoint(@checkpointForIME)
++ @checkpointForIME = null
+ event.target.value = ''
+
+ # Listen for selection changes and store the currently selected text
+@@ -353,6 +355,10 @@ class TextEditorComponent
+ onTextInput: (event) =>
+ event.stopPropagation()
+
++ if @checkpointForIME
++ @editor.revertToCheckpoint(@checkpointForIME)
++ @checkpointForIME = null
++
+ # WARNING: If we call preventDefault on the input of a space character,
+ # then the browser interprets the spacebar keypress as a page-down command,
+ # causing spaces to scroll elements containing editors. This is impossible
Deleted: community-i686/fix-license-path.patch
===================================================================
--- community-i686/fix-license-path.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-i686/fix-license-path.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,22 +0,0 @@
---- a/src/main-process/atom-application.coffee
-+++ b/src/main-process/atom-application.coffee
-@@ -213,7 +213,7 @@
- @openPathOnEvent('application:open-your-keymap', 'atom://.atom/keymap')
- @openPathOnEvent('application:open-your-snippets', 'atom://.atom/snippets')
- @openPathOnEvent('application:open-your-stylesheet', 'atom://.atom/stylesheet')
-- @openPathOnEvent('application:open-license', path.join(process.resourcesPath, 'LICENSE.md'))
-+ @openPathOnEvent('application:open-license', '/usr/share/licenses/atom/LICENSE.md')
-
- app.on 'before-quit', =>
- @quitting = true
---- a/src/workspace.coffee
-+++ b/src/workspace.coffee
-@@ -459,7 +459,7 @@
-
- # Open Atom's license in the active pane.
- openLicense: ->
-- @open(path.join(process.resourcesPath, 'LICENSE.md'))
-+ @open('/usr/share/licenses/atom/LICENSE.md')
-
- # Synchronously open the given URI in the active pane. **Only use this method
- # in specs. Calling this in production code will block the UI thread and
Copied: atom/repos/community-i686/fix-license-path.patch (from rev 192976, atom/trunk/fix-license-path.patch)
===================================================================
--- community-i686/fix-license-path.patch (rev 0)
+++ community-i686/fix-license-path.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,22 @@
+--- a/src/main-process/atom-application.coffee
++++ b/src/main-process/atom-application.coffee
+@@ -231,7 +231,7 @@
+ @openPathOnEvent('application:open-your-keymap', 'atom://.atom/keymap')
+ @openPathOnEvent('application:open-your-snippets', 'atom://.atom/snippets')
+ @openPathOnEvent('application:open-your-stylesheet', 'atom://.atom/stylesheet')
+- @openPathOnEvent('application:open-license', path.join(process.resourcesPath, 'LICENSE.md'))
++ @openPathOnEvent('application:open-license', '/usr/share/licenses/atom/LICENSE.md')
+
+ @disposable.add ipcHelpers.on app, 'before-quit', =>
+ @quitting = true
+--- a/src/workspace.coffee
++++ b/src/workspace.coffee
+@@ -461,7 +461,7 @@
+
+ # Open Atom's license in the active pane.
+ openLicense: ->
+- @open(path.join(process.resourcesPath, 'LICENSE.md'))
++ @open('/usr/share/licenses/atom/LICENSE.md')
+
+ # Synchronously open the given URI in the active pane. **Only use this method
+ # in specs. Calling this in production code will block the UI thread and
Deleted: community-i686/fix-marker-index.patch
===================================================================
--- community-i686/fix-marker-index.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-i686/fix-marker-index.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,37 +0,0 @@
---- a/src/native/marker-index-wrapper.cc
-+++ b/src/native/marker-index-wrapper.cc
-@@ -18,20 +18,20 @@ public:
- constructorTemplate->SetClassName(
- Nan::New<String>("MarkerIndex").ToLocalChecked());
- constructorTemplate->InstanceTemplate()->SetInternalFieldCount(1);
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("generateRandomNumber").ToLocalChecked(), Nan::New<FunctionTemplate>(GenerateRandomNumber)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("insert").ToLocalChecked(), Nan::New<FunctionTemplate>(Insert)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("setExclusive").ToLocalChecked(), Nan::New<FunctionTemplate>(SetExclusive)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("delete").ToLocalChecked(), Nan::New<FunctionTemplate>(Delete)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("splice").ToLocalChecked(), Nan::New<FunctionTemplate>(Splice)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("getStart").ToLocalChecked(), Nan::New<FunctionTemplate>(GetStart)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("getEnd").ToLocalChecked(), Nan::New<FunctionTemplate>(GetEnd)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("compare").ToLocalChecked(), Nan::New<FunctionTemplate>(Compare)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("findIntersecting").ToLocalChecked(), Nan::New<FunctionTemplate>(FindIntersecting)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("findContaining").ToLocalChecked(), Nan::New<FunctionTemplate>(FindContaining)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("findContainedIn").ToLocalChecked(), Nan::New<FunctionTemplate>(FindContainedIn)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("findStartingIn").ToLocalChecked(), Nan::New<FunctionTemplate>(FindStartingIn)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("findEndingIn").ToLocalChecked(), Nan::New<FunctionTemplate>(FindEndingIn)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("dump").ToLocalChecked(), Nan::New<FunctionTemplate>(Dump)->GetFunction());
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("generateRandomNumber").ToLocalChecked(), Nan::New<FunctionTemplate>(GenerateRandomNumber));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("insert").ToLocalChecked(), Nan::New<FunctionTemplate>(Insert));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("setExclusive").ToLocalChecked(), Nan::New<FunctionTemplate>(SetExclusive));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("delete").ToLocalChecked(), Nan::New<FunctionTemplate>(Delete));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("splice").ToLocalChecked(), Nan::New<FunctionTemplate>(Splice));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("getStart").ToLocalChecked(), Nan::New<FunctionTemplate>(GetStart));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("getEnd").ToLocalChecked(), Nan::New<FunctionTemplate>(GetEnd));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("compare").ToLocalChecked(), Nan::New<FunctionTemplate>(Compare));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("findIntersecting").ToLocalChecked(), Nan::New<FunctionTemplate>(FindIntersecting));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("findContaining").ToLocalChecked(), Nan::New<FunctionTemplate>(FindContaining));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("findContainedIn").ToLocalChecked(), Nan::New<FunctionTemplate>(FindContainedIn));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("findStartingIn").ToLocalChecked(), Nan::New<FunctionTemplate>(FindStartingIn));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("findEndingIn").ToLocalChecked(), Nan::New<FunctionTemplate>(FindEndingIn));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("dump").ToLocalChecked(), Nan::New<FunctionTemplate>(Dump));
-
- // assign Number.isFinite for use from C++
- Local<String> number_string = Nan::New("Number").ToLocalChecked();
Deleted: community-i686/fix-oniguruma.patch
===================================================================
--- community-i686/fix-oniguruma.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-i686/fix-oniguruma.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,13 +0,0 @@
---- a/src/onig-scanner.cc
-+++ b/src/onig-scanner.cc
-@@ -16,8 +16,8 @@ void OnigScanner::Init(Local<Object> target) {
- Local<FunctionTemplate> tpl = Nan::New<FunctionTemplate>(OnigScanner::New);
- tpl->SetClassName(Nan::New<String>("OnigScanner").ToLocalChecked());
- tpl->InstanceTemplate()->SetInternalFieldCount(1);
-- tpl->PrototypeTemplate()->Set(Nan::New<String>("_findNextMatch").ToLocalChecked(), Nan::New<FunctionTemplate>(OnigScanner::FindNextMatch)->GetFunction());
-- tpl->PrototypeTemplate()->Set(Nan::New<String>("_findNextMatchSync").ToLocalChecked(), Nan::New<FunctionTemplate>(OnigScanner::FindNextMatchSync)->GetFunction());
-+ tpl->PrototypeTemplate()->Set(Nan::New<String>("_findNextMatch").ToLocalChecked(), Nan::New<FunctionTemplate>(OnigScanner::FindNextMatch));
-+ tpl->PrototypeTemplate()->Set(Nan::New<String>("_findNextMatchSync").ToLocalChecked(), Nan::New<FunctionTemplate>(OnigScanner::FindNextMatchSync));
-
- target->Set(Nan::New<String>("OnigScanner").ToLocalChecked(), tpl->GetFunction());
- }
Copied: atom/repos/community-i686/fix-oniguruma.patch (from rev 192976, atom/trunk/fix-oniguruma.patch)
===================================================================
--- community-i686/fix-oniguruma.patch (rev 0)
+++ community-i686/fix-oniguruma.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,13 @@
+--- a/src/onig-scanner.cc
++++ b/src/onig-scanner.cc
+@@ -16,8 +16,8 @@ void OnigScanner::Init(Local<Object> target) {
+ Local<FunctionTemplate> tpl = Nan::New<FunctionTemplate>(OnigScanner::New);
+ tpl->SetClassName(Nan::New<String>("OnigScanner").ToLocalChecked());
+ tpl->InstanceTemplate()->SetInternalFieldCount(1);
+- tpl->PrototypeTemplate()->Set(Nan::New<String>("_findNextMatch").ToLocalChecked(), Nan::New<FunctionTemplate>(OnigScanner::FindNextMatch)->GetFunction());
+- tpl->PrototypeTemplate()->Set(Nan::New<String>("_findNextMatchSync").ToLocalChecked(), Nan::New<FunctionTemplate>(OnigScanner::FindNextMatchSync)->GetFunction());
++ tpl->PrototypeTemplate()->Set(Nan::New<String>("_findNextMatch").ToLocalChecked(), Nan::New<FunctionTemplate>(OnigScanner::FindNextMatch));
++ tpl->PrototypeTemplate()->Set(Nan::New<String>("_findNextMatchSync").ToLocalChecked(), Nan::New<FunctionTemplate>(OnigScanner::FindNextMatchSync));
+
+ target->Set(Nan::New<String>("OnigScanner").ToLocalChecked(), tpl->GetFunction());
+ }
Deleted: community-i686/fix-pane-resize-handle.patch
===================================================================
--- community-i686/fix-pane-resize-handle.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-i686/fix-pane-resize-handle.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,18 +0,0 @@
---- a/static/panes.less
-+++ b/static/panes.less
-@@ -15,7 +15,6 @@ atom-pane-container {
- min-width: 0;
-
- & > atom-pane-resize-handle {
-- position: absolute;
- z-index: 3;
- }
- }
-@@ -39,6 +38,7 @@ atom-pane-container {
- width: 8px;
- height: 100%;
- margin-left: -4px;
-+ margin-right: -4px;
- cursor: col-resize;
- border-right: none;
- }
Copied: atom/repos/community-i686/fix-pane-resize-handle.patch (from rev 192976, atom/trunk/fix-pane-resize-handle.patch)
===================================================================
--- community-i686/fix-pane-resize-handle.patch (rev 0)
+++ community-i686/fix-pane-resize-handle.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,18 @@
+--- a/static/panes.less
++++ b/static/panes.less
+@@ -15,7 +15,6 @@ atom-pane-container {
+ min-width: 0;
+
+ & > atom-pane-resize-handle {
+- position: absolute;
+ z-index: 3;
+ }
+ }
+@@ -39,6 +38,7 @@ atom-pane-container {
+ width: 8px;
+ height: 100%;
+ margin-left: -4px;
++ margin-right: -4px;
+ cursor: col-resize;
+ border-right: none;
+ }
Deleted: community-i686/run-as-node.patch
===================================================================
--- community-i686/run-as-node.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-i686/run-as-node.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,11 +0,0 @@
---- a/exports/atom.coffee
-+++ b/exports/atom.coffee
-@@ -26,7 +26,7 @@
-
- # The following classes can't be used from a Task handler and should therefore
- # only be exported when not running as a child node process
--unless process.env.ATOM_SHELL_INTERNAL_RUN_AS_NODE
-+unless process.env.ELECTRON_RUN_AS_NODE
- module.exports.Task = require '../src/task'
-
- TextEditor = (params) ->
Copied: atom/repos/community-i686/run-as-node.patch (from rev 192976, atom/trunk/run-as-node.patch)
===================================================================
--- community-i686/run-as-node.patch (rev 0)
+++ community-i686/run-as-node.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,11 @@
+--- a/exports/atom.js
++++ b/exports/atom.js
+@@ -37,7 +37,7 @@
+
+ // The following classes can't be used from a Task handler and should therefore
+ // only be exported when not running as a child node process
+-if (!process.env.ATOM_SHELL_INTERNAL_RUN_AS_NODE) {
++if (!process.env.ELECTRON_RUN_AS_NODE) {
+ atomExport.Task = require('../src/task')
+
+ const TextEditor = (params) => {
Deleted: community-i686/symbols-view-use-system-ctags.patch
===================================================================
--- community-i686/symbols-view-use-system-ctags.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-i686/symbols-view-use-system-ctags.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,11 +0,0 @@
---- 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']
-
Copied: atom/repos/community-i686/symbols-view-use-system-ctags.patch (from rev 192976, atom/trunk/symbols-view-use-system-ctags.patch)
===================================================================
--- community-i686/symbols-view-use-system-ctags.patch (rev 0)
+++ community-i686/symbols-view-use-system-ctags.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -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']
+
Deleted: community-i686/tree-view.patch
===================================================================
--- community-i686/tree-view.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-i686/tree-view.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,11 +0,0 @@
---- a/lib/main.coffee
-+++ b/lib/main.coffee
-@@ -54,7 +54,7 @@
- projectPath = atom.project.getPaths()[0]
- if atom.workspace.getActivePaneItem()
- false
-- else if path.basename(projectPath) is '.git'
-+ else if projectPath and path.basename(projectPath) is '.git'
- # Only attach when the project path matches the path to open signifying
- # the .git folder was opened explicitly and not by using Atom as the Git
- # editor.
Deleted: community-i686/use-system-apm.patch
===================================================================
--- community-i686/use-system-apm.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-i686/use-system-apm.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,29 +0,0 @@
---- a/build/tasks/build-task.coffee
-+++ b/build/tasks/build-task.coffee
-@@ -149,10 +149,6 @@
- cp 'src', path.join(appDir, 'src'), filter: /.+\.(cson|coffee)$/
- cp 'static', path.join(appDir, 'static')
-
-- cp path.join('apm', 'node_modules', 'atom-package-manager'), path.resolve(appDir, '..', 'new-app', 'apm'), filter: filterNodeModule
-- if process.platform isnt 'win32'
-- fs.symlinkSync(path.join('..', '..', 'bin', 'apm'), path.resolve(appDir, '..', 'new-app', 'apm', 'node_modules', '.bin', 'apm'))
--
- channel = grunt.config.get('atom.channel')
-
- cp path.join('resources', 'app-icons', channel, 'png', '1024.png'), path.join(appDir, 'resources', 'atom.png')
---- a/src/package-manager.coffee
-+++ b/src/package-manager.coffee
-@@ -136,12 +136,7 @@
- return configPath if configPath
- return @apmPath if @apmPath?
-
-- commandName = 'apm'
-- commandName += '.cmd' if process.platform is 'win32'
-- apmRoot = path.join(process.resourcesPath, 'app', 'apm')
-- @apmPath = path.join(apmRoot, 'bin', commandName)
-- unless fs.isFileSync(@apmPath)
-- @apmPath = path.join(apmRoot, 'node_modules', 'atom-package-manager', 'bin', commandName)
-+ @apmPath = '/usr/lib/node_modules/atom-package-manager/bin/apm'
- @apmPath
-
- # Public: Get the paths being used to look for packages.
Copied: atom/repos/community-i686/use-system-apm.patch (from rev 192976, atom/trunk/use-system-apm.patch)
===================================================================
--- community-i686/use-system-apm.patch (rev 0)
+++ community-i686/use-system-apm.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,16 @@
+--- a/src/package-manager.coffee
++++ b/src/package-manager.coffee
+@@ -136,12 +136,7 @@
+ return configPath if configPath
+ return @apmPath if @apmPath?
+
+- commandName = 'apm'
+- commandName += '.cmd' if process.platform is 'win32'
+- apmRoot = path.join(process.resourcesPath, 'app', 'apm')
+- @apmPath = path.join(apmRoot, 'bin', commandName)
+- unless fs.isFileSync(@apmPath)
+- @apmPath = path.join(apmRoot, 'node_modules', 'atom-package-manager', 'bin', commandName)
++ @apmPath = '/usr/lib/node_modules/atom-package-manager/bin/apm'
+ @apmPath
+
+ # Public: Get the paths being used to look for packages.
Deleted: community-i686/use-system-electron.patch
===================================================================
--- community-i686/use-system-electron.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-i686/use-system-electron.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,76 +0,0 @@
---- a/build/Gruntfile.coffee
-+++ b/build/Gruntfile.coffee
-@@ -304,7 +304,7 @@
-
- grunt.registerTask('ci', ciTasks)
-
-- defaultTasks = ['download-electron', 'download-electron-chromedriver', 'build', 'set-version', 'generate-asar']
-+ defaultTasks = ['build', 'set-version', 'generate-asar']
- unless process.platform is 'linux' or grunt.option('no-install')
- defaultTasks.push 'install'
- grunt.registerTask('default', defaultTasks)
---- a/build/tasks/build-task.coffee
-+++ b/build/tasks/build-task.coffee
-@@ -14,19 +14,6 @@
- rm path.join(buildDir, 'installer')
- mkdir path.dirname(buildDir)
-
-- if process.platform is 'darwin'
-- cp 'electron/Electron.app', shellAppDir, filter: /default_app/
-- fs.renameSync path.join(shellAppDir, 'Contents', 'MacOS', 'Electron'), path.join(shellAppDir, 'Contents', 'MacOS', 'Atom')
-- fs.renameSync path.join(shellAppDir, 'Contents', 'Frameworks', 'Electron Helper.app'), path.join(shellAppDir, 'Contents', 'Frameworks', 'Atom Helper.app')
-- fs.renameSync path.join(shellAppDir, 'Contents', 'Frameworks', 'Atom Helper.app', 'Contents', 'MacOS', 'Electron Helper'), path.join(shellAppDir, 'Contents', 'Frameworks', 'Atom Helper.app', 'Contents', 'MacOS', 'Atom Helper')
-- else
-- cp 'electron', shellAppDir, filter: /default_app/
--
-- if process.platform is 'win32'
-- fs.renameSync path.join(shellAppDir, 'electron.exe'), path.join(shellAppDir, 'atom.exe')
-- else
-- fs.renameSync path.join(shellAppDir, 'electron'), path.join(shellAppDir, 'atom')
--
- mkdir appDir
-
- if process.platform isnt 'win32'
---- a/package.json
-+++ b/package.json
-@@ -12,7 +12,6 @@
- "url": "https://github.com/atom/atom/issues"
- },
- "license": "MIT",
-- "electronVersion": "0.37.8",
- "dependencies": {
- "async": "0.2.6",
- "atom-keymap": "6.3.2",
---- a/src/module-cache.coffee
-+++ b/src/module-cache.coffee
-@@ -194,7 +194,7 @@
- return
-
- registerBuiltins = (devMode) ->
-- if devMode or not cache.resourcePath.startsWith("#{process.resourcesPath}#{path.sep}")
-+ if devMode or not cache.resourcePath.startsWith("/usr/lib/atom")
- fs = require 'fs-plus'
- atomCoffeePath = path.join(cache.resourcePath, 'exports', 'atom.coffee')
- cache.builtins.atom = atomCoffeePath if fs.isFileSync(atomCoffeePath)
---- a/src/package-manager.coffee
-+++ b/src/package-manager.coffee
-@@ -526,7 +526,7 @@
-
- isBundledPackagePath: (packagePath) ->
- if @devMode
-- return false unless @resourcePath.startsWith("#{process.resourcesPath}#{path.sep}")
-+ return false unless @resourcePath.startsWith("/usr/lib/atom")
-
- @resourcePathWithTrailingSlash ?= "#{@resourcePath}#{path.sep}"
- packagePath?.startsWith(@resourcePathWithTrailingSlash)
---- a/static/index.js
-+++ b/static/index.js
-@@ -29,7 +29,7 @@
- throw loadSettingsError
- }
-
-- var devMode = loadSettings.devMode || !loadSettings.resourcePath.startsWith(process.resourcesPath + path.sep)
-+ var devMode = loadSettings.devMode || !loadSettings.resourcePath.startsWith('/usr/lib/atom')
-
- if (devMode) {
- setupDeprecatedPackages()
Copied: atom/repos/community-i686/use-system-electron.patch (from rev 192976, atom/trunk/use-system-electron.patch)
===================================================================
--- community-i686/use-system-electron.patch (rev 0)
+++ community-i686/use-system-electron.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,113 @@
+--- a/package.json
++++ b/package.json
+@@ -12,7 +12,6 @@
+ "url": "https://github.com/atom/atom/issues"
+ },
+ "license": "MIT",
+- "electronVersion": "0.37.8",
+ "dependencies": {
+ "async": "0.2.6",
+ "atom-keymap": "6.3.2",
+--- a/script/build
++++ b/script/build
+@@ -2,10 +2,6 @@
+
+ 'use strict'
+
+-// Run bootstrap first to ensure all the dependencies used later in this script
+-// are installed.
+-require('./bootstrap')
+-
+ // Needed so we can require src/module-cache.coffee during generateModuleCache
+ require('coffee-script/register')
+ require('colors')
+@@ -28,7 +24,6 @@
+ const createDebianPackage = require('./lib/create-debian-package')
+ const createRpmPackage = require('./lib/create-rpm-package')
+ const createWindowsInstaller = require('./lib/create-windows-installer')
+-const downloadChromedriver = require('./lib/download-chromedriver')
+ const dumpSymbols = require('./lib/dump-symbols')
+ const generateAPIDocs = require('./lib/generate-api-docs')
+ const generateMetadata = require('./lib/generate-metadata')
+@@ -56,48 +51,4 @@
+ prebuildLessCache()
+ generateMetadata()
+ generateAPIDocs()
+-downloadChromedriver()
+ dumpSymbols()
+- .then(packageApplication)
+- .then(packagedAppPath => {
+- if (process.platform === 'darwin') {
+- if (argv.codeSign) {
+- codeSignOnMac(packagedAppPath)
+- } else {
+- console.log('Skipping code-signing. Specify the --code-sign option to perform code-signing'.gray)
+- }
+- } else if (process.platform === 'win32') {
+- if (argv.createWindowsInstaller) {
+- return createWindowsInstaller(packagedAppPath, argv.codeSign).then(() => packagedAppPath)
+- }
+- else {
+- console.log('Skipping creating installer. Specify the --create-windows-installer option to create a Squirrel-based Windows installer. Code-signing was skipped too.'.gray)
+- }
+- } else if (process.platform === 'linux') {
+- if (argv.createDebianPackage) {
+- createDebianPackage(packagedAppPath)
+- } else {
+- console.log('Skipping creating debian package. Specify the --create-debian-package option to create it.'.gray)
+- }
+-
+- if (argv.createRpmPackage) {
+- createRpmPackage(packagedAppPath)
+- } else {
+- console.log('Skipping creating rpm package. Specify the --create-rpm-package option to create it.'.gray)
+- }
+- }
+-
+- return Promise.resolve(packagedAppPath)
+- }).then(packagedAppPath => {
+- if (argv.compressArtifacts) {
+- compressArtifacts(packagedAppPath)
+- } else {
+- console.log('Skipping artifacts compression. Specify the --compress-artifacts option to compress Atom binaries (and symbols on macOS)'.gray)
+- }
+-
+- if (argv.install) {
+- installApplication(packagedAppPath)
+- } else {
+- console.log('Skipping installation. Specify the --install option to install Atom'.gray)
+- }
+- })
+--- a/src/module-cache.coffee
++++ b/src/module-cache.coffee
+@@ -194,7 +194,7 @@
+ return
+
+ registerBuiltins = (devMode) ->
+- if devMode or not cache.resourcePath.startsWith("#{process.resourcesPath}#{path.sep}")
++ if devMode or not cache.resourcePath.startsWith("/usr/lib/atom")
+ fs = require 'fs-plus'
+ atomJsPath = path.join(cache.resourcePath, 'exports', 'atom.js')
+ cache.builtins.atom = atomJsPath if fs.isFileSync(atomJsPath)
+--- a/src/package-manager.coffee
++++ b/src/package-manager.coffee
+@@ -526,7 +526,7 @@
+
+ isBundledPackagePath: (packagePath) ->
+ if @devMode
+- return false unless @resourcePath.startsWith("#{process.resourcesPath}#{path.sep}")
++ return false unless @resourcePath.startsWith("/usr/lib/atom")
+
+ @resourcePathWithTrailingSlash ?= "#{@resourcePath}#{path.sep}"
+ packagePath?.startsWith(@resourcePathWithTrailingSlash)
+--- a/static/index.js
++++ b/static/index.js
+@@ -29,7 +29,7 @@
+ throw loadSettingsError
+ }
+
+- var devMode = loadSettings.devMode || !loadSettings.resourcePath.startsWith(process.resourcesPath + path.sep)
++ var devMode = loadSettings.devMode || !loadSettings.resourcePath.startsWith('/usr/lib/atom')
+
+ if (devMode) {
+ setupDeprecatedPackages()
Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-x86_64/PKGBUILD 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,166 +0,0 @@
-# $Id$
-# Maintainer: Nicola Squartini <tensor5 at gmail.com>
-
-pkgname=atom
-pkgver=1.10.2
-pkgrel=4
-pkgdesc='A hackable text editor for the 21st Century'
-arch=('i686' 'x86_64')
-url='https://github.com/atom/atom'
-license=('MIT' 'custom')
-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'
- 'deprecated-api.patch'
- 'fix-atom-sh.patch'
- 'fix-ime-events-handler.patch'
- 'fix-license-path.patch'
- 'fix-marker-index.patch'
- 'fix-oniguruma.patch'
- 'fix-pane-resize-handle.patch'
- 'run-as-node.patch'
- 'symbols-view-use-system-ctags.patch'
- 'tree-view.patch'
- 'use-system-apm.patch'
- 'use-system-electron.patch')
-sha256sums=('de47aa7d80b3e31f1c42823fec6e98a9473021c022970a8548cb36c498a7e6f8'
- '58198d214edc434580c5764f749e26fb686d77c3c983d01f247f48aec84eb1a4'
- 'e92e23bbf839bec6611b2ac76c1f5bba35b476983b0faa9b310288e2956247a2'
- '6fca91b3e80248a96fc4b6b0228602d4dd68ef851cb059a97a7379e72e53b432'
- 'd3eb239f53feb3181fb4d57d2db391d7b31ce2188c5bd5b79d9ed3133351cd90'
- '51e8f64206cdc96bddd934ffbf0a3b3509617deb9c9aad0ccb21df4b5b72dfee'
- 'a606d1efbea1f68a0a9c250b1d7023315a5392fa23f220600304c7308be7ebbb'
- '2569702bee0508ee38a181f28bc99d6844725de206362a010705d84da09735c3'
- 'c0ae6c64802bc20219bc9142bd6e62e65853044b4a678d3f7ec72dcb61d22274'
- '41aaa35b638e29d28b5d92077b7b242725046cc11d4c51d3eca589eaed977ec5'
- '991626ab07c90643e14039a1367769761262ddbc108a66193c08fe146b0222e9'
- 'a5a2b1fefa29799b3225c4aa3fe0e5b057b2b320f98ad7bc28d3596923e52b41'
- '109af01ceae45615994f2ac08292c44db339bf7ef89369b077e04fcfc35aa3dd'
- '0c9a815a3e6f13134cd648af67e1de3b9c24297b731d5815967a08256ec54f58'
- '1ee2fac6dd1f1ffb82b312a716fc96d8a838a16a727894ab3240979a5773fb0d')
-
-prepare() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- patch -Np1 -i "${srcdir}"/fix-atom-sh.patch
- patch -Np1 -i "${srcdir}"/use-system-electron.patch
- patch -Np1 -i "${srcdir}"/use-system-apm.patch
- patch -Np1 -i "${srcdir}"/fix-license-path.patch
-
- # apm with system (updated) nodejs cannot 'require' modules inside asar
- sed -e "s/, 'generate-asar'//" -i build/Gruntfile.coffee
-
- # Fix for Electron 1.2.0
- patch -Np1 -i "${srcdir}"/beforeunload.patch
- patch -Np1 -i "${srcdir}"/run-as-node.patch
-
- # Fix for Electron 1.3.0
- patch -Np1 -i "${srcdir}"/fix-pane-resize-handle.patch
-
- # Fix for Electron 1.4.0
- patch -Np1 -i "${srcdir}"/fix-ime-events-handler.patch
-}
-
-build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- export ATOM_RESOURCE_PATH="$srcdir/atom-$pkgver"
- # If unset, ~/.atom/.node-gyp/.atom/.npm is used
- export NPM_CONFIG_CACHE="${HOME}/.atom/.npm"
- 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
- cd ../..
- cd node_modules/tree-view
- patch -Np1 -i "${srcdir}"/tree-view.patch
- cd ../..
-
- # Fix for Electron 1.3
- _node_gyp="node-gyp rebuild --target=$(</usr/lib/electron/version) --dist-url=https://atom.io/download/atom-shell"
- cd node_modules/marker-index
- patch -Np1 -i "${srcdir}"/fix-marker-index.patch
- ${_node_gyp}
- cd ../oniguruma
- patch -Np1 -i "${srcdir}"/fix-oniguruma.patch
- ${_node_gyp}
- cd ../../
-
- _packagesToDedupe=('abbrev'
- 'amdefine'
- 'atom-space-pen-views'
- 'cheerio'
- 'domelementtype'
- 'fs-plus'
- 'grim'
- 'highlights'
- 'humanize-plus'
- 'iconv-lite'
- 'inherits'
- 'loophole'
- 'oniguruma'
- 'q'
- 'request'
- 'rimraf'
- 'roaster'
- 'season'
- 'sigmund'
- 'semver'
- 'through'
- 'temp')
- apm dedupe ${_packagesToDedupe[@]}
- cd build
- npm install
- cd ..
- script/grunt --channel=stable
-}
-
-package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- install -d -m 755 "${pkgdir}"/usr/lib
- cp -r out/Atom/resources/app "${pkgdir}"/usr/lib
- mv "${pkgdir}"/usr/lib/app "${pkgdir}"/usr/lib/atom
-
- install -d -m 755 "${pkgdir}/usr/share/applications"
- sed -e "s|<%= appName %>|Atom|" \
- -e "s/<%= description %>/${pkgdesc}/" \
- -e "s|<%= installDir %>/share/<%= appFileName %>/atom|electron --app=/usr/lib/atom|" \
- -e "s|<%= iconPath %>|atom|" \
- resources/linux/atom.desktop.in > "${pkgdir}/usr/share/applications/atom.desktop"
-
- for size in 16 24 32 48 64 128 256 512 1024; do
- install -D -m 644 resources/app-icons/stable/png/${size}.png \
- "${pkgdir}"/usr/share/icons/hicolor/${size}x${size}/apps/atom.png
- done
- ln -sf ../../../share/icons/hicolor/1024x1024/apps/atom.png \
- "${pkgdir}"/usr/lib/atom/resources/atom.png
-
- install -D -m 755 out/Atom/resources/new-app/atom.sh "${pkgdir}/usr/bin/atom"
-
- install -D -m 644 out/Atom/resources/LICENSE.md \
- "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
-
- # Remove useless stuff
- find "${pkgdir}"/usr/lib/atom/node_modules \
- -name "*.a" -exec rm '{}' \; \
- -or -name "*.bat" -exec rm '{}' \; \
- -or -name "benchmark" -prune -exec rm -r '{}' \; \
- -or -name "doc" -prune -exec rm -r '{}' \; \
- -or -name "html" -prune -exec rm -r '{}' \; \
- -or -name "man" -prune -exec rm -r '{}' \; \
- -or -path "*/less/gradle" -prune -exec rm -r '{}' \; \
- -or -path "*/task-lists/src" -prune -exec rm -r '{}' \;
-}
Copied: atom/repos/community-x86_64/PKGBUILD (from rev 192976, atom/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,131 @@
+# $Id$
+# Maintainer: Nicola Squartini <tensor5 at gmail.com>
+
+pkgname=atom
+pkgver=1.11.2
+pkgrel=1
+pkgdesc='A hackable text editor for the 21st Century'
+arch=('i686' 'x86_64')
+url='https://github.com/atom/atom'
+license=('MIT' 'custom')
+depends=('apm'
+ 'electron')
+makedepends=('git' 'npm')
+optdepends=('ctags: symbol indexing support')
+options=(!emptydirs)
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/atom/atom/archive/v${pkgver}.tar.gz"
+ 'autocomplete-plus.patch'
+ 'beforeunload.patch'
+ 'deprecated-api.patch'
+ 'fix-atom-sh.patch'
+ 'fix-ime-events-handler.patch'
+ 'fix-license-path.patch'
+ 'fix-oniguruma.patch'
+ 'fix-pane-resize-handle.patch'
+ 'run-as-node.patch'
+ 'symbols-view-use-system-ctags.patch'
+ 'use-system-apm.patch'
+ 'use-system-electron.patch')
+sha256sums=('b7c09d03d950b0a6aca82225f072d9005d5681887e3a7c466b0504bf64d7c5cd'
+ '58198d214edc434580c5764f749e26fb686d77c3c983d01f247f48aec84eb1a4'
+ '9c419697ed1ce272a864f1a89c91d4a2e314f88ba1dc6f1836468db6572f95b6'
+ '6fca91b3e80248a96fc4b6b0228602d4dd68ef851cb059a97a7379e72e53b432'
+ 'b0c94877962e98818b8c14865c35ac0d0e088838e24670264069b7417ce1b6ab'
+ '25ccca2a773f6bf449691eac10fc4e78f5c2d264092c9f792177f6bd7ea32cce'
+ '883b0be8b68cda5d1004e99e8c1622ca633cf3eaf5c4aad7cc25f8dcb1235350'
+ 'c0ae6c64802bc20219bc9142bd6e62e65853044b4a678d3f7ec72dcb61d22274'
+ '41aaa35b638e29d28b5d92077b7b242725046cc11d4c51d3eca589eaed977ec5'
+ 'b17d546406362572d94b5aee6cc66d9a55fd3967fc256d54f5070cc6ff415554'
+ 'a5a2b1fefa29799b3225c4aa3fe0e5b057b2b320f98ad7bc28d3596923e52b41'
+ '8ad15829dd52df15eb2a963f96b5f1869950c6e90ed8dfeac2a3202d8389d4a2'
+ 'c246a7ee41a2b0f9334b6130abf58587fc70a85f5a24922e2e4083c213e6468a')
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ patch -Np1 -i "${srcdir}"/fix-atom-sh.patch
+ patch -Np1 -i "${srcdir}"/use-system-electron.patch
+ patch -Np1 -i "${srcdir}"/use-system-apm.patch
+ patch -Np1 -i "${srcdir}"/fix-license-path.patch
+
+ # Fix for Electron 1.2.0
+ patch -Np1 -i "${srcdir}"/beforeunload.patch
+ patch -Np1 -i "${srcdir}"/run-as-node.patch
+
+ # Fix for Electron 1.3.0
+ patch -Np1 -i "${srcdir}"/fix-pane-resize-handle.patch
+
+ # Fix for Electron 1.4.0
+ patch -Np1 -i "${srcdir}"/fix-ime-events-handler.patch
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ export ATOM_RESOURCE_PATH="$srcdir/atom-$pkgver"
+ # If unset, ~/.atom/.node-gyp/.atom/.npm is used
+ export NPM_CONFIG_CACHE="${HOME}/.atom/.npm"
+ 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
+ cd ../..
+
+ # Fix for Electron 1.3
+ _node_gyp="node-gyp rebuild --target=$(</usr/lib/electron/version) --dist-url=https://atom.io/download/atom-shell"
+ cd node_modules/oniguruma
+ patch -Np1 -i "${srcdir}"/fix-oniguruma.patch
+ ${_node_gyp}
+ cd ../../
+
+ cd script
+ npm install
+ ./build
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ install -d -m 755 "${pkgdir}"/usr/lib
+ cp -r out/app "${pkgdir}"/usr/lib/atom
+
+ install -d -m 755 "${pkgdir}/usr/share/applications"
+ sed -e "s|<%= appName %>|Atom|" \
+ -e "s/<%= description %>/${pkgdesc}/" \
+ -e "s|<%= installDir %>/share/<%= appFileName %>/atom|electron --app=/usr/lib/atom|" \
+ -e "s|<%= iconPath %>|atom|" \
+ resources/linux/atom.desktop.in > "${pkgdir}/usr/share/applications/atom.desktop"
+
+ for size in 16 24 32 48 64 128 256 512 1024; do
+ install -D -m 644 resources/app-icons/stable/png/${size}.png \
+ "${pkgdir}"/usr/share/icons/hicolor/${size}x${size}/apps/atom.png
+ done
+ ln -sf ../../../share/icons/hicolor/1024x1024/apps/atom.png \
+ "${pkgdir}"/usr/lib/atom/resources/atom.png
+
+ install -D -m 755 atom.sh "${pkgdir}/usr/bin/atom"
+
+ install -d -m 755 "${pkgdir}/usr/share/licenses/${pkgname}"
+ node -e "require('./script/lib/get-license-text')().then((licenseText) => require('fs').writeFileSync('${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md', licenseText))"
+
+ # Remove useless stuff
+ rm "${pkgdir}"/usr/lib/atom/node_modules/.bin/pegjs
+ find "${pkgdir}"/usr/lib/atom/node_modules \
+ -name "*.a" -exec rm '{}' \; \
+ -or -name "*.bat" -exec rm '{}' \; \
+ -or -name "*.node" -exec chmod a-x '{}' \; \
+ -or -name "benchmark" -prune -exec rm -r '{}' \; \
+ -or -name "doc" -prune -exec rm -r '{}' \; \
+ -or -name "html" -prune -exec rm -r '{}' \; \
+ -or -name "man" -prune -exec rm -r '{}' \; \
+ -or -path "*/less/gradle" -prune -exec rm -r '{}' \; \
+ -or -path "*/task-lists/src" -prune -exec rm -r '{}' \;
+}
Deleted: community-x86_64/autocomplete-plus.patch
===================================================================
--- community-x86_64/autocomplete-plus.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-x86_64/autocomplete-plus.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,11 +0,0 @@
---- a/lib/autocomplete-manager.coffee
-+++ b/lib/autocomplete-manager.coffee
-@@ -441,7 +441,7 @@ class AutocompleteManager
- return @isCurrentFileBlackListedCache
-
- minimatch ?= require('minimatch')
-- fileName = path.basename(@buffer.getPath())
-+ fileName = path.basename(@buffer.getPath() or '')
- for blacklistGlob in @fileBlacklist
- if minimatch(fileName, blacklistGlob)
- @isCurrentFileBlackListedCache = true
Copied: atom/repos/community-x86_64/autocomplete-plus.patch (from rev 192976, atom/trunk/autocomplete-plus.patch)
===================================================================
--- community-x86_64/autocomplete-plus.patch (rev 0)
+++ community-x86_64/autocomplete-plus.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,11 @@
+--- a/lib/autocomplete-manager.coffee
++++ b/lib/autocomplete-manager.coffee
+@@ -441,7 +441,7 @@ class AutocompleteManager
+ return @isCurrentFileBlackListedCache
+
+ minimatch ?= require('minimatch')
+- fileName = path.basename(@buffer.getPath())
++ fileName = path.basename(@buffer.getPath() or '')
+ for blacklistGlob in @fileBlacklist
+ if minimatch(fileName, blacklistGlob)
+ @isCurrentFileBlackListedCache = true
Deleted: community-x86_64/beforeunload.patch
===================================================================
--- community-x86_64/beforeunload.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-x86_64/beforeunload.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,14 +0,0 @@
---- a/src/window-event-handler.coffee
-+++ b/src/window-event-handler.coffee
-@@ -145,9 +145,8 @@
- @atomEnvironment.storeWindowDimensions()
- if confirmed
- @atomEnvironment.unloadEditorWindow()
-- else
-- @applicationDelegate.didCancelWindowUnload()
--
-+ return
-+ @applicationDelegate.didCancelWindowUnload()
- confirmed
-
- handleWindowUnload: =>
Copied: atom/repos/community-x86_64/beforeunload.patch (from rev 192976, atom/trunk/beforeunload.patch)
===================================================================
--- community-x86_64/beforeunload.patch (rev 0)
+++ community-x86_64/beforeunload.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,14 @@
+--- a/src/window-event-handler.coffee
++++ b/src/window-event-handler.coffee
+@@ -161,9 +161,8 @@
+ @atomEnvironment.storeWindowDimensions()
+ if confirmed
+ @atomEnvironment.unloadEditorWindow()
+- else
+- @applicationDelegate.didCancelWindowUnload()
+-
++ return
++ @applicationDelegate.didCancelWindowUnload()
+ confirmed
+
+ handleWindowUnload: =>
Deleted: community-x86_64/deprecated-api.patch
===================================================================
--- community-x86_64/deprecated-api.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-x86_64/deprecated-api.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,17 +0,0 @@
---- a/src/browser/atom-window.coffee
-+++ b/src/browser/atom-window.coffee
-@@ -24,11 +24,11 @@
- options =
- show: false
- title: 'Atom'
-- 'web-preferences':
-- 'direct-write': true
-+ 'webPreferences':
-+ 'directWrite': true
-
- if @isSpec
-- options['web-preferences']['page-visibility'] = true
-+ options.webPreferences.backgroundThrottling = false
-
- # Don't set icon on Windows so the exe's ico will be used as window and
- # taskbar's icon. See https://github.com/atom/atom/issues/4811 for more.
Copied: atom/repos/community-x86_64/deprecated-api.patch (from rev 192976, atom/trunk/deprecated-api.patch)
===================================================================
--- community-x86_64/deprecated-api.patch (rev 0)
+++ community-x86_64/deprecated-api.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,17 @@
+--- a/src/browser/atom-window.coffee
++++ b/src/browser/atom-window.coffee
+@@ -24,11 +24,11 @@
+ options =
+ show: false
+ title: 'Atom'
+- 'web-preferences':
+- 'direct-write': true
++ 'webPreferences':
++ 'directWrite': true
+
+ if @isSpec
+- options['web-preferences']['page-visibility'] = true
++ options.webPreferences.backgroundThrottling = false
+
+ # Don't set icon on Windows so the exe's ico will be used as window and
+ # taskbar's icon. See https://github.com/atom/atom/issues/4811 for more.
Deleted: community-x86_64/fix-atom-sh.patch
===================================================================
--- community-x86_64/fix-atom-sh.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-x86_64/fix-atom-sh.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,102 +0,0 @@
---- a/atom.sh
-+++ b/atom.sh
-@@ -1,20 +1,5 @@
- #!/bin/bash
-
--if [ "$(uname)" == 'Darwin' ]; then
-- OS='Mac'
--elif [ "$(expr substr $(uname -s) 1 5)" == 'Linux' ]; then
-- OS='Linux'
--else
-- echo "Your platform ($(uname -a)) is not supported."
-- exit 1
--fi
--
--if [ "$(basename $0)" == 'atom-beta' ]; then
-- BETA_VERSION=true
--else
-- BETA_VERSION=
--fi
--
- while getopts ":wtfvh-:" opt; do
- case "$opt" in
- -)
-@@ -52,66 +37,22 @@
- export ELECTRON_ENABLE_LOGGING=1
- fi
-
--if [ $OS == 'Mac' ]; then
-- if [ -n "$BETA_VERSION" ]; then
-- ATOM_APP_NAME="Atom Beta.app"
-- else
-- ATOM_APP_NAME="Atom.app"
-- fi
-+ATOM_PATH="electron --app=/usr/lib/atom"
-
-- if [ -z "${ATOM_PATH}" ]; then
-- # If ATOM_PATH isnt set, check /Applications and then ~/Applications for Atom.app
-- if [ -x "/Applications/$ATOM_APP_NAME" ]; then
-- ATOM_PATH="/Applications"
-- elif [ -x "$HOME/Applications/$ATOM_APP_NAME" ]; then
-- ATOM_PATH="$HOME/Applications"
-- else
-- # We havent found an Atom.app, use spotlight to search for Atom
-- ATOM_PATH="$(mdfind "kMDItemCFBundleIdentifier == 'com.github.atom'" | grep -v ShipIt | head -1 | xargs -0 dirname)"
--
-- # Exit if Atom can't be found
-- if [ ! -x "$ATOM_PATH/$ATOM_APP_NAME" ]; then
-- echo "Cannot locate Atom.app, it is usually located in /Applications. Set the ATOM_PATH environment variable to the directory containing Atom.app."
-- exit 1
-- fi
-- fi
-- fi
-+ATOM_HOME="${ATOM_HOME:-$HOME/.atom}"
-+mkdir -p "$ATOM_HOME"
-
-- if [ $EXPECT_OUTPUT ]; then
-- "$ATOM_PATH/$ATOM_APP_NAME/Contents/MacOS/Atom" --executed-from="$(pwd)" --pid=$$ "$@"
-- exit $?
-- else
-- open -a "$ATOM_PATH/$ATOM_APP_NAME" -n --args --executed-from="$(pwd)" --pid=$$ --path-environment="$PATH" "$@"
-- fi
--elif [ $OS == 'Linux' ]; then
-- SCRIPT=$(readlink -f "$0")
-- USR_DIRECTORY=$(readlink -f $(dirname $SCRIPT)/..)
--
-- if [ -n "$BETA_VERSION" ]; then
-- ATOM_PATH="$USR_DIRECTORY/share/atom-beta/atom"
-- else
-- ATOM_PATH="$USR_DIRECTORY/share/atom/atom"
-- fi
--
-- ATOM_HOME="${ATOM_HOME:-$HOME/.atom}"
-- mkdir -p "$ATOM_HOME"
--
-- : ${TMPDIR:=/tmp}
--
-- [ -x "$ATOM_PATH" ] || ATOM_PATH="$TMPDIR/atom-build/Atom/atom"
--
-- if [ $EXPECT_OUTPUT ]; then
-- "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@"
-+if [ $EXPECT_OUTPUT ]; then
-+ $ATOM_PATH --executed-from="$(pwd)" --pid=$$ "$@"
-+ exit $?
-+else
-+ (
-+ nohup $ATOM_PATH --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1
-+ if [ $? -ne 0 ]; then
-+ cat "$ATOM_HOME/nohup.out"
- exit $?
-- else
-- (
-- nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1
-- if [ $? -ne 0 ]; then
-- cat "$ATOM_HOME/nohup.out"
-- exit $?
-- fi
-- ) &
- fi
-+ ) &
- fi
-
- # Exits this process when Atom is used as $EDITOR
Copied: atom/repos/community-x86_64/fix-atom-sh.patch (from rev 192976, atom/trunk/fix-atom-sh.patch)
===================================================================
--- community-x86_64/fix-atom-sh.patch (rev 0)
+++ community-x86_64/fix-atom-sh.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,104 @@
+--- a/atom.sh
++++ b/atom.sh
+@@ -1,20 +1,5 @@
+ #!/bin/bash
+
+-if [ "$(uname)" == 'Darwin' ]; then
+- OS='Mac'
+-elif [ "$(expr substr $(uname -s) 1 5)" == 'Linux' ]; then
+- OS='Linux'
+-else
+- echo "Your platform ($(uname -a)) is not supported."
+- exit 1
+-fi
+-
+-if [ "$(basename $0)" == 'atom-beta' ]; then
+- BETA_VERSION=true
+-else
+- BETA_VERSION=
+-fi
+-
+ while getopts ":wtfvh-:" opt; do
+ case "$opt" in
+ -)
+@@ -52,68 +37,22 @@
+ export ELECTRON_ENABLE_LOGGING=1
+ fi
+
+-if [ $OS == 'Mac' ]; then
+- if [ -n "$BETA_VERSION" ]; then
+- ATOM_APP_NAME="Atom Beta.app"
+- ATOM_EXECUTABLE_NAME="Atom Beta"
+- else
+- ATOM_APP_NAME="Atom.app"
+- ATOM_EXECUTABLE_NAME="Atom"
+- fi
++ATOM_PATH="electron --app=/usr/lib/atom"
+
+- if [ -z "${ATOM_PATH}" ]; then
+- # If ATOM_PATH isnt set, check /Applications and then ~/Applications for Atom.app
+- if [ -x "/Applications/$ATOM_APP_NAME" ]; then
+- ATOM_PATH="/Applications"
+- elif [ -x "$HOME/Applications/$ATOM_APP_NAME" ]; then
+- ATOM_PATH="$HOME/Applications"
+- else
+- # We havent found an Atom.app, use spotlight to search for Atom
+- ATOM_PATH="$(mdfind "kMDItemCFBundleIdentifier == 'com.github.atom'" | grep -v ShipIt | head -1 | xargs -0 dirname)"
+-
+- # Exit if Atom can't be found
+- if [ ! -x "$ATOM_PATH/$ATOM_APP_NAME" ]; then
+- echo "Cannot locate Atom.app, it is usually located in /Applications. Set the ATOM_PATH environment variable to the directory containing Atom.app."
+- exit 1
+- fi
+- fi
+- fi
++ATOM_HOME="${ATOM_HOME:-$HOME/.atom}"
++mkdir -p "$ATOM_HOME"
+
+- if [ $EXPECT_OUTPUT ]; then
+- "$ATOM_PATH/$ATOM_APP_NAME/Contents/MacOS/$ATOM_EXECUTABLE_NAME" --executed-from="$(pwd)" --pid=$$ "$@"
+- exit $?
+- else
+- open -a "$ATOM_PATH/$ATOM_APP_NAME" -n --args --executed-from="$(pwd)" --pid=$$ --path-environment="$PATH" "$@"
+- fi
+-elif [ $OS == 'Linux' ]; then
+- SCRIPT=$(readlink -f "$0")
+- USR_DIRECTORY=$(readlink -f $(dirname $SCRIPT)/..)
+-
+- if [ -n "$BETA_VERSION" ]; then
+- ATOM_PATH="$USR_DIRECTORY/share/atom-beta/atom"
+- else
+- ATOM_PATH="$USR_DIRECTORY/share/atom/atom"
+- fi
+-
+- ATOM_HOME="${ATOM_HOME:-$HOME/.atom}"
+- mkdir -p "$ATOM_HOME"
+-
+- : ${TMPDIR:=/tmp}
+-
+- [ -x "$ATOM_PATH" ] || ATOM_PATH="$TMPDIR/atom-build/Atom/atom"
+-
+- if [ $EXPECT_OUTPUT ]; then
+- "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@"
++if [ $EXPECT_OUTPUT ]; then
++ $ATOM_PATH --executed-from="$(pwd)" --pid=$$ "$@"
++ exit $?
++else
++ (
++ nohup $ATOM_PATH --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1
++ if [ $? -ne 0 ]; then
++ cat "$ATOM_HOME/nohup.out"
+ exit $?
+- else
+- (
+- nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1
+- if [ $? -ne 0 ]; then
+- cat "$ATOM_HOME/nohup.out"
+- exit $?
+- fi
+- ) &
+ fi
++ ) &
+ fi
+
+ # Exits this process when Atom is used as $EDITOR
Deleted: community-x86_64/fix-ime-events-handler.patch
===================================================================
--- community-x86_64/fix-ime-events-handler.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-x86_64/fix-ime-events-handler.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,47 +0,0 @@
---- a/src/text-editor-component.coffee
-+++ b/src/text-editor-component.coffee
-@@ -119,6 +119,7 @@ class TextEditorComponent
- @updateSync()
- @checkForVisibilityChange()
- @initialized = true
-+ @checkpointForIME = null
-
- destroy: ->
- @mounted = false
-@@ -309,19 +310,20 @@ class TextEditorComponent
- # User escape to cancel
- # 4. compositionend fired
- # OR User chooses a completion
-- # 4. compositionend fired
-- # 5. textInput fired; event.data == the completion string
-+ # 4. textInput fired; event.data == the completion string
-+ # 5. compositionend fired
-
-- checkpoint = null
- @domNode.addEventListener 'compositionstart', =>
- if @openedAccentedCharacterMenu
- @editor.selectLeft()
- @openedAccentedCharacterMenu = false
-- checkpoint = @editor.createCheckpoint()
-+ @checkpointForIME = @editor.createCheckpoint()
- @domNode.addEventListener 'compositionupdate', (event) =>
- @editor.insertText(event.data, select: true)
- @domNode.addEventListener 'compositionend', (event) =>
-- @editor.revertToCheckpoint(checkpoint)
-+ if @checkpointForIME
-+ @editor.revertToCheckpoint(@checkpointForIME)
-+ @checkpointForIME = null
- event.target.value = ''
-
- # Listen for selection changes and store the currently selected text
-@@ -373,6 +375,10 @@ class TextEditorComponent
- onTextInput: (event) =>
- event.stopPropagation()
-
-+ if @checkpointForIME
-+ @editor.revertToCheckpoint(@checkpointForIME)
-+ @checkpointForIME = null
-+
- # WARNING: If we call preventDefault on the input of a space character,
- # then the browser interprets the spacebar keypress as a page-down command,
- # causing spaces to scroll elements containing editors. This is impossible
Copied: atom/repos/community-x86_64/fix-ime-events-handler.patch (from rev 192976, atom/trunk/fix-ime-events-handler.patch)
===================================================================
--- community-x86_64/fix-ime-events-handler.patch (rev 0)
+++ community-x86_64/fix-ime-events-handler.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,47 @@
+--- a/src/text-editor-component.coffee
++++ b/src/text-editor-component.coffee
+@@ -111,6 +111,7 @@ class TextEditorComponent
+ @updateSync()
+ @checkForVisibilityChange()
+ @initialized = true
++ @checkpointForIME = null
+
+ destroy: ->
+ @mounted = false
+@@ -301,19 +302,20 @@ class TextEditorComponent
+ # User escape to cancel
+ # 4. compositionend fired
+ # OR User chooses a completion
+- # 4. compositionend fired
+- # 5. textInput fired; event.data == the completion string
++ # 4. textInput fired; event.data == the completion string
++ # 5. compositionend fired
+
+- checkpoint = null
+ @domNode.addEventListener 'compositionstart', =>
+ if @openedAccentedCharacterMenu
+ @editor.selectLeft()
+ @openedAccentedCharacterMenu = false
+- checkpoint = @editor.createCheckpoint()
++ @checkpointForIME = @editor.createCheckpoint()
+ @domNode.addEventListener 'compositionupdate', (event) =>
+ @editor.insertText(event.data, select: true)
+ @domNode.addEventListener 'compositionend', (event) =>
+- @editor.revertToCheckpoint(checkpoint)
++ if @checkpointForIME
++ @editor.revertToCheckpoint(@checkpointForIME)
++ @checkpointForIME = null
+ event.target.value = ''
+
+ # Listen for selection changes and store the currently selected text
+@@ -353,6 +355,10 @@ class TextEditorComponent
+ onTextInput: (event) =>
+ event.stopPropagation()
+
++ if @checkpointForIME
++ @editor.revertToCheckpoint(@checkpointForIME)
++ @checkpointForIME = null
++
+ # WARNING: If we call preventDefault on the input of a space character,
+ # then the browser interprets the spacebar keypress as a page-down command,
+ # causing spaces to scroll elements containing editors. This is impossible
Deleted: community-x86_64/fix-license-path.patch
===================================================================
--- community-x86_64/fix-license-path.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-x86_64/fix-license-path.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,22 +0,0 @@
---- a/src/main-process/atom-application.coffee
-+++ b/src/main-process/atom-application.coffee
-@@ -213,7 +213,7 @@
- @openPathOnEvent('application:open-your-keymap', 'atom://.atom/keymap')
- @openPathOnEvent('application:open-your-snippets', 'atom://.atom/snippets')
- @openPathOnEvent('application:open-your-stylesheet', 'atom://.atom/stylesheet')
-- @openPathOnEvent('application:open-license', path.join(process.resourcesPath, 'LICENSE.md'))
-+ @openPathOnEvent('application:open-license', '/usr/share/licenses/atom/LICENSE.md')
-
- app.on 'before-quit', =>
- @quitting = true
---- a/src/workspace.coffee
-+++ b/src/workspace.coffee
-@@ -459,7 +459,7 @@
-
- # Open Atom's license in the active pane.
- openLicense: ->
-- @open(path.join(process.resourcesPath, 'LICENSE.md'))
-+ @open('/usr/share/licenses/atom/LICENSE.md')
-
- # Synchronously open the given URI in the active pane. **Only use this method
- # in specs. Calling this in production code will block the UI thread and
Copied: atom/repos/community-x86_64/fix-license-path.patch (from rev 192976, atom/trunk/fix-license-path.patch)
===================================================================
--- community-x86_64/fix-license-path.patch (rev 0)
+++ community-x86_64/fix-license-path.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,22 @@
+--- a/src/main-process/atom-application.coffee
++++ b/src/main-process/atom-application.coffee
+@@ -231,7 +231,7 @@
+ @openPathOnEvent('application:open-your-keymap', 'atom://.atom/keymap')
+ @openPathOnEvent('application:open-your-snippets', 'atom://.atom/snippets')
+ @openPathOnEvent('application:open-your-stylesheet', 'atom://.atom/stylesheet')
+- @openPathOnEvent('application:open-license', path.join(process.resourcesPath, 'LICENSE.md'))
++ @openPathOnEvent('application:open-license', '/usr/share/licenses/atom/LICENSE.md')
+
+ @disposable.add ipcHelpers.on app, 'before-quit', =>
+ @quitting = true
+--- a/src/workspace.coffee
++++ b/src/workspace.coffee
+@@ -461,7 +461,7 @@
+
+ # Open Atom's license in the active pane.
+ openLicense: ->
+- @open(path.join(process.resourcesPath, 'LICENSE.md'))
++ @open('/usr/share/licenses/atom/LICENSE.md')
+
+ # Synchronously open the given URI in the active pane. **Only use this method
+ # in specs. Calling this in production code will block the UI thread and
Deleted: community-x86_64/fix-marker-index.patch
===================================================================
--- community-x86_64/fix-marker-index.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-x86_64/fix-marker-index.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,37 +0,0 @@
---- a/src/native/marker-index-wrapper.cc
-+++ b/src/native/marker-index-wrapper.cc
-@@ -18,20 +18,20 @@ public:
- constructorTemplate->SetClassName(
- Nan::New<String>("MarkerIndex").ToLocalChecked());
- constructorTemplate->InstanceTemplate()->SetInternalFieldCount(1);
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("generateRandomNumber").ToLocalChecked(), Nan::New<FunctionTemplate>(GenerateRandomNumber)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("insert").ToLocalChecked(), Nan::New<FunctionTemplate>(Insert)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("setExclusive").ToLocalChecked(), Nan::New<FunctionTemplate>(SetExclusive)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("delete").ToLocalChecked(), Nan::New<FunctionTemplate>(Delete)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("splice").ToLocalChecked(), Nan::New<FunctionTemplate>(Splice)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("getStart").ToLocalChecked(), Nan::New<FunctionTemplate>(GetStart)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("getEnd").ToLocalChecked(), Nan::New<FunctionTemplate>(GetEnd)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("compare").ToLocalChecked(), Nan::New<FunctionTemplate>(Compare)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("findIntersecting").ToLocalChecked(), Nan::New<FunctionTemplate>(FindIntersecting)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("findContaining").ToLocalChecked(), Nan::New<FunctionTemplate>(FindContaining)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("findContainedIn").ToLocalChecked(), Nan::New<FunctionTemplate>(FindContainedIn)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("findStartingIn").ToLocalChecked(), Nan::New<FunctionTemplate>(FindStartingIn)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("findEndingIn").ToLocalChecked(), Nan::New<FunctionTemplate>(FindEndingIn)->GetFunction());
-- constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("dump").ToLocalChecked(), Nan::New<FunctionTemplate>(Dump)->GetFunction());
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("generateRandomNumber").ToLocalChecked(), Nan::New<FunctionTemplate>(GenerateRandomNumber));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("insert").ToLocalChecked(), Nan::New<FunctionTemplate>(Insert));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("setExclusive").ToLocalChecked(), Nan::New<FunctionTemplate>(SetExclusive));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("delete").ToLocalChecked(), Nan::New<FunctionTemplate>(Delete));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("splice").ToLocalChecked(), Nan::New<FunctionTemplate>(Splice));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("getStart").ToLocalChecked(), Nan::New<FunctionTemplate>(GetStart));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("getEnd").ToLocalChecked(), Nan::New<FunctionTemplate>(GetEnd));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("compare").ToLocalChecked(), Nan::New<FunctionTemplate>(Compare));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("findIntersecting").ToLocalChecked(), Nan::New<FunctionTemplate>(FindIntersecting));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("findContaining").ToLocalChecked(), Nan::New<FunctionTemplate>(FindContaining));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("findContainedIn").ToLocalChecked(), Nan::New<FunctionTemplate>(FindContainedIn));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("findStartingIn").ToLocalChecked(), Nan::New<FunctionTemplate>(FindStartingIn));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("findEndingIn").ToLocalChecked(), Nan::New<FunctionTemplate>(FindEndingIn));
-+ constructorTemplate->PrototypeTemplate()->Set(Nan::New<String>("dump").ToLocalChecked(), Nan::New<FunctionTemplate>(Dump));
-
- // assign Number.isFinite for use from C++
- Local<String> number_string = Nan::New("Number").ToLocalChecked();
Deleted: community-x86_64/fix-oniguruma.patch
===================================================================
--- community-x86_64/fix-oniguruma.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-x86_64/fix-oniguruma.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,13 +0,0 @@
---- a/src/onig-scanner.cc
-+++ b/src/onig-scanner.cc
-@@ -16,8 +16,8 @@ void OnigScanner::Init(Local<Object> target) {
- Local<FunctionTemplate> tpl = Nan::New<FunctionTemplate>(OnigScanner::New);
- tpl->SetClassName(Nan::New<String>("OnigScanner").ToLocalChecked());
- tpl->InstanceTemplate()->SetInternalFieldCount(1);
-- tpl->PrototypeTemplate()->Set(Nan::New<String>("_findNextMatch").ToLocalChecked(), Nan::New<FunctionTemplate>(OnigScanner::FindNextMatch)->GetFunction());
-- tpl->PrototypeTemplate()->Set(Nan::New<String>("_findNextMatchSync").ToLocalChecked(), Nan::New<FunctionTemplate>(OnigScanner::FindNextMatchSync)->GetFunction());
-+ tpl->PrototypeTemplate()->Set(Nan::New<String>("_findNextMatch").ToLocalChecked(), Nan::New<FunctionTemplate>(OnigScanner::FindNextMatch));
-+ tpl->PrototypeTemplate()->Set(Nan::New<String>("_findNextMatchSync").ToLocalChecked(), Nan::New<FunctionTemplate>(OnigScanner::FindNextMatchSync));
-
- target->Set(Nan::New<String>("OnigScanner").ToLocalChecked(), tpl->GetFunction());
- }
Copied: atom/repos/community-x86_64/fix-oniguruma.patch (from rev 192976, atom/trunk/fix-oniguruma.patch)
===================================================================
--- community-x86_64/fix-oniguruma.patch (rev 0)
+++ community-x86_64/fix-oniguruma.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,13 @@
+--- a/src/onig-scanner.cc
++++ b/src/onig-scanner.cc
+@@ -16,8 +16,8 @@ void OnigScanner::Init(Local<Object> target) {
+ Local<FunctionTemplate> tpl = Nan::New<FunctionTemplate>(OnigScanner::New);
+ tpl->SetClassName(Nan::New<String>("OnigScanner").ToLocalChecked());
+ tpl->InstanceTemplate()->SetInternalFieldCount(1);
+- tpl->PrototypeTemplate()->Set(Nan::New<String>("_findNextMatch").ToLocalChecked(), Nan::New<FunctionTemplate>(OnigScanner::FindNextMatch)->GetFunction());
+- tpl->PrototypeTemplate()->Set(Nan::New<String>("_findNextMatchSync").ToLocalChecked(), Nan::New<FunctionTemplate>(OnigScanner::FindNextMatchSync)->GetFunction());
++ tpl->PrototypeTemplate()->Set(Nan::New<String>("_findNextMatch").ToLocalChecked(), Nan::New<FunctionTemplate>(OnigScanner::FindNextMatch));
++ tpl->PrototypeTemplate()->Set(Nan::New<String>("_findNextMatchSync").ToLocalChecked(), Nan::New<FunctionTemplate>(OnigScanner::FindNextMatchSync));
+
+ target->Set(Nan::New<String>("OnigScanner").ToLocalChecked(), tpl->GetFunction());
+ }
Deleted: community-x86_64/fix-pane-resize-handle.patch
===================================================================
--- community-x86_64/fix-pane-resize-handle.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-x86_64/fix-pane-resize-handle.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,18 +0,0 @@
---- a/static/panes.less
-+++ b/static/panes.less
-@@ -15,7 +15,6 @@ atom-pane-container {
- min-width: 0;
-
- & > atom-pane-resize-handle {
-- position: absolute;
- z-index: 3;
- }
- }
-@@ -39,6 +38,7 @@ atom-pane-container {
- width: 8px;
- height: 100%;
- margin-left: -4px;
-+ margin-right: -4px;
- cursor: col-resize;
- border-right: none;
- }
Copied: atom/repos/community-x86_64/fix-pane-resize-handle.patch (from rev 192976, atom/trunk/fix-pane-resize-handle.patch)
===================================================================
--- community-x86_64/fix-pane-resize-handle.patch (rev 0)
+++ community-x86_64/fix-pane-resize-handle.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,18 @@
+--- a/static/panes.less
++++ b/static/panes.less
+@@ -15,7 +15,6 @@ atom-pane-container {
+ min-width: 0;
+
+ & > atom-pane-resize-handle {
+- position: absolute;
+ z-index: 3;
+ }
+ }
+@@ -39,6 +38,7 @@ atom-pane-container {
+ width: 8px;
+ height: 100%;
+ margin-left: -4px;
++ margin-right: -4px;
+ cursor: col-resize;
+ border-right: none;
+ }
Deleted: community-x86_64/run-as-node.patch
===================================================================
--- community-x86_64/run-as-node.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-x86_64/run-as-node.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,11 +0,0 @@
---- a/exports/atom.coffee
-+++ b/exports/atom.coffee
-@@ -26,7 +26,7 @@
-
- # The following classes can't be used from a Task handler and should therefore
- # only be exported when not running as a child node process
--unless process.env.ATOM_SHELL_INTERNAL_RUN_AS_NODE
-+unless process.env.ELECTRON_RUN_AS_NODE
- module.exports.Task = require '../src/task'
-
- TextEditor = (params) ->
Copied: atom/repos/community-x86_64/run-as-node.patch (from rev 192976, atom/trunk/run-as-node.patch)
===================================================================
--- community-x86_64/run-as-node.patch (rev 0)
+++ community-x86_64/run-as-node.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,11 @@
+--- a/exports/atom.js
++++ b/exports/atom.js
+@@ -37,7 +37,7 @@
+
+ // The following classes can't be used from a Task handler and should therefore
+ // only be exported when not running as a child node process
+-if (!process.env.ATOM_SHELL_INTERNAL_RUN_AS_NODE) {
++if (!process.env.ELECTRON_RUN_AS_NODE) {
+ atomExport.Task = require('../src/task')
+
+ const TextEditor = (params) => {
Deleted: community-x86_64/symbols-view-use-system-ctags.patch
===================================================================
--- community-x86_64/symbols-view-use-system-ctags.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-x86_64/symbols-view-use-system-ctags.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,11 +0,0 @@
---- 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']
-
Copied: atom/repos/community-x86_64/symbols-view-use-system-ctags.patch (from rev 192976, atom/trunk/symbols-view-use-system-ctags.patch)
===================================================================
--- community-x86_64/symbols-view-use-system-ctags.patch (rev 0)
+++ community-x86_64/symbols-view-use-system-ctags.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -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']
+
Deleted: community-x86_64/tree-view.patch
===================================================================
--- community-x86_64/tree-view.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-x86_64/tree-view.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,11 +0,0 @@
---- a/lib/main.coffee
-+++ b/lib/main.coffee
-@@ -54,7 +54,7 @@
- projectPath = atom.project.getPaths()[0]
- if atom.workspace.getActivePaneItem()
- false
-- else if path.basename(projectPath) is '.git'
-+ else if projectPath and path.basename(projectPath) is '.git'
- # Only attach when the project path matches the path to open signifying
- # the .git folder was opened explicitly and not by using Atom as the Git
- # editor.
Deleted: community-x86_64/use-system-apm.patch
===================================================================
--- community-x86_64/use-system-apm.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-x86_64/use-system-apm.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,29 +0,0 @@
---- a/build/tasks/build-task.coffee
-+++ b/build/tasks/build-task.coffee
-@@ -149,10 +149,6 @@
- cp 'src', path.join(appDir, 'src'), filter: /.+\.(cson|coffee)$/
- cp 'static', path.join(appDir, 'static')
-
-- cp path.join('apm', 'node_modules', 'atom-package-manager'), path.resolve(appDir, '..', 'new-app', 'apm'), filter: filterNodeModule
-- if process.platform isnt 'win32'
-- fs.symlinkSync(path.join('..', '..', 'bin', 'apm'), path.resolve(appDir, '..', 'new-app', 'apm', 'node_modules', '.bin', 'apm'))
--
- channel = grunt.config.get('atom.channel')
-
- cp path.join('resources', 'app-icons', channel, 'png', '1024.png'), path.join(appDir, 'resources', 'atom.png')
---- a/src/package-manager.coffee
-+++ b/src/package-manager.coffee
-@@ -136,12 +136,7 @@
- return configPath if configPath
- return @apmPath if @apmPath?
-
-- commandName = 'apm'
-- commandName += '.cmd' if process.platform is 'win32'
-- apmRoot = path.join(process.resourcesPath, 'app', 'apm')
-- @apmPath = path.join(apmRoot, 'bin', commandName)
-- unless fs.isFileSync(@apmPath)
-- @apmPath = path.join(apmRoot, 'node_modules', 'atom-package-manager', 'bin', commandName)
-+ @apmPath = '/usr/lib/node_modules/atom-package-manager/bin/apm'
- @apmPath
-
- # Public: Get the paths being used to look for packages.
Copied: atom/repos/community-x86_64/use-system-apm.patch (from rev 192976, atom/trunk/use-system-apm.patch)
===================================================================
--- community-x86_64/use-system-apm.patch (rev 0)
+++ community-x86_64/use-system-apm.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,16 @@
+--- a/src/package-manager.coffee
++++ b/src/package-manager.coffee
+@@ -136,12 +136,7 @@
+ return configPath if configPath
+ return @apmPath if @apmPath?
+
+- commandName = 'apm'
+- commandName += '.cmd' if process.platform is 'win32'
+- apmRoot = path.join(process.resourcesPath, 'app', 'apm')
+- @apmPath = path.join(apmRoot, 'bin', commandName)
+- unless fs.isFileSync(@apmPath)
+- @apmPath = path.join(apmRoot, 'node_modules', 'atom-package-manager', 'bin', commandName)
++ @apmPath = '/usr/lib/node_modules/atom-package-manager/bin/apm'
+ @apmPath
+
+ # Public: Get the paths being used to look for packages.
Deleted: community-x86_64/use-system-electron.patch
===================================================================
--- community-x86_64/use-system-electron.patch 2016-10-22 15:29:26 UTC (rev 192976)
+++ community-x86_64/use-system-electron.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -1,76 +0,0 @@
---- a/build/Gruntfile.coffee
-+++ b/build/Gruntfile.coffee
-@@ -304,7 +304,7 @@
-
- grunt.registerTask('ci', ciTasks)
-
-- defaultTasks = ['download-electron', 'download-electron-chromedriver', 'build', 'set-version', 'generate-asar']
-+ defaultTasks = ['build', 'set-version', 'generate-asar']
- unless process.platform is 'linux' or grunt.option('no-install')
- defaultTasks.push 'install'
- grunt.registerTask('default', defaultTasks)
---- a/build/tasks/build-task.coffee
-+++ b/build/tasks/build-task.coffee
-@@ -14,19 +14,6 @@
- rm path.join(buildDir, 'installer')
- mkdir path.dirname(buildDir)
-
-- if process.platform is 'darwin'
-- cp 'electron/Electron.app', shellAppDir, filter: /default_app/
-- fs.renameSync path.join(shellAppDir, 'Contents', 'MacOS', 'Electron'), path.join(shellAppDir, 'Contents', 'MacOS', 'Atom')
-- fs.renameSync path.join(shellAppDir, 'Contents', 'Frameworks', 'Electron Helper.app'), path.join(shellAppDir, 'Contents', 'Frameworks', 'Atom Helper.app')
-- fs.renameSync path.join(shellAppDir, 'Contents', 'Frameworks', 'Atom Helper.app', 'Contents', 'MacOS', 'Electron Helper'), path.join(shellAppDir, 'Contents', 'Frameworks', 'Atom Helper.app', 'Contents', 'MacOS', 'Atom Helper')
-- else
-- cp 'electron', shellAppDir, filter: /default_app/
--
-- if process.platform is 'win32'
-- fs.renameSync path.join(shellAppDir, 'electron.exe'), path.join(shellAppDir, 'atom.exe')
-- else
-- fs.renameSync path.join(shellAppDir, 'electron'), path.join(shellAppDir, 'atom')
--
- mkdir appDir
-
- if process.platform isnt 'win32'
---- a/package.json
-+++ b/package.json
-@@ -12,7 +12,6 @@
- "url": "https://github.com/atom/atom/issues"
- },
- "license": "MIT",
-- "electronVersion": "0.37.8",
- "dependencies": {
- "async": "0.2.6",
- "atom-keymap": "6.3.2",
---- a/src/module-cache.coffee
-+++ b/src/module-cache.coffee
-@@ -194,7 +194,7 @@
- return
-
- registerBuiltins = (devMode) ->
-- if devMode or not cache.resourcePath.startsWith("#{process.resourcesPath}#{path.sep}")
-+ if devMode or not cache.resourcePath.startsWith("/usr/lib/atom")
- fs = require 'fs-plus'
- atomCoffeePath = path.join(cache.resourcePath, 'exports', 'atom.coffee')
- cache.builtins.atom = atomCoffeePath if fs.isFileSync(atomCoffeePath)
---- a/src/package-manager.coffee
-+++ b/src/package-manager.coffee
-@@ -526,7 +526,7 @@
-
- isBundledPackagePath: (packagePath) ->
- if @devMode
-- return false unless @resourcePath.startsWith("#{process.resourcesPath}#{path.sep}")
-+ return false unless @resourcePath.startsWith("/usr/lib/atom")
-
- @resourcePathWithTrailingSlash ?= "#{@resourcePath}#{path.sep}"
- packagePath?.startsWith(@resourcePathWithTrailingSlash)
---- a/static/index.js
-+++ b/static/index.js
-@@ -29,7 +29,7 @@
- throw loadSettingsError
- }
-
-- var devMode = loadSettings.devMode || !loadSettings.resourcePath.startsWith(process.resourcesPath + path.sep)
-+ var devMode = loadSettings.devMode || !loadSettings.resourcePath.startsWith('/usr/lib/atom')
-
- if (devMode) {
- setupDeprecatedPackages()
Copied: atom/repos/community-x86_64/use-system-electron.patch (from rev 192976, atom/trunk/use-system-electron.patch)
===================================================================
--- community-x86_64/use-system-electron.patch (rev 0)
+++ community-x86_64/use-system-electron.patch 2016-10-22 15:30:16 UTC (rev 192977)
@@ -0,0 +1,113 @@
+--- a/package.json
++++ b/package.json
+@@ -12,7 +12,6 @@
+ "url": "https://github.com/atom/atom/issues"
+ },
+ "license": "MIT",
+- "electronVersion": "0.37.8",
+ "dependencies": {
+ "async": "0.2.6",
+ "atom-keymap": "6.3.2",
+--- a/script/build
++++ b/script/build
+@@ -2,10 +2,6 @@
+
+ 'use strict'
+
+-// Run bootstrap first to ensure all the dependencies used later in this script
+-// are installed.
+-require('./bootstrap')
+-
+ // Needed so we can require src/module-cache.coffee during generateModuleCache
+ require('coffee-script/register')
+ require('colors')
+@@ -28,7 +24,6 @@
+ const createDebianPackage = require('./lib/create-debian-package')
+ const createRpmPackage = require('./lib/create-rpm-package')
+ const createWindowsInstaller = require('./lib/create-windows-installer')
+-const downloadChromedriver = require('./lib/download-chromedriver')
+ const dumpSymbols = require('./lib/dump-symbols')
+ const generateAPIDocs = require('./lib/generate-api-docs')
+ const generateMetadata = require('./lib/generate-metadata')
+@@ -56,48 +51,4 @@
+ prebuildLessCache()
+ generateMetadata()
+ generateAPIDocs()
+-downloadChromedriver()
+ dumpSymbols()
+- .then(packageApplication)
+- .then(packagedAppPath => {
+- if (process.platform === 'darwin') {
+- if (argv.codeSign) {
+- codeSignOnMac(packagedAppPath)
+- } else {
+- console.log('Skipping code-signing. Specify the --code-sign option to perform code-signing'.gray)
+- }
+- } else if (process.platform === 'win32') {
+- if (argv.createWindowsInstaller) {
+- return createWindowsInstaller(packagedAppPath, argv.codeSign).then(() => packagedAppPath)
+- }
+- else {
+- console.log('Skipping creating installer. Specify the --create-windows-installer option to create a Squirrel-based Windows installer. Code-signing was skipped too.'.gray)
+- }
+- } else if (process.platform === 'linux') {
+- if (argv.createDebianPackage) {
+- createDebianPackage(packagedAppPath)
+- } else {
+- console.log('Skipping creating debian package. Specify the --create-debian-package option to create it.'.gray)
+- }
+-
+- if (argv.createRpmPackage) {
+- createRpmPackage(packagedAppPath)
+- } else {
+- console.log('Skipping creating rpm package. Specify the --create-rpm-package option to create it.'.gray)
+- }
+- }
+-
+- return Promise.resolve(packagedAppPath)
+- }).then(packagedAppPath => {
+- if (argv.compressArtifacts) {
+- compressArtifacts(packagedAppPath)
+- } else {
+- console.log('Skipping artifacts compression. Specify the --compress-artifacts option to compress Atom binaries (and symbols on macOS)'.gray)
+- }
+-
+- if (argv.install) {
+- installApplication(packagedAppPath)
+- } else {
+- console.log('Skipping installation. Specify the --install option to install Atom'.gray)
+- }
+- })
+--- a/src/module-cache.coffee
++++ b/src/module-cache.coffee
+@@ -194,7 +194,7 @@
+ return
+
+ registerBuiltins = (devMode) ->
+- if devMode or not cache.resourcePath.startsWith("#{process.resourcesPath}#{path.sep}")
++ if devMode or not cache.resourcePath.startsWith("/usr/lib/atom")
+ fs = require 'fs-plus'
+ atomJsPath = path.join(cache.resourcePath, 'exports', 'atom.js')
+ cache.builtins.atom = atomJsPath if fs.isFileSync(atomJsPath)
+--- a/src/package-manager.coffee
++++ b/src/package-manager.coffee
+@@ -526,7 +526,7 @@
+
+ isBundledPackagePath: (packagePath) ->
+ if @devMode
+- return false unless @resourcePath.startsWith("#{process.resourcesPath}#{path.sep}")
++ return false unless @resourcePath.startsWith("/usr/lib/atom")
+
+ @resourcePathWithTrailingSlash ?= "#{@resourcePath}#{path.sep}"
+ packagePath?.startsWith(@resourcePathWithTrailingSlash)
+--- a/static/index.js
++++ b/static/index.js
+@@ -29,7 +29,7 @@
+ throw loadSettingsError
+ }
+
+- var devMode = loadSettings.devMode || !loadSettings.resourcePath.startsWith(process.resourcesPath + path.sep)
++ var devMode = loadSettings.devMode || !loadSettings.resourcePath.startsWith('/usr/lib/atom')
+
+ if (devMode) {
+ setupDeprecatedPackages()
More information about the arch-commits
mailing list