debian/0000755000000000000000000000000012144451021007160 5ustar debian/latexdraw.sharedmimeinfo0000644000000000000000000000042610645263346014110 0ustar LaTeXDraw project debian/watch0000644000000000000000000000026111153614464010223 0ustar # Compulsory line, this is a version 3 file version=3 opts="dversionmangle=s/\+\d+$//" \ http://sf.net/latexdraw/LaTeXDraw(.*)_src\.zip \ debian \ debian/repackage debian/install0000644000000000000000000000034411174120511010551 0ustar out/data/LaTeXDraw.jar usr/share/java latexdraw usr/bin templates usr/share/latexdraw/ out/*.xpm usr/share/pixmaps debian/latexdraw.desktop usr/share/applications debian/x-latexdraw-project.desktop usr/share/mimelnk/application debian/latexdraw.10000644000000000000000000000173111326346211011244 0ustar .TH LATEXDRAW 1 "July 7, 2007" .de FN \fI\|\\$1\|\fP .. .SH NAME latexdraw \- vector drawing program for LaTeX using PSTricks .SH SYNOPSIS .B latexdraw .RI file .SH DESCRIPTION .B latexdraw is a vector drawing program for LaTeX using PSTricks .PP .SH OPTIONS At present, .B latexdraw accepts no command line options other than (optionally) the name of a file to open. .SH FILES .TP .FN /usr/share/latexdraw/templates/ system-wide template repository .TP .FN $HOME/.latexdraw/templates/ user's template repository .TP .FN $HOME/.latexdraw/.preferences.xml user settings .TP .FN $HOME/.latexdraw/.cacheShared cached jpeg images of system templates .TP .FN $HOME/.latexdraw/.cache cached jpeg images of user's templates .SH AUTHOR .B latexdraw was written by Arnaud BLOUIN. .PP More details can be found at http://latexdraw.sourceforge.net/ .PP This manual page was written by Stuart Prescott , for the Debian project (but may be used by others). debian/README.source0000644000000000000000000000027311264665011011351 0ustar This package uses quilt to manage Debian-specific changes to the upstream source. Install the "quilt" package and consult: /usr/share/doc/quilt/README.source for further details. debian/README.Debian-source0000644000000000000000000000231311350003227012515 0ustar Repackaging of original source for latexdraw --------------------------------------------------------------------- latexdraw version 2.0.8+1. Downloaded file: LaTeXDraw2.0.8_src.zip From: sourceforge.net Path: ../LaTeXDraw2.0.8_src.zip $ md5sum --binary LaTeXDraw2.0.8_src.zip 7d4c51c34a522e51d25fe60dd994df6e *LaTeXDraw2.0.8_src.zip The following commands were used to repackage the original source (the 'touch' commands ensure that the md5sum of the archives stays the same): $ unzip -qq -d . LaTeXDraw2.0.8_src.zip $ mv LaTeXDraw2.0.8_src latexdraw-2.0.8+1.orig $ touch -t 199001010000.00 latexdraw-2.0.8+1.orig $ tar cf latexdraw_2.0.8+1.orig.tar --owner 0 --group 0 --numeric-owner --exclude=bin --exclude=doc --exclude=lib --exclude=src?lib --exclude=*.class --exclude=*.jar --exclude=latexDraw/tags latexdraw-2.0.8+1.orig $ touch -t 199001010000.00 latexdraw_2.0.8+1.orig.tar $ gzip -9 latexdraw_2.0.8+1.orig.tar $ md5sum --binary latexdraw_2.0.8+1.orig.tar.gz c0adfc54ddb103b506c75366719a0a1b *latexdraw_2.0.8+1.orig.tar.gz -- Stuart Prescott Tue, 16 Mar 2010 22:30:45 +0000 --------------------------------------------------------------------- debian/x-latexdraw-project.desktop0000644000000000000000000000023211174120060014452 0ustar [Desktop Entry] Comment=LaTeXDraw Project Icon=/usr/share/pixmaps/latexdraw32.xpm Type=MimeType MimeType=application/x-latexdraw-project; Patterns=*.ldp; debian/latexdraw.doc-base0000644000000000000000000000056711032265014012562 0ustar Document: latexdraw Title: LaTeXDraw User Documentation Author: Arnaud BLOUIN Abstract: This manual contains the user documentation for LaTeXDraw which is a vector drawing program that uses the LaTeX PStricks package. Section: Graphics Format: HTML Index: /usr/share/doc/latexdraw/help/index.html Files: /usr/share/doc/latexdraw/help/*.html debian/latexdraw.menu0000644000000000000000000000040410650235613012046 0ustar ?package(latexdraw):needs="x11" \ section="Applications/Graphics" \ title="LaTeXDraw" \ command="/usr/bin/latexdraw" \ icon="/usr/share/pixmaps/latexdraw32.xpm" \ icon32x32="/usr/share/pixmaps/latexdraw32.xpm" \ icon16x16="/usr/share/pixmaps/latexdraw16.xpm" debian/docs0000644000000000000000000000006211032265225010035 0ustar debian/README.Debian-source debian/copyright help debian/source/0000755000000000000000000000000012144450717010473 5ustar debian/source/format0000644000000000000000000000001411373110326011671 0ustar 3.0 (quilt) debian/dirs0000644000000000000000000000007610645263346010066 0ustar usr/share/java usr/bin usr/share/man/man1 usr/share/latexdraw debian/patches/0000755000000000000000000000000012144450717010622 5ustar debian/patches/latexdraw_shell_script.patch0000644000000000000000000000145411646566131016421 0ustar Create a script for /usr/bin/latexdraw with a sensible JRE (regardless of how the alternatives have been set). --- /dev/null +++ b/latexdraw @@ -0,0 +1,20 @@ +#!/bin/sh + +# latexdraw wrapper script + +# Include the wrappers utility script +. /usr/lib/java-wrappers/java-wrappers.sh + +# Find an appropriate java runtime environment as we can't rely on +# the alternatives setting in /usr/bin/java to provide the appropriate +# version of java even if the package is installed. +# We need openjdk6, openjdk7 or sun6 runtime. +find_java_runtime sun6 openjdk + +find_jars LaTeXDraw net.sourceforge.jiu net.sourceforge.jlibeps + +# Add /usr/share/doc/latexdraw/ to the classpath as it is used to +# locate help files +JAVA_CLASSPATH=$JAVA_CLASSPATH:/usr/share/doc/latexdraw/ + +run_java latexDraw.ui.LaTeXDraw "$@" debian/patches/series0000644000000000000000000000012511177416160012034 0ustar latexdraw_shell_script.patch disable_update_available_check.patch build_system.patch debian/patches/disable_update_available_check.patch0000644000000000000000000000074011347270313017742 0ustar Disable LaTeXDraw's built-in update notifier that checks to see if a new version is available. --- a/latexDraw/ui/LaTeXDrawFrame.java +++ b/latexDraw/ui/LaTeXDrawFrame.java @@ -68,7 +68,7 @@ public final static String VERSION_STABILITY = ""; //$NON-NLS-1$ /** To change if update is needed or not. */ - public static final boolean WITH_UPDATE = true; + public static final boolean WITH_UPDATE = false; public static final Insets INSET_BUTTON = new Insets(1,1,1,1); debian/patches/build_system.patch0000644000000000000000000000720111770204361014342 0ustar Alter build system to make use of external libraries rather than bundling them into jar file. --- a/build.xml +++ b/build.xml @@ -5,9 +5,9 @@ - + - + @@ -15,7 +15,7 @@ - + @@ -25,47 +25,50 @@ - - - + + + + + + + + + + - - - - - + - + - + - + - + - + - - + + @@ -76,16 +79,16 @@ - - + + - - - + + + - - - + + + debian/compat0000644000000000000000000000000211513706055010367 0ustar 7 debian/repackagerc0000644000000000000000000000033711262413347011366 0ustar # Settings for repackaging the upstream source code # of the latexdraw package PACKAGE=latexdraw UPSTREAM=sourceforge.net UNARCHIVE=do_unzip WRAPDIR=false EXCLUDE_LIST=" bin doc lib src?lib *.class *.jar latexDraw/tags " debian/repackage0000755000000000000000000001646411173201704011045 0ustar #!/bin/sh set -u set -e # set -x if [ -f ~/.devscripts ] then . ~/.devscripts fi PACKAGE=frobinator UPSTREAM=sourceforge.net UNARCHIVE=do_unzip WRAPDIR=true LOG=README.Debian-source VERBOSE=${VERBOSE:-1} CLEANUP=${CLEANUP:-0} SCRIPTDIR=$(dirname $(readlink -f $0)) NAME=$(basename $0) RCFILE=$SCRIPTDIR/repackagerc EXCLUDE_LIST="" # Originally '197001010000.00' but tar complains about an # "implausibly old time stamp" TOUCHTIME=199001010000.00 # Set a consistent umask for repackaging so that the tarball is reproducible # (overridable in the rc file) umask 002 usage() { cat <&2 Usage: $NAME --upstream-version x.y.z filename.zip [src_package_revision] [target_dir] Where the the version x.y.z is the version number of the new version and filename.zip (or .tar.gz or whatever) is the new source filename for the package $PACKAGE. If filename.zip starts with http:// or ftp:// then wget is used to download the archive first. The file $RCFILE must exist and set the following environment variables (and these are their current versions): PACKAGE=$PACKAGE UPSTREAM=$UPSTREAM UNARCHIVE=$UNARCHIVE EXCLUDE_LIST=$EXCLUDE_LIST (EXCLUDE_LIST is a list of exclusions for tar, one per line. Note that spaces in path names are problematic) It is expected that this utility is run by uscan or and is run in the base directory of the source package. The optional argument 'src_package_revision' can be specified to indicate additional cycles of source package revision that may have been undertaken in addition to the regular packaging activities. If not specified, the debian/changelog is parsed to try to work out what the source revision should be. The optional argument 'target_dir' may be used to specify where the repackaged source should be left. EOT } progress() { if [ "$VERBOSE" != 0 -a -n $VERBOSE ] then echo "$@" fi } logmsg() { echo "$@" >> $LOGFILE } logcmd() { logcmdpieces "$@" "$@" >> $LOGFILE } # This is a truly appalling hack, but the only sensible way to # maintain proper quoting in the log, it seems, unless each command is # double quoted to begin with... which is also an ugly, bug-attracting # hack. logcmdpieces() { printf "\n$ " >> $LOGFILE echo "$@" >> $LOGFILE } carp() { echo "E: ($NAME) $*" exit 1 } do_unzip() { logcmd unzip -qq -d "$1" "$2" } do_untargz() { logcmd tar -C "$1" -zxf "$2" } do_untarbz2() { logcmd tar -C "$1" -jxf "$2" } testarchive() { case "$1" in do_unzip) ALLDIRS=$(zipinfo -1 "$2" | cut -f1 -d/ | sort -u) if [ $(echo "$ALLDIRS" | wc -l) -gt 1 ] then testarchiveerror fi echo "$ALLDIRS" ;; do_untargz) ALLDIRS=$(tar ztf "$2" | cut -f1 -d/ | sort -u) if [ $(echo "$ALLDIRS" | wc -l) -gt 1 ] then testarchiveerror fi echo "$ALLDIRS" ;; do_untarbz2) ALLDIRS=$(tar jtf "$2" | cut -f1 -d/ | sort -u) if [ $(echo "$ALLDIRS" | wc -l) -gt 1 ] then testarchiveerror fi echo "$ALLDIRS" ;; esac } testarchiveerror() { echo "E: More than one directory was found in the unwrapped archive." echo "E: Set WRAPDIR to wrap the contents of the tarball in a directory." exit 1 } make_exclude_list() { echo "$EXCLUDE_LIST" | grep -v -e ^$ | sed 's/^\(.*\)/--exclude=\1/' } next_source_version() { LAST_SRC=$(dpkg-parsechangelog | \ sed -n 's/Version: \(.*\)+[0-9\-]*/\1/p') #echo "LS=$LAST_SRC" if [ $LAST_SRC = $VERSION ] then SRCVERSION=$(dpkg-parsechangelog | \ sed -n 's/Version: [^+]*+\(.*\)-.*/\1/p') SRCVERSION=$(($SRCVERSION+1)) else SRCVERSION=1 fi echo $SRCVERSION } ########################################################################### if [ ! -f $RCFILE ] then cat <&2 $0 Error: No configuration parameters found in file $RCFILE. Exiting. EOT usage exit 1 fi # Read in the user/package settings . $RCFILE if [ $# -lt 3 -o $# -gt 5 ] then usage exit 1 fi ########################################################################### DATE=$(date -R) VERSION=$2 SRCPATH=$3 SRCVERSION="" TARGETDIR=$(pwd) if [ $# -eq 5 ] then SRCVERSION="$4" TARGETDIR="$5" elif [ $# -eq 4 ] then if [ -d $4 ] then TARGETDIR="$4" SRCVERSION=$(next_source_version) else SRCVERSION="$4" fi else SRCVERSION=$(next_source_version) fi VERSION="$VERSION+$SRCVERSION" if [ ! -d "$TARGETDIR" ] then carp "Target directory '$TARGETDIR' doesn't exist!" fi progress "I: Making orig tarball for $VERSION" ########################################################################### LOGFILE=$TARGETDIR/$LOG if [ -f "$LOGFILE" ] then progress "W: Deleting existing log file" rm "$LOGFILE" fi ########################################################################### DIR=${PACKAGE}-$VERSION.orig ARCHIVEFILE=${PACKAGE}_${VERSION}.orig.tar ARCHIVELOCATION="$TARGETDIR" TEMPDIR=$(mktemp -t -d $NAME.XXXXXXXXXX) || carp "Couldn't make temp dir" ########################################################################### progress "I: Locating source $SRCPATH" SRCARCHIVE=$(basename "$SRCPATH") if [ $(expr substr "$SRCPATH" 1 7) = "http://" -o \ $(expr substr "$SRCPATH" 1 6) = "ftp://" ] then UPSTREAMURL="$SRCPATH" wget "$UPSTREAMURL" -O "$TEMPDIR/$SRCARCHIVE" else cp "$SRCPATH" "$TEMPDIR" fi cd $TEMPDIR || carp "Couldn't cd to temp dir $TEMPDIR" ########################################################################### MD5="md5sum --binary" logmsg " Repackaging of original source for $PACKAGE --------------------------------------------------------------------- $PACKAGE version $VERSION. Downloaded file: $SRCARCHIVE From: $UPSTREAM Path: $SRCPATH" logcmd $MD5 $SRCARCHIVE progress "I: Directory: $DIR I: Package name: $PACKAGE I: Version: $VERSION" logmsg " The following commands were used to repackage the original source (the 'touch' commands ensure that the md5sum of the archives stays the same):" # get the source progress "I: Uncompressing source" if $WRAPDIR then logcmd mkdir $DIR $UNARCHIVE $DIR $SRCARCHIVE else INNERDIR=$(testarchive $UNARCHIVE $SRCARCHIVE) $UNARCHIVE . $SRCARCHIVE logcmd mv $INNERDIR $DIR fi # set a consistent time for the top directory logcmd touch -t $TOUCHTIME $DIR # repackage the archive progress "I: Creating 'orig' tar archive" #echo "$(make_exclude_list)" logcmd tar cf $ARCHIVEFILE --owner 0 --group 0 --numeric-owner \ $(make_exclude_list) \ $DIR # Also set a consistent time on the tar archive logcmd touch -t $TOUCHTIME $ARCHIVEFILE #logcmd md5sum $ARCHIVEFILE progress "I: Compressing archive" logcmd gzip -9 $ARCHIVEFILE logcmd md5sum --binary $ARCHIVEFILE.gz logmsg " -- $DEBFULLNAME <$DEBEMAIL> $DATE --------------------------------------------------------------------- " ########################################################################### progress "I: Moving archive $ARCHIVEFILE.gz" #mv $ARCHIVEFILE $ARCHIVELOCATION touch $ARCHIVEFILE.gz mv $ARCHIVEFILE.gz $ARCHIVELOCATION ########################################################################### if [ $CLEANUP != 0 ] then progress "I: Cleaning up $TEMPDIR" rm -rf $TEMPDIR else progress "I: Files left in $TEMPDIR for your inspection" fi ########################################################################### debian/latexdraw.desktop0000644000000000000000000000045311200274726012557 0ustar [Desktop Entry] Name=LaTeXDraw Comment=Graphical editor for PSTricks GenericName=Vector graphics editor for PSTricks Exec=latexdraw %f Icon=/usr/share/pixmaps/latexdraw32.xpm Terminal=false Type=Application Categories=Graphics;VectorGraphics; MimeType=image/svg+xml;application/x-latexdraw-project; debian/changelog0000644000000000000000000001373212144450633011050 0ustar latexdraw (2.0.8+1-4) unstable; urgency=low * Use default-jre and default-jdk rather than specifying the compiler to use; thanks to James Page for the patch (Closes: #684018). * Drop (optional) runtime-dependency on removed sun-java6-jre. * Bump standards version to 3.9.4 (no changes required). -- Stuart Prescott Wed, 15 May 2013 00:40:08 +1000 latexdraw (2.0.8+1-3) unstable; urgency=low * Use openjdk-7 as preferred java compiler for building package. * Drop (optional) build-dependency on removed sun-java6-jdk. * Bump standards version to 3.9.3 (no changes required). -- Stuart Prescott Wed, 20 Jun 2012 00:02:33 +0100 latexdraw (2.0.8+1-2) unstable; urgency=low * use java-wrappers to find appropriate JREs including for multi-arch paths (Closes: #644615). * Switch to dpkg-source 3.0 (quilt) format. * Simplify debian/rules with debhelper 7. * Update copyright to DEP-5 candidate format. * Bump standards version to 3.9.2 (no changes required). * Set DM-Upload-Allowed: yes. -- Stuart Prescott Mon, 17 Oct 2011 23:39:16 +0100 latexdraw (2.0.8+1-1) unstable; urgency=low * New upstream release (2.0.7 contained Windows-only bugfix; not uploaded to unstable) * Change order of JRE detection in wrapper script (Closes: #573901) -- Stuart Prescott Tue, 16 Mar 2010 22:48:30 +0000 latexdraw (2.0.6+1-1) unstable; urgency=low * New upstream release * Bump standards to 3.8.4 (no changes). -- Stuart Prescott Wed, 10 Feb 2010 11:36:31 +0000 latexdraw (2.0.5+1-1) unstable; urgency=low * New upstream release -- Stuart Prescott Mon, 12 Oct 2009 18:26:13 +0100 latexdraw (2.0.4+1-1) unstable; urgency=low * New upstream release. * Bump standards to 3.8.3 (no changes). -- Stuart Prescott Mon, 05 Oct 2009 17:20:10 +0100 latexdraw (2.0.3+1-1) unstable; urgency=low * New upstream release. * Add additional Recommended packages for new export features. * Fix typo in long description, with thanks to Kai Weber (Closes: #529195). * Bump standards to 3.8.2 (no changes). -- Stuart Prescott Wed, 15 Jul 2009 23:35:52 +0100 latexdraw (2.0.2+1-2) unstable; urgency=low * Convert packaging to quilt. * Update package description to mention SVG file format. -- Stuart Prescott Sun, 03 May 2009 23:49:35 +0100 latexdraw (2.0.2+1-1) unstable; urgency=low * New upstream release. * Modify clean target to properly clean up. -- Stuart Prescott Sun, 03 May 2009 17:51:09 +0100 latexdraw (2.0.1+1-1) unstable; urgency=low * New upstream release. * Re-enable license and release notes in About box. * Update copyright years in debian/copyright. -- Stuart Prescott Thu, 23 Apr 2009 23:48:45 +0100 latexdraw (2.0.0+2-1) unstable; urgency=low * Adjusted repackaging to remove pre-built javadoc API documentation. * Fix link to on-line help pages. -- Stuart Prescott Thu, 23 Apr 2009 22:54:57 +0100 latexdraw (2.0.0+1-1) unstable; urgency=low * New upstream release * Associate latexdraw with image/svg+xml since that is its new native image format. -- Stuart Prescott Thu, 23 Apr 2009 16:58:58 +0100 latexdraw (1.9.5+1-4) unstable; urgency=low * Update copyright format. * Include new version of repackaging script. * Include get-orig-source target and update watch file. * Update syntax in .desktop files. * Bump standards version to 3.8.1 (no changes required). -- Stuart Prescott Mon, 20 Apr 2009 23:45:10 +0100 latexdraw (1.9.5+1-3) unstable; urgency=low * Include openjdk-6 in the tests for available JREs in /usr/bin/latexdraw. * Remove statement from debian/copyright about why the package is not in main. * Remove unneeded targets from debian/rules. * Add to copyright file the copyright information for PictureChooser.java which contains example code from Sun Microsystems. * Convert debian/copyright into machine-readable form. * Remove "-client" from build call as it is no longer required with openjdk-6-jdk 6b11-1. -- Stuart Prescott Wed, 16 Jul 2008 23:27:08 +0100 latexdraw (1.9.5+1-2) unstable; urgency=low * Change Build-Depends to use openjdk-6-jdk instead of sun-java6-jdk * Move from contrib to main since all Build-Depends are now in main -- Stuart Prescott Tue, 15 Jul 2008 19:29:49 +0100 latexdraw (1.9.5+1-1) unstable; urgency=low * Add source revision to the Debianised source tarball * Remove docs from source tarball and regenerate during build * Omit API documentation from build for end-user program but leave target in debian/rules for making it * Include help files in doc-base -- Stuart Prescott Tue, 01 Jul 2008 00:38:18 +0100 latexdraw (1.9.5-2) unstable; urgency=low * Include Homepage field in debian/control * Bump standards version to 3.8.0 (no changes required) -- Stuart Prescott Wed, 9 Jan 2008 14:40:35 +0000 latexdraw (1.9.5-1) unstable; urgency=low * New upstream release -- Stuart Prescott Mon, 5 Nov 2007 00:45:30 +0000 latexdraw (1.9.4-1) unstable; urgency=low * New upstream release -- Stuart Prescott Tue, 30 Oct 2007 18:36:42 +0000 latexdraw (1.9.3-1) unstable; urgency=low * New upstream release -- Stuart Prescott Tue, 3 July 2007 00:14:04 +0100 latexdraw (1.9.1-1) unstable; urgency=low * Initial packaging efforts. * Initial release (Closes: #431905) -- Stuart Prescott Wed, 11 Apr 2007 15:10:01 +0100 debian/latexdraw.manpages0000644000000000000000000000002310645263346012702 0ustar debian/latexdraw.1 debian/copyright0000644000000000000000000000517511770205102011124 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: LaTeXDraw Upstream-Contact: Arnaud BLOUIN Source: http://latexdraw.sourceforge.net/ The compiled java (*.class) and archives (*.jar) were stripped from the downloaded file to create the 'orig' source package. See the file README.Debian-source for full details. Files: * Copyright: © 2005-2010, Arnaud BLOUIN License: GPL-2+ Files: latexDraw/ui/dialog/PictureChooser.java Copyright: © 2004, Sun Microsystems, Inc. © 2005-2008, Arnaud BLOUIN License: GPL-2+ and other Files: debian/* Copyright: © 2007-2011, Stuart Prescott License: GPL-2+ License: GPL-2+ On Debian systems, the complete text of the GNU General Public License, version 2, can be found in /usr/share/common-licenses/GPL-2. License: other Sections are adapted from the JavaSwing.jar demo code source. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . -Redistribution of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . -Redistribution in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . Neither the name of Sun Microsystems, Inc. or the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission. . This software is provided "AS IS," without a warranty of any kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, 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 THIS SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. . You acknowledge that this software is not designed, licensed or intended for use in the design, construction, operation or maintenance of any nuclear facility. debian/control0000644000000000000000000000234212144450416010573 0ustar Source: latexdraw Section: graphics Priority: optional Maintainer: Stuart Prescott Build-Depends: debhelper (>= 7.3.5~) Build-Depends-Indep: default-jdk (>= 1:1.6) | java6-sdk, ant, imagemagick, libjiu-java, libjlibeps-java Standards-Version: 3.9.4 Homepage: http://latexdraw.sourceforge.net/ Package: latexdraw Architecture: all Depends: default-jre (>= 1:1.6) | java6-runtime, libjiu-java, libjlibeps-java, java-wrappers, ${misc:Depends} Recommends: texlive-pstricks, texlive-base-bin, texlive-latex-base, ghostscript Suggests: ttf-mscorefonts-installer Description: vector drawing program for LaTeX using PSTricks LaTeXDraw is a free PSTricks code generator or PSTricks editor for LaTeX. It has the usual drawing tools (lines, rectangles, circles, Bezier curves) and can resize, rotate, move and join objects using vector transformations. LaTeXDraw uses SVG as its file format and figures can be exported as PSTricks code, pdf, eps, jpg, bmp, png, ppm. . PSTricks is an extension of LaTeX which allows the creation of drawings, diagrams and graphs in 2D or 3D. debian/rules0000755000000000000000000000416312144445457010264 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. # export DH_VERBOSE=1 # If the user has not explicitly set JAVA_HOME, export sensible value # to make sure that the correct compiler is used by ant. # * prefer openjdk-6 then sun-java6; # * include both multi-arch and non-multi-arch paths for ease of backporting # "export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-i386" or similar if you want # to build locally using openjdk-7. JAVA_HOME ?= $(shell echo \ ` for jre in \ /usr/lib/jvm/default-java \ /usr/lib/jvm/java-7-openjdk-\`dpkg-architecture -qDEB_BUILD_ARCH\` \ /usr/lib/jvm/java-6-openjdk-\`dpkg-architecture -qDEB_BUILD_ARCH\` \ /usr/lib/jvm/java-6-openjdk \ ; do \ test -d $$jre && test -f $$jre/bin/javac && echo $$jre && break ; \ done ` \ ) export JAVA_HOME %: dh $@ override_dh_auto_build: ant -Dlib.dir=/usr/share/java compile ant -Dlib.dir=/usr/share/java jar convert -geometry 32x32 res/LaTeXDrawIcon.png out/latexdraw32.xpm convert -geometry 16x16 res/LaTeXDrawIcon.png out/latexdraw16.xpm override_dh_auto_clean: rm -f build-stamp find . -name \*.jar -exec rm -f {} \; find . -name \*.class -exec rm -f {} \; rm -rf out/ api/ dh_clean # A target for building the API docs with javadoc is provided here # but is not actually used in the Debian package. To successfully # build the API documentation, the packages # libjiu-java-doc, libjlibeps-java-doc # must be installed too. apidocs: build ant -Dlib.dir=/usr/share/java doc override_dh_installchangelogs: dh_installchangelogs -k release_note.txt # Be explicit given that there is plenty of confusion about what this target means get-orig-source: get-latest-source get-latest-source: cd $(dir $_).. && \ uscan=$$(uscan --report --dehs --upstream-version 0) && \ uver=$$(echo "$$uscan" | sed -n 's,\(.*\),\1,p') && \ uurl=$$(echo "$$uscan" | sed -n 's,\(.*\),\1,p') && \ echo debian/repackage --upstream-version "$${uver}" "$${uurl}" $(CURDIR) &&\ sh debian/repackage --upstream-version "$${uver}" "$${uurl}" $(CURDIR) .PHONY: get-orig-source get-latest-source debian/latexdraw.mime0000644000000000000000000000051211174147760012040 0ustar application/x-latexdraw-project; latexdraw %s; description="LaTeXDraw project"; nametemplate=%s.ldp; test=test -n "$DISPLAY" ; edit=latexdraw %s; compose=latexdraw '%s' image/svg+xml; latexdraw '%s'; description="Scalable Vector Graphics"; nametemplate=%s.svg; test=test -n "$DISPLAY"; edit=latexdraw '%s'; compose=latexdraw '%s'