debian/0000755000000000000000000000000012165544136007175 5ustar debian/source/0000755000000000000000000000000012165503466010476 5ustar debian/source/format0000644000000000000000000000001412165503466011704 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012165544004010616 5ustar debian/patches/java7-compat.patch0000644000000000000000000000142512165503466014141 0ustar Description: Compatibility patch for Java 7 Origin: http://sourceforge.net/projects/jpodrenderer/forums/forum/841333/topic/5320298 Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/libiscwt-java/+bug/888963 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678032 --- a/src/de/intarsys/cwt/font/FontEnvironment.java 2010-06-25 02:47:34.000000000 -0430 +++ b/src/de/intarsys/cwt/font/FontEnvironment.java 2012-08-14 21:21:18.000000000 -0430 @@ -102,7 +102,7 @@ String definition = null; // force FontManager initialization Font.decode("dummy").getFamily(); //$NON-NLS-1$ - definition = FontManager.getFontPath(true); + definition = sun.font.SunFontManager.getInstance().getPlatformFontPath(true); if (definition == null) { return new File[0]; } debian/patches/series0000644000000000000000000000005612165544004012034 0ustar java7-compat.patch java6andjava7-compat.patch debian/patches/java6andjava7-compat.patch0000644000000000000000000000557712165544004015561 0ustar Index: libiscwt-java-5.3.20100629/src/de/intarsys/cwt/font/FontEnvironment.java =================================================================== --- libiscwt-java-5.3.20100629.orig/src/de/intarsys/cwt/font/FontEnvironment.java 2013-07-03 03:10:21.395832976 +0800 +++ libiscwt-java-5.3.20100629/src/de/intarsys/cwt/font/FontEnvironment.java 2013-07-05 19:05:07.295469597 +0800 @@ -40,7 +40,6 @@ import java.util.logging.Level; import java.util.logging.Logger; -import sun.font.FontManager; import de.intarsys.cwt.freetype.Face; import de.intarsys.cwt.freetype.Freetype; import de.intarsys.cwt.freetype.Library; @@ -92,6 +91,56 @@ return fontFiles.toArray(new File[fontFiles.size()]); } + + // sun.font.FontManager openjdk6 + // sun.font.SunFontManager openjdk7 + static boolean mIsOpenJDK6; + static Class mClass; + static java.lang.reflect.Method mMethod; + static Object mContext; + static { + try { + mClass=Class.forName("sun.font.SunFontManager"); + mIsOpenJDK6=false; + } catch (ClassNotFoundException e) { + mIsOpenJDK6=true; + try { + mClass=Class.forName("sun.font.FontManager"); + } catch (ClassNotFoundException e1) { + // should never go here + e1.printStackTrace(); + } + } + if (mIsOpenJDK6){ + //definition = FontManager.getFontPath(true); + try { + mMethod=mClass.getMethod("getFontPath", boolean.class); + mContext=null; + } catch (SecurityException e) { + e.printStackTrace(); + } catch (NoSuchMethodException e) { + e.printStackTrace(); + } + } else { + // definition = sun.font.SunFontManager.getInstance().getPlatformFontPath(true); + try { + mMethod=mClass.getMethod("getInstance"); + mContext=mMethod.invoke(null); + mMethod=mClass.getMethod("getPlatformFontPath", boolean.class); + } catch (NoSuchMethodException e) { + e.printStackTrace(); + } catch (SecurityException e) { + e.printStackTrace(); + } catch (IllegalAccessException e) { + e.printStackTrace(); + } catch (IllegalArgumentException e) { + e.printStackTrace(); + } catch (java.lang.reflect.InvocationTargetException e) { + e.printStackTrace(); + } + } + } + /** * This method determines the system's font directories. * @@ -102,7 +151,17 @@ String definition = null; // force FontManager initialization Font.decode("dummy").getFamily(); //$NON-NLS-1$ - definition = sun.font.SunFontManager.getInstance().getPlatformFontPath(true); + try { + definition=(String)mMethod.invoke(mContext, true); + } catch (IllegalArgumentException e) { + e.printStackTrace(); + } catch (IllegalAccessException e) { + e.printStackTrace(); + } catch (java.lang.reflect.InvocationTargetException e) { + e.printStackTrace(); + } catch (java.lang.ClassCastException e){ + e.printStackTrace(); + } if (definition == null) { return new File[0]; } debian/control0000644000000000000000000000356712165503466010614 0ustar Source: libiscwt-java Section: java Priority: extra Maintainer: Debian Java Maintainers Uploaders: Steffen Moeller Build-Depends: debhelper (>= 7), default-jdk, libswt-gtk-3-java, libisrt-java, libisfreetype-java, javahelper (>= 0.37) Standards-Version: 3.9.4 Homepage: http://opensource.intarsys.de/home/en/index.php?n=OpenSource.IsCWT Vcs-Svn: svn://anonscm.debian.org/pkg-java/trunk/libiscwt-java/ Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-java/trunk/libiscwt-java/ Package: libiscwt-java Architecture: all Depends: libisfreetype-java, libisnativec-java, libisrt-java, libswt-gtk-3-java, ${misc:Depends} Recommends: ${java:Recommends} Description: abstractions and Java implementations for rendering PDF To built a flexible PDF rendering one first needed some basics functionality to deal with fonts, images and general platform abstractions. The result is isCWT. It contains all abstraction and implementations needed for rendering PDF that are not related to PDF itself. This library is built and used primarily for jPod Renderer, so one is likely to miss some features when using it in another context. Package: libiscwt-java-doc Architecture: all Depends: ${misc:Depends} Recommends: ${java:Recommends} Section: doc Description: Javadoc API description for isCWT To built a flexible PDF rendering one first needed some basics functionality to deal with fonts, images and general platform abstractions. The result is isCWT. It contains all abstraction and implementations needed for rendering PDF that are not related to PDF itself. This library is built and used primarily for jPod Renderer, so one is likely to miss some features when using it in another context. . This package contains autogenerated documentation from the Java source code, consisting of HTML files describing the library for programmers. debian/javabuild0000644000000000000000000000001612165503466011057 0ustar iscwt.jar src debian/libiscwt-java.jlibs0000644000000000000000000000001212165503466012753 0ustar iscwt.jar debian/compat0000644000000000000000000000000212165503466010374 0ustar 7 debian/watch0000644000000000000000000000011312165503466010222 0ustar version=3 http://sf.net/jpodlib/isCWT\.(.*)\.zip debian debian/orig-tar.sh debian/changelog0000644000000000000000000000377112165544136011057 0ustar libiscwt-java (5.3.20100629-3) unstable; urgency=low [ Miguel Landaeta ] * Team upload. * Bump Standards-Version to 3.9.4. No changes were required. * Fix vcs-field-not-canonical lintian warning. * Fix extended-description-is-probably-too-short lintian warning. * Fix needless-dependency-on-jre lintian warning. [ James Page ] * Fix FTBFS with openjdk-7 as default-jdk (LP: #888963) (Closes: 678032): - d/patches/java7-compat.patch: Update usage of FontManager for Java 7. [ ShuxiongYe ] * Compatible with both openjdk-6 and openjdk-7 - debian/patch/java6andjava7-compat.patch -- ShuxiongYe Fri, 05 Jul 2013 18:59:40 +0800 libiscwt-java (5.3.20100629-2) unstable; urgency=low [ Miguel Landaeta ] * Team upload. * Use public access URL in Vcs-Svn field. (Closes: #670276). * Bump Standards-Version to 3.9.3. No changes were required. [ Niels Thykier ] * Updated description. * Use swt.jar rather than swt-gtk-3.7.jar. (Closes: #670915) * Rebuild in sid environment. (Closes: #663396) -- Niels Thykier Mon, 30 Apr 2012 15:07:59 +0200 libiscwt-java (5.3.20100629-1) unstable; urgency=low * Team upload. * New upstream release. * Switch to source format 3.0. * Fix Build-Depends. (Closes: #629736) * Update Standards-Version: 3.9.2. * Implement get-orig-source and drop javadoc from orig-tarball. * Switch to javahelper. * Drop versioned binary package. -- Torsten Werner Sun, 04 Sep 2011 01:23:11 +0200 libiscwt-java (5.2.20091102-2) unstable; urgency=low * Fix build dependencies (Closes: #573682) Many thanks go to Lucas, Hideki and Torsten for their support. * Added debian/README.Debian. * Cleaned up empty files in debian folder. -- Steffen Moeller Fri, 23 Apr 2010 23:29:54 +0200 libiscwt-java (5.2.20091102-1) unstable; urgency=low * Initial release (Closes: #565695). -- Steffen Moeller Mon, 18 Jan 2010 00:29:38 +0100 debian/copyright0000644000000000000000000000412012165503466011126 0ustar This work was packaged for Debian by: Steffen Möller on Mon, 18 Jan 2010 00:29:38 +0100 It was downloaded from http://opensource.intarsys.de/home/en/index.php?n=IsCWT.Download Upstream Authors: Bernd Wild Michael Traut Karl Kagermeier the three are leading the company intarsys together. Explicit authorships are not specified. Copyright: Copyright (c) 2008, intarsys consulting GmbH intarsys@intarsys.de License: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions 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 intarsys nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The Debian packaging is: Copyright (C) 2010 Steffen Moeller and distributed under the same license. debian/libiscwt-java-doc.javadoc0000644000000000000000000000001112165503466014021 0ustar internal debian/rules0000755000000000000000000000041512165503466010256 0ustar #!/usr/bin/make -f export JAVA_HOME=/usr/lib/jvm/default-java export CLASSPATH=/usr/share/java/isnativec.jar:/usr/share/java/isfreetype.jar:/usr/share/java/isrt.jar:rt.jar:/usr/share/java/swt.jar %: dh --with javahelper $@ get-orig-source: uscan --force-download debian/README.source0000644000000000000000000000077312165503466011364 0ustar libiscwt-java for Debian ------------------------ The lib directory with lib/iscwt.jar lib/isfreetype.jar lib/isnativec.jar lib/isrt.jar lib/jna.jar and also doc/3rd_party_licenses with doc/3rd_party_licenses/freetype_license.txt doc/3rd_party_licenses/FTL.txt doc/3rd_party_licenses/jna_license.txt doc/3rd_party_licenses/lgpl-2.1.txt were manually removed from the source tree. Also, the unzipped folder "distribution" was changed to the versioned package name prior to preparing. the orig.tar.gz. debian/orig-tar.sh0000755000000000000000000000053612165503466011265 0ustar #!/bin/sh -e ZIP=$3 TAR=../libiscwt-java_$2.orig.tar.gz DIR=libiscwt-java-$2 unzip $ZIP mv distribution $DIR tar -c -z -f $TAR --exclude '*.jar' --exclude '*.zip' --exclude '*/javadoc/*' $DIR rm -rf $DIR $ZIP # move to directory 'tarballs' if [ -r .svn/deb-layout ]; then . .svn/deb-layout mv $TAR $origDir echo "moved $TAR to $origDir" fi debian/README.Debian0000644000000000000000000000051112165503466011234 0ustar Upstream is only sparsely updating its packages. Nonetheless, it may happen that some action is required because of the dynamics among the build dependencies. Whoever is experiencing such, please feel free to perform a respective update, just also adjust the sources in the pkg-java repository on alioth. Many thanks! Steffen