summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Alexander <wired@gentoo.org>2009-07-18 19:09:57 +0000
committerAlex Alexander <wired@gentoo.org>2009-07-18 19:09:57 +0000
commit4f6763fa086d7e638426f7b168e86fde5f8a905d (patch)
treefd6a86eec6c41a2a8d5edf3f60ee8fd3a334292a /dev-util
parentUpdated with patch for gcc 4.4 include and string changes (bug #276740). (diff)
downloadhistorical-4f6763fa086d7e638426f7b168e86fde5f8a905d.tar.gz
historical-4f6763fa086d7e638426f7b168e86fde5f8a905d.tar.bz2
historical-4f6763fa086d7e638426f7b168e86fde5f8a905d.zip
new ebuild for UniversalIndentGUI. Bug #215565
Package-Manager: portage-2.2_rc33/cvs/Linux x86_64
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/universalindentgui/ChangeLog11
-rw-r--r--dev-util/universalindentgui/Manifest4
-rw-r--r--dev-util/universalindentgui/metadata.xml15
-rw-r--r--dev-util/universalindentgui/universalindentgui-1.1.0.ebuild137
4 files changed, 167 insertions, 0 deletions
diff --git a/dev-util/universalindentgui/ChangeLog b/dev-util/universalindentgui/ChangeLog
new file mode 100644
index 000000000000..7b27475bdcf1
--- /dev/null
+++ b/dev-util/universalindentgui/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-util/universalindentgui
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/universalindentgui/ChangeLog,v 1.1 2009/07/18 19:09:57 wired Exp $
+
+*universalindentgui-1.1.0 (18 Jul 2009)
+
+ 18 Jul 2009; Alex Alexander <wired@gentoo.org>
+ +universalindentgui-1.1.0.ebuild, +metadata.xml:
+ ebuild for UniversalIndentGUI. Bug #215565. Thanks to Jiri Tyr, harry.tx
+ and Emil Wojak.
+
diff --git a/dev-util/universalindentgui/Manifest b/dev-util/universalindentgui/Manifest
new file mode 100644
index 000000000000..f8fe852997aa
--- /dev/null
+++ b/dev-util/universalindentgui/Manifest
@@ -0,0 +1,4 @@
+DIST universalindentgui-1.1.0.tar.gz 934141 RMD160 0d6e84e5b9a8b4835c7cb1d6ec7c078cfe3fff36 SHA1 e1bb09e48bb2d927d2a9e59eb5b8eb7fa2a8193e SHA256 6b1d06e2a9d441ea330d45e0d8e9099acb3066a3ca259a5f0d604cd18a1025d6
+EBUILD universalindentgui-1.1.0.ebuild 3523 RMD160 66e27434e2374102453d362bbd40a3069f533d93 SHA1 55f7fc5d1777d9a0d471c3db01f2026fe78fe0d7 SHA256 856a6b32b814ae27b17c454ccea5de83240f1d11de4117f94b1237a5448375ef
+MISC ChangeLog 461 RMD160 9eb96bcfea643b8b5e3ccd307c5afb80da9d145d SHA1 f954668eadd937eb58c318016ca173fb607b4b9c SHA256 393d87551a92426163b9805ad76c9cd955335bee4a72a095c91ae18e4fcce456
+MISC metadata.xml 356 RMD160 4d279df51ce172f5947ac8332613d56331c86ebf SHA1 cd2cdf21d586eedf80ae3d56c5c6a1145da8709f SHA256 221135864588497dc8022a255c5b6d0d42aeb8ec28e3442ffcdbe015ee7ca0bb
diff --git a/dev-util/universalindentgui/metadata.xml b/dev-util/universalindentgui/metadata.xml
new file mode 100644
index 000000000000..d4f6fbf46a34
--- /dev/null
+++ b/dev-util/universalindentgui/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>qt</herd>
+<maintainer>
+<email>wired@gentoo.org</email>
+<name>Alex Alexander</name>
+</maintainer>
+<use>
+ <flag name='html'>Add support for HTML files</flag>
+</use>
+<longdescription lang="en">
+</longdescription>
+</pkgmetadata>
+
diff --git a/dev-util/universalindentgui/universalindentgui-1.1.0.ebuild b/dev-util/universalindentgui/universalindentgui-1.1.0.ebuild
new file mode 100644
index 000000000000..a2dc6cb0dcce
--- /dev/null
+++ b/dev-util/universalindentgui/universalindentgui-1.1.0.ebuild
@@ -0,0 +1,137 @@
+# Copyright 1999-2009 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.ebuild,v 1.1 2009/07/18 19:09:57 wired Exp $
+
+EAPI="2"
+
+inherit qt4
+
+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 dev-lang/perl )
+ perl? ( dev-perl/perltidy )
+ php? ( dev-php/PEAR-PHP_Beautifier )
+ python? ( dev-lang/python )
+ ruby? ( dev-lang/ruby )
+ xml? ( dev-util/xmlindent )
+"
+
+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"
+ 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
+
+}
+
+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/${P}/examples
+ for I in ${UEXAMPLES}; do
+ doins indenters/example.${I}
+ done
+}