annotate dev-lang/dart/dart-1.18.0.ebuild @ 419:7cc9ca777677

ebuild for latest and greatest dart SDK
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 06 Sep 2016 09:05:12 +0200
parents 4f08c70120b9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
416
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 EAPI=6
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3 DESCRIPTION="Dart is an application programming language that’s easy to learn, easy to scale, and deployable everywhere."
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4 HOMEPAGE="https://www.dartlang.org"
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5 SRC_URI="https://storage.googleapis.com/dart-archive/channels/stable/release/${PV}/sdk/dartsdk-linux-x64-release.zip -> ${P}.zip"
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6 SLOT="0"
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7 KEYWORDS="amd64"
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8 S=${WORKDIR}/dart-sdk
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10 RDEPEND="sys-libs/glibc"
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12 src_compile() { :; }
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14 src_install() {
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15 local MY_DEST=/opt/dart-${PV}
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
17 insinto ${MY_DEST}
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
18 doins -r *
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
20 for x in ${D}${MY_DEST}/bin/*; do
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
21 if [ -f $x ]; then
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22 # fperms implicitly adds ${D} which we had to add for listing above
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
23 chmod +x $x
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
24 fi
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
25 done
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
26 chmod +x ${D}${MY_DEST}/lib/analysis_server/tool/spec/generate_files
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
27 chmod +x ${D}${MY_DEST}/lib/analyzer/tool/generate_files
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
28
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
29 dosym ${MY_DEST}/bin/dart /opt/bin/dart
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
30 dosym ${MY_DEST}/bin/pub /opt/bin/pub
4f08c70120b9 update dart version, use a version on the downloaded archive in /usr/portage/distfiles
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
31 }