From 60bbcc3a66f075dac609d784b5ee595b65d6ee2b Mon Sep 17 00:00:00 2001 From: Mike khiretskiy Date: Thu, 22 May 2014 15:47:53 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20=D1=80=D0=B5?= =?UTF-8?q?=D0=B7=D1=83=D0=BB=D1=8C=D1=82=D0=B0=D1=82=D0=B0=20emerge=20?= =?UTF-8?q?=D0=B2=20calculate-lib?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sys-apps/calculate-lib/Manifest | 2 + .../calculate-lib-3.2.0_alpha10-r3.ebuild | 37 +++++ .../calculate-lib-3.2.0_alpha10-r3.patch | 153 ++++++++++++++++++ sys-apps/calculate-utilities/Manifest | 1 + ...alculate-utilities-3.2.0_alpha10-r8.ebuild | 26 +++ 5 files changed, 219 insertions(+) create mode 100644 sys-apps/calculate-lib/calculate-lib-3.2.0_alpha10-r3.ebuild create mode 100644 sys-apps/calculate-lib/files/calculate-lib-3.2.0_alpha10-r3.patch create mode 100644 sys-apps/calculate-utilities/calculate-utilities-3.2.0_alpha10-r8.ebuild diff --git a/sys-apps/calculate-lib/Manifest b/sys-apps/calculate-lib/Manifest index f42baf4..007a70f 100644 --- a/sys-apps/calculate-lib/Manifest +++ b/sys-apps/calculate-lib/Manifest @@ -1,5 +1,6 @@ AUX calculate-lib-3.2.0_alpha10-r1.patch 4196 SHA256 43ed4f580cbfd46c99b4e02800314cfc21ed6b2daf9edb391bf3e183aabc7213 SHA512 273b84ad2f27ee5540a87fae523b23f59783a4090b256421997de9d7971b0846079c97d0d247bae3d0066ad73aa0396706c86cbbfa2d1928f9b3ef342c9b7e2b WHIRLPOOL 18341a057de9c3308b757b9338fa9be5d84c856861e4344e9bd3311eab8a453286b113ac3c31fdd5722a5c6524db0f5b608f956d0ab9864f2f91a7f9fa64a17f AUX calculate-lib-3.2.0_alpha10-r2.patch 4918 SHA256 7496e59a2aed034d48180b8c48f271192f87c0102b8dd4db2415c9cdcaf32f12 SHA512 5abc2a1541ee498ecc335fa3322c2b1961d310ef7d3545a5eef2dbcf19e1cf90909dad437714a5b54469225ab2780e43ce19b5637ce64276f40c95d344730330 WHIRLPOOL 08402c14210d02551cead7b598d98db19c0263f3595f9a89949399092b5e21e73794d1f3779a4ccb2f8b2fb4cfb01c7b886865cabdc700525270ca2b960ba77f +AUX calculate-lib-3.2.0_alpha10-r3.patch 6726 SHA256 ee2f77fc6c0f2e3c3d1fc7d69d1e00eee37e86cfa10bf4a58740c9fe319a1972 SHA512 9d878122e5b0784fc5e184247c3de48385631c3f6e8b0e8b2f3ad7876759d8a89c8c2a14c59546bba425448ca88438dfb199b7a06b7d1e9de9e70ef15feba98d WHIRLPOOL 640c3e533b5d13e05fe01cd732fec921130be6acd9c07a31d9789b147855b90357cee8d6f76e2d5b70d6c8112b0d5d9002bfe2e81bd46285a441bd73fb2c94dd AUX calculate-lib-3.2.0_alpha6-r1.patch 4151 SHA256 4070948bf227f5fb60dc89f1794d9dcf15a9fce48a5b9b5318d9223d71364da7 SHA512 4dbfa5a48c24556979a2a73b184eecc976b8738cc05bbffccfa2792a992e9d21ed1f37bbe21e4401eb2c92678f90b692e30b25119473908b3585a2fd226f74cd WHIRLPOOL bff16327876d77abc7b37006ff06d44f17aeb8de1043fc86c59b76833c97a5de52b73a966e3174cc5ff57d347c829d3f219767855458a5e46cb4b948da7be5d8 AUX calculate-lib-3.2.0_alpha7-r1.patch 1118 SHA256 35133f7a5eda8d6e53d64f01ba473b0c219a8f2b333d4cd0ab43a40648b8d987 SHA512 cdd362da23c490846ad923b407f5bc26204ee3023a0dd600768222f31aedef9cdf42bac1a8f1a7cf3264847cb61705d3fc9a19f10de14afa3f0abe4e38b31555 WHIRLPOOL 820b6e8f5233ba1ccdbaf8ef78650ca0ef07bd83b1ba08a6747103b34c4858a89a5066267d84054072eaa0e98bba86ff50da625042b1f4cf251714dbaa8d1b34 DIST calculate-lib-3.2.0_alpha10.tar.bz2 133003 SHA256 fcb00981d41ee116fd802daa54ca2f47dca26d3ae7f2bba0cd9a9f811f6d7d1f SHA512 786fbc24ae50491d6638ca8c28f101979d661f868d015ad4dce7af7d58588c3553882221ff15f01d1a0f1dbd4ccfe8c92dc55d6fcd2ec363ff9de693626eabf7 WHIRLPOOL 867c8716f6ab84fe2ae76f1f184ca9c1405a27806f1c1a1e809c208653b60eb9e0e6d74cacb44f6042b3857ee984d1ef484d22ca81fa4598316ff6aa1231dd1e @@ -9,6 +10,7 @@ DIST calculate-lib-3.2.0_alpha8.tar.bz2 131890 SHA256 2b5891281d7ff25456795dc448 DIST calculate-lib-3.2.0_alpha9.tar.bz2 133006 SHA256 4160e96ab9250d070271f86d0aeb0d657b987e91947018942b007d78127c7b14 SHA512 73db855a6008fa31c8384f7627bdd5427c18afbd15ec168352fbf120d95f32a325e31f90710d35ff3e92ba386f5dda0c00cddf284165cd50b794e95598418304 WHIRLPOOL 2f88ebbb5c06611e636955d851d9f6487447c20dadde889f3437d8df8fb78412e08c1c73ec6feab6dcf5687f9e077719b19888de87b94f92e756c20c9413ffa8 EBUILD calculate-lib-3.2.0_alpha10-r1.ebuild 856 SHA256 d01828d00a9347eb963167e016432f02c0da32d4ca6ae4a77408bd66ed39d77c SHA512 a7c2bbe24db6a014a1b2aca687fe845215dd3a040922a46d08dce433c5dcd5dddb420aa9f6f23b8766d87a78843974b3a11ef691a240022d1c5dcde4e6536a51 WHIRLPOOL 2b7156dfcdabc86875c24174b271d5be1877b00f7072b0fd042fa790f29324b83673f4ffda9476c3968d261858dfddffb54355d5d88b3838d32ccec4f84f1346 EBUILD calculate-lib-3.2.0_alpha10-r2.ebuild 856 SHA256 6468336a01a361a11a73b32ad7bb91d3785da2fa441f04349d37c92d62ca6d8a SHA512 99656bb9ea07bd7b9cf10b2a872c727da82c4a67fdcf84c91c09eb27a673d4efdf41efd608b9bdc74da69a1f1dd7ae981118511fdfb6419fc668f3d92d5a3608 WHIRLPOOL f24a9125cfad4259ae24c0b95dd4ff9770d5f79b2bd4ea111bec26bac4c81548ecd0066f46867e113221b022fd696412e1f2c2c1f87ca28c1959949b0fd41c2e +EBUILD calculate-lib-3.2.0_alpha10-r3.ebuild 856 SHA256 eaf4afc0a2f6558d71a3b9e6b48cd98cb7fb20a4e3e9c6cef3f79d9d086f36c9 SHA512 b0e36a401bcfa9e02eaa27e3d56664080cd4d57ec5a6cf17eadecba2da909a2bf1a52b15061fbd2d96234fea6dfa007eed3adba3989127644337043187926940 WHIRLPOOL fb438f31d713ecc60d4ef37d828813dffbcc1f68a533e42cfc5fa7d98bc9b3492eefea50209451d794664fa4419bb5ae793eb3e8fc44020d276853a88ea528a3 EBUILD calculate-lib-3.2.0_alpha10.ebuild 714 SHA256 34d7199436229c50f7f78909decb90e36aff881c761970a9a57a524f08757d8e SHA512 500db3d23718662b4e3023ce0306da00dbf09642722ac7c83d1cbda01121170b39bd322d502955985a65440358196ea1a6e4882dc866fc377e6082714e05ca6f WHIRLPOOL e2911a0ec8c1ae4e610925fcfa1182ca771311a6bf19cf625558fa650a7614bbd3b608cc3de9966c05c2b7d82904f8df34bbf01fc2e6eba8d1ff7c6ccdfc2685 EBUILD calculate-lib-3.2.0_alpha6-r1.ebuild 831 SHA256 6ef8bf48d4fc1b2210c0940aa8300eef928a381e86eb90fff1e7c0862dba182a SHA512 1582bbf375bc8c5f10aa65c18aa7ab886d84cafe991ae799483c10a5025a5b4bd12b58f5a1d172e425e542d595951c495d80417782b321b8c2efaca5d697c1e1 WHIRLPOOL 43fe9b18cf7669b6869dd6ae94f75ab40affdb10993cfc50437a6b6bed06bdf20bbb5a8c663c33a557e5a3d78f60ee5a272458b74dc988ced56945d7befa67d6 EBUILD calculate-lib-3.2.0_alpha6.ebuild 690 SHA256 c89c29f5de3f70146e98f15035366506933f03e8a5066b1ad55aeccbebdeae2c SHA512 a7277c2e5fa64a5e5840be7fc8d3df9a31f41926386c5fe6a9bed31eeed6321af5881c218d9ce7eeb12aee518edb682b438e10397dcb815cc63645100430e43e WHIRLPOOL 8f19e4d46381e26fec81e20fa35599f4658b3891d6372c921a8b1354ad3b1821ea9c78f71caebf54610e0b5aacfb6e6ded018e155e1979322406a0ac1e823d09 diff --git a/sys-apps/calculate-lib/calculate-lib-3.2.0_alpha10-r3.ebuild b/sys-apps/calculate-lib/calculate-lib-3.2.0_alpha10-r3.ebuild new file mode 100644 index 0000000..a4a5125 --- /dev/null +++ b/sys-apps/calculate-lib/calculate-lib-3.2.0_alpha10-r3.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="3" +SUPPORT_PYTHON_ABIS="1" +PYTHON_DEPEND="2:2.7" +RESTRICT_PYTHON_ABIS="2.4 2.5 2.6 3.*" + +inherit distutils eutils + +SRC_URI="ftp://ftp.calculate.ru/pub/calculate/calculate3/${PN}/${P}.tar.bz2" + +DESCRIPTION="The library for Calculate 3" +HOMEPAGE="http://www.calculate-linux.org/main/en/calculate2" +LICENSE="Apache-2.0" +SLOT="3" +KEYWORDS="amd64 x86" +IUSE="minimal" +DEPEND="!minimal? ( dev-python/py-smbpasswd ) + >=dev-python/pyxml-0.8 + sys-apps/iproute2 + sys-apps/pciutils + dev-python/progressbar + sys-fs/lvm2 + sys-fs/mdadm + dev-python/pyinotify + sys-apps/file[python]" +RDEPEND="${DEPEND}" + +src_unpack() { + unpack "${A}" + cd "${S}" + + # apply revision changes + epatch "${FILESDIR}/calculate-lib-3.2.0_alpha10-r3.patch" +} diff --git a/sys-apps/calculate-lib/files/calculate-lib-3.2.0_alpha10-r3.patch b/sys-apps/calculate-lib/files/calculate-lib-3.2.0_alpha10-r3.patch new file mode 100644 index 0000000..286a352 --- /dev/null +++ b/sys-apps/calculate-lib/files/calculate-lib-3.2.0_alpha10-r3.patch @@ -0,0 +1,153 @@ +diff --git calculate/lib/cl_template.py calculate/lib/cl_template.py +index 7363a50..2a91c1a 100644 +--- calculate/lib/cl_template.py ++++ calculate/lib/cl_template.py +@@ -4764,7 +4764,7 @@ gettext -d cl_template "$*" + self.postmergePkgs.append(pkg) + except: + self.printWARNING( +- _("Failed to reconfigure %s package")%pkg) ++ _("Failed to reconfigure package %s")%pkg) + else: + mergePkgs = mergePkgs + postmergePkgs + +@@ -4959,9 +4959,8 @@ gettext -d cl_template "$*" + try: + os.chmod(applyDir, mode) + except: +- self.setError( +- _("Failed to change mode for directory: ") +\ +- applyDir) ++ self.setError(_("Failed to change the mode for " ++ "the directory: ") +applyDir) + else: + self.setError(_("Wrong value 'chmod' in the template") + ": " +\ + templateDirFile) +diff --git calculate/lib/datavars.py calculate/lib/datavars.py +index eb7f38d..052a5e5 100644 +--- calculate/lib/datavars.py ++++ calculate/lib/datavars.py +@@ -394,13 +394,13 @@ class Variable: + if "list" in self.type: + if not type(value) in (list,tuple): + raise VariableError( +- _("Value for variable '{varname}' may be {vartype} only").format( ++ _("The value for variable '{varname}' may be {vartype} only").format( + varname=self.label or self.name, + vartype="list")) + error = _("Values for variable '{varname}' may be {vartype} only") + else: + value = repeat(value,1) +- error = _("Value for variable '{varname}' may be {vartype} only") ++ error = _("The value for variable '{varname}' may be {vartype} only") + if "string" in self.type: + value, valuecopy = tee(value,2) + for v in (x for x in valuecopy if not type(x) in (str,unicode)): +@@ -425,7 +425,7 @@ class Variable: + error = _("Values for variable '{varname}' may " + "be {vartype}") + else: +- error = _("Value for variable '{varname}' may be " ++ error = _("The value for variable '{varname}' may be " + "{vartype}") + self.raiseWrongChoice(name, tipChoice, val, error) + if "choice" in self.type and not "choiceedit" in self.type: +@@ -589,7 +589,7 @@ class TableVariable(Variable): + if not type(value) in (list,tuple) or \ + any(i for i in value if not type(i) in (tuple,list)): + raise VariableError( +- _("Value for {varname} may be '{vartype}' only").format( ++ _("The value for {varname} may be '{vartype}' only").format( + varname=self.label or self.name, + vartype="table")) + # check len all entries +diff --git calculate/lib/utils/colortext/info.py calculate/lib/utils/colortext/info.py +index 218c72f..64d94d4 100644 +--- calculate/lib/utils/colortext/info.py ++++ calculate/lib/utils/colortext/info.py +@@ -30,13 +30,20 @@ class Terminal(object): + WRONG = -1 + + def __init__(self): +- curses.setupterm(environ.get('TERM', 'linux')) ++ try: ++ curses.setupterm(environ.get('TERM', 'linux')) ++ self.curses = curses ++ except curses.error: ++ self.curses = None + self.__echo = True + self.__cursor = True + + @property + def colors(self): +- return curses.tigetnum('colors') ++ if self.curses: ++ return self.curses.tigetnum('colors') ++ else: ++ return 16 + + @property + def width(self): +@@ -78,7 +85,8 @@ class Terminal(object): + + @cursor.setter + def cursor(self, flag): +- param = "cnorm" if flag else "civis" +- sys.stdout.write(curses.tigetstr(param)) +- sys.stdout.flush() +- self.__cursor = flag ++ if self.curses: ++ param = "cnorm" if flag else "civis" ++ sys.stdout.write(self.curses.tigetstr(param)) ++ sys.stdout.flush() ++ self.__cursor = flag +diff --git calculate/lib/utils/colortext/printing.py calculate/lib/utils/colortext/printing.py +index c8ef675..0e5753f 100644 +--- calculate/lib/utils/colortext/printing.py ++++ calculate/lib/utils/colortext/printing.py +@@ -82,7 +82,8 @@ class Print(object): + return self + + def __call__(self, s, *args, **kwargs): +- s = s.format(*args, **kwargs) ++ if args or kwargs: ++ s = s.format(*args, **kwargs) + self.buffer.append(self.output.outputText(s)) + self.buffer.append(self.output.endText()) + try: +diff --git calculate/lib/utils/common.py calculate/lib/utils/common.py +index 9f13c66..75dcdce 100644 +--- calculate/lib/utils/common.py ++++ calculate/lib/utils/common.py +@@ -178,8 +178,9 @@ def getDistfilesVideo(prefix="/"): + return list(set( + map(lambda x:'fglrx' if "amd" in x or "ati" in x else "nvidia", + filter(lambda x:"ati" in x or "amd" in x or +- x.startswith('NVIDIA-Linux'), +- listDirectory(distFiles))))) ++ x.startswith('nvidia-linux'), ++ map(lambda x:x.lower(), ++ listDirectory(distFiles)))))) + + def getAvailableVideo(prefix="/"): + """Get available video drivers (installed and maybe installed)""" +diff --git calculate/lib/variables/env.py calculate/lib/variables/env.py +index f35e3f7..8788dc4 100644 +--- calculate/lib/variables/env.py ++++ calculate/lib/variables/env.py +@@ -366,7 +366,7 @@ class VariableClTemplatesLocate(Variable): + + descriptionMap = {'overlay': _('Overlay templates'), + 'local': _('Local templates'), +- 'distro': _('Distributive templates'), ++ 'distro': _('Distribution templates'), + 'remote': _('Remote templates'), + 'clt': _('clt templates')} + +@@ -427,5 +427,5 @@ class VariableClMakeProfile(Variable): + val = self.get_work_link( + *[path.join(self.systemRoot, x) for x in files]) + if not val: +- raise VariableError(_("Failed to detect system profile")) ++ raise VariableError(_("Failed to detect the system profile")) + return val diff --git a/sys-apps/calculate-utilities/Manifest b/sys-apps/calculate-utilities/Manifest index e7def25..1635d62 100644 --- a/sys-apps/calculate-utilities/Manifest +++ b/sys-apps/calculate-utilities/Manifest @@ -5,6 +5,7 @@ EBUILD calculate-utilities-3.2.0_alpha10-r4.ebuild 842 SHA256 784b3b5e67ff361509 EBUILD calculate-utilities-3.2.0_alpha10-r5.ebuild 842 SHA256 79eaad27abbdba01d709874e59edf0a8b153ba06e945e813de7b3073cf0b12bc SHA512 7c475e6c05d86157401ba8483d8e49d40e92a04bbc3ab990445b333cd2e7a0f28d5f1139945ac14e132a3b4f0a76fa082925626e98c418068f2d3a215a019515 WHIRLPOOL 77b259048055470959db204916838b5ce960f13b4799ffdf38cdf6fab9c6849a16194003dd4f1f49ac60dd7f7713ff0f86de775a5c7a1471a649360fc255a986 EBUILD calculate-utilities-3.2.0_alpha10-r6.ebuild 842 SHA256 3233e72c903e6e9747fe1967a9b387b464a6d4645448cc3ed7e190f2350ff82d SHA512 e95eb049de46a1b12523c4ea977919a3fc72e03244056dee47b03fff282e4599a50d8b9c25cc31bcb2868d808db8e80f84cbcd592975006c907f53118e63ac95 WHIRLPOOL 53464637baf98392f25edd25f327f3d4135c905793791fc665c048503245365e42607d393e5a24abdc757b337f3c948596ee7f2d50b5ec85f860bb46eba7b509 EBUILD calculate-utilities-3.2.0_alpha10-r7.ebuild 842 SHA256 011cce07914878c88bede706d3eb1ba822b88a7fae1f31acf27e12ac68ffa2f3 SHA512 a4961ccafbdaf4d2ce1402fb44a21c1a9fedda24d2cdd9b38e661c43b4b516f08026050a6fd89e2b61ef4c2e9bbb8c17ed05c6ab3c45255b52a9a48d02252d18 WHIRLPOOL 02b2b91136c4474898e6e12043347249c4c9f09f0b49af07923b97b051f171f742f1d91b419287ce298ece7463f6bf345cd21dc89add7e1f2b7e371437ebe048 +EBUILD calculate-utilities-3.2.0_alpha10-r8.ebuild 842 SHA256 f5e4849c01fda779353abbdf56abae8927181be0687325f129bbf140075a3eff SHA512 2df0eb4bb982608524e54a6c0d7205a6152562c81c282edba58dcab9f41b9f8b8beb400c3ad6f139cff2366886104b6f12adcea7623e22622d2333296cb4e306 WHIRLPOOL bd2d31ad3f9482d0848141b11a5f655030425d6b1592aabb88418b3cd2fda270bb1381d23d9c4eb8b66eb0ec11df49f386b371f61c998e158ad5975c743fd9a3 EBUILD calculate-utilities-3.2.0_alpha10.ebuild 821 SHA256 84c2e5778fcc8d03c0e518ba8959b51da31d6214323a37ebce50be1a88ac1fb0 SHA512 df256adf9ad7aa728d9404171857686e4ced31a08bcd9a8c08c5da87e366da47bd7b656b189d321b0bbc490245a3bd64eac0dce69248748e2da2902ef44a3d54 WHIRLPOOL 853ab051ebb8619b013f224ee12d6d8fd225a6534a1abb92321fb40212d40269d2d713e504a4dfa3a2d8866dbfe480320ba24eb340b416a3a7b92afe938ad6ee EBUILD calculate-utilities-3.2.0_alpha6-r1.ebuild 827 SHA256 943e1949dec30c2f0ffd5a7cd065c8101ee6e999acc09d2ebd256f67b44b13bb SHA512 a9fede957dd87532feac22f631935b2ee6933541e8b589abe892ec45960a09063b9b0009298fccb346ab74dbfd6d5889d13f9fbfe4a42b56ec086e7140d12bad WHIRLPOOL c75eea5fc5d82a42615346dbc72664dfec75dbf87ab61b2ff3cb2bbf15ae78634befa815aed95f09ae00e268b618e966815a87e309128777b3455ac08e793e0c EBUILD calculate-utilities-3.2.0_alpha6.ebuild 812 SHA256 21f5c205fbb62622da8c262be1be8f3e5d7da7b64e3c93c7b33ca04693452490 SHA512 025b503372989e498fc6b50609d3ebbf13f3376b8e66c5123e3dcebeb0722ff586212c08cf085ee9bd02e215c7ac03d9876b00f73ff1f636a14a1f5d146c3869 WHIRLPOOL 259a86930a618b530515322cf73a4cb0ab8f16a44f8531ae478f30173e1f376272afbdd3b80c6e195e65cbdf10ec19544eae990e262726a51097f01650b5d1cb diff --git a/sys-apps/calculate-utilities/calculate-utilities-3.2.0_alpha10-r8.ebuild b/sys-apps/calculate-utilities/calculate-utilities-3.2.0_alpha10-r8.ebuild new file mode 100644 index 0000000..4d7e405 --- /dev/null +++ b/sys-apps/calculate-utilities/calculate-utilities-3.2.0_alpha10-r8.ebuild @@ -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.0_alpha10-r1 + =sys-apps/calculate-i18n-3.2.0_alpha10-r2 + =sys-apps/calculate-lib-3.2.0_alpha10-r3 + =sys-apps/calculate-core-3.2.0_alpha10-r4 + =sys-apps/calculate-update-3.2.0_alpha10-r5 + cl_client? ( =sys-apps/calculate-client-3.2.0_alpha10-r1 ) + cl_desktop? ( =sys-apps/calculate-desktop-3.2.0_alpha10 ) + cl_consolegui? ( =sys-apps/calculate-console-gui-3.2.0_alpha10 ) + cl_console? ( =sys-apps/calculate-console-3.2.0_alpha10-r1 ) +"