Mercurial > hg > portage
changeset 414:a24c5e721955
add an ebuild for dart
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Tue, 26 Jul 2016 17:19:54 +0200 |
parents | 6615dccb9cbc |
children | 37b7661b5f5d |
files | dev-lang/dart/Manifest dev-lang/dart/dart-1.17.1.ebuild |
diffstat | 2 files changed, 32 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dev-lang/dart/Manifest Tue Jul 26 17:19:54 2016 +0200 @@ -0,0 +1,2 @@ +DIST dartsdk-linux-arm-release.zip 22944994 SHA256 db2bbb4288be2640aacab0568ad3e7230b6a32098a09a628b0d41cb15574dc0e SHA512 5eeb7f35d5eb88016803bb9eac4d8884c2c78525ef8b46820ff12d6857ecfe90d836c0d7e773329a3c3ad7b59b891374f00a283fe62a9cb5c97157a743064c61 WHIRLPOOL 47dfe07e471f04460f8856045730c5b28aa89d295d0c130c60fc6298c764a3145edf06aecf12630f7cc0eccfd081d9d5f7fcd47596b94476e10ebd0cde9849b4 +EBUILD dart-1.17.1.ebuild 819 SHA256 5535ddd02c2e7e0f9cfee07ef1c58df0cc05ca4383c32bedf50c07d04255402b SHA512 4185ad7b34a6aada41676e43682e25ddb672ef8adcb4c9c8376e41e13317f9ad086ec7ce6da7c738922bd3d725bea6190c27e19310451164009452a2563f1c60 WHIRLPOOL 2f4478d629ed8efcd114ba3650e061fc41ec21b6b0fa1bc4c69e8bdaba66b0b154ae6774127f569c903acdd6848894adca38706761b4be3de9e26bf29fab2554
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dev-lang/dart/dart-1.17.1.ebuild Tue Jul 26 17:19:54 2016 +0200 @@ -0,0 +1,30 @@ + +# TODO eapi 6? +EAPI=5 +DESCRIPTION="Dart is an application programming language that’s easy to learn, easy to scale, and deployable everywhere." +HOMEPAGE="https://www.dartlang.org" +SRC_URI="https://storage.googleapis.com/dart-archive/channels/stable/release/${PV}/sdk/dartsdk-linux-arm-release.zip" +SLOT="0" +KEYWORDS="amd64" +S=${WORKDIR}/dart-sdk + +# TODO run ldd on the tools and check the dependent libs +RDEPEND="sys-libs/glibc" + +src_compile() { :; } + +src_install() { + local MY_DEST=/opt/dart-${PV} + + insinto ${MY_DEST} + doins -r * + + for x in ${D}${MY_DEST}/bin/*; do + if [ -f $x ]; then + # fperms implicitly adds ${D} which we had to add for listing above + chmod +x $x + fi + done + chmod +x ${D}${MY_DEST}/lib/analysis_server/tool/spec/generate_files + chmod +x ${D}${MY_DEST}/lib/analyzer/tool/generate_files +}