From e1cdfa6a8998cdef8dfb55acbcc3ad40aa315799 Mon Sep 17 00:00:00 2001 From: Heather Cynede Date: Wed, 13 Apr 2016 13:01:01 +0400 Subject: app-editors/atom: bump Package-Manager: portage-2.2.28 --- app-editors/atom/Manifest | 2 +- app-editors/atom/atom-1.6.2.ebuild | 86 -------------------------------------- app-editors/atom/atom-1.7.0.ebuild | 85 +++++++++++++++++++++++++++++++++++++ 3 files changed, 86 insertions(+), 87 deletions(-) delete mode 100644 app-editors/atom/atom-1.6.2.ebuild create mode 100644 app-editors/atom/atom-1.7.0.ebuild (limited to 'app-editors') diff --git a/app-editors/atom/Manifest b/app-editors/atom/Manifest index a2b9e29d1c4c..1efdf98b6208 100644 --- a/app-editors/atom/Manifest +++ b/app-editors/atom/Manifest @@ -1 +1 @@ -DIST 1.6.2.tar.gz 10340322 SHA256 63ee85a67d642bf85179c67ba455042e2892a5091dedc31f007f8ec2de8fc3af SHA512 ef378a3bfa539a4e9da2f8a391e5716bc8312f4cb5c02692b4518fe1805e1771f59a47612fe184b0ce7200358c6c711545393f7a2aec2b996c40654a24469120 WHIRLPOOL 8a34c3dab6f76dc7204ae8dc2bc08f24fb1822dbb153d561c71929dba83a57c457678ff9f85819b3c7d342864c06c51a5fffa1aada603d1eab8729784ea028fa +DIST 1.7.0.tar.gz 10362810 SHA256 1629c6688bccf7180482b4b5ccacf0d68d9b33172007d2c05c6458da80be046a SHA512 1352432230d8d1b1b1b39f998a7e62f666155e9090002de3c69822dba4fb0970c7db71fc30bbd9be68dd94d2dc540a05e97e4a44e49c8dddc66f42dbd45a9fe7 WHIRLPOOL add2242e836f193ba6a13c817748a9094154288a5dee3168b80e0080cae42a3bc2904060fe7bc9247a1354ab1a4fa4eec745c763869b7767c8a54e6e6ac90d7a diff --git a/app-editors/atom/atom-1.6.2.ebuild b/app-editors/atom/atom-1.6.2.ebuild deleted file mode 100644 index 1524177b0aae..000000000000 --- a/app-editors/atom/atom-1.6.2.ebuild +++ /dev/null @@ -1,86 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=6 - -PYTHON_COMPAT=( python2_7 ) -inherit flag-o-matic python-any-r1 eutils - -DESCRIPTION="A hackable text editor for the 21st Century" -HOMEPAGE="https://atom.io" -SRC_URI="https://github.com/atom/atom/archive/v${PV}.tar.gz -> ${PV}.tar.gz" -RESTRICT="mirror" -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND=" - ${PYTHON_DEPS} - net-libs/nodejs[npm] - media-fonts/inconsolata - gnome-base/gconf - x11-libs/gtk+:2 - gnome-base/libgnome-keyring - x11-libs/libnotify - x11-libs/libXtst - dev-libs/nss - media-libs/alsa-lib -" -RDEPEND="${DEPEND}" - -pkg_setup() { - python-any-r1_pkg_setup - npm config set python $PYTHON -} - -src_prepare(){ - epatch "${FILESDIR}/${PN}-python.patch" - sed -i -e "/exception-reporting/d" \ - -e "/metrics/d" package.json - sed -e "s/<%= description %>/$pkgdesc/" \ - -e "s|<%= installDir %>/share/<%= appFileName %>/atom|/usr/bin/atom|"\ - -e "s|<%= iconPath %>|atom|"\ - -e "s|<%= appName %>|Atom|" \ - resources/linux/atom.desktop.in > resources/linux/Atom.desktop - - # Fix atom location guessing - sed -i -e 's/ATOM_PATH="$USR_DIRECTORY\/share\/atom/ATOM_PATH="$USR_DIRECTORY\/../g' \ - ./atom.sh \ - || die "Fail fixing atom-shell directory" - - # Make bootstrap process more verbose - sed -i -e 's@node script/bootstrap@node script/bootstrap --no-quiet@g' \ - ./script/build \ - || die "Fail fixing verbosity of script/build" - default -} - -src_compile(){ - ./script/build --verbose --build-dir "${T}" || die "Failed to compile" - "${T}/Atom/resources/app/apm/bin/apm" rebuild || die "Failed to rebuild native module" - echo "python = $PYTHON" >> "${T}/Atom/resources/app/apm/.apmrc" -} - -src_install(){ - insinto "/usr/share/${PN}" - doins -r "${T}"/Atom/* - insinto "/usr/share/applications" - newins resources/linux/Atom.desktop atom.desktop - insinto "/usr/share/pixmaps" - newins resources/app-icons/stable/png/128.png atom.png - insinto "/usr/share/licenses/${PN}" - doins LICENSE.md - # Fixes permissions - fperms +x "/usr/share/${PN}/${PN}" - fperms +x "/usr/share/${PN}/libgcrypt.so.11" - fperms +x "/usr/share/${PN}/libnotify.so.4" - fperms +x "/usr/share/${PN}/resources/app/atom.sh" - fperms +x "/usr/share/${PN}/resources/app/apm/bin/apm" - fperms +x "/usr/share/${PN}/resources/app/apm/bin/node" - fperms +x "/usr/share/${PN}/resources/app/apm/node_modules/npm/bin/node-gyp-bin/node-gyp" - # Symlinking to /usr/bin - dosym "/usr/share/${PN}/resources/app/atom.sh" /usr/bin/atom - dosym "/usr/share/${PN}/resources/app/apm/bin/apm" /usr/bin/apm -} diff --git a/app-editors/atom/atom-1.7.0.ebuild b/app-editors/atom/atom-1.7.0.ebuild new file mode 100644 index 000000000000..6c0541e20bf3 --- /dev/null +++ b/app-editors/atom/atom-1.7.0.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) +inherit flag-o-matic python-any-r1 eutils + +DESCRIPTION="A hackable text editor for the 21st Century" +HOMEPAGE="https://atom.io" +SRC_URI="https://github.com/atom/atom/archive/v${PV}.tar.gz -> ${PV}.tar.gz" +RESTRICT="mirror" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=" + ${PYTHON_DEPS} + net-libs/nodejs[npm] + media-fonts/inconsolata + gnome-base/gconf + x11-libs/gtk+:2 + gnome-base/libgnome-keyring + x11-libs/libnotify + x11-libs/libXtst + dev-libs/nss + media-libs/alsa-lib +" +RDEPEND="${DEPEND}" + +pkg_setup() { + python-any-r1_pkg_setup + npm config set python $PYTHON +} + +src_prepare(){ + epatch "${FILESDIR}/${PN}-python.patch" + sed -i -e "/exception-reporting/d" \ + -e "/metrics/d" package.json + sed -e "s/<%= description %>/$pkgdesc/" \ + -e "s|<%= installDir %>/share/<%= appFileName %>/atom|/usr/bin/atom|"\ + -e "s|<%= iconPath %>|atom|"\ + -e "s|<%= appName %>|Atom|" \ + resources/linux/atom.desktop.in > resources/linux/Atom.desktop + + # Fix atom location guessing + sed -i -e 's/ATOM_PATH="$USR_DIRECTORY\/share\/atom/ATOM_PATH="$USR_DIRECTORY\/../g' \ + ./atom.sh \ + || die "Fail fixing atom-shell directory" + + # Make bootstrap process more verbose + sed -i -e 's@node script/bootstrap@node script/bootstrap --no-quiet@g' \ + ./script/build \ + || die "Fail fixing verbosity of script/build" + default +} + +src_compile(){ + ./script/build --verbose --build-dir "${T}" || die "Failed to compile" + "${T}/Atom/resources/app/apm/bin/apm" rebuild || die "Failed to rebuild native module" + echo "python = $PYTHON" >> "${T}/Atom/resources/app/apm/.apmrc" +} + +src_install(){ + insinto "/usr/share/${PN}" + doins -r "${T}"/Atom/* + insinto "/usr/share/applications" + newins resources/linux/Atom.desktop atom.desktop + insinto "/usr/share/pixmaps" + newins resources/app-icons/stable/png/128.png atom.png + insinto "/usr/share/licenses/${PN}" + doins LICENSE.md + # Fixes permissions + fperms +x "/usr/share/${PN}/${PN}" + fperms +x "/usr/share/${PN}/libgcrypt.so.11" + fperms +x "/usr/share/${PN}/resources/app/atom.sh" + fperms +x "/usr/share/${PN}/resources/app/apm/bin/apm" + fperms +x "/usr/share/${PN}/resources/app/apm/bin/node" + fperms +x "/usr/share/${PN}/resources/app/apm/node_modules/npm/bin/node-gyp-bin/node-gyp" + # Symlinking to /usr/bin + dosym "/usr/share/${PN}/resources/app/atom.sh" /usr/bin/atom + dosym "/usr/share/${PN}/resources/app/apm/bin/apm" /usr/bin/apm +} -- cgit v1.2.3-18-g5258