| # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| CROS_WORKON_COMMIT="fb1de2d2483008b5a7f3b16d3d470b3314c97e16" |
| CROS_WORKON_TREE="571772f9e0203ac5e75bb296ad99c71e3b27d1c2" |
| |
| EAPI=2 |
| CROS_WORKON_PROJECT="chromiumos/platform/crosutils" |
| CROS_WORKON_LOCALNAME="../scripts/" |
| |
| inherit python cros-workon |
| |
| DESCRIPTION="Chromium OS build utilities" |
| HOMEPAGE="http://www.chromium.org/chromium-os" |
| |
| LICENSE="BSD" |
| SLOT="0" |
| KEYWORDS="amd64" |
| IUSE="" |
| |
| src_configure() { |
| find . -type l -exec rm {} \; && |
| rm -fr WATCHLISTS inherit-review-settings-ok lib/shflags || |
| die "Couldn't clean directory." |
| } |
| |
| src_install() { |
| # Install package files |
| exeinto /usr/lib/crosutils |
| doexe * || die "Could not install shared files." |
| |
| insinto "$(python_get_sitedir)" |
| doins lib/*.py || die "Could not install python files." |
| rm -f lib/*.py |
| |
| # Install libraries |
| insinto /usr/lib/crosutils/lib |
| doins lib/* || die "Could not install library files" |
| } |