Mail archive
alpine-aports

[alpine-aports] [PATCH] main/geany: fix vte emulation (with patch)

From: AmatCoder <amatcoder_at_gmail.com>
Date: Mon, 26 Jan 2015 15:07:10 +0000

---
 main/geany/APKBUILD                   | 15 ++++++++-------
 main/geany/set_default_terminal.patch | 11 +++++++++++
 2 files changed, 19 insertions(+), 7 deletions(-)
 create mode 100644 main/geany/set_default_terminal.patch
diff --git a/main/geany/APKBUILD b/main/geany/APKBUILD
index 12597d0..eb2ced9 100644
--- a/main/geany/APKBUILD
+++ b/main/geany/APKBUILD
_at_@ -1,7 +1,7 @@
 # Maintainer: Natanael Copa <ncopa_at_alpinelinux.org>
 pkgname=geany
 pkgver=1.24.1
-pkgrel=0
+pkgrel=1
 pkgdesc="A fast and lightweight IDE"
 url="http://www.geany.org"
 arch="all"
_at_@ -35,6 +35,7 @@ source="http://download.$pkgname.org/$pkgname-$pkgver.tar.gz
 	http://download.geany.org/contrib/tags/wordpress.php.tags
 	http://download.geany.org/contrib/tags/xfce46.c.tags
 	http://advamacs.com/pub/tcl.tcl.tags
+	set_default_terminal.patch
 "
 
 _builddir="$srcdir"/$pkgname-$pkgver
_at_@ -46,9 +47,6 @@ prepare() {
                 *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
                 esac
         done
-	# set default terminal to Terminal
-	sed -e 's/xterm/Terminal/g' \
-		-i src/keyfile.c
 }
 
 build() {
_at_@ -115,7 +113,8 @@ faa05eceb4d806e0c9f7476e4644a65b  v4l2.c.tags
 d046ab5c4e7ab2a6ba8961285edc4b2d  webkit-1.0.c.tags
 0e51399cc03d094d15b389a2f89dea51  wordpress.php.tags
 8f873570cc244b9185ae26e560887490  xfce46.c.tags
-4821553235a2b6752356229ba64631b6  tcl.tcl.tags"
+4821553235a2b6752356229ba64631b6  tcl.tcl.tags
+2f96c2a68685e02f56f5295f40f9fdd1  set_default_terminal.patch"
 sha256sums="8aa5dbf94b5252fce2ba504b47addb047a076fe44f11a08be45dc59e7ac318ba  geany-1.24.1.tar.gz
 83d4936b4ec913292390bdf62ad432bd01ff969ca1ec9f08f98c7d03925c8c25  dbus-glib-0.76.c.tags
 d4603ba815ede0ca93fbff8e195c8dcab1724c553081be6d5965572d99ee8912  drupal.php.tags
_at_@ -138,7 +137,8 @@ e5a4a8f20311e66d52fb0bc0a357fc4fe7720278f3b9d66e894d570c51cd1e00  std.vala.tags
 977c83a3c58bafc882af373cadbe96e049561d9c0518f1100036d3b9da1ba765  webkit-1.0.c.tags
 cd4bbd047c016ab4a30165bb08dde1e3a221f6027810c34280a16227ba9b39ab  wordpress.php.tags
 f00ce9be4ed50daa73484c28566cc321ccc11f671bcd1200c44a46edd58011ce  xfce46.c.tags
-0b86e730022702ff028d017e639361f609e4a93e7868f21dd7ff9420a17e3016  tcl.tcl.tags"
+0b86e730022702ff028d017e639361f609e4a93e7868f21dd7ff9420a17e3016  tcl.tcl.tags
+ad88f9c844e60979d60d8b311c195100bc0ae1fcac1b5edfccfd86850da211e4  set_default_terminal.patch"
 sha512sums="f3e76af2bcb8673a92426a1c7cb73aca38cdd5a9dc5d19227024a536dceed6d82391ab1522e5469a83f3d52124ee139644b0193a986702e713efdd9e9ce6ed4c  geany-1.24.1.tar.gz
 89551143b5557a632b325cceef9c0fa56ea0f9a28d1bd7bed4dba99af5005812702bbf0519f6ce97ce77c362fa454caac8d18c168ffb4af5f91ed6a4df2995e9  dbus-glib-0.76.c.tags
 9d06d993ddd3fbc6445a215e327e4d0bfb498bcf0431fff69b66b4fc2163717a313c5a876d0dcd922859f97fb8f5beb20f034dafb99b321be37282f226c76057  drupal.php.tags
_at_@ -161,4 +161,5 @@ afa5e2e0ffc0cb6aa1462e68fcd213b8c5447718f1ac5719677217a7d60ae2b9adc26662224872f1
 9fcea2e6c652ffc351461974924eaee0c5a9d58763e5a37a82e7c20957a1d02c044abaee1834b738f733fb309c1de9f31bd15083b60809527040898e853ca1a1  webkit-1.0.c.tags
 fe3f88e86a0f098a2f85df76ddd04978bb8f2bed87ea8cc7c3325ea904f5c625fb2b10757d0f8edaf9e5d483699f79f21648e444b10b7760ee72d0c244ce463f  wordpress.php.tags
 822ffacbd42c72c459ccd2b44ecfb580c5c65816beaec23638d74d61a8e832c1486b902c3950a892a49b2ce5232533490653ff8bab2194f1b412f16f64c66090  xfce46.c.tags
-71012d3f6d11a7b5171c1debce928fe31776af64a4f7c36fc27946fed220b9918c0894932d54c8a2fb55611ca5a458b7f8d3ae05ee269d83e2e704f0baa6b674  tcl.tcl.tags"
+71012d3f6d11a7b5171c1debce928fe31776af64a4f7c36fc27946fed220b9918c0894932d54c8a2fb55611ca5a458b7f8d3ae05ee269d83e2e704f0baa6b674  tcl.tcl.tags
+ab07a6d1ba4dd9d09dcaa8231476d6cd4e6ce6278bc07ed5f343e864ccf769bb136e3d220c9771081778c2c37ea3651cb67516c5385e12aa88376d6affd294e1  set_default_terminal.patch"
diff --git a/main/geany/set_default_terminal.patch b/main/geany/set_default_terminal.patch
new file mode 100644
index 0000000..baf9a3f
--- /dev/null
+++ b/main/geany/set_default_terminal.patch
_at_@ -0,0 +1,11 @@
+--- geany-1.24.1-origin/src/keyfile.c
++++ geany-1.24.1/src/keyfile.c
+_at_@ -71,7 +71,7 @@
+ #ifdef G_OS_WIN32
+ #define GEANY_DEFAULT_TOOLS_TERMINAL	"cmd.exe /Q /C %c"
+ #else
+-#define GEANY_DEFAULT_TOOLS_TERMINAL	"xterm -e \"/bin/sh %c\""
++#define GEANY_DEFAULT_TOOLS_TERMINAL	"Terminal -e \"/bin/sh %c\""
+ #endif
+ #define GEANY_DEFAULT_TOOLS_BROWSER		"firefox"
+ #define GEANY_DEFAULT_TOOLS_PRINTCMD	"lpr"
-- 
2.2.2
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Mon Jan 26 2015 - 15:07:10 GMT