add local overlay
This commit is contained in:
commit
4883c62e9a
68 changed files with 2719 additions and 0 deletions
5
dev-util/atom-shell/Manifest
Normal file
5
dev-util/atom-shell/Manifest
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
AUX 0001-fix-atom-shell-linking.patch 539 SHA256 2a3ebdf366b6f617cd1d15d198fc889e115af34312725223e73d53a440712961 SHA512 c81af4a4e440588c1a48814e25d5558d4927fa5113844b7fed2c2fd0222ec9f6c904930c6fd168c4b45c1fd0031664c32b4de43f23f59a2de0a9d6cab71588a1 WHIRLPOOL 030f24d797f0c1b94909b5d40319941cff6a69af99a2fbbe85f0c6b47ea0346406b8641faa4f8cdc60b89c4749856b35a83db67a6077e17dbd64033a4334b1c9
|
||||
AUX 0002-fix-brightray-linking.patch 888 SHA256 6a3e551942059db631d439b9ea5210dda2c0c034296b1fcc190b2b7b3c8f231a SHA512 a965f1fbeec418ba16437f93fbe0937b3f3150e67945e129f01d2dc367e8c6c0e8380f6cb3581f085ad510f336c2f4eadba5d2183682217ec30211540189caec WHIRLPOOL 45dd54119e5a294834d1cd517c83ed5fcb12e042998bf22ac94162ca0ced37685edb5802b667dafb5670edc27dea5125948218a1441cd0d6e5e611ac503a7224
|
||||
EBUILD atom-shell-0.21.3.ebuild 2309 SHA256 e05e98db6ad431018f33a143f0f7828b556faca3674a6b9e11e95eabf1b08a75 SHA512 4a0c00084d57def4a62b6f40509e62a1d30106575af2cf3bd3c468c01835756eba9d750ab22fff77646b71c305e57a6402ef4eecd1f713595bd8111d3f163cae WHIRLPOOL 890a15d9d8a78694898345a9bcd77bcffa301b3db7cec07fc12719c6af1fbbe6e5557a864679131fa55fdb2e1098230a19616628a61731e527586b4215ebb60f
|
||||
EBUILD atom-shell-0.22.3-r2.ebuild 2384 SHA256 e0ae9dfa04427478e63a52c42efcc7d135235566d188733a50f362d90cd0bb69 SHA512 c0412255cd8e552ec7e74702415f1df653dedb73dec0b45af3cb0f3fcf55400c41455078f6d43f071f122fad26449f140c6724af0a67881101edde767a838f07 WHIRLPOOL da8bbe5f33ae226afad494d1e4c014ac9a6ea81faf993f8faea61df822901c72eb5ae0051d362c90e6e8fa9708f8064530381c4d9919bb71efd546916f4476a2
|
||||
MISC metadata.xml 229 SHA256 49bb8cd6398798946a34277c6d2e012a6ae6370c2af278e0ef7f08bb95efd8b1 SHA512 d6173592dc3414e5bb0ca4bbd6cab74fecf77f95d3bef226ae5fd3ab584dd4a1fa32d58d7493d9a41504f2ff2903a975da99861bc02ef11980689d7943e9203b WHIRLPOOL 8ae331b2041b5ec3dc730ae03bd266e89ee7de52a7d1d22d7cac94e6934c013854e9100340f7175e4ec6afdbc611213c46048c48d5268d2219f27c27ee4975da
|
||||
116
dev-util/atom-shell/atom-shell-0.21.3.ebuild
Normal file
116
dev-util/atom-shell/atom-shell-0.21.3.ebuild
Normal file
|
|
@ -0,0 +1,116 @@
|
|||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit git-r3 flag-o-matic python-any-r1
|
||||
|
||||
DESCRIPTION="Cross-platform desktop application shell"
|
||||
HOMEPAGE="https://github.com/atom/atom-shell"
|
||||
SRC_URI=""
|
||||
|
||||
EGIT_REPO_URI="git://github.com/atom/atom-shell"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/21"
|
||||
|
||||
if [[ ${PV} == *9999 ]];then
|
||||
KEYWORDS=""
|
||||
else
|
||||
KEYWORDS="~amd64"
|
||||
EGIT_COMMIT="v${PV}"
|
||||
fi
|
||||
|
||||
IUSE="debug"
|
||||
|
||||
DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
sys-devel/llvm:0/3.5[clang]
|
||||
dev-lang/python:2.7
|
||||
net-libs/nodejs[npm]
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/libnotify
|
||||
gnome-base/libgnome-keyring
|
||||
dev-libs/nss
|
||||
dev-libs/nspr
|
||||
gnome-base/gconf
|
||||
media-libs/alsa-lib
|
||||
net-print/cups
|
||||
sys-libs/libcap
|
||||
x11-libs/libXtst
|
||||
x11-libs/pango
|
||||
dev-util/ninja
|
||||
"
|
||||
|
||||
RDEPEND="${DEPEND}
|
||||
!<app-editors/atom-0.120.0
|
||||
"
|
||||
|
||||
QA_PRESTRIPPED="
|
||||
/usr/share/atom/libffmpegsumo.so
|
||||
/usr/share/atom/libchromiumcontent.so
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
git-r3_src_unpack
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
python-any-r1_pkg_setup
|
||||
|
||||
# Update npm config to use python 2
|
||||
npm config set python $PYTHON
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
einfo "Bootstrap atom-shell source"
|
||||
|
||||
# Fix util.execute function to be more verbose
|
||||
sed -i -e 's/def execute(argv):/def execute(argv):\n print " - bootstrap: " + " ".join(argv)/g' \
|
||||
./script/lib/util.py \
|
||||
|| die "Failed to sed lib/util.py"
|
||||
|
||||
# Bootstrap
|
||||
./script/bootstrap.py \
|
||||
|| die "bootstrap failed"
|
||||
|
||||
# Fix libudev.so.0 link
|
||||
sed -i -e 's/libudev.so.0/libudev.so.1/g' \
|
||||
./vendor/brightray/vendor/download/libchromiumcontent/Release/libchromiumcontent.so \
|
||||
|| die "libudev fix failed"
|
||||
|
||||
# Make every subprocess calls fatal
|
||||
sed -i -e 's/subprocess.call(/subprocess.check_call(/g' \
|
||||
./script/build.py \
|
||||
|| die "build fix failed"
|
||||
|
||||
# Update ninja files
|
||||
./script/update.py || die "update failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
OUT=out/$(usex debug Debug Release)
|
||||
./script/build.py --configuration $(usex debug Debug Release) || die "Compilation failed"
|
||||
echo "v$PV" > "${OUT}/version"
|
||||
cp LICENSE "$OUT"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
into /usr/share/atom
|
||||
insinto /usr/share/atom
|
||||
exeinto /usr/share/atom
|
||||
|
||||
cd "${OUT}"
|
||||
|
||||
doexe atom libchromiumcontent.so libffmpegsumo.so
|
||||
|
||||
doins -r resources
|
||||
doins -r locales
|
||||
doins version
|
||||
doins LICENSE
|
||||
doins icudtl.dat
|
||||
doins content_shell.pak
|
||||
}
|
||||
|
||||
117
dev-util/atom-shell/atom-shell-0.22.3-r2.ebuild
Normal file
117
dev-util/atom-shell/atom-shell-0.22.3-r2.ebuild
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit git-r3 flag-o-matic python-any-r1
|
||||
|
||||
DESCRIPTION="Cross-platform desktop application shell"
|
||||
HOMEPAGE="https://github.com/atom/atom-shell"
|
||||
SRC_URI=""
|
||||
|
||||
EGIT_REPO_URI="git://github.com/atom/atom-shell"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/22"
|
||||
|
||||
if [[ ${PV} == *9999 ]];then
|
||||
KEYWORDS=""
|
||||
else
|
||||
KEYWORDS="~amd64"
|
||||
EGIT_COMMIT="v${PV}"
|
||||
fi
|
||||
|
||||
IUSE="debug"
|
||||
|
||||
DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
>=sys-devel/llvm-3.5.0[clang]
|
||||
dev-lang/python:2.7
|
||||
|| ( net-libs/nodejs[npm] net-libs/iojs[npm] )
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/libnotify
|
||||
gnome-base/libgnome-keyring
|
||||
dev-libs/nss
|
||||
dev-libs/nspr
|
||||
gnome-base/gconf
|
||||
media-libs/alsa-lib
|
||||
net-print/cups
|
||||
sys-libs/libcap
|
||||
x11-libs/libXtst
|
||||
x11-libs/pango
|
||||
dev-util/ninja
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
!<app-editors/atom-0.120.0
|
||||
"
|
||||
|
||||
QA_PRESTRIPPED="
|
||||
/usr/share/atom/libffmpegsumo.so
|
||||
/usr/share/atom/libchromiumcontent.so
|
||||
"
|
||||
src_unpack() {
|
||||
git-r3_src_unpack
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
python-any-r1_pkg_setup
|
||||
|
||||
# Update npm config to use python 2
|
||||
npm config set python $PYTHON
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
einfo "Bootstrap atom-shell source"
|
||||
|
||||
# Fix util.execute function to be more verbose
|
||||
sed -i -e 's/def execute(argv):/def execute(argv):\n print " - bootstrap: " + " ".join(argv)/g' \
|
||||
./script/lib/util.py \
|
||||
|| die "Failed to sed lib/util.py"
|
||||
|
||||
# Bootstrap
|
||||
./script/bootstrap.py || die "bootstrap failed"
|
||||
|
||||
# Fix libudev.so.0 link
|
||||
sed -i -e 's/libudev.so.0/libudev.so.1/g' \
|
||||
./vendor/brightray/vendor/download/libchromiumcontent/Release/libchromiumcontent.so \
|
||||
|| die "libudev fix failed"
|
||||
|
||||
# Make every subprocess calls fatal
|
||||
sed -i -e 's/subprocess.call(/subprocess.check_call(/g' \
|
||||
./script/build.py \
|
||||
|| die "build fix failed"
|
||||
|
||||
# Update ninja files
|
||||
./script/update.py || die "update failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
OUT=out/$(usex debug Debug Release)
|
||||
./script/build.py --configuration $(usex debug Debug Release) || die "Compilation failed"
|
||||
echo "v$PV" > "${OUT}/version"
|
||||
cp LICENSE "$OUT"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
into /usr/share/atom
|
||||
insinto /usr/share/atom
|
||||
exeinto /usr/share/atom
|
||||
|
||||
cd "${OUT}"
|
||||
|
||||
doexe atom libchromiumcontent.so libffmpegsumo.so
|
||||
|
||||
doins -r resources
|
||||
doins -r locales
|
||||
doins version
|
||||
doins LICENSE
|
||||
doins icudtl.dat
|
||||
doins content_shell.pak
|
||||
doins natives_blob.bin
|
||||
doins snapshot_blob.bin
|
||||
|
||||
}
|
||||
|
||||
15
dev-util/atom-shell/files/0001-fix-atom-shell-linking.patch
Normal file
15
dev-util/atom-shell/files/0001-fix-atom-shell-linking.patch
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
diff --git a/atom.gyp b/atom.gyp
|
||||
index 9805db8..ab27cb7 100644
|
||||
--- a/atom.gyp
|
||||
+++ b/atom.gyp
|
||||
@@ -587,10 +587,6 @@
|
||||
'-rpath \$$ORIGIN',
|
||||
# Make native module dynamic loading work.
|
||||
'-rdynamic',
|
||||
- '<!@(pkg-config --libs-only-L --libs-only-other dbus-1 x11 xrandr xext gconf-2.0)',
|
||||
- ],
|
||||
- 'libraries': [
|
||||
- '<!@(pkg-config --libs-only-l dbus-1 x11 xrandr xext gconf-2.0)',
|
||||
],
|
||||
},
|
||||
# Required settings of using breakpad.
|
||||
20
dev-util/atom-shell/files/0002-fix-brightray-linking.patch
Normal file
20
dev-util/atom-shell/files/0002-fix-brightray-linking.patch
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
diff --git a/vendor/brightray/brightray.gyp b/vendor/brightray/brightray.gyp
|
||||
index c00db15..dbcfa3c 100644
|
||||
--- a/vendor/brightray/brightray.gyp
|
||||
+++ b/vendor/brightray/brightray.gyp
|
||||
@@ -101,11 +101,14 @@
|
||||
'-fno-rtti',
|
||||
],
|
||||
'link_settings': {
|
||||
+ 'ld-flags': [
|
||||
+ '<!@(pkg-config --libs-only-L --libs-only-other gtk+-2.0 libnotify dbus-1 x11 xrandr xext gconf-2.0)',
|
||||
+ ],
|
||||
'libraries': [
|
||||
'<(brightray_source_root)/<(libchromiumcontent_library_dir)/libchromiumcontent.so',
|
||||
'<(brightray_source_root)/<(libchromiumcontent_library_dir)/libchromiumviews.a',
|
||||
'-lpthread',
|
||||
- '<!@(pkg-config --libs gtk+-2.0 libnotify)',
|
||||
+ '<!@(pkg-config --libs-only-l gtk+-2.0 libnotify dbus-1 x11 xrandr xext gconf-2.0)',
|
||||
],
|
||||
},
|
||||
}],
|
||||
8
dev-util/atom-shell/metadata.xml
Normal file
8
dev-util/atom-shell/metadata.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>aegypius@github.com</email>
|
||||
<name>aegypius</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
6
dev-util/ios-webkit-debug-proxy/Manifest
Normal file
6
dev-util/ios-webkit-debug-proxy/Manifest
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
DIST 1.4.tar.gz 325667 SHA256 d9112c59fec966dc60db2d153844b643ca00dbbc547105798ca4696c87166c70 SHA512 1f0b39966be653b084993835c339f34afa1610fc52dbd3d969c09b095bdc3cf5cad691568b1f91b4551b5d8e3e4b8a9db372af66426cdf83f8567b5237cadf00 WHIRLPOOL 5da170a33e869c41f4d34625958f6c4495b6acb6c42294ea322e80dabd1f7fe23e0f22b7eafce90c676dc52db17da0dbc9f84c6240c3b1db2c7b0ad1d03552a4
|
||||
DIST 1.6.tar.gz 326820 SHA256 92f45cfb26acf51e86c37f00a00292f7ac78cc4abe8cf094c3eb176d7e7c603d SHA512 8a975f8885a7d30b6acdedd3323f6de7b208c119094d05b2d5ebbceea6dcb6e0934b3770926dc6847fb0ffc2903bfb154bff2cc0dd252d37751ad9766d5456b5 WHIRLPOOL bc8ffc0197677d5da9f9e43ba01cf342e5f1e499a349acb8dc564795f8ed1a00c12d0335990949d0763810558e20d51998ba71897a789437dc816eaec9c4a235
|
||||
EBUILD ios-webkit-debug-proxy-1.4.ebuild 519 SHA256 0654aff171d91e9d0abef3ef09b5fd51762e51c3d88fc579fd4ddcde0669d182 SHA512 631518e49d750d6bace0cd86380035e9f5df37800e414c5e43bd2510e0ec60a634c7192bb4d1a172b6b50e88dfe61c2e8d5161c9cc06319a3e16c80533ee2102 WHIRLPOOL ff633b13aaf1595ce74dc2b79624084c8fb8c1e2a7d494659f7a81c6c7a74a22420dbe7b5ac27e1ba37c78185b4b9ea0dd5a25970f5eaa51727501b2caa08b3b
|
||||
EBUILD ios-webkit-debug-proxy-1.6.ebuild 525 SHA256 cd0741e054b3377e555f5410415dc35c13ae8d87acb8f73f85874b431cd741cc SHA512 8e379b23b3352b4432abab85bd1c4c60257e97716f15b83980cc7904b15d76bce9354873f955752b8223f9216e20d0ad1f110bbc69ba46e2eec8bb1d6714ed32 WHIRLPOOL 8f5a8e7d50a612a5d536aa3f84f7868508b481c99547b7eb2e6bf442a20a275b115fd34fcf45c8c7852d7d54a1b8adef50bc6defe1c223561a01684b1497c13a
|
||||
EBUILD ios-webkit-debug-proxy-9999.ebuild 659 SHA256 21778d1da5b8b0adf290b63f0aad45703285206e1578f36f93dbdad250cb249c SHA512 6c6938335d33f0773bdbffd94fbde6abf7fdad0b222ff849637828a59c6a30e4599febd9858123c8f3c85c92bef882cb5636179f7463b6124d4b2412882be397 WHIRLPOOL ba32162e3c99972d96007d77efd6a0fc5321678f70e50255531be14b7c5453e4470287f8809880baa81e06e085e9527bf5fe3e59cfdf31a96d66b8c0d9a2d3e3
|
||||
MISC metadata.xml 141 SHA256 bdd2e2a14c0b5f3f6bcffeb6f03cc3d4c76634dcece7020b880156a37173e18c SHA512 57637ce6bae0647c1c29da48ac966a09ffb71bc10ce1db45bcd61858403a82549365c24dca67dc0e57434dd1b25a804664c9c809b4d5e9ffef30d2781b3b4e96 WHIRLPOOL 4881d179ec0611e5d35292e9ed7e281afc5d5bf2d4416f9cebf5fa9952897aed30270c0cf9462f0bab86892c30fce3d61f458fa1826d35d73610f305017f2c5f
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="A DevTools proxy (WebKit Remote Debugging Protocol) for iOS devices (Safari Remote Web Inspector)"
|
||||
HOMEPAGE="https://github.com/google/{$PN}"
|
||||
SRC_URI="https://github.com/google/${PN}/archive/${PV}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
|
||||
DEPEND="app-pda/libimobiledevice
|
||||
app-pda/libplist"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare(){
|
||||
eautoreconf
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="A DevTools proxy (WebKit Remote Debugging Protocol) for iOS devices (Safari Remote Web Inspector)"
|
||||
HOMEPAGE="https://github.com/google/{$PN}"
|
||||
SRC_URI="https://github.com/google/${PN}/archive/${PV}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
|
||||
DEPEND="app-pda/libimobiledevice
|
||||
>=app-pda/libplist-1.12"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare(){
|
||||
eautoreconf
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit autotools git-2
|
||||
|
||||
REV="master"
|
||||
DESCRIPTION="A DevTools proxy (WebKit Remote Debugging Protocol) for iOS devices (Safari Remote Web Inspector)"
|
||||
HOMEPAGE="https://github.com/google/{$PN}"
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="git://github.com/google/${PN}.git"
|
||||
#SRC_URI="https://github.com/iSchluff/${PN}/archive/${REV}.zip"
|
||||
#EGIT_REPO_URI="git://github.com/iSchluff/${PN}.git"
|
||||
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
|
||||
DEPEND="app-pda/libimobiledevice
|
||||
>=app-pda/libplist-1.12"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare(){
|
||||
eautoreconf
|
||||
}
|
||||
6
dev-util/ios-webkit-debug-proxy/metadata.xml
Normal file
6
dev-util/ios-webkit-debug-proxy/metadata.xml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
</pkgmetadata>
|
||||
|
||||
|
||||
2
dev-util/racer/Manifest
Normal file
2
dev-util/racer/Manifest
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
DIST racer-v1.1.0.tar.gz 118276 SHA256 f969e66d5119f544347e9f9424e83d739eef0c75811fa1a5c77e58df621e066d SHA512 880bbd028eac665a6c43ef9f494e1d23d726dd196ceae9bfa1d9896f6af86def1bbba7c3b4bed6079f0089a01b26c76a703206dc6f33a6e99c79b2344af85bef WHIRLPOOL 707adb064451ec7b4d3ae081675273dbd72cfd554a9b0e0e0518fa98848e76534b21a4185b84968a0b76f551278fef3ba96d77a49b70da0855e42fca097b8776
|
||||
EBUILD racer-1.1.0.ebuild 1769 SHA256 dfe190be28f0c9109b5ace8ccea7c31c0338e6eb29621411a096ed9a51d9d477 SHA512 2c682c8d8a62f8a42c3c5f79989b42d6d9bbebf2f8d6447dd4020198e998e1a5227325ffe05b2c07cdd95f9651ae267b147a8040dbee0f25336a0d9091977245 WHIRLPOOL 4e73f22e887849f3a2aed21179bb31eb82ad4eb4a4a343ba84374d79e0d83f1c8b342979d6ac8ec89a99e0416b48795d5e3f70caa79b40f535468ad7fdb57f11
|
||||
68
dev-util/racer/racer-1.1.0.ebuild
Normal file
68
dev-util/racer/racer-1.1.0.ebuild
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils elisp-common
|
||||
|
||||
DESCRIPTION="Rust Code Completion utility "
|
||||
HOMEPAGE="https://github.com/phildawes/racer"
|
||||
SRC_URI="https://github.com/phildawes/racer/archive/v${PV}.tar.gz -> ${PN}-v${PV}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="emacs vim"
|
||||
|
||||
COMMON_DEPEND="virtual/rust:*
|
||||
emacs? (
|
||||
app-emacs/company-mode[ropemacs]
|
||||
app-emacs/rust-mode
|
||||
virtual/emacs )
|
||||
vim? ( || ( app-editors/vim app-editors/gvim ) )"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
dev-util/cargo"
|
||||
RDEPEND="${COMMON_DEPEND}"
|
||||
|
||||
src_compile() {
|
||||
cargo build --release
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin target/release/racer
|
||||
if use emacs; then
|
||||
elisp-install ${PN} editors/racer.el
|
||||
elisp-site-file-install "${FILESDIR}/50${PN}-gentoo.el"
|
||||
fi
|
||||
if use vim; then
|
||||
insinto /usr/share/vim/vimfiles/plugin/
|
||||
sed -i 's|\(g:racer_cmd = \).*|\1"/usr/bin/racer"|' plugin/racer.vim
|
||||
doins plugin/racer.vim
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "You most probably should fetch rust sources for best expirience."
|
||||
elog "Racer will look for sources in path pointed by RUST_SRC_PATH"
|
||||
elog "environment variable. You can use"
|
||||
elog "% export RUST_SRC_PATH=<path to>/rust/src."
|
||||
elog
|
||||
if use emacs; then
|
||||
elog "You should use '(setq racer-rust-src-path \"<path-to>/rust/src/\")'"
|
||||
elog "for emacs plugin to be able to find rust sources for racer."
|
||||
elog
|
||||
elisp-site-regen
|
||||
fi
|
||||
if use vim; then
|
||||
elog "For vim you can use 'let \$RUST_SRC_PATH=\"<path-to>/rust/src/\"'"
|
||||
elog "if you don't want to use environment variable"
|
||||
elog "You also can use \"set hidden\" or else your buffer will be"
|
||||
elog "unloaded on every goto-definition"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue