Chromium Code Reviews| 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 cros-workon autotools | 6 inherit cros-debug cros-workon autotools |
| 7 | 7 |
| 8 DESCRIPTION="Chromium OS network usage tracking daemon" | 8 DESCRIPTION="Chromium OS network usage tracking daemon" |
| 9 HOMEPAGE="http://src.chromium.org" | 9 HOMEPAGE="http://src.chromium.org" |
| 10 SRC_URI="" | 10 SRC_URI="" |
| 11 LICENSE="BSD" | 11 LICENSE="BSD" |
| 12 SLOT="0" | 12 SLOT="0" |
| 13 KEYWORDS="~amd64 ~arm ~x86" | 13 KEYWORDS="~amd64 ~arm ~x86" |
| 14 IUSE="test" | 14 IUSE="test" |
| 15 | 15 |
| 16 RDEPEND="chromeos-base/flimflam | 16 RDEPEND="chromeos-base/flimflam |
| 17 chromeos-base/libchrome | 17 chromeos-base/libchrome |
| 18 dev-cpp/gflags | 18 dev-cpp/gflags |
| 19 » dev-cpp/glog | 19 » >=dev-cpp/glog-0.3.1 |
| 20 dev-libs/dbus-c++ | 20 dev-libs/dbus-c++ |
| 21 dev-libs/glib | 21 dev-libs/glib |
| 22 net-misc/curl" | 22 net-misc/curl" |
| 23 | 23 |
| 24 DEPEND="${RDEPEND} | 24 DEPEND="${RDEPEND} |
| 25 test? ( dev-cpp/gtest )" | 25 test? ( dev-cpp/gtest )" |
| 26 | 26 |
| 27 src_prepare() { | 27 src_prepare() { |
| 28 » eautoreconf | 28 » eautoreconf || die "eautoreconf failed" |
| 29 } | |
| 30 | |
| 31 src_configure() { | |
| 32 » # set NDEBUG (or not) based on value of cros-debug USE flag | |
| 33 » cros-debug-add-NDEBUG | |
| 34 » econf || die "econf failed" | |
|
Daniel Kurtz
2010/12/14 04:14:21
It seems that most other ebuilds don't die on econ
Vince Laviano
2010/12/14 21:16:28
I suspect that die clauses are only needed to retu
| |
| 29 } | 35 } |
| 30 | 36 |
| 31 src_compile() { | 37 src_compile() { |
| 32 emake clean-generic || die "emake clean failed" | 38 emake clean-generic || die "emake clean failed" |
| 33 emake || die "emake failed" | 39 emake || die "emake failed" |
| 34 } | 40 } |
| 35 | 41 |
| 36 src_test() { | 42 src_test() { |
| 37 # build and run unit tests | 43 # build and run unit tests |
| 38 emake check || die "emake check failed" | 44 emake check || die "emake check failed" |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 58 install --owner=root --group=root --mode=0644 \ | 64 install --owner=root --group=root --mode=0644 \ |
| 59 "${S}"/cashew.conf "${D}"/etc/init | 65 "${S}"/cashew.conf "${D}"/etc/init |
| 60 | 66 |
| 61 # install D-Bus config file. | 67 # install D-Bus config file. |
| 62 dodir /etc/dbus-1/system.d | 68 dodir /etc/dbus-1/system.d |
| 63 install --owner=root --group=root --mode=0644 \ | 69 install --owner=root --group=root --mode=0644 \ |
| 64 "${S}"/org.chromium.Cashew.conf "${D}"/etc/dbus-1/system.d | 70 "${S}"/org.chromium.Cashew.conf "${D}"/etc/dbus-1/system.d |
| 65 | 71 |
| 66 # TODO(vlaviano): install introspection xml files somewhere? | 72 # TODO(vlaviano): install introspection xml files somewhere? |
| 67 } | 73 } |
| OLD | NEW |