summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Hüttel <dilfridge@gentoo.org>2012-06-18 22:22:32 +0000
committerAndreas Hüttel <dilfridge@gentoo.org>2012-06-18 22:22:32 +0000
commitf0a965ea46004269f4cb47a39e177dc38c8fb85c (patch)
tree3d62d4cdacc253cbb331c60078c96a4edcab95d1 /app-editors/kile
parentUSE=c++0x is gone from qt-webkit. (diff)
downloadhistorical-f0a965ea46004269f4cb47a39e177dc38c8fb85c.tar.gz
historical-f0a965ea46004269f4cb47a39e177dc38c8fb85c.tar.bz2
historical-f0a965ea46004269f4cb47a39e177dc38c8fb85c.zip
Add fix for kdebug 301808, incorrect working dir used
Package-Manager: portage-2.2.0_alpha110/cvs/Linux x86_64
Diffstat (limited to 'app-editors/kile')
-rw-r--r--app-editors/kile/ChangeLog8
-rw-r--r--app-editors/kile/Manifest28
-rw-r--r--app-editors/kile/files/kile-2.1.2-cwd.patch89
-rw-r--r--app-editors/kile/kile-2.1.2-r1.ebuild62
4 files changed, 176 insertions, 11 deletions
diff --git a/app-editors/kile/ChangeLog b/app-editors/kile/ChangeLog
index 854f1093d7c1..3ad37c95e657 100644
--- a/app-editors/kile/ChangeLog
+++ b/app-editors/kile/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-editors/kile
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/kile/ChangeLog,v 1.155 2012/06/17 04:59:57 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/kile/ChangeLog,v 1.156 2012/06/18 22:22:32 dilfridge Exp $
+
+*kile-2.1.2-r1 (18 Jun 2012)
+
+ 18 Jun 2012; Andreas K. Huettel <dilfridge@gentoo.org> +kile-2.1.2-r1.ebuild,
+ +files/kile-2.1.2-cwd.patch:
+ Add fix for kdebug 301808, incorrect working dir used
17 Jun 2012; Samuli Suominen <ssuominen@gentoo.org> kile-2.1.2.ebuild:
Use global USE flag "postscript" instead of local USE flag "ps" for
diff --git a/app-editors/kile/Manifest b/app-editors/kile/Manifest
index 9073f7339bc0..85d4090e4344 100644
--- a/app-editors/kile/Manifest
+++ b/app-editors/kile/Manifest
@@ -1,18 +1,26 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
+Hash: SHA512
+AUX kile-2.1.2-cwd.patch 3012 RMD160 35653723c5caff65309fec63dece37c8e73ebaa2 SHA1 64ef06cc9b99a81557c9c1ef21f83691816ea68f SHA256 08bfb58e4273835541c0c10351f0422cd67c8020988619114f2f0371db3b1762
DIST kile-2.1.2.tar.bz2 4858519 RMD160 9b03112386930ec061e335407e9536613d8fed59 SHA1 238a8fde4fca00e06b314c13671ff53e2ac4845c SHA256 82d1e405e0b2aa8125cdc2dbf5bbfbb20488515bde763bf7b7cde69e6575a55b
+EBUILD kile-2.1.2-r1.ebuild 1328 RMD160 8d8d668875301942a81e81902017c6160fce9457 SHA1 21206534c92a01de5a30a239b9cb69856c032125 SHA256 58f59731d58766e38dd123194c3a00c00009197c33d872e9e79151a9185ece78
EBUILD kile-2.1.2.ebuild 1281 RMD160 68278f2ba680667f233decc192adbc46f6129cb4 SHA1 c85083063ff3b0a317b4d5c8fb253d84af994636 SHA256 c7d2560f9eb01e62a1f46eb8d41c34bb2836453ef21f632cfb900cf29e700820
-MISC ChangeLog 19256 RMD160 ed7975652da8aebf2aaf0a99ea626e092685a320 SHA1 2e75187cb9df77cb2275b6b4b17436a55d6ad103 SHA256 f72a614c85140d9b0c3349d15c086cfd3ad9cb2cc0bb9ae69c552c7687770394
+MISC ChangeLog 19454 RMD160 2b3be7f10f7f2e54af07db05ecd10c6e24dcbdfa SHA1 2204219f2c31482d750bf680078db6a63d489317 SHA256 745c2e1d68e5cb99115622ca367770894af0b303620690156bf1ca4e3751b503
MISC metadata.xml 173 RMD160 f12937e054fcfee22c2b57358333e5e3d8b9b6ef SHA1 4e4554259a22e221b7a087eca7d1672f1d8a0278 SHA256 3d9b1ae8e4fef3214e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J8BijY1Ssqe0I6o/dWh03vJz54N+fpq0Zs0fysI
+HR7AlcIfVjsUFFWOYTSWGUbILci7WRowLUVah4bsK4oVm3EoMnZN5aeqozDE2cgw
+iZXhRvK+Vf+XqJ5qGTaGFfT50zwfnJzycw7i/WFRmAMZeZAS2f5scQlv782UHXlk
+NgL8AvSQ6WeOTA2XIERS
+=6coF
-----END PGP SIGNATURE-----
diff --git a/app-editors/kile/files/kile-2.1.2-cwd.patch b/app-editors/kile/files/kile-2.1.2-cwd.patch
new file mode 100644
index 000000000000..cf09b56c7c5c
--- /dev/null
+++ b/app-editors/kile/files/kile-2.1.2-cwd.patch
@@ -0,0 +1,89 @@
+diff -ruN kile-2.1.2.orig/src/main.cpp kile-2.1.2/src/main.cpp
+--- kile-2.1.2.orig/src/main.cpp 2012-04-22 18:54:51.000000000 +0200
++++ kile-2.1.2/src/main.cpp 2012-06-19 00:10:46.096292174 +0200
+@@ -43,19 +43,19 @@
+ * Complete a relative paths to absolute ones.
+ * Also accepts URLs of the form file:relativepath.
+ */
+-QString completePath(const QString &path)
++QString completePath(const QString &path, const QString& currentPath)
+ {
+ QString fullpath(path);
+
+ KILE_DEBUG() << "==complete path is " << path;
+- if( QDir::isRelativePath(path) ) {
++ if(QDir::isRelativePath(path)) {
+ if(path.startsWith("file:")) {
+ KUrl url(path);
+- url.setFileName(completePath(url.toLocalFile()));
++ url.setFileName(completePath(url.toLocalFile(), currentPath));
+ fullpath = url.url();
+ }
+ else if(path.indexOf(QRegExp("^[a-z]+:")) == -1) {
+- fullpath = QDir::currentPath() + QDir::separator() + path;
++ fullpath = currentPath + QDir::separator() + path;
+ }
+ }
+
+@@ -138,6 +138,10 @@
+ KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
+ bool running = false;
+
++ // we save the current path here to avoid problems when it's (erroneously) changed later
++ // (for instance, when a new KonsoleWidget is created, see #301808)
++ const QString currentPath = QDir::currentPath();
++
+ // this has to go before the DBus connection
+ KApplication app;
+
+@@ -151,13 +155,13 @@
+ for(int i = 0; i < args->count(); ++i) {
+ //FIXME: check whether this can be used to open Urls
+ if(isProject(args->arg(i))) {
+- kile->openProject(completePath(args->arg(i)));
++ kile->openProject(completePath(args->arg(i), currentPath));
+ }
+ else if(args->arg(i) == "-"){
+ kile->openDocument(readDataFromStdin());
+ }
+ else {
+- kile->openDocument(completePath(args->arg(i)));
++ kile->openDocument(completePath(args->arg(i), currentPath));
+ }
+ }
+
+@@ -175,16 +179,16 @@
+
+ for ( int i = 0; i < args->count(); ++i ) {
+ QString path = args->arg(i);
+- path = completePath(path);
++ path = completePath(path, currentPath);
+
+- if ( isProject(args->arg(i)) ){
+- interface->call("openProject",path);
++ if (isProject(args->arg(i))) {
++ interface->call("openProject", path);
+ }
+- else if(args->arg(i) == "-"){
+- interface->call("openDocument",readDataFromStdin());
++ else if(args->arg(i) == "-") {
++ interface->call("openDocument", readDataFromStdin());
+ }
+ else {
+- interface->call("openDocument",path);
++ interface->call("openDocument", path);
+ }
+ }
+
+diff -ruN kile-2.1.2.orig/src/widgets/konsolewidget.cpp kile-2.1.2/src/widgets/konsolewidget.cpp
+--- kile-2.1.2.orig/src/widgets/konsolewidget.cpp 2012-04-22 18:54:51.000000000 +0200
++++ kile-2.1.2/src/widgets/konsolewidget.cpp 2012-06-19 00:12:18.451297729 +0200
+@@ -78,8 +78,6 @@
+ layout()->addWidget(m_part->widget());
+ setFocusProxy(m_part->widget());
+ connect(m_part, SIGNAL(destroyed()), this, SLOT(slotDestroyed()));
+-
+- m_term->showShellInDir(QString());
+ }
+
+
diff --git a/app-editors/kile/kile-2.1.2-r1.ebuild b/app-editors/kile/kile-2.1.2-r1.ebuild
new file mode 100644
index 000000000000..314215659c74
--- /dev/null
+++ b/app-editors/kile/kile-2.1.2-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-editors/kile/kile-2.1.2-r1.ebuild,v 1.1 2012/06/18 22:22:32 dilfridge Exp $
+
+EAPI=4
+
+if [[ ${PV} != *9999* ]]; then
+ KDE_DOC_DIRS="doc"
+ KDE_HANDBOOK="optional"
+ MY_P=${P/_beta/b}
+ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
+else
+ EGIT_REPO_URI="http://anongit.kde.org/kile"
+ GIT_ECLASS="git"
+fi
+
+inherit kde4-base ${GIT_ECLASS}
+
+DESCRIPTION="A Latex Editor and TeX shell for KDE"
+HOMEPAGE="http://kile.sourceforge.net/"
+
+LICENSE="FDL-1.2 GPL-2"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+SLOT="4"
+IUSE="debug +pdf +png"
+
+DEPEND="
+ x11-misc/shared-mime-info
+"
+RDEPEND="${DEPEND}
+ $(add_kdebase_dep kdebase-data)
+ || (
+ $(add_kdebase_dep okular 'pdf?,postscript')
+ app-text/acroread
+ )
+ virtual/latex-base
+ virtual/tex-base
+ pdf? (
+ app-text/dvipdfmx
+ app-text/ghostscript-gpl
+ )
+ png? (
+ app-text/dvipng
+ media-gfx/imagemagick[png]
+ )
+"
+
+S=${WORKDIR}/${MY_P}
+
+DOCS=( kile-remote-control.txt )
+
+PATCHES=( "${FILESDIR}/${P}-cwd.patch" )
+
+src_prepare() {
+ kde4-base_src_prepare
+
+ # I know upstream wants to help us but it doesn't work..
+ sed -e '/INSTALL( FILES AUTHORS/s/^/#DISABLED /' \
+ -i CMakeLists.txt || die
+
+ [[ ${PV} != *9999* ]] && { use handbook || rm -fr doc ; }
+}