debian/0000755000000000000000000000000012152370715007171 5ustar debian/rules0000755000000000000000000000440312152370715010252 0ustar #!/usr/bin/make -f # -*- makefile -*- VERSION_STRING=11.3 VERSION_SHORT_STRING=11_3 CONTENT_DIR="Umlet" JAVADIR=/usr/share/java export CLASSPATH=$(JAVADIR)/ecj.jar:$(JAVADIR)/batik-all.jar:$(JAVADIR)/fop.jar:$(JAVADIR)/log4j-1.2.jar:$(JAVADIR)/net.sourceforge.jlibeps.jar:$(JAVADIR)/gnumail.jar:$(JAVADIR)/itext.jar:$(JAVADIR)/jsyntaxpane.jar export JAVA_HOME=/usr/lib/jvm/default-java #export DH_VERBOSE=1 get-orig-source: wget http://www.umlet.com/umlet_$(VERSION_SHORT_STRING)/umlet_$(VERSION_SHORT_STRING).zip unzip umlet_$(VERSION_SHORT_STRING).zip cd $(CONTENT_DIR) ; \ rm umlet.jar Umlet.exe ; \ # remove jar files in lib \ rm -f lib/*.jar; \ cd .. mv $(CONTENT_DIR) umlet-$(VERSION_STRING).orig tar -c umlet-$(VERSION_STRING).orig | gzip --best > umlet_$(VERSION_STRING).orig.tar.gz rm -rf umlet-$(VERSION_STRING).orig build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: test -d eclipse-plugin-source || mkdir eclipse-plugin-source # move unused source code out of the way mv sourcefiles/src/com/baselet/plugin/ eclipse-plugin-source/ || true mv sourcefiles/src/com/baselet/gui/eclipse/ eclipse-plugin-source/ || true jh_build --no-javadoc -o"-encoding utf8" umlet.jar sourcefiles/src clean: dh_testdir dh_testroot rm -f build-stamp # move unused source code back in mv eclipse-plugin-source/plugin/ sourcefiles/src/com/baselet/ || true mv eclipse-plugin-source/eclipse/ sourcefiles/src/com/baselet/gui/ || true rmdir eclipse-plugin-source || true rm -f umlet.jar jh_build --clean jh_clean dh_clean # install: build # dh_clean # dh_installdirs binary-indep: build dh_testdir dh_testroot dh_clean dh_installchangelogs dh_installdocs dh_installexamples dh_install -XThumbs.db dh_installmenu dh_installman debian/umlet.1 jh_manifest --main=com.baselet.control.Main # comment - currently jarwrapper does not work # dh_link usr/share/java/umlet.jar usr/bin/umlet jh_depends # comment - currently jarwrapper does not work # jh_exec -v dh_compress dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb binary-arch: build # We have nothing to do binary: binary-indep binary-arch .PHONY: build build-arch build-indep clean clean1 binary-indep binary-arch binary install orig get-orig-source debian/control0000644000000000000000000000217212152367556010607 0ustar Source: umlet Section: devel Priority: extra Maintainer: Benjamin Mesing Build-Depends: debhelper (>= 5), javahelper, fastjar, default-jdk, libbatik-java, fop, libavalon-framework-java, libxerces2-java, libjlibeps-java, libgnumail-java, libitext-java, liblog4j1.2-java, libecj-java, libjsyntaxpane-java Standards-Version: 3.9.2 Package: umlet Architecture: all Depends: default-jdk | java6-sdk, jarwrapper, java-wrappers, ${misc:Depends}, ${java:Depends} Description: simple, text driven UML drawing tool UMLet is a UML tool aimed at providing a fast way of drawing UML diagrams. UML elements are modified using text input instead of pop-up dialogs. Elements can be modified and used as templates; this way, users can easily tailor UMLet to their modeling needs. UMLet supports a variety of UML diagram types: class diagrams, use case diagrams, sequence diagrams, state diagrams, deployment diagrams, activity diagrams, etc. . UMLet can only be used for drawing UML diagrams, it does not support code export or the XMI format. UMLet allows one to export diagrams as images or PDF. Homepage: http://umlet.com/ debian/source/0000755000000000000000000000000011313404475010470 5ustar debian/source/format0000644000000000000000000000001411313501133011663 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000423512152370567011054 0ustar umlet (11.3-5.1) unstable; urgency=low * Non-maintainer upload. * Fix "Transition package to use default java implementation": apply patch from Ubuntu / James Page: Transition package to use default java implementation: - d/control: Switch openjdk-6-jdk -> default-jdk. - d/rules: Set JAVA_HOME = /usr/lib/jvm/default-java. (Closes: #684305) * debian/rules: pass -encoding to javac via jh_build call. -- gregor herrmann Sat, 01 Jun 2013 15:04:24 +0200 umlet (11.3-5) unstable; urgency=low * improved command line script to handle whitespaces in filenames (thanks Niels for a watchful eye) -- Benjamin Mesing Tue, 22 Jan 2013 21:32:08 +0100 umlet (11.3-4) unstable; urgency=medium * pass command line parameters through "umlet" script (Closes: #690272) -- Benjamin Mesing Fri, 12 Oct 2012 22:02:34 +0200 umlet (11.3-3) unstable; urgency=medium * set JAVA_HOME path arch-aware within rules file to comply to multiarch changes (Closes: #642036) * depend on java6-sdk instead of openjdk explicitly (Closes: #645297 ) * use jarwrapper to start umlet (Closes: #645394) * updated to latest upstream release (Closes: #645298) -- Benjamin Mesing Sun, 23 Oct 2011 19:43:28 +0200 umlet (11.3-2) unstable; urgency=low * changed build-system to use javahelper -- Benjamin Mesing Thu, 14 Jul 2011 22:13:14 +0200 umlet (11.3-1) unstable; urgency=low * New upstream release -- Benjamin Mesing Sun, 10 Jul 2011 18:46:57 +0200 umlet (10.4-1) unstable; urgency=low * New upstream release -- Benjamin Mesing Sat, 24 Apr 2010 12:25:35 +0200 umlet (10.2-1) unstable; urgency=low * New upstream release (Closes: #542445) - supports zooming - in-app Mail feature * changed source format to 3.0 (quilt) * depend on libjlibeps-java now instead of including libepsgraphics -- Benjamin Mesing Sun, 20 Dec 2009 12:47:03 +0100 umlet (9.1-1) unstable; urgency=low * Initial release (Closes: #398093) -- Benjamin Mesing Sun, 17 May 2009 18:12:49 +0200 debian/README.Debian-source0000644000000000000000000000044711313404475012534 0ustar This file was repackaged because: 1. it was shipped as a zip 2. it contained compiled class files which should be removed 3. it contained compiled external libraries (jar files) which should be removed For repackaging instructions see the get-orig-source target in the debian/rules file debian/compat0000644000000000000000000000000211313404475010366 0ustar 5 debian/umlet.install0000644000000000000000000000030411610327477011711 0ustar palettes usr/share/umlet custom_elements/*.java usr/share/umlet/custom_elements html usr/share/umlet img usr/share/umlet sourcefiles/META-INF usr/share/umlet umlet.jar usr/share/java umlet usr/bindebian/testcases0000644000000000000000000000063511607120651011112 0ustar 1. start umlet, add an element from palette, save, exit 2. start umlet, load 3. help->about -> click link 4. Custom elements -> new, modify drawRectangle(), add to diagram and close editor, save, exit umlet 5. start umlet, load (check if custom modifications are there) 6. select other palette, File->Edit current Palette, save and close, see if it gets updated in the palette view 7. File -> Export As: eps, PNG debian/README.Debian0000644000000000000000000000104111607643240011226 0ustar umlet for Debian ---------------- The Debian package of UMLet offers no Eclipse integration. If Eclipse integration is desired, please use the upstream release from http://www.umlet.com/. For the debian version, custom elements are stored in $HOME/.umlet/custom_elements. Currently umlet palettes are copied to $HOME/.umlet/palettes upon first run. This allows one to modify and save palettes. However, if upstream default layout of palettes changes, users will continue to work on the old ones even if they did not change their copies. debian/patches/0000755000000000000000000000000012077573411010624 5ustar debian/patches/50-dont-modify-helpfile0000644000000000000000000000065311606370337015013 0ustar --- a/sourcefiles/src/com/baselet/gui/StartUpHelpText.java +++ b/sourcefiles/src/com/baselet/gui/StartUpHelpText.java @@ -85,7 +85,7 @@ private void showHTML(JEditorPane edit) { try { - replaceSystemspecificMetakey(); + // replaceSystemspecificMetakey(); edit.setPage(new URL("file:///" + getStartUpFileName())); edit.addHyperlinkListener(new HyperLinkActiveListener()); edit.setEditable(false); debian/patches/45_remove_eclipse_dependencies0000644000000000000000000000201311606353357016564 0ustar --- a/sourcefiles/src/com/baselet/control/Path.java +++ b/sourcefiles/src/com/baselet/control/Path.java @@ -6,11 +6,9 @@ import java.net.URL; import org.apache.log4j.Logger; -import org.eclipse.core.runtime.FileLocator; import com.baselet.control.Constants.Program; import com.baselet.control.Constants.RuntimeType; -import com.baselet.plugin.MainPlugin; public class Path { @@ -51,7 +49,8 @@ public static String homeProgram() { if (homeProgramDir == null) { if (Program.RUNTIME_TYPE == RuntimeType.ECLIPSE_PLUGIN) { - String path = null; + // BM debianisation: remove eclipse stuff +/* String path = null; try { URL homeURL = MainPlugin.getURL(); path = FileLocator.toFileURL(homeURL).toString().substring(new String("file:/").length()); @@ -59,7 +58,7 @@ } catch (IOException e) { log.error("Cannot find location of Eclipse Plugin jar", e); } - homeProgramDir = path; + homeProgramDir = path;*/ } else { // BM fixed path debian/patches/39_fixPaths0000644000000000000000000001413311607120014012633 0ustar --- a/sourcefiles/src/com/baselet/control/Path.java +++ b/sourcefiles/src/com/baselet/control/Path.java @@ -14,13 +14,19 @@ public class Path { + // [BM debianisation] + public static String bm_getUmletUserDir() { + return System.getProperty("user.home")+"/.umlet/"; + } + // + private final static Logger log = Logger.getLogger(Utils.getClassName()); private static String tempDir; private static String homeProgramDir; public static String config() { - return Path.homeProgram() + Program.CONFIG_NAME; + return bm_getUmletUserDir() + Program.CONFIG_NAME; } public static String customElements() { @@ -56,11 +62,8 @@ homeProgramDir = path; } else { - String tempPath, realPath; - tempPath = Path.executable(); - tempPath = tempPath.substring(0, tempPath.length() - 1); - tempPath = tempPath.substring(0, tempPath.lastIndexOf('/') + 1); - realPath = new File(tempPath).getAbsolutePath() + "/"; + // BM fixed path + String realPath = "/usr/share/umlet/"; homeProgramDir = realPath; } } --- a/sourcefiles/src/com/baselet/control/Main.java +++ b/sourcefiles/src/com/baselet/control/Main.java @@ -3,6 +3,7 @@ import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; +import java.io.FileReader; //[BM-debianisation] for copy operation import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; @@ -39,6 +40,20 @@ public class Main { + // [begin BM-debianisation] file copy function + private static void bm_copy(File inputFile, File outputFile) throws IOException { + FileReader reader = new FileReader(inputFile); + FileWriter writer = new FileWriter(outputFile); + int character; + while ((character = reader.read()) != -1) + writer.write(character); + + reader.close(); + writer.close(); + } + // [end BM-debianisation] + + private final static Logger log = Logger.getLogger(Utils.getClassName()); private static Main instance; @@ -69,6 +84,52 @@ // System.setSecurityManager(new CustomElementSecurityManager()); + // [begin BM-debianisation] create directory $HOME/.umlet to store settings in + String bm_homeDirName = Path.bm_getUmletUserDir(); + // a list of directories to be created + List bm_directories = new ArrayList(); + bm_directories.add(bm_homeDirName); + bm_directories.add(bm_homeDirName + "custom_elements/"); + bm_directories.add(bm_homeDirName + "custom_elements/tmp"); + bm_directories.add(bm_homeDirName + "palettes/"); + + + for (String bm_dirName : bm_directories) { + File bm_file = new File(bm_dirName); + if (!bm_file.isDirectory()) + { + if ( ! bm_file.mkdir() ) + { + System.err.println("Unable to create " + bm_dirName); + System.exit(-1); + } + } + } + + // copy all palette files to users umlet directory + // that's probably not the best way of fixing things, but it + // works an non-disruptive + // we cannot simply take the palettes directly from usr/... because + // we have no write rights there (for editing them), therefore it + // would be required to support multiple palette directories and + // do some other quirks + FileSystemView fileSystemView= FileSystemView.getFileSystemView(); + File[] paletteFiles= fileSystemView.getFiles(new File("/usr/share/umlet/palettes/"), false); + List palettes = new ArrayList(); + for(File palette : paletteFiles) { + if(palette.getName().endsWith(".uxf")) { + String targetName = bm_homeDirName + "palettes/" + palette.getName(); + File outputFile = new File(targetName); + if (!outputFile.exists()) + try { + bm_copy(palette, outputFile); + } catch (IOException e) { + System.err.println("Unable to copy palette file " + palette + " to " + targetName + "\nContinuing anyways."); + } + } + } + // [end BM-debianisation] + Main main = Main.getInstance(); main.initOverallSettings(); tmp_file = Program.PROGRAM_NAME.toLowerCase() + ".tmp"; @@ -125,7 +186,7 @@ } private void initLogger() { - String log4jFilePath = Path.homeProgram() + "log4j.properties"; + String log4jFilePath = Path.bm_getUmletUserDir() + "log4j.properties"; try { // If no log4j.properties file exists, we create a simple one if (!new File(log4jFilePath).exists()) { @@ -141,7 +202,7 @@ writer.close(); } Properties props = new Properties(); - props.put("PROJECT_PATH", Path.homeProgram()); // Put homepath as relative variable in properties file + props.put("PROJECT_PATH", Path.bm_getUmletUserDir()); // Put homepath as relative variable in properties file props.load(new FileInputStream(log4jFilePath)); PropertyConfigurator.configure(props); log.info("Logger configuration initialized"); @@ -153,8 +214,8 @@ private void readManifestInfo() { try { Manifest manifest; - if (Path.executable().endsWith(".jar")) manifest = new JarFile(Path.executable()).getManifest(); - else manifest = new Manifest(new FileInputStream(Path.homeProgram() + "META-INF" + File.separator + "MANIFEST.MF")); + // [BM debianisation] always at this location for Debian + manifest = new Manifest(new FileInputStream(Path.homeProgram() + "META-INF" + File.separator + "MANIFEST.MF")); Attributes attributes = manifest.getMainAttributes(); String versionString = attributes.getValue("Bundle-Version"); @@ -401,7 +462,8 @@ public List scanForPalettes() { // scan palettes directory... FileSystemView fileSystemView = FileSystemView.getFileSystemView(); - File[] paletteFiles = fileSystemView.getFiles(new File(Path.homeProgram() + "palettes/"), false); + // [BM-debianisation] take paletes from local user dir to allow editing + File[] paletteFiles = fileSystemView.getFiles(new File(Path.bm_getUmletUserDir() + "palettes/"), false); List palettes = new ArrayList(); for (File palette : paletteFiles) { if (palette.getName().endsWith("." + Program.EXTENSION)) palettes.add(palette); @@ -468,4 +530,5 @@ return recentFiles; } + } debian/patches/series0000644000000000000000000000012511610327330012024 0ustar 20_runScript.diff 39_fixPaths 45_remove_eclipse_dependencies 50-dont-modify-helpfile debian/patches/20_runScript.diff0000644000000000000000000000077112077573411013755 0ustar --- /dev/null +++ b/umlet @@ -0,0 +1,14 @@ +#!/bin/sh +# command line wrapper to launch umlet created for the debian distribution + +# Include the wrappers utility script +. /usr/lib/java-wrappers/java-wrappers.sh + +# We need java6 runtime +find_java_runtime java6 + +# not required for packagesearch - everything is referenced from the jar-file +# find_jars jabref antlr antlr3 jgoodies-looks forms spin glazedlists microba pdfbox jempbox mysql-connect + +run_java -jar /usr/share/java/umlet.jar "$@" + debian/copyright0000644000000000000000000000144211607643343011131 0ustar This package was debianized by Benjamin Mesing on Sat, 2 Dec 2006ff. UMLet was downloaded from http://www.umlet.com Upstream UMLet Author: M. Auer, J. Poelz, A. Fuernweger, L. Meyer and T. Tschurtschenthaler UMLet License: You are free to distribute this software under the terms of the GNU General Public License 2. Main source: Copyright 2009, M. Auer, J. Poelz, A. Fuernweger, L. Meyer and T. Tschurtschenthaler Source code for Windows Exe file (subfolder src/umlet_exe: Copyright © TU Wien 2008 On Debian systems, the complete text of the GNU General Public License 2 can be found in the file `/usr/share/common-licenses/GPL-2'. The Debian packaging is © 2006-2009, Benjamin Mesing and is licensed under the GPL-2. debian/umlet.10000644000000000000000000000344211607643065010411 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH UMLET 1 "March 11, 2007" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME umlet \- simple, text driven UML drawing tool .SH SYNOPSIS .B umlet .RI [ options ] " files" ... .br .SH DESCRIPTION This manual page documents briefly the .B umlet command. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBUMLet\fP is a UML tool aimed at providing a fast way of drawing UML diagrams. UML elements are modified using text input instead of pop-up dialogs. Elements can be modified and used as templates; this way, users can easily tailor UMLet to their modeling needs. UMLet supports a variety of UML diagram types: class diagrams, use case diagrams, sequence diagrams, state diagrams, deployment diagrams, activity diagrams, etc. .PP UMLet can only be used for drawing UML diagrams. It does not support code export nor the XMI format. UMLet allows one to export diagrams as images or PDF. .SH AUTHOR UMLet was written by M. Auer, T. Tschurtschenthaler and L. Meyer. .PP This manual page was written by Benjamin Mesing , for the Debian project (but may be used by others). debian/menu0000644000000000000000000000015111607111340010044 0ustar ?package(umlet):needs="X11" section="Applications/Programming"\ title="UMLet" command="/usr/bin/umlet" debian/watch0000644000000000000000000000012611607110507010214 0ustar version=3 http://www.umlet.com/changes.htm \ umlet.*/umlet_(\d+)[_](\d+)?\.zip