Package Details: universalindentgui-svn r1077-1

Git Clone URL: https://aur.archlinux.org/universalindentgui-svn.git (read-only)
Package Base: universalindentgui-svn
Description: A GUI for GNU Indent, Uncrustify, Artistic Styler, PHP Stylist, Ruby Beautify, HTML Tidy and many other
Upstream URL: http://universalindent.sourceforge.net
Licenses: GPL
Conflicts: uncrustify<0.66
Provides: universalindentgui
Submitter: Schnouki
Maintainer: fenugrec
Last Packager: fenugrec
Votes: 11
Popularity: 0.077544
First Submitted: 2008-12-16 15:36
Last Updated: 2018-03-11 23:17

Dependencies (10)

Required by (0)

Sources (7)

Latest Comments

fenugrec commented on 2018-03-11 23:18

@Kniyl: fixed ! sorry it took so long, I forgot about this for a while...

Kniyl commented on 2017-12-18 09:54

@fenugrec This is the following commit (https://github.com/uncrustify/uncrustify/pull/1393/commits/b5df8bba4f0fe90d021a6813fca5770e29913182) which is tagged uncrustify 0.66 and 0.66.1

fenugrec commented on 2017-12-14 16:03

@ Kniyl : yes that patch should be added. Can you find which version of uncrustify changed that option, so I can add the proper "requires" line.

Kniyl commented on 2017-12-14 15:17

I couldn't use this tools with uncrustify 0.66 that we have in community. Logs complained about align_number_left not being a valid option (related to https://github.com/uncrustify/uncrustify/pull/1393/files). I had to use this patch, seems to work fine then. Can you add it to the PKGBUILD?

--- a/indenters/uigui_uncrustify.ini

+++ b/indenters/uigui_uncrustify.ini

@@ -1733,10 +1733,10 @@

[Align Number Left]

Category=3

-Description="Whether to left-align numbers"

+Description="Whether to right-align numbers"

Enabled=false

EditorType=boolean

-TrueFalse=align_number_left=true|align_number_left=false

+TrueFalse=align_number_right=true|align_number_right=false

ValueDefault=0

[Align Func Params]

--- a/tools/uncrustify.cfg

+++ b/tools/uncrustify.cfg

@@ -32,7 +32,7 @@

align_keep_tabs=false

align_with_tabs=false

align_on_tabstop=false

-align_number_left=false

+align_number_right=false

align_func_params=false

align_same_func_call_params=false

align_var_def_colon=false

fenugrec commented on 2017-04-29 01:45

@6ng4n : thanks. For some reason I wasn't able to apply your patch (git-apply complains about some malformed lines due to single quotes !??), so I just re-entered it manually. For some reason the hash for qscintilla.patch isn't the same as for yours, but the result is fine.
I also fixed a typo in the list of dependencies ("indent" instead of "ident").

6ng4n commented on 2017-04-28 15:03

@fenugrec I prepared a patch which solves the compiling issue. You can use this patch on your PKGBUILD.

From 2e3104b2b477e39b87f3d1d54ec7206af8ea3585 Mon Sep 17 00:00:00 2001
From: Ongun Kanat <ongun.kanat@gmail.com>
Date: Fri, 28 Apr 2017 17:58:06 +0300
Subject: qtscintilla library name issue solved


diff --git a/PKGBUILD b/PKGBUILD
index 03f860f..8351a01 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,7 @@ arch=('i686' 'x86_64')
license=('GPL')
provides=('universalindentgui')
conflicts=('universalindentgui')
-depends=('qt4' 'qscintilla')
+depends=('qt4' 'qscintilla-qt4')
makedepends=('subversion')
optdepends=(
'astyle: a free, fast and small automatic formatter for C, C++, C# and Java',
@@ -28,24 +28,27 @@ source=("$_svnmod::svn://svn.code.sf.net/p/universalindent/code/trunk"
"universalindentgui.png"
"noupdatecheck.patch"
"fix_about_dialog.patch"
+ "qscintilla.patch"
)

sha256sums=('SKIP'
'e6ed8674345d76c1f3e5ab4d6f23b64bfa7ba77141436ff325d72a28cb672a06'
'cc01fcc94cc2067e499b15189a2ac56a901562218951bd77650cf8f81bcf440d'
'b5b4d6b5604fbaaa8578a97e3a59c709bb0e1861ffaae1add3ca4452c76b5686'
- '254e237064e8422b4d219fadfaa8486a5a69b3561b8aa81df8faf3c13272e7c5')
+ '254e237064e8422b4d219fadfaa8486a5a69b3561b8aa81df8faf3c13272e7c5'
+ '2774424b610413fee8b27e883c1a3ebcc18fce3001f775b17d10e5d33058ae6d')

prepare() {
cd ${srcdir}
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up)
fi
-
+
cd "$srcdir/$_svnmod"
#patch -Np1 -i ../../no-strip.patch src/UniversalIndentGUI.pro #disable QT stripping
patch -p1 -i ../noupdatecheck.patch
patch -p1 -i ../fix_about_dialog.patch
+ patch -p1 -i ../qscintilla.patch
}

pkgver() {
diff --git a/qscintilla.patch b/qscintilla.patch
new file mode 100644
index 0000000..fd71c32
--- /dev/null
+++ b/qscintilla.patch
@@ -0,0 +1,12 @@
+--- a/UniversalIndentGUI.pro
++++ b/UniversalIndentGUI.pro
+@@ -23,7 +23,7 @@
+ ICON = resources/UniversalIndentGUI.icns
+ }
+ else {
+- LIBS += -lqscintilla2
++ LIBS += -lqscintilla2_qt4
+ }
+
+ CONFIG(release, debug|release) {
+

fenugrec commented on 2017-04-17 22:59

@krupan : I won't be able to test this for a few days, but could you try this:
(I don't recommend your "ln -s" solution)

1- edit PKGBUILD to replace "qscintilla" with "qscintilla-qt4"
2- run "makepkg --nobuild"
3- edit the newly extracted src/UniversalIndentGUI.pro file to modify this line:
"LIBS += -lqscintilla2"
to
"LIBS += -lqscintilla2_qt4"

4- "makepkg -e" to resume building.

krupan commented on 2017-04-17 21:51

I'm getting this error when I try to build this package:

/usr/bin/ld: cannot find -lqscintilla2

I did this to work around it, but it doesn't feel like the correct solution:

cd /usr/lib
sudo ln -s libqscintilla2_qt4.so libqscintilla2.so