summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarthana Epa2015-06-15 12:16:16 -0400
committerNarthana Epa2015-06-15 12:16:16 -0400
commite335b7af74c8ca7df00f1c3fa771ee6f317518de (patch)
treeb2bfa0d24fe2ba5f037d40d3512bde881614158a
downloadaur-kile-autocompletenoblankline.tar.gz
Initial import
-rw-r--r--.AURINFO22
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD39
-rw-r--r--autocomplete_noblankline.patch38
-rw-r--r--kile.install13
5 files changed, 136 insertions, 0 deletions
diff --git a/.AURINFO b/.AURINFO
new file mode 100644
index 00000000000..5b92de9b9cf
--- /dev/null
+++ b/.AURINFO
@@ -0,0 +1,22 @@
+pkgbase = kile-autocompletenoblankline
+ pkgdesc = Patched to not insert a black line after autocompleting an environment
+ pkgver = 2.1.3
+ pkgrel = 1
+ url = http://kile.sourceforge.net/
+ install = kile.install
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = cmake
+ makedepends = automoc4
+ depends = kdebase-runtime
+ depends = texlive-core
+ depends = kdebase-katepart
+ optdepends = kdebase-konsole: embedded terminal
+ provides = kile-2.1.3
+ conflicts = kile
+ source = http://downloads.sourceforge.net/kile/kile-2.1.3.tar.bz2
+ source = autocomplete_noblankline.patch
+
+pkgname = kile-autocompletenoblankline
+
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a0998f1d254
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = kile-autocompletenoblankline
+ pkgdesc = Patched to not insert a black line after autocompleting an environment
+ pkgver = 2.1.3
+ pkgrel = 1
+ url = http://kile.sourceforge.net/
+ install = kile.install
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = cmake
+ makedepends = automoc4
+ depends = kdebase-runtime
+ depends = texlive-core
+ depends = kdebase-katepart
+ optdepends = kdebase-konsole: embedded terminal
+ provides = kile-2.1.3
+ conflicts = kile
+ source = http://downloads.sourceforge.net/kile/kile-2.1.3.tar.bz2
+ source = autocomplete_noblankline.patch
+ sha1sums = 1a80748d5f01f359b5e5c28140ec90691f0166c5
+ sha1sums = ffd0414d23b30eb68a0e60ad951e05002992322f
+
+pkgname = kile-autocompletenoblankline
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e6af44ba477
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Narthana Epa <narthana.epa+aur@gmail.com>
+# Contributor: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Damir Perisa <damir.perisa@bluewin.ch>
+
+_upname=kile
+pkgname=kile-autocompletenoblankline
+pkgver=2.1.3
+pkgrel=1
+pkgdesc="Patched to not insert a black line after autocompleting an environment"
+arch=("i686" "x86_64")
+license=('GPL2')
+url="http://kile.sourceforge.net/"
+depends=('kdebase-runtime' 'texlive-core' 'kdebase-katepart')
+makedepends=('cmake' 'automoc4')
+conflicts=('kile')
+provides=("kile-${pkgver}")
+optdepends=('kdebase-konsole: embedded terminal')
+install=${_upname}.install
+source=("http://downloads.sourceforge.net/$_upname/$_upname-$pkgver.tar.bz2"
+ "autocomplete_noblankline.patch")
+sha1sums=('1a80748d5f01f359b5e5c28140ec90691f0166c5'
+ 'ffd0414d23b30eb68a0e60ad951e05002992322f')
+
+build() {
+ cd "${srcdir}/${_upname}-${pkgver}"
+ patch -p1 < ../autocomplete_noblankline.patch
+ cd "${srcdir}"
+ mkdir build
+ cd build
+ cmake ../${_upname}-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}"/build
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/autocomplete_noblankline.patch b/autocomplete_noblankline.patch
new file mode 100644
index 00000000000..1c76da4122c
--- /dev/null
+++ b/autocomplete_noblankline.patch
@@ -0,0 +1,38 @@
+diff -rupN a/src/_codecompletion.cpp b/src/_codecompletion.cpp
+--- a/src/_codecompletion.cpp 2012-09-22 16:58:08.000000000 -0400
++++ b/src/_codecompletion.cpp 2014-01-05 16:00:08.502740413 -0500
+@@ -623,7 +623,7 @@ QString LaTeXCompletionModel::buildEnvir
+ }
+
+ if(KileConfig::completeCloseEnv() && start != "end") {
+- s += '\n' + whitespace + "\\end{" + envname + "}\n";
++ s += '\n' + whitespace + "\\end{" + envname + "}";
+ }
+
+ if(parameter.isEmpty()) {
+diff -rupN a/src/editorextension.cpp b/src/editorextension.cpp
+--- a/src/editorextension.cpp 2014-01-05 15:50:42.154710592 -0500
++++ b/src/editorextension.cpp 2014-01-05 16:13:51.622965421 -0500
+@@ -2853,7 +2853,7 @@ bool EditorExtension::eventInsertEnviron
+ }
+
+ int row = view->cursorPosition().line();
+- int col = view->cursorPositionVirtual().column();
++ int col = view->cursorPosition().column();
+ QString line = view->document()->line(row).left(col);
+
+ int pos = m_regexpEnter.indexIn(line);
+@@ -2868,11 +2868,11 @@ bool EditorExtension::eventInsertEnviron
+ QString envname, endenv;
+ if(m_regexpEnter.cap(2) == "\\[") {
+ envname = m_regexpEnter.cap(2);
+- endenv = "\\]\n";
++ endenv = "\\]";
+ }
+ else {
+ envname = m_regexpEnter.cap(4);
+- endenv = m_regexpEnter.cap(2).replace("\\begin","\\end") + '\n';
++ endenv = m_regexpEnter.cap(2).replace("\\begin","\\end");
+ }
+
+ if(shouldCompleteEnv(envname, view)) {
diff --git a/kile.install b/kile.install
new file mode 100644
index 00000000000..08ece2751a3
--- /dev/null
+++ b/kile.install
@@ -0,0 +1,13 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-mime-database usr/share/mime &> /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+} \ No newline at end of file