summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-util/universalindentgui
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-util/universalindentgui')
-rw-r--r--dev-util/universalindentgui/Manifest1
-rw-r--r--dev-util/universalindentgui/metadata.xml15
-rw-r--r--dev-util/universalindentgui/universalindentgui-1.2.0-r1.ebuild144
3 files changed, 160 insertions, 0 deletions
diff --git a/dev-util/universalindentgui/Manifest b/dev-util/universalindentgui/Manifest
new file mode 100644
index 000000000000..b33f19da87ac
--- /dev/null
+++ b/dev-util/universalindentgui/Manifest
@@ -0,0 +1 @@
+DIST universalindentgui-1.2.0.tar.gz 863793 SHA256 78a8d5538b951080c521118a0cefcae5bf1b32a3f0a022087087af3d70e98338 SHA512 73535e2a199f3b0396d2d33cdf6cdf051cc4f01da4907c03ba9fd9fa86033921ff7fc448078ca2d34ae88a421f6ac51ef4c0f98daaceff40d128f55d790e197e WHIRLPOOL b445a1259bb86dbfa282f1b89b60a964deda66eb921288c1298476a47018908a2f49344ced73de1563d3b5132b50df9485a778d8073e304d4f014952d23238b2
diff --git a/dev-util/universalindentgui/metadata.xml b/dev-util/universalindentgui/metadata.xml
new file mode 100644
index 000000000000..c019dcc590d4
--- /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>
+ <upstream>
+ <remote-id type="sourceforge">universalindent</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/universalindentgui/universalindentgui-1.2.0-r1.ebuild b/dev-util/universalindentgui/universalindentgui-1.2.0-r1.ebuild
new file mode 100644
index 000000000000..8b9cd9691638
--- /dev/null
+++ b/dev-util/universalindentgui/universalindentgui-1.2.0-r1.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+PYTHON_DEPEND="python? 2"
+LANGS="de fr ja ru uk zh_TW"
+
+inherit eutils python qt4-r2
+
+DESCRIPTION="Cross platform 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 examples html perl php python ruby xml"
+
+DEPEND="dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtscript:4
+ x11-libs/qscintilla
+"
+RDEPEND="${DEPEND}
+ dev-util/astyle
+ dev-util/bcpp
+ dev-util/indent
+ 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 )
+"
+
+DOCS="CHANGELOG.txt readme.html"
+
+pkg_setup() {
+ if use python; then
+ python_set_active_version 2
+ python_pkg_setup
+ fi
+}
+
+src_prepare() {
+ # correct translation binaries
+ sed -e "s/lupdate-qt4/lupdate/" \
+ -e "s/lrelease-qt4/lrelease/" \
+ -i UniversalIndentGUI.pro || die "sed pro translation binary"
+
+ if use debug; then
+ sed -i -e 's:release,:debug,:g' UniversalIndentGUI.pro || die
+ fi
+
+ # patch .pro file according to our use flags
+ # basic support
+ UEXAMPLES="cpp sh"
+ local UINDENTERS="shellindent.awk"
+ local 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
+
+ local IFILES= I=
+ 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 -e "/^unix:indenters.files +=/d" UniversalIndentGUI.pro ||
+ die ".pro patching failed"
+ sed -i -e "s:indenters/uigui_\*\.ini:${IFILES}:" UniversalIndentGUI.pro ||
+ die ".pro patching failed"
+
+ local lang
+ for lang in ${LANGS}; do
+ if ! use linguas_${lang}; then
+ sed -e "/_${lang}.ts/d" -e "/_${lang}.qm/d" \
+ -i UniversalIndentGUI.pro || die "failed while disabling ${lang}"
+ fi
+ done
+
+ qt4-r2_src_prepare
+}
+
+src_install() {
+ qt4-r2_src_install
+
+ doman doc/${PN}.1.gz
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ local I
+ for I in ${UEXAMPLES}; do
+ doins indenters/example.${I}
+ done
+ fi
+
+ newicon resources/universalIndentGUI_512x512.png ${PN}
+ make_desktop_entry ${PN} UniversalIndentGUI ${PN} "Qt;Development"
+}