[josm-plugins] 05/369: Added support for livegps

Bas Couwenberg sebastic at xs4all.nl
Sat Oct 18 12:03:19 UTC 2014


This is an automated email from the git hooks/post-receive script.

sebastic-guest pushed a commit to branch master
in repository josm-plugins.

commit ec4a937b1e2a009174a3cc92b5f77a4d1390904e
Author: Giovanni Mascellani <mascellani at poisson.phc.unipi.it>
Date:   Thu Mar 20 21:07:20 2008 +0000

    Added support for livegps
---
 debian/control                   |   1 +
 debian/patches/00list            |   1 +
 debian/patches/10_build.dpatch   |  10 +--
 debian/patches/50_livegps.dpatch | 164 +++++++++++++++++++++++++++++++++++++++
 4 files changed, 171 insertions(+), 5 deletions(-)

diff --git a/debian/control b/debian/control
index eab99ff..3dd9940 100644
--- a/debian/control
+++ b/debian/control
@@ -10,6 +10,7 @@ Homepage: http://josm.openstreetmap.de
 Package: josm-plugins
 Architecture: all
 Depends: josm
+Suggests: gpsd
 Description: JOSM plugins
  JOSM (Java OpenStreetMap) plugin collection.
  .
diff --git a/debian/patches/00list b/debian/patches/00list
index 65c225f..8a60326 100644
--- a/debian/patches/00list
+++ b/debian/patches/00list
@@ -2,3 +2,4 @@
 20_validator
 30_utilsplugin
 40_wmsplugin
+50_livegps
diff --git a/debian/patches/10_build.dpatch b/debian/patches/10_build.dpatch
index 5fef639..5e7e39a 100755
--- a/debian/patches/10_build.dpatch
+++ b/debian/patches/10_build.dpatch
@@ -4,9 +4,9 @@
 ## DP: Patch for the main build.xml
 
 @DPATCH@
-diff -urNad josm-plugins-0.0.0.20080316~/build.xml josm-plugins-0.0.0.20080316/build.xml
---- josm-plugins-0.0.0.20080316~/build.xml	2008-03-16 22:19:52.000000000 +0100
-+++ josm-plugins-0.0.0.20080316/build.xml	2008-03-16 22:20:25.000000000 +0100
+diff -urNad josm-plugins-0.0.0.20080320~/build.xml josm-plugins-0.0.0.20080320/build.xml
+--- josm-plugins-0.0.0.20080320~/build.xml	2008-03-20 21:44:46.000000000 +0100
++++ josm-plugins-0.0.0.20080320/build.xml	2008-03-20 21:45:08.000000000 +0100
 @@ -1,43 +1,49 @@
  <project name="josm-plugins" default="build" basedir=".">
  
@@ -49,11 +49,11 @@ diff -urNad josm-plugins-0.0.0.20080316~/build.xml josm-plugins-0.0.0.20080316/b
      <ant	dir="validator"		antfile="build.xml"	target="dist"/>
      <ant	dir="wmsplugin"		antfile="build.xml"	target="dist"/>
 -    <ant	dir="ywms"		antfile="build.xml"	target="dist"/>
-+    <!-- <ant	dir="ywms"		antfile="build.xml"	target="dist"/>
++    <!-- <ant	dir="ywms"		antfile="build.xml"	target="dist"/>-->
  
      <ant	dir="livegps"		antfile="build.xml"	target="dist"/>
 -    <ant	dir="surveyor"		antfile="build.xml"	target="dist"/>
-+    <ant	dir="surveyor"		antfile="build.xml"	target="dist"/> -->
++    <!-- <ant	dir="surveyor"		antfile="build.xml"	target="dist"/> -->
    </target>
  
 -  <target name="build_defect" depends="compile">
diff --git a/debian/patches/50_livegps.dpatch b/debian/patches/50_livegps.dpatch
new file mode 100755
index 0000000..2a599af
--- /dev/null
+++ b/debian/patches/50_livegps.dpatch
@@ -0,0 +1,164 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 50_livegps.dpatch by  <g.mascellani at gmail.com>
+##
+## DP: Patch for plugin livegps
+
+ at DPATCH@
+diff -urNad josm-plugins-0.0.0.20080320~/livegps/build.xml josm-plugins-0.0.0.20080320/livegps/build.xml
+--- josm-plugins-0.0.0.20080320~/livegps/build.xml	2008-03-20 21:54:50.000000000 +0100
++++ josm-plugins-0.0.0.20080320/livegps/build.xml	2008-03-20 21:56:44.000000000 +0100
+@@ -1,26 +1,34 @@
+ <project name="livegps" default="dist" basedir=".">
+ 
+   <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
++<!-- Not used in Debian
+   <property environment="env"/>
+   <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
+     <and>
+       <os family="windows"/>
+     </and>
+   </condition>
++-->
+ 
+   <!-- compilation properties -->
+   <!--<property name="josm.build.dir"	value="../../JOSM/"/> -->
++<!-- Not used in Debian
+   <property name="josm.build.dir"	value="../../core/"/>
+   <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
++-->
+   <!-- <property name="josm"			location="../../JOSM/dist/josm-custom.jar" /> -->
++<!-- Not used in Debian
+   <property name="josm"			location="../../core/dist/josm-custom.jar" />
+   <property name="plugin.build.dir"	value="build"/>
+   <property name="plugin.dist.dir"	value="../../dist"/>
++-->
+   <property name="plugin.name"		value="${ant.project.name}"/>
+-  <property name="plugin.jar"		value="../../dist/${plugin.name}.jar"/>
++  <property name="plugin.jar"		value="${plugin.dist.dir}/${plugin.name}.jar"/>
+   
++<!-- Not used in Debian
+   <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/>
+   <property name="livegpsplugin.jar" value="${josm.home.dir}/plugins/livegps.jar"/>
++-->
+   
+   <!-- plugin meta data (enter new version number if anything changed!) -->
+   <property name="plugin.version" value="1.3"/>
+@@ -29,21 +37,23 @@
+   <property name="plugin.class" value="livegps.LiveGpsPlugin"/>
+   
+   <!-- update site meta data -->
++<!-- Not used in Debian
+   <property name="plugin.site.file" value="josm-site.xml"/>
+   <property name="plugin.site.description" value="Josm's LiveGps Update Site"/>
+   <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/livegps/"/>
+   <property name="plugin.site.upload.target" value="cdaller at www.tegmento.org:public_html/josm/livegps/"/>
++-->
+   
+   <property name="ant.build.javac.target" value="1.5"/>
+ 
+-  <target name="dist" depends="compile,site">
++  <target name="dist" depends="compile">
+     <!-- images -->
+-    <copy todir="${plugin.build.dir}/images">
++    <copy todir="build/images">
+       <fileset dir="images" />
+     </copy>  	
+     
+     <!-- create jar file -->
+-    <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
++    <jar destfile="${plugin.jar}" basedir="build">
+       <manifest>
+         <attribute name="Plugin-Class" value="${plugin.class}" />
+         <attribute name="Plugin-Description" value="${plugin.description}" />
+@@ -55,8 +65,9 @@
+   </target>
+ 
+   <target name="compile" depends="init">
+-    <mkdir dir="${plugin.build.dir}"/>
+-    <javac srcdir="livegps" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
++<!--    <mkdir dir="${plugin.build.dir}"/>-->
++    <javac srcdir="livegps" destdir="build" debug="true" source="1.5" target="1.5" classpath="${josm}">
++<!-- Not used in Debian
+       <classpath>
+         <pathelement path="${josm.build.dir}/build"/>
+         <fileset dir="${josm.build.dir}/lib">
+@@ -65,28 +76,33 @@
+         </fileset>
+         <pathelement location="${plugin.jar}"/>
+       </classpath>
++-->
+     </javac>
+   </target>
+ 
++<!-- Not used in Debian
+   <target name="install" depends="dist">
+     <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+   	<copy file="liveGPS.conf" todir="${josm.plugins.dir}/livegps/" />
+   </target>
++-->
+ 
+   <target name="init">
+-    <echo>java version: ${java.version}</echo>
++<!--    <echo>java version: ${java.version}</echo>-->
++    <mkdir dir="build" />
+   </target>
+ 
+   <target name="clean">
+-    <delete dir="${plugin.build.dir}" />
+-    <delete dir="${plugin.site.file}" />
++    <delete dir="build" />
++<!--    <delete dir="${plugin.site.file}" />-->
+     <delete file="${plugin.jar}" />
+   </target>
+ 
+   <!-- write site description for the given plugin so josm will accept it -->
++<!-- Not used in Debian
+   <target name="site">
+     <echo message="creating site description in ${plugin.site.file}"/>
+-    <echo file="${plugin.site.file}"><!-- plugins available on this site -->
++    <echo file="${plugin.site.file}"><!- plugins available on this site ->	Add other two -
+   <plugins>
+   <plugin id="${ant.project.name}" version="${plugin.version}">
+   <name>${ant.project.name}</name>
+@@ -96,19 +112,21 @@
+   </plugins>
+ </echo>
+ </target>
++-->
+ 
+ <!-- write site description for the given plugin (not implemented in JOSM as full version yet!) -->
++<!-- Not used in Debian
+ <target name="site-full-donotuse">
+   <echo message="creating site description in ${plugin.site.file}"/>
+   <echo file="${plugin.site.file}"><?xml version="1.0"?>
+     <site version="1.0">
+-    <!-- meta data of site -->
++    <!- meta data of site ->	Add other two -
+ <site-info>
+ <site-name>${plugin.site.description}</site-name>
+ <site-url>${plugin.site.url}</site-url>
+ </site-info>
+ 
+-<!-- plugins available on this site -->
++<!- plugins available on this site ->	Add other two -
+ <plugins>
+ <plugin id="${ant.project.name}" version="${plugin.version}">
+ <name>${ant.project.name}</name>
+@@ -122,8 +140,10 @@
+ </site>
+ </echo>
+ </target>
++-->
+ 
+ <!-- upload the site description and the jar file via ssh -->
++<!-- Not used in Debian
+ <target name="upload" depends="dist,site">
+   <echo message="uploading jar and site description to ${plugin.site.upload.target}"/>
+   <exec executable="scp">
+@@ -132,5 +152,6 @@
+     <arg value="${plugin.site.upload.target}"/>
+   </exec>
+ </target>
++-->
+ 
+ </project>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/josm-plugins.git



More information about the Pkg-grass-devel mailing list