atom: remove package.

- still depends on nodejs 10, which will be EOL starting May 2021
- template is very out of date (current version is 1.56.0), which shows
  lack of interest for the package
- as seen in [1], depends on outdated electron9 (which void no longer
  provides, if we wanted to use system electron), and that's a recent
  development

[1] https://github.com/atom/atom/pull/21777
This commit is contained in:
Érico Nogueira 2021-04-27 13:56:41 -03:00 committed by Érico Nogueira Rolim
parent 70780edcd3
commit 9654501a89
6 changed files with 1 additions and 310 deletions

View file

@ -114,7 +114,6 @@ libGLESv1_CM.so.1 libGLES-1.0_1
libGLESv2.so.2 libGLES-1.0_1
libEGL.so rpi-userland-0.0.0.0.20150907_1
libGLESv2.so rpi-userland-0.0.0.0.20150907_1
libGLESv2.so atom-1.41.0_1
libGLESv2.so opera-55.0.2994.37_2
libGLESv2.so discord-0.0.7_1
libGLESv2.so keybase-desktop-3.1.2_1

View file

@ -1,181 +0,0 @@
diff -Naurp0 a/atom.sh b/atom.sh
--- a/atom.sh 2019-11-08 22:04:23.210260827 +0300
+++ b/atom.sh 2019-11-08 22:08:36.721968851 +0300
@@ -2,25 +1,0 @@
-
-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
-
-case $(basename $0) in
- atom-beta)
- CHANNEL=beta
- ;;
- atom-nightly)
- CHANNEL=nightly
- ;;
- atom-dev)
- CHANNEL=dev
- ;;
- *)
- CHANNEL=stable
- ;;
-esac
-
@@ -91,0 +67 @@ mkdir -p "$ATOM_HOME"
+ATOM_PATH="/usr/libexec/atom/atom"
@@ -93,9 +69,5 @@ mkdir -p "$ATOM_HOME"
-if [ $OS == 'Mac' ]; then
- if [ -L "$0" ]; then
- SCRIPT="$(readlink "$0")"
- else
- SCRIPT="$0"
- fi
- ATOM_APP="$(dirname "$(dirname "$(dirname "$(dirname "$SCRIPT")")")")"
- if [ "$ATOM_APP" == . ]; then
- unset ATOM_APP
+if [ $EXPECT_OUTPUT ]; then
+ "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@"
+ ATOM_EXIT=$?
+ if [ ${ATOM_EXIT} -eq 0 ] && [ -n "${EXIT_CODE_OVERRIDE}" ]; then
+ exit "${EXIT_CODE_OVERRIDE}"
@@ -103,2 +75 @@ if [ $OS == 'Mac' ]; then
- ATOM_PATH="$(dirname "$ATOM_APP")"
- ATOM_APP_NAME="$(basename "$ATOM_APP")"
+ exit ${ATOM_EXIT}
@@ -106,85 +77,6 @@ if [ $OS == 'Mac' ]; then
-
- if [ ! -z "${ATOM_APP_NAME}" ]; then
- # If ATOM_APP_NAME is known, use it as the executable name
- ATOM_EXECUTABLE_NAME="${ATOM_APP_NAME%.*}"
- else
- # Else choose it from the inferred channel name
- if [ "$CHANNEL" == 'beta' ]; then
- ATOM_EXECUTABLE_NAME="Atom Beta"
- elif [ "$CHANNEL" == 'nightly' ]; then
- ATOM_EXECUTABLE_NAME="Atom Nightly"
- elif [ "$CHANNEL" == 'dev' ]; then
- ATOM_EXECUTABLE_NAME="Atom Dev"
- else
- ATOM_EXECUTABLE_NAME="Atom"
- fi
- fi
-
- if [ -z "${ATOM_PATH}" ]; then
- # If ATOM_PATH isn't 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 haven't 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_NAME}, it is usually located in /Applications. Set the ATOM_PATH environment variable to the directory containing ${ATOM_APP_NAME}."
- exit 1
- fi
- fi
- fi
-
- if [ $EXPECT_OUTPUT ]; then
- "$ATOM_PATH/$ATOM_APP_NAME/Contents/MacOS/$ATOM_EXECUTABLE_NAME" --executed-from="$(pwd)" --pid=$$ "$@"
- ATOM_EXIT=$?
- if [ ${ATOM_EXIT} -eq 0 ] && [ -n "${EXIT_CODE_OVERRIDE}" ]; then
- exit "${EXIT_CODE_OVERRIDE}"
- else
- exit ${ATOM_EXIT}
- fi
- 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)/..)
-
- case $CHANNEL in
- beta)
- ATOM_PATH="$USR_DIRECTORY/share/atom-beta/atom"
- ;;
- nightly)
- ATOM_PATH="$USR_DIRECTORY/share/atom-nightly/atom"
- ;;
- dev)
- ATOM_PATH="$USR_DIRECTORY/share/atom-dev/atom"
- ;;
- *)
- ATOM_PATH="$USR_DIRECTORY/share/atom/atom"
- ;;
- esac
-
- : ${TMPDIR:=/tmp}
-
- [ -x "$ATOM_PATH" ] || ATOM_PATH="$TMPDIR/atom-build/Atom/atom"
-
- if [ $EXPECT_OUTPUT ]; then
- "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@"
- ATOM_EXIT=$?
- if [ ${ATOM_EXIT} -eq 0 ] && [ -n "${EXIT_CODE_OVERRIDE}" ]; then
- exit "${EXIT_CODE_OVERRIDE}"
- else
- exit ${ATOM_EXIT}
- fi
- 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
- ) &
+else
+ (
+ nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1
+ if [ $? -ne 0 ]; then
+ cat "$ATOM_HOME/nohup.out"
+ exit $?
@@ -191,0 +84 @@ elif [ $OS == 'Linux' ]; then
+ ) &
diff -Naurp0 a/resources/linux/atom.desktop.in b/resources/linux/atom.desktop.in
--- a/resources/linux/atom.desktop.in 2019-11-08 22:29:18.312985700 +0300
+++ b/resources/linux/atom.desktop.in 2019-11-08 22:31:30.748437296 +0300
@@ -2,2 +2,2 @@
-Name=<%= appName %>
-Comment=<%= description %>
+Name=Atom
+Comment=Chrome-based text editor from Github
@@ -5,2 +5,2 @@ GenericName=Text Editor
-Exec=env ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT=false <%= installDir %>/bin/<%= appFileName %> %F
-Icon=<%= iconPath %>
+Exec=env ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT=false /usr/bin/atom %F
+Icon=atom
diff -Naurp0 a/script/lib/install-application.js b/script/lib/install-application.js
--- a/script/lib/install-application.js 2019-11-08 22:32:22.593396868 +0300
+++ b/script/lib/install-application.js 2019-11-08 22:58:19.347068485 +0300
@@ -90 +90 @@ module.exports = function(packagedAppPat
- const shareDirPath = path.join(prefixDirPath, 'share');
+ const shareDirPath = path.join(prefixDirPath, 'libexec');
@@ -103 +103 @@ module.exports = function(packagedAppPat
- const baseIconThemeDirPath = findBaseIconThemeDirPath();
+ const baseIconThemeDirPath = path.join(prefixDirPath, 'share/icons/hicolor')
@@ -216 +216 @@ module.exports = function(packagedAppPat
- 'share',
+ 'libexec',
diff -Naurp0 a/src/main-process/atom-application.js b/src/main-process/atom-application.js
--- a/src/main-process/atom-application.js 2019-11-08 22:12:01.212764247 +0300
+++ b/src/main-process/atom-application.js 2019-11-08 22:16:34.637836128 +0300
@@ -719 +719 @@ module.exports = class AtomApplication e
- path.join(process.resourcesPath, 'LICENSE.md')
+ '/usr/share/licenses/atom/LICENSE.md'
diff -Naurp0 a/src/workspace.js b/src/workspace.js
--- a/src/workspace.js 2019-11-08 22:14:27.324474946 +0300
+++ b/src/workspace.js 2019-11-08 22:15:49.853005612 +0300
@@ -1303 +1303 @@ module.exports = class Workspace extends
- return this.open(path.join(process.resourcesPath, 'LICENSE.md'));
+ return this.open('/usr/share/licenses/atom/LICENSE.md');

View file

@ -1,23 +0,0 @@
diff -Naurp0 a/package.json b/package.json
--- a/package.json 2019-12-13 22:07:42.000000000 +0300
+++ b/package.json 2019-12-19 13:26:20.083698872 +0300
@@ -67 +67 @@
- "git-utils": "5.6.1",
+ "git-utils": "file:packages/git-utils",
diff -Naurp0 a/package-lock.json b/package-lock.json
--- a/package-lock.json 2019-12-13 22:07:42.000000000 +0300
+++ b/package-lock.json 2019-12-19 16:45:30.215685265 +0300
@@ -3187,3 +3187 @@
- "version": "5.6.1",
- "resolved": "https://registry.npmjs.org/git-utils/-/git-utils-5.6.1.tgz",
- "integrity": "sha512-wDF7vSbH940NupuMFC87As0x/VSke51P7xTnkdSlk96YN3tzOagXzBUNq5Nq16KOVuMSxcGj1l3qHF5VXl39Ng==",
+ "version": "file:packages/git-utils",
@@ -5761 +5759 @@
- "git-utils": "^5.6.0",
+ "git-utils": "file:packages/git-utils",
diff -Naurp0 a/packages/git-utils/binding.gyp b/packages/git-utils/binding.gyp
--- a/packages/git-utils/binding.gyp 2019-06-20 18:40:36.000000000 +0300
+++ b/packages/git-utils/binding.gyp 2019-12-19 13:28:15.623981924 +0300
@@ -164,0 +165,2 @@
+ 'deps/libgit2/src/net.c',
+ 'deps/libgit2/src/net.h',

View file

@ -1,51 +0,0 @@
diff -Naurp0 a/package.json b/package.json
--- a/package.json 2019-12-13 22:07:42.000000000 +0300
+++ b/package.json 2019-12-19 17:00:25.029132872 +0300
@@ -52,0 +53 @@
+ "dugite": "file:packages/dugite",
diff -Naurp0 a/package-lock.json b/package-lock.json
--- a/package-lock.json 2019-12-13 22:07:42.000000000 +0300
+++ b/package-lock.json 2019-12-19 16:44:18.175132282 +0300
@@ -2530,3 +2530 @@
- "version": "1.87.5",
- "resolved": "https://registry.npmjs.org/dugite/-/dugite-1.87.5.tgz",
- "integrity": "sha512-Rfl1pJ7SaIk8kW9knOGFvVl/aRWAL7RnESs/0GMUCay/yOtVejkrDGlK8JciN5dluJbIg/4bMp0KeK3HGuQqEQ==",
+ "version": "file:packages/dugite",
@@ -3212 +3210 @@
- "dugite": "1.87.5",
+ "dugite": "file:packages/dugite",
@@ -6992 +6990 @@
- "dugite": "^1.86.0",
+ "dugite": "file:packages/dugite",
diff -Naurp0 a/packages/dugite/build/lib/git-environment.js b/packages/dugite/build/lib/git-environment.js
--- a/packages/dugite/build/lib/git-environment.js 1985-10-26 11:15:00.000000000 +0300
+++ b/packages/dugite/build/lib/git-environment.js 2019-12-19 15:13:56.919818081 +0300
@@ -4,12 +3,0 @@ const path = require("path");
-function resolveEmbeddedGitDir() {
- if (process.platform === 'darwin' ||
- process.platform === 'linux' ||
- process.platform === 'android' ||
- process.platform === 'win32') {
- const s = path.sep;
- return path
- .resolve(__dirname, '..', '..', 'git')
- .replace(/[\\\/]app.asar[\\\/]/, `${s}app.asar.unpacked${s}`);
- }
- throw new Error('Git not supported on platform: ' + process.platform);
-}
@@ -27 +15 @@ function resolveGitDir() {
- return resolveEmbeddedGitDir();
+ return '/usr';
@@ -108,7 +95,0 @@ function setupEnvironment(environmentVar
- if (!env.GIT_SSL_CAINFO && !env.LOCAL_GIT_DIRECTORY) {
- // use the SSL certificate bundle included in the distribution only
- // when using embedded Git and not providing your own bundle
- const distDir = resolveEmbeddedGitDir();
- const sslCABundle = `${distDir}/ssl/cacert.pem`;
- env.GIT_SSL_CAINFO = sslCABundle;
- }
diff -Naurp0 a/packages/dugite/package.json b/packages/dugite/package.json
--- a/packages/dugite/package.json 1985-10-26 11:15:00.000000000 +0300
+++ b/packages/dugite/package.json 2019-12-19 15:19:07.645889964 +0300
@@ -16 +15,0 @@
- "postinstall": "node ./script/download-git.js",

View file

@ -1,54 +0,0 @@
# Template file for 'atom'
_dugite_ver=1.88.1
_git_utils_ver=5.6.2
pkgname=atom
version=1.44.0
revision=1
archs="x86_64"
hostmakedepends="git pkg-config python-devel nodejs-lts-10 nodejs-lts-10-devel curl gtk+3
libXtst libXScrnSaver nss python alsa-lib"
makedepends="python-devel GConf-devel libgnome-keyring-devel gtk+3-devel
libX11-devel libxkbfile-devel libsecret-devel"
depends="git"
short_desc="Chrome-based text editor from Github"
maintainer="Wilson Birney <wpb@360scada.com>"
license="MIT"
homepage="https://atom.io"
distfiles="
https://github.com/atom/atom/archive/v${version}.tar.gz
https://registry.npmjs.org/dugite/-/dugite-${_dugite_ver}.tgz
https://registry.npmjs.org/git-utils/-/git-utils-${_git_utils_ver}.tgz"
checksum="
8d79697b0c969f22ee8dc2c1d27c608036e92deaf63574f8cd1509ea506eded9
ddb5479cc78cf863f05b1c35420d66dde55f2bfa66f30cd7bac484ffd5fd6782
b430ee53a09317df5b6677e5625950baefe840258f2e9d55cf4fc448c9d8576e"
skip_extraction="
dugite-${_dugite_ver}.tgz
git-utils-${_git_utils_ver}.tgz"
shlib_provides="libGLESv2.so"
patch_args="-Np1"
nocross=yes
nostrip=yes
python_version=2
post_extract() {
mkdir -p packages/dugite packages/git-utils
bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/dugite-${_dugite_ver}.tgz \
--strip-components=1 -C packages/dugite
bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/git-utils-${_git_utils_ver}.tgz \
--strip-components=1 -C packages/git-utils
}
pre_build() {
npm install -g gyp
vmkdir /usr/share/icons/hicolor
}
do_build() {
script/build --install=$DESTDIR/usr
}
do_install() {
mv $DESTDIR/usr/libexec/applications $DESTDIR/usr/share
vlicense LICENSE.md
}

View file

@ -17,6 +17,7 @@ replaces="
appdata-tools<=0.1.8_2
arm-mem-git<=20131108_2
arptables<=0.0.4_3
atom<=1.44.0_1
avogadro<=1.2.0_8
avogadro-devel<=1.2.0_8
bokken<=1.8_3