1
0
mirror of synced 2024-12-22 21:00:20 +01:00

added live ebuilds from aegypius

This commit is contained in:
Horea Christian 2015-04-09 23:42:26 +02:00
parent 0a57fc2312
commit 8d7c759500
2 changed files with 26 additions and 19 deletions

View File

@ -27,17 +27,18 @@ IUSE=""
DEPEND=" DEPEND="
${PYTHON_DEPS} ${PYTHON_DEPS}
dev-util/atom-shell:0/21 dev-util/atom-shell:0/22
net-libs/nodejs[npm] || ( net-libs/nodejs[npm] net-libs/iojs[npm] )
media-fonts/inconsolata media-fonts/inconsolata
" "
RDEPEND="${DEPEND}" RDEPEND="${DEPEND}"
QA_PRESTRIPPED="/usr/share/atom/resources/app/node_modules/symbols-view/vendor/ctags-linux" QA_PRESTRIPPED="
/usr/share/atom/resources/app/node_modules/symbols-view/vendor/ctags-linux
"
pkg_setup() { pkg_setup() {
python-any-r1_pkg_setup python-any-r1_pkg_setup
npm config set python $PYTHON npm config set python $PYTHON
} }
@ -46,8 +47,8 @@ src_unpack() {
} }
src_prepare() { src_prepare() {
# Skip atom-shell download # Skip atom-shell & atom-shell-chromedriver download
sed -i -e "s/defaultTasks = \['download-atom-shell', /defaultTasks = [/g" \ sed -i -e "s/defaultTasks = \['download-atom-shell', 'download-atom-shell-chromedriver', /defaultTasks = [/g" \
./build/Gruntfile.coffee \ ./build/Gruntfile.coffee \
|| die "Failed to fix Gruntfile" || die "Failed to fix Gruntfile"
@ -67,14 +68,19 @@ src_prepare() {
src_compile() { src_compile() {
./script/build --verbose --build-dir "${T}" || die "Failed to 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" "${T}/Atom/resources/app/apm/bin/apm" rebuild || die "Failed to rebuild native module"
# Setup python path to builtin npm # Setup python path to builtin npm
echo "python = $PYTHON" >> "${T}/Atom/resources/app/apm/.apmrc" echo "python = $PYTHON" >> "${T}/Atom/resources/app/apm/.apmrc"
} }
src_install() { src_install() {
into /usr
into /usr
insinto /usr/share/applications insinto /usr/share/applications
insinto /usr/share/${PN}/resources/app insinto /usr/share/${PN}/resources/app
exeinto /usr/bin exeinto /usr/bin

View File

@ -14,7 +14,7 @@ SRC_URI=""
EGIT_REPO_URI="git://github.com/atom/atom-shell" EGIT_REPO_URI="git://github.com/atom/atom-shell"
LICENSE="MIT" LICENSE="MIT"
SLOT="0/21" SLOT="0/22"
if [[ ${PV} == *9999 ]];then if [[ ${PV} == *9999 ]];then
KEYWORDS="" KEYWORDS=""
@ -29,7 +29,7 @@ DEPEND="
${PYTHON_DEPS} ${PYTHON_DEPS}
sys-devel/llvm:0/3.5[clang] sys-devel/llvm:0/3.5[clang]
dev-lang/python:2.7 dev-lang/python:2.7
net-libs/nodejs[npm] =net-libs/nodejs-0.10*[npm]
x11-libs/gtk+:2 x11-libs/gtk+:2
x11-libs/libnotify x11-libs/libnotify
gnome-base/libgnome-keyring gnome-base/libgnome-keyring
@ -41,8 +41,8 @@ DEPEND="
sys-libs/libcap sys-libs/libcap
x11-libs/libXtst x11-libs/libXtst
x11-libs/pango x11-libs/pango
dev-util/ninja
" "
RDEPEND="${DEPEND} RDEPEND="${DEPEND}
!<app-editors/atom-0.120.0 !<app-editors/atom-0.120.0
" "
@ -51,7 +51,6 @@ QA_PRESTRIPPED="
/usr/share/atom/libffmpegsumo.so /usr/share/atom/libffmpegsumo.so
/usr/share/atom/libchromiumcontent.so /usr/share/atom/libchromiumcontent.so
" "
src_unpack() { src_unpack() {
git-r3_src_unpack git-r3_src_unpack
} }
@ -68,12 +67,11 @@ src_prepare() {
# Fix util.execute function to be more verbose # Fix util.execute function to be more verbose
sed -i -e 's/def execute(argv):/def execute(argv):\n print " - bootstrap: " + " ".join(argv)/g' \ sed -i -e 's/def execute(argv):/def execute(argv):\n print " - bootstrap: " + " ".join(argv)/g' \
./script/lib/util.py \ ./script/lib/util.py \
|| die "Failed to sed lib/util.py" || die "Failed to sed lib/util.py"
# Bootstrap # Bootstrap
./script/bootstrap.py \ ./script/bootstrap.py || die "bootstrap failed"
|| die "bootstrap failed"
# Fix libudev.so.0 link # Fix libudev.so.0 link
sed -i -e 's/libudev.so.0/libudev.so.1/g' \ sed -i -e 's/libudev.so.0/libudev.so.1/g' \
@ -86,8 +84,7 @@ src_prepare() {
|| die "build fix failed" || die "build fix failed"
# Update ninja files # Update ninja files
./script/update.py \ ./script/update.py || die "update failed"
|| die "update failed"
} }
src_compile() { src_compile() {
@ -98,7 +95,8 @@ src_compile() {
} }
src_install() { src_install() {
into /usr/share/atom
into /usr/share/atom
insinto /usr/share/atom insinto /usr/share/atom
exeinto /usr/share/atom exeinto /usr/share/atom
@ -112,4 +110,7 @@ src_install() {
doins LICENSE doins LICENSE
doins icudtl.dat doins icudtl.dat
doins content_shell.pak doins content_shell.pak
doins natives_blob.bin
doins snapshot_blob.bin
} }