Mercurial > hg > portage
annotate dev-lang/dart/dart-1.19.0.ebuild @ 421:c46da1a0f7c2
remove the -r1 ebuild, update the init script in place
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Mon, 19 Sep 2016 14:43:48 +0200 |
parents | 7cc9ca777677 |
children |
rev | line source |
---|---|
419
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
1 |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
2 EAPI=6 |
7cc9ca777677
ebuild for latest and greatest dart SDK
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." |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
4 HOMEPAGE="https://www.dartlang.org" |
7cc9ca777677
ebuild for latest and greatest dart SDK
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" |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
6 SLOT="0" |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
7 KEYWORDS="amd64" |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
8 S=${WORKDIR}/dart-sdk |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
9 |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
10 RDEPEND="sys-libs/glibc" |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
11 |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
12 src_compile() { :; } |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
13 |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
14 src_install() { |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
15 local MY_DEST=/opt/dart-${PV} |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
16 |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
17 insinto ${MY_DEST} |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
18 doins -r * |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
19 |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
20 for x in ${D}${MY_DEST}/bin/*; do |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
21 if [ -f $x ]; then |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
22 # fperms implicitly adds ${D} which we had to add for listing above |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
23 chmod +x $x |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
24 fi |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
25 done |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
26 chmod +x ${D}${MY_DEST}/lib/analysis_server/tool/spec/generate_files |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
27 chmod +x ${D}${MY_DEST}/lib/analyzer/tool/generate_files |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
28 |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
29 dosym ${MY_DEST}/bin/dart /opt/bin/dart |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
30 dosym ${MY_DEST}/bin/pub /opt/bin/pub |
7cc9ca777677
ebuild for latest and greatest dart SDK
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
31 } |