[pkg-java] r5290 - in trunk: . omegat omegat/debian omegat/debian/patches

tiagosab-guest at alioth.debian.org tiagosab-guest at alioth.debian.org
Fri Jan 4 19:06:44 UTC 2008


Author: tiagosab-guest
Date: 2008-01-04 19:06:44 +0000 (Fri, 04 Jan 2008)
New Revision: 5290

Added:
   trunk/omegat/
   trunk/omegat/debian/
   trunk/omegat/debian/README.Debian
   trunk/omegat/debian/ant.properties
   trunk/omegat/debian/changelog
   trunk/omegat/debian/compat
   trunk/omegat/debian/control
   trunk/omegat/debian/copyright
   trunk/omegat/debian/dirs
   trunk/omegat/debian/omegat.desktop
   trunk/omegat/debian/omegat.doc-base
   trunk/omegat/debian/omegat.install
   trunk/omegat/debian/omegat.links
   trunk/omegat/debian/omegat.manpages
   trunk/omegat/debian/omegat.menu
   trunk/omegat/debian/omegat.sgml
   trunk/omegat/debian/patches/
   trunk/omegat/debian/patches/00list
   trunk/omegat/debian/patches/01-extra-jars-in-new-location.dpatch
   trunk/omegat/debian/patches/02-edit-wrapper.dpatch
   trunk/omegat/debian/patches/03-location-of-help-files.dpatch
   trunk/omegat/debian/patches/04-get-rid-of-MRJAdapter.dpatch
   trunk/omegat/debian/repack-source.sh
   trunk/omegat/debian/rules
   trunk/omegat/debian/watch
Log:
Initial import of omegat.


Added: trunk/omegat/debian/README.Debian
===================================================================
--- trunk/omegat/debian/README.Debian	                        (rev 0)
+++ trunk/omegat/debian/README.Debian	2008-01-04 19:06:44 UTC (rev 5290)
@@ -0,0 +1,21 @@
+OmegaT for Debian
+-----------------
+
+* The source archive available at sourceforge is not source-only, as
+it contains executable files for another platform without sources and
+the jar files for three libraries: htmlparser, MRJAdapter and
+vldocking.
+    ** MRJAdapter is a Mac-only library, so I'm removing it from the
+    source.
+    ** htmlparser and vldocking are available in debian; just remove 
+    it from the original tarball.
+
+* The package does not install in fhs directories, but rather in a
+single dir. All installation is hence done in debian files, and some
+patches have to be applied as to install files in debian canonical
+locations.
+    ** jar files are installed in /usr/share/java
+    ** sh wrapper is installed in /usr/bin
+    ** docs are installed in /usr/share/doc/omegat/html
+
+ -- Tiago Saboga <tiagosaboga at gmail.com>, Thu,  3 Jan 2008 23:48:42 -0200

Added: trunk/omegat/debian/ant.properties
===================================================================
--- trunk/omegat/debian/ant.properties	                        (rev 0)
+++ trunk/omegat/debian/ant.properties	2008-01-04 19:06:44 UTC (rev 5290)
@@ -0,0 +1,9 @@
+file.reference.htmlparser.jar=/usr/share/java/libhtmlparser.jar
+file.reference.vldocking_2.0.6d.jar=/usr/share/java/vldocking.jar
+javac.classpath=\
+    ${reference.lib-mnemonics.jar}:\
+    ${file.reference.htmlparser.jar}:\
+    ${file.reference.vldocking_2.0.6d.jar}
+reference.lib-mnemonics.jar=lib-mnemonics/dist/lib-mnemonics.jar
+
+javadoc.link=/usr/share/doc/classpath-doc/api

Added: trunk/omegat/debian/changelog
===================================================================
--- trunk/omegat/debian/changelog	                        (rev 0)
+++ trunk/omegat/debian/changelog	2008-01-04 19:06:44 UTC (rev 5290)
@@ -0,0 +1,79 @@
+omegat (1.7.3.dfsg0-2) unstable; urgency=low
+
+  * Initial release (Closes: #448867).
+  * Bump Standards-Version to 3.7.3 (no changes required).
+  * Change Priority to optional.
+  * Update copyright file: new copyright holders (Tiago Saboga, Zoltan
+    Bartko).
+  * Remove extra spaces from omegat.doc-base.
+  * Add descriptions to patches.
+  * Updated README.Debian.
+  * Remove executable for other platform without source (see
+    README.Debian).
+
+ -- Tiago Saboga <tiagosaboga at gmail.com>  Fri, 04 Jan 2008 00:15:14 -0200
+
+omegat (1.7.3.dfsg0-1) unstable; urgency=low
+
+  * New upstream release.
+  * Removed deprecated Encoding field from omegat.desktop.
+  * Moved dependencies from Build-Depends to Build-Depends-Indep.
+  * Moved Homepage pseudo-header to regular field in debian/control.
+  * Corrected repack-source.sh.
+  * Updated README.Debian.
+
+ -- Tiago Saboga <tiagosaboga at gmail.com>  Thu, 29 Nov 2007 10:36:51 -0200
+
+omegat (1.7.2.dfsg0-2) unstable; urgency=low
+
+  * Added missing copyright holders and remove mentions to version in
+    copyright file.
+
+ -- Tiago Saboga <tiagosaboga at gmail.com>  Thu, 15 Nov 2007 16:50:20 -0200
+
+omegat (1.7.2.dfsg0-1) unstable; urgency=low
+
+  * Remove included binary-only jars (libraries).
+
+ -- Tiago Saboga <tiagosaboga at gmail.com>  Thu, 08 Nov 2007 08:41:15 -0200
+
+omegat (1.7.2-2) unstable; urgency=low
+
+  * Corrected menu file; OmegaT now lies in Applications/Office.
+  * Convert omegat icon to xpm.
+  * Removed binary (jar) files from package.
+
+ -- Tiago Saboga <tiagosaboga at gmail.com>  Thu, 01 Nov 2007 14:53:10 -0200
+
+omegat (1.7.2-1) unstable; urgency=low
+
+  * New upstream version.
+  * Added watch file.
+  * Added get-orig-source target to debian/rules.
+
+ -- Tiago Saboga <tiagosaboga at gmail.com>  Wed, 17 Oct 2007 14:57:49 -0200
+
+omegat (1.6.1.3-3) unstable; urgency=low
+
+  * Add support to sun-java6.
+
+ -- Tiago Saboga <tiagosaboga at gmail.com>  Thu, 15 Feb 2007 23:59:08 -0200
+
+omegat (1.6.1.3-2) unstable; urgency=low
+
+  * Add dependencies alternatives (thanks Andrius Aštrauskas).
+
+ -- Tiago Saboga <tiagosaboga at gmail.com>  Fri,  2 Feb 2007 15:52:25 -0200
+
+omegat (1.6.1.3-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Tiago Saboga <tiagosaboga at gmail.com>  Mon, 22 Jan 2007 23:13:03 -0200
+
+omegat (1.6.1.2-1) unstable; urgency=low
+
+  * Initial release; for now it will not go into Debian (see readme).
+
+ -- Tiago Saboga <tiagosaboga at gmail.com>  Sun, 10 Dec 2006 21:09:11 -0200
+

Added: trunk/omegat/debian/compat
===================================================================
--- trunk/omegat/debian/compat	                        (rev 0)
+++ trunk/omegat/debian/compat	2008-01-04 19:06:44 UTC (rev 5290)
@@ -0,0 +1 @@
+5

Added: trunk/omegat/debian/control
===================================================================
--- trunk/omegat/debian/control	                        (rev 0)
+++ trunk/omegat/debian/control	2008-01-04 19:06:44 UTC (rev 5290)
@@ -0,0 +1,29 @@
+Source: omegat
+Section: contrib/editors
+Priority: optional
+Maintainer: Tiago Saboga <tiagosaboga at gmail.com>
+Build-Depends: debhelper (>= 5), sun-java5-jdk, dpatch, ant
+Build-Depends-Indep: docbook-to-man, imagemagick, libvldocking-java, libhtmlparser-java, tofrodos
+Homepage: http://www.omegat.org/omegat/omegat.html
+Standards-Version: 3.7.3
+
+Package: omegat
+Architecture: all
+Depends: sun-java6-jre | sun-java5-jre | sun-j2sdk1.5 | sun-j2re1.5, libvldocking-java, libhtmlparser-java
+Description: Computer Assisted Translation (CAT) tool
+ OmegaT's main features are
+  - ability to run on any operating system supporting Java
+  - use of any valid TMX file as translation reference
+  - flexible sentence segmenting (using an SRX-like method)
+  - searches in the project and the reference translation memories
+  - searches in any directory including OmegaT-readable files
+  - fuzzy matching
+  - smart handling of projects including complex directory hierarchies
+  - support for glossaries (terminology checks)
+  - easy to understand documentation and tutorial
+  - localization in a number of languages.
+ .
+ OmegaT supports OpenDocument files, Microsoft Office files (using
+ OpenOffice.org as a conversion filter, or by conversion to HTML),
+ OpenOffice.org or StarOffice files, as well as (X)HTML, Java localization
+ files or plain text files.

Added: trunk/omegat/debian/copyright
===================================================================
--- trunk/omegat/debian/copyright	                        (rev 0)
+++ trunk/omegat/debian/copyright	2008-01-04 19:06:44 UTC (rev 5290)
@@ -0,0 +1,72 @@
+This package was debianized by Tiago Saboga <tiagosaboga at gmail.com> on
+Sun, 10 Dec 2006 21:09:11 -0200.
+
+It was downloaded from <http://sourceforge.net/projects/omegat>
+
+Upstream Authors:
+
+  OmegaT is originally the work of Keith Godfrey.
+  Marc Prior is the coordinator of the OmegaT project.
+
+  Previous contributors include:
+  (alphabetical order)
+
+  Code has been contributed by
+    Zoltan Bartko
+    Didier Briel (release manager)
+    Kim Bruning
+    Sacha Chua
+    Thomas Huriaux
+    Maxym Mykhalchuk
+    Henry Pijffers
+    Tiago Saboga
+    Benjamin Siband
+    Martin Wunderlich
+
+  Other contributions by
+    Sabine Cretella
+    Dmitri Gabinski
+    Jean-Christophe Helary
+    Vito Smolej(documentation manager)
+    Samuel Murray
+    Marc Prior (localization manager)
+    and many, many more very helpful people
+
+  OmegaT uses the following libraries:
+    HTMLParser by Somik Raha, Derrick Oswald and others (LGPL License).
+    http://sourceforge.net/projects/htmlparser
+  
+    VLDocking Framework by VLSolutions (CeCILL License).
+    http://www.vlsolutions.com/en/products/docking/
+
+Copyright: 
+   Copyright(C) 2000-2007 Keith Godfrey, Maxym Mykhalchuk, Henry
+   Pijffers, Benjamin Siband, Sandra Jean Chua, Kim Bruning, Martin
+   Wunderlich, Didier Briel and Thomas Huriaux.
+   Copyright 2007 Zoltan Bartko
+   Copyright 2007 Tiago Saboga
+
+License: 
+
+   OmegaT is free software; you can redistribute it and/or
+   modify it under the terms of the GNU General Public License as
+   published by the Free Software Foundation; either version 2 of the
+   License, or (at your option) any later version.
+
+   OmegaT is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+   or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
+   License for more details.
+
+   The Debian packaging is (C) 2006-2007, Tiago Saboga
+   <tiagosaboga at gmail.com> and is licensed under the GPL.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software Foundation,
+   Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian GNU/Linux systems, the complete text of the latest version
+of the GNU General Public License can be found in
+/usr/share/common-licenses/GPL.
+
+For more details, see /usr/share/doc/html/legalNotices.html.

Added: trunk/omegat/debian/dirs
===================================================================
--- trunk/omegat/debian/dirs	                        (rev 0)
+++ trunk/omegat/debian/dirs	2008-01-04 19:06:44 UTC (rev 5290)
@@ -0,0 +1,6 @@
+usr/bin
+usr/share/doc/omegat/html
+usr/share/java
+usr/share/omegat/html-template
+usr/share/omegat/images
+

Added: trunk/omegat/debian/omegat.desktop
===================================================================
--- trunk/omegat/debian/omegat.desktop	                        (rev 0)
+++ trunk/omegat/debian/omegat.desktop	2008-01-04 19:06:44 UTC (rev 5290)
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Name=OmegaT
+Comment=Computer-Assisted Translation tool
+Exec=omegat
+Icon=/usr/share/omegat/images/OmegaT.xpm
+Type=Application
+Categories=Office;Development;Translation;Java;
+X-AppInstall-Package=omegat

Added: trunk/omegat/debian/omegat.doc-base
===================================================================
--- trunk/omegat/debian/omegat.doc-base	                        (rev 0)
+++ trunk/omegat/debian/omegat.doc-base	2008-01-04 19:06:44 UTC (rev 5290)
@@ -0,0 +1,11 @@
+Document: omegat
+Title: OmegaT User Manual
+Author: Dmitri Gabinski, Jean-Christophe Helary, Samuel Murray and Maxym Mykhalchuk
+Abstract: This manual describes what omegat is
+ and how it can be used to translate documents.
+Section: Apps/Text
+
+Format: HTML
+Index: /usr/share/doc/omegat/html/en/index.html
+Files: /usr/share/doc/omegat/html/en/*.html
+

Added: trunk/omegat/debian/omegat.install
===================================================================
--- trunk/omegat/debian/omegat.install	                        (rev 0)
+++ trunk/omegat/debian/omegat.install	2008-01-04 19:06:44 UTC (rev 5290)
@@ -0,0 +1,6 @@
+release/readme*.txt usr/share/doc/omegat/
+release/join.html usr/share/doc/omegat/
+docs/*html usr/share/omegat/html-template
+dist/OmegaT.jar usr/share/java
+images/*{gif,png,xpm} usr/share/omegat/images/
+debian/omegat.desktop usr/share/applications

Added: trunk/omegat/debian/omegat.links
===================================================================
--- trunk/omegat/debian/omegat.links	                        (rev 0)
+++ trunk/omegat/debian/omegat.links	2008-01-04 19:06:44 UTC (rev 5290)
@@ -0,0 +1,13 @@
+/usr/share/doc/omegat/html/be /usr/share/omegat/html-template/be
+/usr/share/doc/omegat/html/de /usr/share/omegat/html-template/de
+/usr/share/doc/omegat/html/en /usr/share/omegat/html-template/en
+/usr/share/doc/omegat/html/eo /usr/share/omegat/html-template/eo
+/usr/share/doc/omegat/html/es /usr/share/omegat/html-template/es
+/usr/share/doc/omegat/html/fr /usr/share/omegat/html-template/fr
+/usr/share/doc/omegat/html/it /usr/share/omegat/html-template/it
+/usr/share/doc/omegat/html/ja /usr/share/omegat/html-template/ja
+/usr/share/doc/omegat/html/pt_BR /usr/share/omegat/html-template/pt_BR
+/usr/share/doc/omegat/html/ru /usr/share/omegat/html-template/ru
+/usr/share/doc/omegat/html/sh /usr/share/omegat/html-template/sh
+/usr/share/doc/omegat/html/sk /usr/share/omegat/html-template/sk
+/usr/share/doc/omegat/html/sq /usr/share/omegat/html-template/sq

Added: trunk/omegat/debian/omegat.manpages
===================================================================
--- trunk/omegat/debian/omegat.manpages	                        (rev 0)
+++ trunk/omegat/debian/omegat.manpages	2008-01-04 19:06:44 UTC (rev 5290)
@@ -0,0 +1 @@
+omegat.1

Added: trunk/omegat/debian/omegat.menu
===================================================================
--- trunk/omegat/debian/omegat.menu	                        (rev 0)
+++ trunk/omegat/debian/omegat.menu	2008-01-04 19:06:44 UTC (rev 5290)
@@ -0,0 +1,3 @@
+?package(omegat):needs="X11" section="Applications/Office"\
+  title="OmegaT" command="/usr/bin/omegat"\
+  icon="/usr/share/omegat/images/OmegaT.xpm"

Added: trunk/omegat/debian/omegat.sgml
===================================================================
--- trunk/omegat/debian/omegat.sgml	                        (rev 0)
+++ trunk/omegat/debian/omegat.sgml	2008-01-04 19:06:44 UTC (rev 5290)
@@ -0,0 +1,134 @@
+<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+
+<!-- Process this file with docbook-to-man to generate an nroff manual
+     page: `docbook-to-man manpage.sgml > manpage.1'.  You may view
+     the manual page with: `docbook-to-man manpage.sgml | nroff -man |
+     less'.  A typical entry in a Makefile or Makefile.am is:
+
+manpage.1: manpage.sgml
+	docbook-to-man $< > $@
+
+    
+	The docbook-to-man binary is found in the docbook-to-man package.
+	Please remember that if you create the nroff version in one of the
+	debian/rules file targets (such as build), you will need to include
+	docbook-to-man in your Build-Depends control field.
+
+  -->
+
+  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+  <!ENTITY dhfirstname "<firstname>Tiago</firstname>">
+  <!ENTITY dhsurname   "<surname>Saboga</surname>">
+  <!-- Please adjust the date whenever revising the manpage. -->
+  <!ENTITY dhdate      "<date>december 10, 2006</date>">
+  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+       allowed: see man(7), man(1). -->
+  <!ENTITY dhsection   "<manvolnum>1</manvolnum>">
+  <!ENTITY dhemail     "<email>tiagosaboga at gmail.com</email>">
+  <!ENTITY dhusername  "Tiago Saboga">
+  <!ENTITY dhucpackage "<refentrytitle>OMEGAT</refentrytitle>">
+  <!ENTITY dhpackage   "omegat">
+
+  <!ENTITY debian      "<productname>Debian</productname>">
+  <!ENTITY gnu         "<acronym>GNU</acronym>">
+  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
+]>
+
+<refentry>
+  <refentryinfo>
+    <address>
+      &dhemail;
+    </address>
+    <author>
+      &dhfirstname;
+      &dhsurname;
+    </author>
+    <copyright>
+      <year>2006</year>
+      <holder>&dhusername;</holder>
+    </copyright>
+    &dhdate;
+  </refentryinfo>
+  <refmeta>
+    &dhucpackage;
+
+    &dhsection;
+  </refmeta>
+  <refnamediv>
+    <refname>&dhpackage;</refname>
+
+    <refpurpose>Computer Assisted Translation (CAT) tool</refpurpose>
+  </refnamediv>
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+  <refsect1>
+    <title>DESCRIPTION</title>
+
+    <para>This manual page documents briefly the
+      <command>&dhpackage;</command> command.</para>
+
+    <para>This manual page was written for the &debian; distribution
+      because the original program does not have a manual page.
+      Instead, it has documentation in the html format; see below.</para>
+
+    <para><command>&dhpackage;</command> is actually a wrapper which launches
+      sun's java implementation and loads OmegaT's class. OmegaT is a program that 
+      assists translators by maintaining a translation memory. </para>
+
+  </refsect1>
+  <refsect1>
+    <title>OPTIONS</title>
+
+    <para>There are no documented options.</para>
+
+  </refsect1>
+  <refsect1>
+    <title>SEE ALSO</title>
+
+    <para>java (1).</para>
+
+    <para>The programs are documented fully by <citetitle>OmegaT User Manual</citetitle> 
+      available via the <application>OmegaT</application> help system.</para>
+      
+    <para>On Debian systems, the documentation can also be found in 
+      /usr/share/doc/omegat/html.</para>
+      
+  </refsect1>
+  <refsect1>
+    <title>AUTHOR</title>
+
+    <para>This manual page was written by &dhusername; &dhemail; for
+      the &debian; system (but may be used by others).  Permission is
+      granted to copy, distribute and/or modify this document under
+      the terms of the &gnu; General Public License, Version 2 any 
+	  later version published by the Free Software Foundation.
+    </para>
+	<para>
+	  On Debian systems, the complete text of the GNU General Public
+	  License can be found in /usr/share/common-licenses/GPL.
+	</para>
+
+  </refsect1>
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:2
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+-->
+
+

Added: trunk/omegat/debian/patches/00list
===================================================================
--- trunk/omegat/debian/patches/00list	                        (rev 0)
+++ trunk/omegat/debian/patches/00list	2008-01-04 19:06:44 UTC (rev 5290)
@@ -0,0 +1,4 @@
+01-extra-jars-in-new-location
+02-edit-wrapper
+03-location-of-help-files
+04-get-rid-of-MRJAdapter

Added: trunk/omegat/debian/patches/01-extra-jars-in-new-location.dpatch
===================================================================
--- trunk/omegat/debian/patches/01-extra-jars-in-new-location.dpatch	                        (rev 0)
+++ trunk/omegat/debian/patches/01-extra-jars-in-new-location.dpatch	2008-01-04 19:06:44 UTC (rev 5290)
@@ -0,0 +1,17 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01-extra-jars-in-new-location.dpatch by Tiago Saboga <tiagosaboga at gmail.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Adapt classpath to debian filesystem hierarchy..
+
+ at DPATCH@
+diff -urNad omegat-1.7.2.dfsg0~/manifest-template.mf omegat-1.7.2.dfsg0/manifest-template.mf
+--- omegat-1.7.2.dfsg0~/manifest-template.mf	2007-11-10 12:27:46.000000000 -0200
++++ omegat-1.7.2.dfsg0/manifest-template.mf	2007-11-10 12:34:03.000000000 -0200
+@@ -3,5 +3,5 @@
+ License: GNU Public License version 2
+ Specification-Version: 1
+ Implementation-Version: @version@
+-Class-Path: lib/lib-mnemonics.jar lib/htmlparser.jar lib/MRJAdapter.jar lib/vldocking_2.0.6d.jar
++Class-Path: omegat-lib-mnemonics.jar libhtmlparser.jar vldocking.jar
+ 


Property changes on: trunk/omegat/debian/patches/01-extra-jars-in-new-location.dpatch
___________________________________________________________________
Name: svn:executable
   + 

Added: trunk/omegat/debian/patches/02-edit-wrapper.dpatch
===================================================================
--- trunk/omegat/debian/patches/02-edit-wrapper.dpatch	                        (rev 0)
+++ trunk/omegat/debian/patches/02-edit-wrapper.dpatch	2008-01-04 19:06:44 UTC (rev 5290)
@@ -0,0 +1,27 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02-edit-wrapper.dpatch by Tiago Saboga <tiagosaboga at gmail.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Rewrite shell wrapper:
+## DP: - use /bin/sh instead of /bin/bash
+## DP: - look for sun's java vm
+
+ at DPATCH@
+diff -urNad omegat-1.7.2.dfsg0~/release/OmegaT omegat-1.7.2.dfsg0/release/OmegaT
+--- omegat-1.7.2.dfsg0~/release/OmegaT	2007-06-18 15:26:40.000000000 -0300
++++ omegat-1.7.2.dfsg0/release/OmegaT	2007-11-10 12:36:24.000000000 -0200
+@@ -1,3 +1,12 @@
+-#!/bin/bash
+-java -jar OmegaT.jar $*
++#!/bin/sh
+ 
++if [ -x /usr/lib/jvm/java-6-sun/bin/java ]
++    then JAVABIN=/usr/lib/jvm/java-6-sun/bin/java
++elif [ -x /usr/lib/jvm/java-1.5.0-sun/bin/java ]
++    then JAVABIN=/usr/lib/jvm/java-1.5.0-sun/bin/java
++else
++    echo "I could not find a suitable java binary."
++    exit 1
++fi
++
++exec $JAVABIN -jar /usr/share/java/OmegaT.jar $*


Property changes on: trunk/omegat/debian/patches/02-edit-wrapper.dpatch
___________________________________________________________________
Name: svn:executable
   + 

Added: trunk/omegat/debian/patches/03-location-of-help-files.dpatch
===================================================================
--- trunk/omegat/debian/patches/03-location-of-help-files.dpatch	                        (rev 0)
+++ trunk/omegat/debian/patches/03-location-of-help-files.dpatch	2008-01-04 19:06:44 UTC (rev 5290)
@@ -0,0 +1,111 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 03-location-of-help-files.dpatch by Tiago Saboga <tiagosaboga at gmail.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Change location of help files.
+
+ at DPATCH@
+diff -urNad omegat-1.7.2.dfsg0~/src/org/omegat/gui/HelpFrame.java omegat-1.7.2.dfsg0/src/org/omegat/gui/HelpFrame.java
+--- omegat-1.7.2.dfsg0~/src/org/omegat/gui/HelpFrame.java	2007-09-22 14:01:02.000000000 -0300
++++ omegat-1.7.2.dfsg0/src/org/omegat/gui/HelpFrame.java	2007-11-10 12:43:20.000000000 -0200
+@@ -210,8 +210,7 @@
+         StringBuffer templateText = new StringBuffer(1024);
+         try {
+             BufferedReader templateFile = new BufferedReader(new FileReader(
+-                  StaticUtils.installDir() + File.separator
+-                + OConsts.HELP_DIR + File.separator
++                  OConsts.HELP_DIR + File.separator
+                 + OConsts.HELP_LANG_INDEX));
+             for (String line = templateFile.readLine();
+                  line != null;
+@@ -229,7 +228,7 @@
+         StringBuffer translations = new StringBuffer(1024);
+         translations.append("<table>\n");
+         File docDir = new File(
+-            StaticUtils.installDir() + File.separator + OConsts.HELP_DIR);
++            OConsts.HELP_DIR);
+         File[] subDirs = docDir.listFiles();
+         Arrays.sort(subDirs); // sort on alphabetical order
+         for (int i = 0; i < subDirs.length; i++) {
+@@ -430,8 +429,7 @@
+     {
+         try {
+             return   "file:"                                                          // NOI18N
+-                   + (new File(  StaticUtils.installDir()
+-                              + File.separator + OConsts.HELP_DIR + File.separator
++                   + (new File(  OConsts.HELP_DIR + File.separator
+                               + m_language + File.separator + file)).getCanonicalPath();
+         }
+         catch (IOException exception) {
+@@ -476,8 +474,7 @@
+     private static String getDocVersion(String locale) {
+         // Check if there's a manual for the specified locale
+         // (Assume yes if the index file is there)
+-        File index = new File(StaticUtils.installDir()
+-            + File.separator + OConsts.HELP_DIR
++        File index = new File(OConsts.HELP_DIR
+             + File.separator + locale
+             + File.separator + OConsts.HELP_HOME);
+         if (!index.exists())
+@@ -485,8 +482,7 @@
+ 
+         // Check if the doc dir for the specified locale
+         // contains a file containing the doc version
+-        File v = new File(StaticUtils.installDir()
+-            + File.separator + OConsts.HELP_DIR
++        File v = new File(OConsts.HELP_DIR
+             + File.separator + locale
+             + File.separator + "version.properties");
+         if (!v.exists())
+diff -urNad omegat-1.7.2.dfsg0~/src/org/omegat/gui/main/MainWindow.java omegat-1.7.2.dfsg0/src/org/omegat/gui/main/MainWindow.java
+--- omegat-1.7.2.dfsg0~/src/org/omegat/gui/main/MainWindow.java	2007-09-20 09:52:52.000000000 -0300
++++ omegat-1.7.2.dfsg0/src/org/omegat/gui/main/MainWindow.java	2007-11-10 12:43:20.000000000 -0200
+@@ -66,6 +66,7 @@
+ import javax.swing.text.BadLocationException;
+ import javax.swing.undo.CannotRedoException;
+ import javax.swing.undo.CannotUndoException;
++import net.roydesign.mac.MRJAdapter;
+ 
+ import org.omegat.core.ProjectProperties;
+ import org.omegat.core.StringEntry;
+@@ -502,8 +503,7 @@
+         {
+             String language = detectInstantStartLanguage();
+             String filepath =
+-                    StaticUtils.installDir()
+-                    + File.separator + OConsts.HELP_DIR + File.separator
++                    OConsts.HELP_DIR + File.separator
+                     + language + File.separator
+                     + OConsts.HELP_INSTANT_START;
+             JTextPane instantArticlePane = new JTextPane();
+@@ -534,16 +534,14 @@
+         String country  = java.util.Locale.getDefault().getCountry().toUpperCase();
+ 
+         // Check if there's a translation for the full locale (lang + country)
+-        File isg = new File(StaticUtils.installDir()
+-            + File.separator + OConsts.HELP_DIR
++        File isg = new File(OConsts.HELP_DIR
+             + File.separator + language + "_" + country
+             + File.separator + OConsts.HELP_INSTANT_START);
+         if (isg.exists())
+             return language + "_" + country;
+ 
+         // Check if there's a translation for the language only
+-        isg = new File(StaticUtils.installDir()
+-            + File.separator + OConsts.HELP_DIR
++        isg = new File(OConsts.HELP_DIR
+             + File.separator + language
+             + File.separator + OConsts.HELP_INSTANT_START);
+         if(isg.exists())
+diff -urNad omegat-1.7.2.dfsg0~/src/org/omegat/util/OConsts.java omegat-1.7.2.dfsg0/src/org/omegat/util/OConsts.java
+--- omegat-1.7.2.dfsg0~/src/org/omegat/util/OConsts.java	2006-12-02 01:02:34.000000000 -0200
++++ omegat-1.7.2.dfsg0/src/org/omegat/util/OConsts.java	2007-11-10 12:43:20.000000000 -0200
+@@ -56,7 +56,7 @@
+     // help
+     public static final String HELP_HOME          = "index.html";            // NOI18N
+     public static final String HELP_INSTANT_START = "instantStartGuideNoTOC.html";// NOI18N
+-    public static final String HELP_DIR           = "docs";                   // NOI18N
++    public static final String HELP_DIR           = "/usr/share/omegat/html-template";                   // NOI18N
+     public static final String HELP_LANG_INDEX    = "languageIndex.html";                  // NOI18N
+     
+     // status file consts


Property changes on: trunk/omegat/debian/patches/03-location-of-help-files.dpatch
___________________________________________________________________
Name: svn:executable
   + 

Added: trunk/omegat/debian/patches/04-get-rid-of-MRJAdapter.dpatch
===================================================================
--- trunk/omegat/debian/patches/04-get-rid-of-MRJAdapter.dpatch	                        (rev 0)
+++ trunk/omegat/debian/patches/04-get-rid-of-MRJAdapter.dpatch	2008-01-04 19:06:44 UTC (rev 5290)
@@ -0,0 +1,65 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 04-get-rid-of-MRJAdapter.dpatch by Tiago Saboga <tiagosaboga at gmail.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Remove unneeded library (only useful to Mac OS).
+
+ at DPATCH@
+diff -urNad omegat-1.7.2.dfsg0~/src/org/omegat/gui/main/MainWindow.java omegat-1.7.2.dfsg0/src/org/omegat/gui/main/MainWindow.java
+--- omegat-1.7.2.dfsg0~/src/org/omegat/gui/main/MainWindow.java	2007-11-10 12:49:10.000000000 -0200
++++ omegat-1.7.2.dfsg0/src/org/omegat/gui/main/MainWindow.java	2007-11-10 12:50:14.000000000 -0200
+@@ -66,7 +66,6 @@
+ import javax.swing.text.BadLocationException;
+ import javax.swing.undo.CannotRedoException;
+ import javax.swing.undo.CannotUndoException;
+-import net.roydesign.mac.MRJAdapter;
+ 
+ import org.omegat.core.ProjectProperties;
+ import org.omegat.core.StringEntry;
+@@ -104,8 +103,6 @@
+ import com.vlsolutions.swing.docking.event.DockableStateWillChangeListener;
+ import com.vlsolutions.swing.docking.ui.DockingUISettings;
+ 
+-import net.roydesign.mac.MRJAdapter;
+-
+ /**
+  * The main window of OmegaT application.
+  *
+@@ -258,35 +255,8 @@
+         uiUpdateOnProjectClose();
+         initUIShortcuts();
+         
+-        try
+-        {
+-            // MacOSX-specific
+-            MRJAdapter.addQuitApplicationListener(new ActionListener()
+-            {
+-                public void actionPerformed(ActionEvent e)
+-                {
+-                    doQuit();
+-                }
+-            });
+-            MRJAdapter.addAboutListener(new ActionListener()
+-            {
+-                public void actionPerformed(ActionEvent e)
+-                {
+-                    doAbout();
+-                }
+-            });
+-        }
+-        catch(NoClassDefFoundError e)
+-        {
+-            Log.log(e);
+-        }
+-
+-        // all except MacOSX
+-        if(!StaticUtils.onMacOSX())   // NOI18N
+-        {
+-            projectMenu.add(separator2inProjectMenu);
+-            projectMenu.add(projectExitMenuItem);
+-        }
++	projectMenu.add(separator2inProjectMenu);
++	projectMenu.add(projectExitMenuItem);
+ 
+         // Add Language submenu to Options menu
+ 


Property changes on: trunk/omegat/debian/patches/04-get-rid-of-MRJAdapter.dpatch
___________________________________________________________________
Name: svn:executable
   + 

Added: trunk/omegat/debian/repack-source.sh
===================================================================
--- trunk/omegat/debian/repack-source.sh	                        (rev 0)
+++ trunk/omegat/debian/repack-source.sh	2008-01-04 19:06:44 UTC (rev 5290)
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+if [ $# -ne 3 ]
+then
+    echo "Usage: $0 option version filename"
+    echo "If option=--upstream-version, run uupdate after repacking sources."
+    exit
+fi
+
+VERSION=$2
+FILENAME=$3
+
+TMPDIR=`mktemp -d omegat-tmp`
+BASEDIR=$TMPDIR/omegat-${VERSION}.dfsg0
+mkdir "$BASEDIR"
+unzip -d "$BASEDIR" "$FILENAME"
+
+rm -r "$BASEDIR"/lib
+rm "$BASEDIR"/release/win32-specific/*exe 
+# find "$BASEDIR" -type f -exec file {} \; | grep "CRLF, CR" | sed 's/:.*//' | xargs fromdos 
+# find "$BASEDIR" -type f -exec file {} \; | grep CRLF | sed 's/:.*//' | xargs fromdos
+GZIP=-9 tar -C "$TMPDIR" -czf ../omegat_${VERSION}.dfsg0.orig.tar.gz "omegat-${VERSION}.dfsg0"
+rm -rf "$TMPDIR"
+
+if [ $1 = --upstream-version ] ;
+then
+    uupdate --upstream-version $2 $3
+fi


Property changes on: trunk/omegat/debian/repack-source.sh
___________________________________________________________________
Name: svn:executable
   + 

Added: trunk/omegat/debian/rules
===================================================================
--- trunk/omegat/debian/rules	                        (rev 0)
+++ trunk/omegat/debian/rules	2008-01-04 19:06:44 UTC (rev 5290)
@@ -0,0 +1,70 @@
+#!/usr/bin/make -f
+include /usr/share/dpatch/dpatch.make
+
+JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
+ANT_OPTIONS=-propertyfile debian/ant.properties
+
+configure: configure-stamp
+configure-stamp: patch
+	dh_testdir
+	touch configure-stamp
+
+build: build-stamp
+build-stamp: configure-stamp
+	dh_testdir
+	JAVA_HOME=$(JAVA_HOME) ant $(ANT_OPTIONS) jar
+	docbook-to-man debian/omegat.sgml > omegat.1
+	convert images/OmegaT.ico[0] images/OmegaT.xpm
+	touch $@
+
+clean: unpatch clean-patched
+clean-patched:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp omegat.1 images/OmegaT.xpm
+	-JAVA_HOME=$(JAVA_HOME) ant $(ANT_OPTIONS) clean
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+	find $(CURDIR)/docs -mindepth 1 -maxdepth 1 -type d -print0 | xargs -0 cp -r --target-directory=$(CURDIR)/debian/omegat/usr/share/doc/omegat/html
+	find $(CURDIR)/debian/omegat/usr/share/doc/omegat -name '*license.txt' -delete
+	find $(CURDIR)/debian/omegat/usr/share -regex '.*(html|txt)' -print0 | xargs -0 fromdos
+	install -m 755 $(CURDIR)/release/OmegaT $(CURDIR)/debian/omegat/usr/bin/omegat
+	fromdos $(CURDIR)/debian/omegat/usr/bin/omegat
+	install -m 644 $(CURDIR)/lib-mnemonics/dist/lib-mnemonics.jar $(CURDIR)/debian/omegat/usr/share/java/omegat-lib-mnemonics.jar
+
+binary-arch: build install
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs 
+	dh_installdocs
+	dh_installexamples
+	dh_install
+	dh_installmenu
+	dh_installman
+	dh_link
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure get-orig-source
+
+version:=$(shell dpkg-parsechangelog | sed -n -e 's/^Version: \(.*\)-[^-]*/\1/p')
+up_version:=$(shell echo $(version) | sed -e 's/\([[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*\)\.\([[:digit:]]*\)/\1_0\2/')
+up_filename:=OmegaT_$(up_version)_Source.zip
+
+get-orig-source:
+	set -ex ; \
+        wget http://heanet.dl.sourceforge.net/sourceforge/omegat/$(up_filename); \
+	$(CURDIR)debian/repack-source.sh --repack-only $(version) $(up_filename); \
+	rm $(up_filename)


Property changes on: trunk/omegat/debian/rules
___________________________________________________________________
Name: svn:executable
   + 

Added: trunk/omegat/debian/watch
===================================================================
--- trunk/omegat/debian/watch	                        (rev 0)
+++ trunk/omegat/debian/watch	2008-01-04 19:06:44 UTC (rev 5290)
@@ -0,0 +1,6 @@
+version=3
+#http://sf.net/omegat/OmegaT_(.*)_Source\.zip
+opts=dversionmangle=s/\.dfsg\d+$// \
+  http://heanet.dl.sourceforge.net/sourceforge/omegat/OmegaT_(.*)_Source.zip \
+  debian \
+  debian/repack-source.sh




More information about the pkg-java-commits mailing list