summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO26
-rw-r--r--.gitignore5
-rw-r--r--LICENSE.txt56
-rw-r--r--PKGBUILD40
-rwxr-xr-xVisual_Paradigm_Fixed401
-rw-r--r--visual-paradigm-community.install14
-rw-r--r--visual-paradigm.desktop10
-rw-r--r--visual-paradigm.pngbin0 -> 3265 bytes
-rwxr-xr-xx-visual-paradigm.xml10
9 files changed, 562 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..1897badd5813
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = visual-paradigm-community
+ pkgdesc = UML design application
+ pkgver = 2015.11.30
+ pkgrel = 1
+ url = http://www.visual-paradigm.com/download/community.jsp
+ install = visual-paradigm-community.install
+ arch = x86_64
+ license = custom
+ depends = java-environment-common
+ source = visual-paradigm-community-2015.11.30.tar.gz::http://www.visual-paradigm.com/downloads/vpce/Visual_Paradigm_CE_Linux64_InstallFree.tar.gz
+ source = visual-paradigm-community.install
+ source = visual-paradigm.desktop
+ source = Visual_Paradigm_Fixed
+ source = visual-paradigm.png
+ source = LICENSE.txt
+ source = x-visual-paradigm.xml
+ sha256sums = 82cba7e374be4646feabe1be219712239414cdf35335d1bb350c5535401eab91
+ sha256sums = 61b4974588ec66e6d037aee0870cea97cf735586e5ea8e8e7b13091fe57c58ae
+ sha256sums = c2cf0bd2fdc2879b2ae4814e1be5b6cbd7e5aa4c1247f5d4bc8e677eb6a94952
+ sha256sums = c861d708eb446f94abbebb4028a2f15f7bc6840aa5df1ee81f7301aac0fd00a9
+ sha256sums = 41517b5c2326c0ba2fe3b6647f9594f094ccf03185cf73cb87d6cf19b355ff15
+ sha256sums = cd30460cb1c29f9f42723197dbe72b2537aaed09cc2d44dcb3e6868fb5dbf12b
+ sha256sums = a3b898bc9c43cf54baa1c643c619ee172a8103cd15031d574380ca463eb1ec1c
+
+pkgname = visual-paradigm-community
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..fe31c3e41528
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*.pkg.tar.xz
+*.sh
+*.tar.gz
+pkg/
+src/
diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644
index 000000000000..dbc95f054bd0
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,56 @@
+Visual Paradigm Evaluation License Agreement
+
+THE USE OF THE SOFTWARE LICENSED TO YOU IS SUBJECT TO THE TERMS AND CONDITIONS OF THIS SOFTWARE LICENSE AGREEMENT. BY INSTALLING, COPYING, OR OTHERWISE USING THE SOFTWARE, YOU ACKNOWLEDGE THAT YOU HAVE READ THIS AGREEMENT, UNDERSTAND IT, AND AGREE TO BE BOUNDED BY ALL OF THE TERMS AND CONDITIONS OF THIS SOFTWARE LICENSE AGREEMENT.
+
+1. Limited License Grant. Visual Paradigm grants to you ("the Licensee") a personal, non-exclusive, non-transferable, limited, revocable license to install and use Visual Paradigm Products ("the Software" or "the Product") without fee for evaluation of the Software for 30 days ("Trial Period") specified by the applicable software key for evaluation. Following the expiration of the Trial Period, the Licensee must cease all copying, use, distribution and access to the software. The Licensee must not re-distribute the Software in whole or in part, either separately or included with a product. The Software is not intended for commercial use or for use in commercial or development setting.
+
+2. Restrictions. The Software is confidential copyrighted information of Visual Paradigm, and Visual Paradigm and/or its licensors retain title to all copies. The Licensee shall not modify, adapt, decompile, disassemble, decrypt, extract, or otherwise reverse engineer the Software. Software may not be leased, rented, transferred, distributed, assigned, or sublicensed, in whole or in part. The Software contains valuable trade secrets. The Licensee promises not to extract any information or concepts from it as part of an effort to compete with the licensor, nor to assist anyone else in such an effort. The Licensee agrees not to remove, modify, delete or destroy any proprietary right notices of Visual Paradigm and its licensors, including copyright notices, in the Software.
+
+3. Disclaimer of Warranty. The software and documentation are provided "AS IS," WITH NO WARRANTIES WHATSOEVER. ALL EXPRESS OR IMPLIED REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. THE ENTIRE RISK AS TO SATISFACTORY QUALITY, PERFORMANCE, ACCURACY AND EFFORT IS WITH THE LICENSEE. THERE IS NO WARRANTY THE DOCUMENTATION, Visual Paradigm's EFFORTS OR THE LICENSED SOFTWARE WILL FULFILL ANY OF LICENSEE'S PARTICULAR PURPOSES OR NEEDS. IF THESE WARRANTIES ARE UNENFORCEABLE UNDER APPLICABLE LAW, THEN Visual Paradigm DISCLAIMS SUCH WARRANTIES TO THE MAXIMUM EXTENT PERMITTED BY SUCH APPLICABLE LAW.
+
+4. Limitation of Liability. Visual Paradigm AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY THE LICENSEE OR ANY THIRD PARTY AS A RESULT OF USING OR DISTRIBUTING SOFTWARE. IN NO EVENT WILL Visual Paradigm OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, EXEMPLARY, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE, EVEN IF Visual Paradigm HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+5. Termination. The Licensee may terminate this License at any time by destroying all copies of Software. Visual Paradigm will not be obligated to refund any License Fees, if any, paid by the Licensee for such termination. This License will terminate immediately without notice from Visual Paradigm if the Licensee fails to comply with any provision of this License. Upon such termination, the Licensee must destroy all copies of the Software. Visual Paradigm reserves all rights to terminate this License.
+
+SPECIFIC DISCLAIMER FOR HIGH-RISK ACTIVITIES. The SOFTWARE is not designed or intended for use in high-risk activities including, without restricting the generality of the foregoing, on-line control of aircraft, air traffic, aircraft navigation or aircraft communications; or in the design, construction, operation or maintenance of any nuclear facility. Visual Paradigm disclaims any express or implied warranty of fitness for such purposes or any other purposes.
+
+NOTICE. The Product is not intended for personal, family or household use; rather, it is intended exclusively for professional use. Its utilization requires skills that differ from those needed to use consumer software products such as word processing or spreadsheet software.
+
+GOVERNMENT RIGHTS: If the Software is licensed by or on behalf of a unit or agency of any government, the Licensee agrees that the Software is "commercial computer software", "commercial computer software documentation" or similar terms and that, in the absence of a written agreement to the contrary, the Licensee's rights with respect to the Software are limited by the terms of this Agreement.
+
+TRADEMARK DISCLAIMER
+
+Product names, logos, brands and other trademarks referred to within Visual Paradigm's products and services and within visual-paradigm.com are the property of their respective trademark holders. These trademark holders are not affiliated with Visual Paradigm International, our products, or our website. They do not sponsor or endorse our materials. Below is a partial listing of these trademarks and their owners. This list is subject to change without notice.
+
+ActionScript is a trademark of Adobe Systems Inc.
+Android is a trademark of Google Inc.
+ArchiMate is a trademark of The Open Group.
+BPMN, CORBA and UML are trademarks of the Object Management Group
+C#, C++, MS SQL Server, Microsoft Windows, Microsoft Visio, VB.NET and Visual Studio are trademarks of Microsoft Corporation.
+Cache is a trademark of InterSystems Corporation.
+Cloudscape, DB2, Informix and Rhapsody are trademarks of International Business Machines Corporation.
+Derby is a trademark of the Apache Software Foundation.
+Eclipse is a trademark of Eclipse Foundation, Inc.
+Erwin is a trademark of CA Inc.
+Firebird is a trademark of Firebird Foundation Inc.
+FrontBase is a trademark of FrontBase Inc.
+H2 is a trademark of H2, Inc.
+Hibernate is a trademark of Red Hat, Inc.
+HSQL is a trademark of the hsql Development Group.
+IntelliJ IDEA is a trademark of JetBrains.
+Ingres is a trademark of Actian Corporation.
+iPad and iPhone are trademarks of Apple Inc.
+Java, MySQL and Oracle are trademarks of Oracle Corporation.
+NetBeans is a trademark of Sun Microsystems, Inc.
+Objective-C is a trademark of Stepstone Corporation
+OpenEdge is a trademark of Progress Software Corporation.
+Perl is a trademark of The Perl Foundation.
+PHP is a trademark of The PHP Group.
+PostgreSQL is a trademark of the PostgreSQL Global Development Group.
+Python is a trademark of the Python Software Foundation
+SQLite is a trademark of Hipp, Wyrick & Company, Inc.
+Sybase ASE are Sybase SQL Anywhere are trademarks of Sybase Inc.
+
+Acknowledgements
+
+This Product includes software developed by the Apache Software Foundation (http://www.apache.org). Copyright ©1999 The Apache Software Foundation. All rights reserved.
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..9eb604e57b68
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Alex Talker <alextalker at openmailbox dot org>
+# Original maintainer: Simonas Racinas <racinas at icloud.com>
+pkgname=visual-paradigm-community
+pkgver=2015.11.30
+pkgrel=1
+pkgdesc="UML design application"
+url='http://www.visual-paradigm.com/download/community.jsp'
+arch=('x86_64')
+depends=('java-environment-common')
+install=visual-paradigm-community.install
+license=('custom')
+source=("${pkgname}-${pkgver//_/-}.tar.gz::http://www.visual-paradigm.com/downloads/vpce/Visual_Paradigm_CE_Linux64_InstallFree.tar.gz"
+ 'visual-paradigm-community.install'
+ 'visual-paradigm.desktop'
+ 'Visual_Paradigm_Fixed'
+ 'visual-paradigm.png'
+ 'LICENSE.txt'
+ 'x-visual-paradigm.xml')
+sha256sums=('82cba7e374be4646feabe1be219712239414cdf35335d1bb350c5535401eab91'
+ '61b4974588ec66e6d037aee0870cea97cf735586e5ea8e8e7b13091fe57c58ae'
+ 'c2cf0bd2fdc2879b2ae4814e1be5b6cbd7e5aa4c1247f5d4bc8e677eb6a94952'
+ 'c861d708eb446f94abbebb4028a2f15f7bc6840aa5df1ee81f7301aac0fd00a9'
+ '41517b5c2326c0ba2fe3b6647f9594f094ccf03185cf73cb87d6cf19b355ff15'
+ 'cd30460cb1c29f9f42723197dbe72b2537aaed09cc2d44dcb3e6868fb5dbf12b'
+ 'a3b898bc9c43cf54baa1c643c619ee172a8103cd15031d574380ca463eb1ec1c')
+package() {
+ mkdir -p "${pkgdir}/usr/share/applications"
+ mkdir -p "${pkgdir}/usr/share/licenses/visual-paradigm-community-edition/"
+ mkdir -p "${pkgdir}/usr/share/icons/hicolor/512x512/apps"
+ cp -r "${srcdir}/Visual_Paradigm_CE_12.2/Application/" "${pkgdir}/usr/share/${pkgname}/"
+ cp -r "${srcdir}/Visual_Paradigm_CE_12.2/.install4j/" "${pkgdir}/usr/share/${pkgname}/.install4j/"
+ cp "visual-paradigm.desktop" "${pkgdir}/usr/share/applications/visual-paradigm.desktop"
+ cp "Visual_Paradigm_Fixed" "${pkgdir}/usr/share/${pkgname}/bin/Visual_Paradigm_Fixed"
+ cp "visual-paradigm.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/visual-paradigm.png"
+ install -m 644 LICENSE.txt "${pkgdir}/usr/share/licenses/visual-paradigm-community-edition/LICENSE"
+ mkdir -p "${pkgdir}/usr/bin"
+ ln -sr "${pkgdir}/usr/share/${pkgname}/bin/Visual_Paradigm_Fixed" "${pkgdir}/usr/bin/${pkgname}"
+ mkdir -p ${pkgdir}/usr/share/mime/packages
+ cp "x-visual-paradigm.xml" "${pkgdir}/usr/share/mime/packages/x-visual-paradigm.xml"
+}
diff --git a/Visual_Paradigm_Fixed b/Visual_Paradigm_Fixed
new file mode 100755
index 000000000000..840870c2eeee
--- /dev/null
+++ b/Visual_Paradigm_Fixed
@@ -0,0 +1,401 @@
+#!/bin/sh
+
+# Uncomment the following line to override the JVM search sequence
+# INSTALL4J_JAVA_HOME_OVERRIDE=
+# Uncomment the following line to add additional VM parameters
+# INSTALL4J_ADD_VM_PARAMS=
+
+
+INSTALL4J_JAVA_PREFIX=""
+GREP_OPTIONS=""
+
+read_db_entry() {
+ if [ -n "$INSTALL4J_NO_DB" ]; then
+ return 1
+ fi
+ db_home=$HOME
+ db_file_suffix=
+ if [ ! -w "$db_home" ]; then
+ db_home=/tmp
+ db_file_suffix=_$USER
+ fi
+ db_file=$db_home/.install4j$db_file_suffix
+ if [ -d "$db_file" ] || ([ -f "$db_file" ] && [ ! -r "$db_file" ]) || ([ -f "$db_file" ] && [ ! -w "$db_file" ]); then
+ db_file=$db_home/.install4j_jre$db_file_suffix
+ fi
+ if [ ! -f "$db_file" ]; then
+ return 1
+ fi
+ if [ ! -x "$java_exc" ]; then
+ return 1
+ fi
+ found=1
+ exec 7< $db_file
+ while read r_type r_dir r_ver_major r_ver_minor r_ver_micro r_ver_patch r_ver_vendor<&7; do
+ if [ "$r_type" = "JRE_VERSION" ]; then
+ if [ "$r_dir" = "$test_dir" ]; then
+ ver_major=$r_ver_major
+ ver_minor=$r_ver_minor
+ ver_micro=$r_ver_micro
+ ver_patch=$r_ver_patch
+ fi
+ elif [ "$r_type" = "JRE_INFO" ]; then
+ if [ "$r_dir" = "$test_dir" ]; then
+ is_openjdk=$r_ver_major
+ found=0
+ break
+ fi
+ fi
+ done
+ exec 7<&-
+
+ return $found
+}
+
+create_db_entry() {
+ tested_jvm=true
+ echo testing JVM in $test_dir ...
+ version_output=`"$bin_dir/java" $1 -version 2>&1`
+ is_gcj=`expr "$version_output" : '.*gcj'`
+ is_openjdk=`expr "$version_output" : '.*OpenJDK'`
+ if [ "$is_gcj" = "0" ]; then
+ java_version=`expr "$version_output" : '.*"\(.*\)".*'`
+ ver_major=`expr "$java_version" : '\([0-9][0-9]*\)\..*'`
+ ver_minor=`expr "$java_version" : '[0-9][0-9]*\.\([0-9][0-9]*\)\..*'`
+ ver_micro=`expr "$java_version" : '[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\).*'`
+ ver_patch=`expr "$java_version" : '[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*[\._]\([0-9][0-9]*\).*'`
+ fi
+ if [ "$ver_patch" = "" ]; then
+ ver_patch=0
+ fi
+ if [ -n "$INSTALL4J_NO_DB" ]; then
+ return
+ fi
+ db_new_file=${db_file}_new
+ if [ -f "$db_file" ]; then
+ awk '$1 != "'"$test_dir"'" {print $0}' $db_file > $db_new_file
+ rm $db_file
+ mv $db_new_file $db_file
+ fi
+ dir_escaped=`echo "$test_dir" | sed -e 's/ /\\\\ /g'`
+ echo "JRE_VERSION $dir_escaped $ver_major $ver_minor $ver_micro $ver_patch" >> $db_file
+ echo "JRE_INFO $dir_escaped $is_openjdk" >> $db_file
+}
+
+test_jvm() {
+ tested_jvm=na
+ test_dir=$1
+ bin_dir=$test_dir/bin
+ java_exc=$bin_dir/java
+ if [ -z "$test_dir" ] || [ ! -d "$bin_dir" ] || [ ! -f "$java_exc" ] || [ ! -x "$java_exc" ]; then
+ return
+ fi
+
+ tested_jvm=false
+ read_db_entry || create_db_entry $2
+
+ if [ "$ver_major" = "" ]; then
+ return;
+ fi
+ if [ "$ver_major" -lt "1" ]; then
+ return;
+ elif [ "$ver_major" -eq "1" ]; then
+ if [ "$ver_minor" -lt "4" ]; then
+ return;
+ fi
+ fi
+
+ if [ "$ver_major" = "" ]; then
+ return;
+ fi
+ app_java_home=$test_dir
+}
+
+add_class_path() {
+ if [ -n "$1" ] && [ `expr "$1" : '.*\*'` -eq "0" ]; then
+ local_classpath="$local_classpath${local_classpath:+:}$1"
+ fi
+}
+
+compiz_workaround() {
+ if [ "$is_openjdk" != "0" ]; then
+ return;
+ fi
+ if [ "$ver_major" = "" ]; then
+ return;
+ fi
+ if [ "$ver_major" -gt "1" ]; then
+ return;
+ elif [ "$ver_major" -eq "1" ]; then
+ if [ "$ver_minor" -gt "6" ]; then
+ return;
+ elif [ "$ver_minor" -eq "6" ]; then
+ if [ "$ver_micro" -gt "0" ]; then
+ return;
+ elif [ "$ver_micro" -eq "0" ]; then
+ if [ "$ver_patch" -gt "09" ]; then
+ return;
+ fi
+ fi
+ fi
+ fi
+
+
+ osname=`uname -s`
+ if [ "$osname" = "Linux" ]; then
+ compiz=`ps -ef | grep -v grep | grep compiz`
+ if [ -n "$compiz" ]; then
+ export AWT_TOOLKIT=MToolkit
+ fi
+ fi
+
+}
+
+
+read_vmoptions() {
+ vmoptions_file=`eval echo "$1" 2>/dev/null`
+ if [ ! -r "$vmoptions_file" ]; then
+ vmoptions_file="$prg_dir/$vmoptions_file"
+ fi
+ if [ -r "$vmoptions_file" ] && [ -f "$vmoptions_file" ]; then
+ exec 8< "$vmoptions_file"
+ while read cur_option<&8; do
+ is_comment=`expr "W$cur_option" : 'W *#.*'`
+ if [ "$is_comment" = "0" ]; then
+ vmo_classpath=`expr "W$cur_option" : 'W *-classpath \(.*\)'`
+ vmo_classpath_a=`expr "W$cur_option" : 'W *-classpath/a \(.*\)'`
+ vmo_classpath_p=`expr "W$cur_option" : 'W *-classpath/p \(.*\)'`
+ vmo_include=`expr "W$cur_option" : 'W *-include-options \(.*\)'`
+ if [ ! "$vmo_classpath" = "" ]; then
+ local_classpath="$i4j_classpath:$vmo_classpath"
+ elif [ ! "$vmo_classpath_a" = "" ]; then
+ local_classpath="${local_classpath}:${vmo_classpath_a}"
+ elif [ ! "$vmo_classpath_p" = "" ]; then
+ local_classpath="${vmo_classpath_p}:${local_classpath}"
+ elif [ "$vmo_include" = "" ]; then
+ if [ "W$vmov_1" = "W" ]; then
+ vmov_1="$cur_option"
+ elif [ "W$vmov_2" = "W" ]; then
+ vmov_2="$cur_option"
+ elif [ "W$vmov_3" = "W" ]; then
+ vmov_3="$cur_option"
+ elif [ "W$vmov_4" = "W" ]; then
+ vmov_4="$cur_option"
+ elif [ "W$vmov_5" = "W" ]; then
+ vmov_5="$cur_option"
+ else
+ vmoptions_val="$vmoptions_val $cur_option"
+ fi
+ fi
+ fi
+ done
+ exec 8<&-
+ if [ ! "$vmo_include" = "" ]; then
+ read_vmoptions "$vmo_include"
+ fi
+ fi
+}
+
+
+unpack_file() {
+ if [ -f "$1" ]; then
+ jar_file=`echo "$1" | awk '{ print substr($0,1,length-5) }'`
+ bin/unpack200 -r "$1" "$jar_file"
+
+ if [ $? -ne 0 ]; then
+ echo "Error unpacking jar files. The architecture or bitness (32/64)"
+ echo "of the bundled JVM might not match your machine."
+ echo "You might also need administrative privileges for this operation."
+exit 1
+ fi
+ fi
+}
+
+run_unpack200() {
+ if [ -f "$1/lib/rt.jar.pack" ]; then
+ old_pwd200=`pwd`
+ cd "$1"
+ echo "Preparing JRE ..."
+ for pack_file in lib/*.jar.pack
+ do
+ unpack_file $pack_file
+ done
+ for pack_file in lib/ext/*.jar.pack
+ do
+ unpack_file $pack_file
+ done
+ cd "$old_pwd200"
+ fi
+}
+
+old_pwd=`pwd`
+
+progname=`basename "$0"`
+linkdir=`dirname "$0"`
+
+cd "$linkdir"
+prg="$progname"
+
+while [ -h "$prg" ] ; do
+ ls=`ls -ld "$prg"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '.*/.*' > /dev/null; then
+ prg="$link"
+ else
+ prg="`dirname $prg`/$link"
+ fi
+done
+
+prg_dir=`dirname "$prg"`
+progname=`basename "$prg"`
+cd "$prg_dir"
+prg_dir=`pwd`
+app_home=../
+cd "$app_home"
+app_home=`pwd`
+bundled_jre_home="$app_home/jre"
+
+if [ "__i4j_lang_restart" = "$1" ]; then
+ cd "$old_pwd"
+else
+cd "$prg_dir"/../bin/
+
+fi
+if [ ! "__i4j_lang_restart" = "$1" ]; then
+run_unpack200 "$bundled_jre_home"
+run_unpack200 "$bundled_jre_home/jre"
+fi
+if [ -z "$app_java_home" ]; then
+ test_jvm $INSTALL4J_JAVA_HOME_OVERRIDE
+fi
+
+if [ -z "$app_java_home" ]; then
+if [ -f "$app_home/.install4j/pref_jre.cfg" ]; then
+ read file_jvm_home < "$app_home/.install4j/pref_jre.cfg"
+ test_jvm "$file_jvm_home"
+ if [ -z "$app_java_home" ] && [ $tested_jvm = "false" ]; then
+ rm $db_file
+ test_jvm "$file_jvm_home"
+ fi
+fi
+fi
+
+if [ -z "$app_java_home" ]; then
+ test_jvm "$app_home/jre"
+ if [ -z "$app_java_home" ] && [ $tested_jvm = "false" ]; then
+ rm $db_file
+ test_jvm "$app_home/jre"
+ fi
+fi
+
+if [ -z "$app_java_home" ]; then
+ path_java=`which java 2> /dev/null`
+ path_java_home=`expr "$path_java" : '\(.*\)/bin/java$'`
+ test_jvm $path_java_home
+fi
+
+
+if [ -z "$app_java_home" ]; then
+ common_jvm_locations="/opt/i4j_jres/* /usr/local/i4j_jres/* $HOME/.i4j_jres/* /usr/bin/java* /usr/bin/jdk* /usr/bin/jre* /usr/bin/j2*re* /usr/bin/j2sdk* /usr/java* /usr/java*/jre /usr/jdk* /usr/jre* /usr/j2*re* /usr/j2sdk* /usr/java/j2*re* /usr/java/j2sdk* /opt/java* /usr/java/jdk* /usr/java/jre* /usr/lib/java/jre /usr/local/java* /usr/local/jdk* /usr/local/jre* /usr/local/j2*re* /usr/local/j2sdk* /usr/jdk/java* /usr/jdk/jdk* /usr/jdk/jre* /usr/jdk/j2*re* /usr/jdk/j2sdk* /usr/lib/jvm/* /usr/lib/java* /usr/lib/jdk* /usr/lib/jre* /usr/lib/j2*re* /usr/lib/j2sdk* /System/Library/Frameworks/JavaVM.framework/Versions/1.?/Home"
+ for current_location in $common_jvm_locations
+ do
+if [ -z "$app_java_home" ]; then
+ test_jvm $current_location
+fi
+
+ done
+fi
+
+if [ -z "$app_java_home" ]; then
+ test_jvm $JAVA_HOME
+fi
+
+if [ -z "$app_java_home" ]; then
+ test_jvm $JDK_HOME
+fi
+
+if [ -z "$app_java_home" ]; then
+ test_jvm $INSTALL4J_JAVA_HOME
+fi
+
+if [ -z "$app_java_home" ]; then
+if [ -f "$app_home/.install4j/inst_jre.cfg" ]; then
+ read file_jvm_home < "$app_home/.install4j/inst_jre.cfg"
+ test_jvm "$file_jvm_home"
+ if [ -z "$app_java_home" ] && [ $tested_jvm = "false" ]; then
+ rm $db_file
+ test_jvm "$file_jvm_home"
+ fi
+fi
+fi
+
+if [ -z "$app_java_home" ]; then
+ echo No suitable Java Virtual Machine could be found on your system.
+ echo The version of the JVM must be at least 1.4.
+ echo Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.
+ echo You can also try to delete the JVM cache file $db_file
+exit 83
+fi
+
+
+compiz_workaround
+i4j_classpath="$app_home/.install4j/i4jruntime.jar"
+local_classpath=""
+add_class_path "$i4j_classpath"
+add_class_path "$app_home/lib/vpplatform.jar"
+add_class_path "$app_home/lib/winpack.jar"
+add_class_path "$app_home/lib/jniwrap.jar"
+add_class_path "$app_home/lib/jh.jar"
+add_class_path "$app_home/lib/xalan.jar"
+add_class_path "$app_home/lib/lib01.jar"
+add_class_path "$app_home/lib/lib02.jar"
+add_class_path "$app_home/lib/lib03.jar"
+add_class_path "$app_home/lib/lib04.jar"
+add_class_path "$app_home/lib/lib05.jar"
+add_class_path "$app_home/lib/lib06.jar"
+add_class_path "$app_home/lib/lib07.jar"
+add_class_path "$app_home/lib/lib08.jar"
+add_class_path "$app_home/lib/lib09.jar"
+add_class_path "$app_home/lib/lib10.jar"
+add_class_path "$app_home/ormlib/orm.jar"
+add_class_path "$app_home/ormlib/orm-core.jar"
+add_class_path "$app_home/ormlib/antlr.jar"
+add_class_path "$app_home/ormlib/asm.jar"
+add_class_path "$app_home/ormlib/asm-attrs.jar"
+add_class_path "$app_home/ormlib/c3p0.jar"
+add_class_path "$app_home/ormlib/cglib.jar"
+add_class_path "$app_home/ormlib/commons-collections.jar"
+add_class_path "$app_home/ormlib/jdbc2_0-stdext.jar"
+add_class_path "$app_home/ormlib/jta.jar"
+
+vmoptions_val=""
+read_vmoptions "$prg_dir/$progname.vmoptions"
+INSTALL4J_ADD_VM_PARAMS="$INSTALL4J_ADD_VM_PARAMS $vmoptions_val"
+
+INSTALL4J_ADD_VM_PARAMS="$INSTALL4J_ADD_VM_PARAMS -Di4j.vpt=true"
+for param in $@; do
+ if [ `echo "W$param" | cut -c -3` = "W-J" ]; then
+ INSTALL4J_ADD_VM_PARAMS="$INSTALL4J_ADD_VM_PARAMS `echo "$param" | cut -c 3-`"
+ fi
+done
+
+if [ "W$vmov_1" = "W" ]; then
+ vmov_1="-Di4j.vmov=true"
+fi
+if [ "W$vmov_2" = "W" ]; then
+ vmov_2="-Di4j.vmov=true"
+fi
+if [ "W$vmov_3" = "W" ]; then
+ vmov_3="-Di4j.vmov=true"
+fi
+if [ "W$vmov_4" = "W" ]; then
+ vmov_4="-Di4j.vmov=true"
+fi
+if [ "W$vmov_5" = "W" ]; then
+ vmov_5="-Di4j.vmov=true"
+fi
+
+$INSTALL4J_JAVA_PREFIX "/usr/lib/jvm/default-runtime/bin/java" -Dswing.aatext=TRUE -Dawt.useSystemAAFontSettings=on -Dinstall4j.jvmDir="$app_java_home" -Dexe4j.moduleName="$prg_dir/$progname" "-Xmx512m" "-Xms256m" "-XX:MaxPermSize=256m" "-Dsun.java2d.noddraw=true" "-Dinstall4j.launcherId=4" "-Dinstall4j.swt=false" "$vmov_1" "$vmov_2" "$vmov_3" "$vmov_4" "$vmov_5" $INSTALL4J_ADD_VM_PARAMS -classpath "$local_classpath" com.install4j.runtime.launcher.Launcher launch RV true false "$prg_dir/error.log" "" true true false "" true true 0 0 "" 20 20 "Arial" "0,0,0" 8 500 "version 11.2" 20 40 "Arial" "0,0,0" 8 500 -1 "$@"
+
+
+exit $?
diff --git a/visual-paradigm-community.install b/visual-paradigm-community.install
new file mode 100644
index 000000000000..2bbae8797ec5
--- /dev/null
+++ b/visual-paradigm-community.install
@@ -0,0 +1,14 @@
+post_install() {
+ update-desktop-database -q
+ update-mime-database /usr/share/mime
+ gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
+ archlinux-java fix
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
diff --git a/visual-paradigm.desktop b/visual-paradigm.desktop
new file mode 100644
index 000000000000..3cbfc6c2c9ea
--- /dev/null
+++ b/visual-paradigm.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Name=Visual Paradigm
+Exec=/usr/share/visual-paradigm-community/bin/Visual_Paradigm_Fixed
+Icon=visual-paradigm
+Categories=Application
+Name[en_US]=Visual Paradigm
+StartupWMClass=RV
+Categories=Development;
+MimeType=application/x-visual-paradigm
diff --git a/visual-paradigm.png b/visual-paradigm.png
new file mode 100644
index 000000000000..67316f021115
--- /dev/null
+++ b/visual-paradigm.png
Binary files differ
diff --git a/x-visual-paradigm.xml b/x-visual-paradigm.xml
new file mode 100755
index 000000000000..b022061a98c1
--- /dev/null
+++ b/x-visual-paradigm.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+ <mime-type type="application/x-visual-paradigm">
+ <comment>Visual Paradigm File</comment>
+ <icon name="application-x-visual-paradigm"/>
+ <glob-deleteall/>
+ <glob pattern="*.vpp"/>
+ <glob pattern="*.vpp.new"/>
+ </mime-type>
+</mime-info>