summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Alexander <wired@gentoo.org>2010-07-19 19:43:38 +0000
committerAlex Alexander <wired@gentoo.org>2010-07-19 19:43:38 +0000
commit6cf23d92b5dced1069505eabfae7b8b83b0df9f5 (patch)
tree87ebbbbb7f92e074b443cc091759f3c5fa33b6d4 /dev-util/universalindentgui
parentStable for PPC (bug #327485). (diff)
downloadhistorical-6cf23d92b5dced1069505eabfae7b8b83b0df9f5.tar.gz
historical-6cf23d92b5dced1069505eabfae7b8b83b0df9f5.tar.bz2
historical-6cf23d92b5dced1069505eabfae7b8b83b0df9f5.zip
fixed bug #325811 and bug #326123
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'dev-util/universalindentgui')
-rw-r--r--dev-util/universalindentgui/ChangeLog9
-rw-r--r--dev-util/universalindentgui/Manifest24
-rw-r--r--dev-util/universalindentgui/files/universalindentgui-1.1.0-astyle_pwd_fix.patch22
-rw-r--r--dev-util/universalindentgui/universalindentgui-1.1.0-r3.ebuild152
4 files changed, 205 insertions, 2 deletions
diff --git a/dev-util/universalindentgui/ChangeLog b/dev-util/universalindentgui/ChangeLog
index d7ef7f9ead83..3acd4219a9d7 100644
--- a/dev-util/universalindentgui/ChangeLog
+++ b/dev-util/universalindentgui/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-util/universalindentgui
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/universalindentgui/ChangeLog,v 1.9 2010/05/24 22:03:39 wired Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/universalindentgui/ChangeLog,v 1.10 2010/07/19 19:43:38 wired Exp $
+
+*universalindentgui-1.1.0-r3 (19 Jul 2010)
+
+ 19 Jul 2010; Alex Alexander <wired@gentoo.org>
+ +universalindentgui-1.1.0-r3.ebuild,
+ +files/universalindentgui-1.1.0-astyle_pwd_fix.patch:
+ fixed bug #325811 and bug #326123
24 May 2010; Alex Alexander <wired@gentoo.org>
universalindentgui-1.1.0-r2.ebuild,
diff --git a/dev-util/universalindentgui/Manifest b/dev-util/universalindentgui/Manifest
index a269a34bd3ac..56a4f300135e 100644
--- a/dev-util/universalindentgui/Manifest
+++ b/dev-util/universalindentgui/Manifest
@@ -1,5 +1,27 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX universalindentgui-1.1.0-astyle_pwd_fix.patch 1180 RMD160 b4b98a5a0fb71b16e4399644779bb3f2351dbf3a SHA1 7d88c6f426a344e9e90c0c95fe45c7ea47a31d80 SHA256 06ca1020d88443e4e65bb37360be6a16a1b3ea957511bc2827771e757b2cdeb9
AUX universalindentgui-1.1.0-gcc45.patch 423 RMD160 5d07e718e821de5f519e8d467a8a8a5c04a1f821 SHA1 a6205b67c4ac4963fb4f40c6c26b150933ceab47 SHA256 c0755faf167fd9b67ee9aa7713808aeaeddfcb20ae07872dc2a8838fa8ff1efd
DIST universalindentgui-1.1.0.tar.gz 934141 RMD160 0d6e84e5b9a8b4835c7cb1d6ec7c078cfe3fff36 SHA1 e1bb09e48bb2d927d2a9e59eb5b8eb7fa2a8193e SHA256 6b1d06e2a9d441ea330d45e0d8e9099acb3066a3ca259a5f0d604cd18a1025d6
EBUILD universalindentgui-1.1.0-r2.ebuild 3764 RMD160 66e5594a9f3385a7a6836b037641387deb70fc86 SHA1 71ad6afd8fe290a93e26f559ef5d7473e43cbb49 SHA256 52f2cef7801c77193c3a7e7046bdb0eaf35b90fcb33b1a49059613b8b03b269e
-MISC ChangeLog 1632 RMD160 5cd2ec937adaf68010ed2f87c69870de1beb67ec SHA1 a3e14eb6525ad2c53abd7714a737db726768378c SHA256 7fb8caee5ec79f004c2c90535f18b796272f9a7961503e26a7aa78a9aafcc8aa
+EBUILD universalindentgui-1.1.0-r3.ebuild 3929 RMD160 ae65c0b9ec8985db2f6a8c4e32443a5460745bf9 SHA1 6a6633a81fc0617c5034392821496473fef3a66a SHA256 57ea75df50ce6e6712fb59027c7b0c5344eb2db1b6c67aa29ca4e21631dc17bc
+MISC ChangeLog 1858 RMD160 8a727a03b7b22317539bda2f00a0c808a1c07994 SHA1 5c0b6535df29bb4dd0281dd6db7e12abc7d44827 SHA256 a889fd38b0609806e57024b9ac75e7b368806266b7a078528a2f674a5bd76af0
MISC metadata.xml 356 RMD160 4d279df51ce172f5947ac8332613d56331c86ebf SHA1 cd2cdf21d586eedf80ae3d56c5c6a1145da8709f SHA256 221135864588497dc8022a255c5b6d0d42aeb8ec28e3442ffcdbe015ee7ca0bb
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.12 (GNU/Linux)
+
+iQIcBAEBCAAGBQJMRKtcAAoJEDZF8K7rm0r6L5oP/juSwlMTtHGg+f0xW+634mnk
+Vzzb54uob7AT2OUvOe+mJ8DsdGc+qtZ8LzUGUHROWOAEf/0nGIXO/2BHPglyhmSp
+COSSBANr6WnXI9LkqzMjBHG+AgvYo3vz1/P6FF0lfh/CpyUnzHH6NfblGLMWnozo
+sI4YNmvjelvfXnAFL9C4vgTX/1J6GTFV1raMoKubjKT03CnjESb47AkAY+I5axoG
+uDd+TnCd9Vo4s2Dal3CfK6ksDfF5gKp4CSFFoYRCRFfV/2K2kOzKmixC12xi+YmQ
+CPlzoM4To7JkR1DYI+ilIWuIzzM8f0LqUHPXn4shA2CwBxlAk9mwARtQ7aJKmeJT
+Q6OU4iu8PxIMsq5wWhRg7Ib45kN0MQVr6ZDYiy3PaBtUJQz1uB4cduSFrBUQw1ON
+oUHLXn/7mggDDoxeNkh34JbQcdzwEEDgoPg6NgDrcOx1t6bktpZTyLq7cvqjq5Bs
+p6YkmVYWlJPCu6x4chrW7k+X5exY6BndqtIN+71AoTpevbjec7v6KTEcF4cvgTWg
+vlXNVGa2c0idR4z3bDVcHfVSq7AqyvkZxDFfKonWlbvsh5TxubHrlE3/htxxwBj+
+1Rp8T7YVkzqok7KkmA7UM3H/litAFIGYkbEBegTRvuQ/u8ptaDN6ON/mMdqkiU10
+zy6JMh5gBlQEPyiPxqgn
+=QY3W
+-----END PGP SIGNATURE-----
diff --git a/dev-util/universalindentgui/files/universalindentgui-1.1.0-astyle_pwd_fix.patch b/dev-util/universalindentgui/files/universalindentgui-1.1.0-astyle_pwd_fix.patch
new file mode 100644
index 000000000000..6dfa25196f74
--- /dev/null
+++ b/dev-util/universalindentgui/files/universalindentgui-1.1.0-astyle_pwd_fix.patch
@@ -0,0 +1,22 @@
+diff -Naur universalindentgui-1.1.0.orig/src/IndentHandler.cpp universalindentgui-1.1.0/src/IndentHandler.cpp
+--- universalindentgui-1.1.0.orig/src/IndentHandler.cpp 2009-07-16 13:52:38.000000000 +0200
++++ universalindentgui-1.1.0/src/IndentHandler.cpp 2010-06-26 20:30:41.000000000 +0200
+@@ -514,6 +514,10 @@
+ //indentProcess.setReadChannelMode(QProcess::MergedChannels);
+
+ // Set the directory for the indenter execution
++ QStringList env = indentProcess.environment();
++ env << "PWD=" + QFileInfo(tempDirctoryStr).absoluteFilePath();
++ indentProcess.setEnvironment( env );
++
+ indentProcess.setWorkingDirectory( QFileInfo(tempDirctoryStr).absoluteFilePath() );
+
+ qDebug() << __LINE__ << " " << __FUNCTION__ << ": Will call the indenter in the directory " << indentProcess.workingDirectory() << " using this commandline call: " << indenterCompleteCallString;
+@@ -558,6 +562,7 @@
+ QApplication::restoreOverrideCursor();
+ errorMessageDialog->showMessage(tr("Error calling Indenter"), processReturnString);
+ }
++
+
+ // If the indenter returned an error code != 0 show its output.
+ if ( indentProcess.exitCode() != 0 ) {
diff --git a/dev-util/universalindentgui/universalindentgui-1.1.0-r3.ebuild b/dev-util/universalindentgui/universalindentgui-1.1.0-r3.ebuild
new file mode 100644
index 000000000000..852a15807afc
--- /dev/null
+++ b/dev-util/universalindentgui/universalindentgui-1.1.0-r3.ebuild
@@ -0,0 +1,152 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/universalindentgui/universalindentgui-1.1.0-r3.ebuild,v 1.1 2010/07/19 19:43:38 wired Exp $
+
+EAPI="2"
+
+PYTHON_DEPEND="python? 2"
+
+inherit eutils qt4-r2 python
+
+DESCRIPTION="Cross platform compatible GUI for several code formatters, beautifiers and indenters."
+HOMEPAGE="http://universalindent.sourceforge.net/"
+SRC_URI="mirror://sourceforge/universalindent/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug html perl php python ruby xml"
+
+LANGS="de fr ja ru uk zh_TW"
+
+for L in $LANGS; do
+ IUSE="$IUSE linguas_$L"
+done
+
+DEPEND="x11-libs/qt-core:4
+ x11-libs/qt-gui:4
+ x11-libs/qt-script:4
+ x11-libs/qscintilla"
+RDEPEND="${DEPEND}
+ dev-util/indent
+ dev-util/astyle
+ dev-util/bcpp
+ html? ( app-text/htmltidy
+ perl? ( dev-lang/perl ) )
+ perl? ( dev-perl/perltidy )
+ php? ( dev-php/PEAR-PHP_Beautifier )
+ ruby? ( dev-lang/ruby )
+ xml? ( dev-util/xmlindent )
+"
+
+pkg_setup() {
+ use python && python_set_active_version 2
+}
+
+src_prepare() {
+ # .pro fixes
+ sed -i "s:lupdate-qt4:lupdate:" UniversalIndentGUI.pro ||
+ die ".pro fix failed"
+ sed -i "s:lrelease-qt4:lrelease:" UniversalIndentGUI.pro ||
+ die ".pro fix failed"
+ sed -i "s:ja_jp.qm:ja_JP.qm:" UniversalIndentGUI.pro ||
+ die ".pro lang fix failed"
+ if use debug; then
+ sed -i "s:release,:debug,:g" UniversalIndentGUI.pro ||
+ die ".pro debug fix failed"
+ fi
+
+ # patch .pro file according to our use flags
+ # basic support
+ UEXAMPLES="cpp sh"
+ UINDENTERS="shellindent.awk"
+ UIGUIFILES="shellindent gnuindent bcpp astyle"
+
+ if use html; then
+ UEXAMPLES="${UEXAMPLES} html"
+ UIGUIFILES="${UIGUIFILES} tidy"
+ if use perl; then
+ UINDENTERS="${UINDENTERS} hindent"
+ UIGUIFILES="${UIGUIFILES} hindent"
+ fi
+ fi
+
+ if use perl; then
+ UEXAMPLES="${UEXAMPLES} pl"
+ UIGUIFILES="${UIGUIFILES} perltidy"
+ fi
+
+ if use php; then
+ UEXAMPLES="${UEXAMPLES} php"
+ UINDENTERS="${UINDENTERS} phpStylist.php"
+ UIGUIFILES="${UIGUIFILES} php_Beautifier phpStylist"
+ fi
+
+ if use python; then
+ UEXAMPLES="${UEXAMPLES} py"
+ UINDENTERS="${UINDENTERS} pindent.py"
+ UIGUIFILES="${UIGUIFILES} pindent"
+ python_convert_shebangs -r 2 .
+ fi
+
+ if use ruby; then
+ UEXAMPLES="${UEXAMPLES} rb"
+ UINDENTERS="${UINDENTERS} rbeautify.rb ruby_formatter.rb"
+ UIGUIFILES="${UIGUIFILES} rbeautify rubyformatter"
+ fi
+
+ if use xml; then
+ UEXAMPLES="${UEXAMPLES} xml"
+ UIGUIFILES="${UIGUIFILES} xmlindent"
+ fi
+
+ IFILES=""
+ for I in ${UINDENTERS}; do
+ IFILES="${IFILES} indenters/${I}"
+ chmod +x indenters/${I}
+ done
+ for I in ${UIGUIFILES}; do
+ IFILES="${IFILES} indenters/uigui_${I}.ini"
+ done
+
+ # apply fixes in .pro file
+ sed -i "/^unix:indenters.files +=/d" UniversalIndentGUI.pro ||
+ die ".pro patching failed"
+ sed -i "s:indenters/uigui_\*\.ini:${IFILES}:" UniversalIndentGUI.pro ||
+ die ".pro patching failed"
+
+ for lang in ${LANGS}; do
+ if [[ ! "${LINGUAS}" =~ "${lang}" ]]; then
+ [[ ${lang} == "ja" ]] && lang="ja_JP"
+ sed -i "/_${lang}.ts/d" UniversalIndentGUI.pro || die "failed while disabling $lang"
+ sed -i "/_${lang}.qm/d" UniversalIndentGUI.pro || die "failed while disabling $lang"
+ fi
+ done
+
+ epatch "${FILESDIR}"/"${P}"-gcc45.patch
+ # bug #325811
+ epatch "${FILESDIR}"/"${P}"-astyle_pwd_fix.patch
+}
+
+src_configure() {
+ eqmake4 UniversalIndentGUI.pro || die "eqmake4 failed"
+}
+
+src_compile() {
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install || die "emake install failed"
+ dodoc *.txt || die "doc installation failed"
+ doman doc/"${PN}".1.gz || die "man page installation failed"
+ insinto /usr/share/doc/${PF}/examples
+ for I in ${UEXAMPLES}; do
+ doins indenters/example.${I}
+ done
+
+ doicon resources/universalIndentGUI.png
+
+ make_desktop_entry universalindentgui UniversalIndentGUI universalIndentGUI \
+ "Qt;Development" || die "menu installation failed"
+}