parent
1ca8c8eb0c
commit
08ec1e3c6d
@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=(python2_7)
|
||||
|
||||
inherit distutils-r1 eutils
|
||||
|
||||
SRC_URI="ftp://ftp.calculate.ru/pub/calculate/calculate3/${PN}/${P}.tar.bz2
|
||||
http://mirror.yandex.ru/calculate/calculate3/${PN}/${P}.tar.bz2"
|
||||
|
||||
DESCRIPTION="The program of update Calculate Linux"
|
||||
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate2"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="3"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="~sys-apps/calculate-core-3.2.2_beta4
|
||||
~sys-apps/calculate-install-3.2.2_beta4
|
||||
dev-python/pexpect"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_preinst() {
|
||||
distutils-r1_pkg_preinst
|
||||
dosym /usr/sbin/cl-core /usr/sbin/cl-update
|
||||
dosym /usr/sbin/cl-core /usr/sbin/cl-update-profile
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack "${A}"
|
||||
cd "${S}"
|
||||
|
||||
# apply revision changes
|
||||
epatch "${FILESDIR}/calculate-update-3.2.2_beta4-r2.patch"
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
diff --git pym/update/update_info.py pym/update/update_info.py
|
||||
index 8ab9fca..a162631 100644
|
||||
--- pym/update/update_info.py
|
||||
+++ pym/update/update_info.py
|
||||
@@ -46,9 +46,13 @@ class UpdateInfo(object):
|
||||
"""
|
||||
return SystemIni().getVar(cls.section, cls.varname) == u'on'
|
||||
|
||||
- def set_update_ready(self, value):
|
||||
- SystemIni().setVar(self.section,
|
||||
- {self.varname:"on" if value else "off"})
|
||||
+ @classmethod
|
||||
+ def set_update_ready(cls, value):
|
||||
+ """
|
||||
+ Установить статус обновления
|
||||
+ """
|
||||
+ SystemIni().setVar(cls.section,
|
||||
+ {cls.varname:"on" if value else "off"})
|
||||
|
||||
def check_for_dispatch(self):
|
||||
"""
|
@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=4
|
||||
|
||||
DESCRIPTION="Calculate Utilities meta package"
|
||||
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate2"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="3"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="cl_consolegui cl_client cl_desktop cl_console"
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
=sys-apps/calculate-install-3.2.2_beta4
|
||||
=sys-apps/calculate-i18n-3.2.2_beta4
|
||||
=sys-apps/calculate-lib-3.2.2_beta4
|
||||
=sys-apps/calculate-core-3.2.2_beta4
|
||||
=sys-apps/calculate-update-3.2.2_beta4-r2
|
||||
cl_client? ( =sys-apps/calculate-client-3.2.2_beta4 )
|
||||
cl_desktop? ( =sys-apps/calculate-desktop-3.2.2_beta4 )
|
||||
cl_consolegui? ( =sys-apps/calculate-console-gui-3.2.2_beta4 )
|
||||
cl_console? ( =sys-apps/calculate-console-3.2.2_beta4 )
|
||||
"
|
Loading…
Reference in new issue