diff options
author | Ben de Groot <yngwin@gentoo.org> | 2010-01-12 15:58:47 +0000 |
---|---|---|
committer | Ben de Groot <yngwin@gentoo.org> | 2010-01-12 15:58:47 +0000 |
commit | 0396fc57ba01908de8afdb9d1237527e42df4cbe (patch) | |
tree | 59d1eba58c25b93707ec57e8b176e30b0b0de409 /dev-util/eric/files | |
parent | Version bump, added tests, at least for ruby18. (diff) | |
download | gentoo-2-0396fc57ba01908de8afdb9d1237527e42df4cbe.tar.gz gentoo-2-0396fc57ba01908de8afdb9d1237527e42df4cbe.tar.bz2 gentoo-2-0396fc57ba01908de8afdb9d1237527e42df4cbe.zip |
Version bump. Ebuild updates wrt new python.eclass functionality. Porting
improvements from qting-edge overlay. From the 4.4 version eric is
supposed to work with python-3. Italian and Chinese translations added.
Drop hppa/ppc64/sparc keywords because of unkeyworded dependencies.
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/eric/files')
-rw-r--r-- | dev-util/eric/files/eric-4.4-no-interactive.patch | 14 | ||||
-rw-r--r-- | dev-util/eric/files/eric-4.4-no-pykde.patch | 146 |
2 files changed, 160 insertions, 0 deletions
diff --git a/dev-util/eric/files/eric-4.4-no-interactive.patch b/dev-util/eric/files/eric-4.4-no-interactive.patch new file mode 100644 index 000000000000..4c682bfb777e --- /dev/null +++ b/dev-util/eric/files/eric-4.4-no-interactive.patch @@ -0,0 +1,14 @@ +Index: eric4-4.4-snapshot-20091129/install.py +=================================================================== +--- eric4-4.4-snapshot-20091129.orig/install.py ++++ eric4-4.4-snapshot-20091129/install.py +@@ -761,9 +761,6 @@ def main(argv): + (v[0], v[1], v[2]) + print " with foreign characters. Please see 'README-PyXML.txt' for" + print " details." +- res = raw_input(" Shall pyXML be patched now (y/n)? ") +- if res in ["Y", "y"]: +- patchPyXML() + except ImportError: + pass + diff --git a/dev-util/eric/files/eric-4.4-no-pykde.patch b/dev-util/eric/files/eric-4.4-no-pykde.patch new file mode 100644 index 000000000000..26bbf8925d5c --- /dev/null +++ b/dev-util/eric/files/eric-4.4-no-pykde.patch @@ -0,0 +1,146 @@ +Index: eric4-4.4-snapshot-20091129/eric/KdeQt/__init__.py +=================================================================== +--- eric4-4.4-snapshot-20091129.orig/eric/KdeQt/__init__.py ++++ eric4-4.4-snapshot-20091129/eric/KdeQt/__init__.py +@@ -20,19 +20,6 @@ import sys + import Preferences + + if Preferences.getUI("UseKDEDialogs") and not sys.e4nokde: +- try: +- import PyKDE4 +- from PyQt4.QtCore import QString +- +- def __kdeIsKDE(): +- """ +- Public function to signal the availability of KDE4. +- +- @return availability flag (always True) +- """ +- return True +- +- except (ImportError, RuntimeError): + sys.e4nokde = True + + def __kdeKdeVersionString(): +@@ -56,96 +43,29 @@ def __kdeKdeVersionString(): + return QString("unknown") + + def __kdePyKdeVersionString(): +- """ +- Public function to return the PyKDE4 version as a string. +- +- @return PyKDE4 version as a string (QString) +- """ +- try: +- try: +- from PyKDE4.kdecore import pykde_versionMajor, pykde_versionMinor, \ +- pykde_versionRelease +- return QString("%d.%d.%d" % \ +- (pykde_versionMajor(), pykde_versionMinor(), +- pykde_versionRelease())) +- except (ImportError, AttributeError): +- from PyKDE4 import pykdeconfig +- try: +- return QString(pykdeconfig.Configuration().pykde_version_str) +- except AttributeError: +- return QString("unknown") +- except ImportError: +- return QString("unknown") ++ return QString("PyKDE support is disabled") + + from PyQt4.QtCore import QString + + def __qtIsKDE(): +- """ +- Private function to signal the availability of KDE. +- +- @return availability flag (always False) +- """ + return False + + def __qtKdeVersionString(): +- """ +- Private function to return the KDE version as a string. +- +- @return KDE version as a string (QString) (always empty) +- """ + return QString("") + + def __qtPyKdeVersionString(): +- """ +- Private function to return the PyKDE version as a string. +- +- @return PyKDE version as a string (QString) (always empty) +- """ + return QString("") + + ################################################################################ + + def isKDEAvailable(): +- """ +- Public function to signal the availability of KDE. +- +- @return availability flag (always False) +- """ +- try: +- import PyKDE4 +- return True +- except ImportError: +- return False ++ return False + + def isKDE(): +- """ +- Public function to signal, if KDE usage is enabled. +- +- @return KDE support flag (always False) +- """ +- if Preferences.getUI("UseKDEDialogs") and not sys.e4nokde: +- return __kdeIsKDE() +- else: +- return __qtIsKDE() ++ return __qtIsKDE() + + def kdeVersionString(): +- """ +- Public function to return the KDE version as a string. +- +- @return KDE version as a string (QString) (always empty) +- """ +- if isKDEAvailable(): +- return __kdeKdeVersionString() +- else: +- return __qtKdeVersionString() ++ return __qtKdeVersionString() + + def pyKdeVersionString(): +- """ +- Public function to return the PyKDE version as a string. +- +- @return PyKDE version as a string (QString) (always empty) +- """ +- if isKDEAvailable(): +- return __kdePyKdeVersionString() +- else: +- return __qtPyKdeVersionString() ++ return __qtPyKdeVersionString() +Index: eric4-4.4-snapshot-20091129/eric/eric4.py +=================================================================== +--- eric4-4.4-snapshot-20091129.orig/eric/eric4.py ++++ eric4-4.4-snapshot-20091129/eric/eric4.py +@@ -32,13 +32,12 @@ restartArgsList = ["--nokde", "--nosplas + restartArgs = [arg for arg in sys.argv[1:] if arg.split("=", 1)[0] in restartArgsList] + + # disable the usage of KDE widgets, if requested +-sys.e4nokde = False ++sys.e4nokde = True + if "--nokde" in sys.argv: + del sys.argv[sys.argv.index("--nokde")] + sys.e4nokde = True + else: +- sys.e4nokde = os.getenv("e4nokde") is not None and os.getenv("e4nokde") == "1" +- ++ print "PyKDE support has been disabled. Enable 'kde' useflag to bring it back" + if "--debug" in sys.argv: + del sys.argv[sys.argv.index("--debug")] + logging.basicConfig(level = logging.DEBUG) |