gentoo-zh/dde-extra/dde-plugins-weather/dde-plugins-weather-0.0.1.20130624113817.ebuild

40 lines
1021 B
Bash

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit versionator python
MY_VER="$(get_version_component_range 1-3)+git$(get_version_component_range 4)~16f12ba5e4"
DESCRIPTION="Clock plugins for Deepin Desktop Environment"
HOMEPAGE="http://www.linuxdeepin.com"
SRC_URI="http://packages.linuxdeepin.com/deepin/pool/main/d/deepin-desktop-environment-plugins/deepin-desktop-environment-plugins_${MY_VER}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="dde-base/deepin-artwork
dde-base/deepin-desktop-environment"
RDEPEND="${DEPEND}"
S="${WORKDIR}/deepin-desktop-environment-plugins-${MY_VER}/weather"
pkg_setup() {
python_set_active_version 2.7
}
src_prepare() {
cd ${S}/../
chmod +x update_po generate_mo
./update_po weather
./generate_mo weather
}
src_install() {
insinto "/usr/share/dde/resources/desktop/plugin/weather"
doins -r city img locale citymoremenu.css info.ini weather.css weather.js
}