OLD | NEW |
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 # Distributed under the terms of the GNU General Public License v2 | 2 # Distributed under the terms of the GNU General Public License v2 |
3 | 3 |
4 EAPI=2 | 4 EAPI=2 |
5 | 5 |
6 inherit flag-o-matic toolchain-funcs | 6 inherit flag-o-matic toolchain-funcs |
7 | 7 |
8 DESCRIPTION="Chrome OS Metrics Collection Utilities" | 8 DESCRIPTION="Chrome OS Metrics Collection Utilities" |
9 HOMEPAGE="http://src.chromium.org" | 9 HOMEPAGE="http://src.chromium.org" |
10 SRC_URI="" | 10 SRC_URI="" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 if ! use x86; then | 43 if ! use x86; then |
44 echo Skipping unit tests on non-x86 platform | 44 echo Skipping unit tests on non-x86 platform |
45 else | 45 else |
46 for test in ./*_test; do | 46 for test in ./*_test; do |
47 "${test}" ${GTEST_ARGS} || die "${test} failed" | 47 "${test}" ${GTEST_ARGS} || die "${test} failed" |
48 done | 48 done |
49 fi | 49 fi |
50 } | 50 } |
51 | 51 |
52 src_install() { | 52 src_install() { |
53 » dodir /usr/bin | 53 » dobin "${S}/metrics_client" |
54 » dodir /usr/include | 54 » dobin "${S}/metrics_daemon" |
55 » dodir /usr/lib | 55 » dobin "${S}/syslog_parser.sh" |
56 » dodir /usr/sbin | 56 » dolib.a "${S}/libmetrics.a" |
57 » emake DESTDIR="${D}" install || die "metrics install failed." | 57 » dolib.so "${S}/libmetrics.so" |
58 » chmod 0555 "${D}/usr/sbin/omaha_tracker.sh" | 58 » dosbin "${S}/omaha_tracker.sh" |
| 59 |
| 60 » insinto "/usr/include/metrics" |
| 61 » doins "${S}/metrics_library.h" |
| 62 » doins "${S}/metrics_library_mock.h" |
59 } | 63 } |
OLD | NEW |