Author: jodogne-guest
Date: 2014-12-15 15:47:13 +0000 (Mon, 15 Dec 2014)
New Revision: 18540

Added:
   trunk/packages/orthanc-imagej/trunk/debian/patches/
   trunk/packages/orthanc-imagej/trunk/debian/patches/json-simple
   trunk/packages/orthanc-imagej/trunk/debian/patches/series
Modified:
   trunk/packages/orthanc-imagej/trunk/debian/changelog
   trunk/packages/orthanc-imagej/trunk/debian/control
   trunk/packages/orthanc-imagej/trunk/debian/copyright
   trunk/packages/orthanc-imagej/trunk/debian/rules
   trunk/packages/orthanc-imagej/trunk/debian/watch
Log:
link against libjson-simple-java package

Modified: trunk/packages/orthanc-imagej/trunk/debian/changelog
===================================================================
--- trunk/packages/orthanc-imagej/trunk/debian/changelog        2014-12-15 
10:28:00 UTC (rev 18539)
+++ trunk/packages/orthanc-imagej/trunk/debian/changelog        2014-12-15 
15:47:13 UTC (rev 18540)
@@ -1,5 +1,5 @@
-orthanc-imagej (1.0.0-1) UNRELEASED; urgency=low
+orthanc-imagej (1.0.0+dfsg-1) unstable; urgency=low
 
   * Initial release. (Closes: #772561)
 
- -- Sebastien Jodogne <[email protected]>  Mon, 08 Dec 2014 16:55:43 +0100
+ -- Sebastien Jodogne <[email protected]>  Mon, 15 Dec 2014 15:55:43 +0100

Modified: trunk/packages/orthanc-imagej/trunk/debian/control
===================================================================
--- trunk/packages/orthanc-imagej/trunk/debian/control  2014-12-15 10:28:00 UTC 
(rev 18539)
+++ trunk/packages/orthanc-imagej/trunk/debian/control  2014-12-15 15:47:13 UTC 
(rev 18540)
@@ -8,17 +8,18 @@
 Build-Depends: cmake (>= 2.8),
                default-jdk,
                debhelper (>= 9),
-               imagej
+               imagej,
+               libjson-simple-java
 Vcs-Browser: 
http://anonscm.debian.org/viewvc/debian-med/trunk/packages/orthanc-imagej/trunk/
 Vcs-Svn: 
svn://anonscm.debian.org/debian-med/trunk/packages/orthanc-imagej/trunk/
 Homepage: https://code.google.com/p/orthanc-imagej/
 
 Package: orthanc-imagej
 Architecture: all
-Depends: ${java:Depends},
-         ${misc:Depends},
+Depends: ${misc:Depends},
          default-jre | openjdk-7-jre,
-         imagej
+         imagej,
+         libjson-simple-java
 Recommends: orthanc
 Description: ImageJ plugin to import images from Orthanc
  This ImageJ plugin allows ImageJ to browse the content of an Orthanc

Modified: trunk/packages/orthanc-imagej/trunk/debian/copyright
===================================================================
--- trunk/packages/orthanc-imagej/trunk/debian/copyright        2014-12-15 
10:28:00 UTC (rev 18539)
+++ trunk/packages/orthanc-imagej/trunk/debian/copyright        2014-12-15 
15:47:13 UTC (rev 18540)
@@ -2,17 +2,13 @@
 Upstream-Name: OrthancImageJ
 Upstream-Contact: Sebastien Jodogne <[email protected]>
 Source: https://code.google.com/p/orthanc-imagej/
+Files-Excluded: org/*
 
 Files: *
 Copyright: 2012-2014 CHU of Liege (Belgium), and Sebastien Jodogne 
<[email protected]>
 License: GPL-3
 
-Files: org/*
-Copyright: Yidong Fang, Chris Nokleberg, Dave Hughes
-License: Apache
 
-
-
 License: GPL-3
  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
@@ -31,16 +27,3 @@
  On Debian systems, the full text of the GNU General Public License
  version 3 can be found in the file
  `/usr/share/common-licenses/GPL-3'.
-
-License: Apache
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- .
- http://www.apache.org/licenses/LICENSE-2.0
- .
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied.  See the License for the specific language governing
- permissions and limitations under the License.

Added: trunk/packages/orthanc-imagej/trunk/debian/patches/json-simple
===================================================================
--- trunk/packages/orthanc-imagej/trunk/debian/patches/json-simple              
                (rev 0)
+++ trunk/packages/orthanc-imagej/trunk/debian/patches/json-simple      
2014-12-15 15:47:13 UTC (rev 18540)
@@ -0,0 +1,38 @@
+Description: Patch to link against Debian's libjson-simple-java package
+Author: Sebastien Jodogne <[email protected]>
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: OrthancImageJ.2/CMakeLists.txt
+===================================================================
+--- OrthancImageJ.2.orig/CMakeLists.txt
++++ OrthancImageJ.2/CMakeLists.txt
+@@ -6,7 +6,7 @@ find_package(Java REQUIRED)
+ include(UseJava)
+ 
+ set(CMAKE_JAVA_COMPILE_FLAGS "-source" "1.6" "-target" "1.6")
+-set(CMAKE_JAVA_INCLUDE_PATH /usr/share/java/ij.jar)
++set(CMAKE_JAVA_INCLUDE_PATH 
/usr/share/java/ij.jar:/usr/share/java/json-simple.jar)
+ 
+ # The name of an ImageJ plugin must contain an underscore
+ # 
http://imagejdocu.tudor.lu/doku.php?id=howto:plugins:howto_create_an_imagej_plugin_jar_file
+@@ -18,20 +18,6 @@ add_jar(Orthanc_Import
+   ${CMAKE_SOURCE_DIR}/com/orthancserver/OrthancConnection.java
+   ${CMAKE_SOURCE_DIR}/com/orthancserver/PreviewPanel.java
+   ${CMAKE_SOURCE_DIR}/com/orthancserver/SelectImageDialog.java
+-
+-  # Sources of the "json-simple" toolkit
+-  ${CMAKE_SOURCE_DIR}/org/json/simple/ItemList.java
+-  ${CMAKE_SOURCE_DIR}/org/json/simple/JSONArray.java
+-  ${CMAKE_SOURCE_DIR}/org/json/simple/JSONAware.java
+-  ${CMAKE_SOURCE_DIR}/org/json/simple/JSONObject.java
+-  ${CMAKE_SOURCE_DIR}/org/json/simple/JSONStreamAware.java
+-  ${CMAKE_SOURCE_DIR}/org/json/simple/JSONValue.java
+-  ${CMAKE_SOURCE_DIR}/org/json/simple/parser/ContainerFactory.java
+-  ${CMAKE_SOURCE_DIR}/org/json/simple/parser/ContentHandler.java
+-  ${CMAKE_SOURCE_DIR}/org/json/simple/parser/JSONParser.java
+-  ${CMAKE_SOURCE_DIR}/org/json/simple/parser/ParseException.java
+-  ${CMAKE_SOURCE_DIR}/org/json/simple/parser/Yylex.java
+-  ${CMAKE_SOURCE_DIR}/org/json/simple/parser/Yytoken.java
+   )
+ 
+ # Add the "plugins.config" file that is expected by ImageJ in the JAR file

Added: trunk/packages/orthanc-imagej/trunk/debian/patches/series
===================================================================
--- trunk/packages/orthanc-imagej/trunk/debian/patches/series                   
        (rev 0)
+++ trunk/packages/orthanc-imagej/trunk/debian/patches/series   2014-12-15 
15:47:13 UTC (rev 18540)
@@ -0,0 +1 @@
+json-simple

Modified: trunk/packages/orthanc-imagej/trunk/debian/rules
===================================================================
--- trunk/packages/orthanc-imagej/trunk/debian/rules    2014-12-15 10:28:00 UTC 
(rev 18539)
+++ trunk/packages/orthanc-imagej/trunk/debian/rules    2014-12-15 15:47:13 UTC 
(rev 18540)
@@ -1,8 +1,17 @@
 #!/usr/bin/make -f
 
+JSON_SIMPLE_JAR = /usr/share/java/json-simple.jar
+
 %:
        dh $@ --parallel --builddirectory=Build
 
+override_dh_auto_configure:
+       dh_auto_configure -- -DCMAKE_JAVA_INCLUDE_PATH=${JSON_SIMPLE_JAR}
+
+override_dh_auto_install:
+       dh_auto_install
+       dh_link ${JSON_SIMPLE_JAR} 
usr/share/imagej/plugins/Orthanc_Import_json-simple.jar
+
 override_dh_installchangelogs:
        dh_installchangelogs -k NEWS
 

Modified: trunk/packages/orthanc-imagej/trunk/debian/watch
===================================================================
--- trunk/packages/orthanc-imagej/trunk/debian/watch    2014-12-15 10:28:00 UTC 
(rev 18539)
+++ trunk/packages/orthanc-imagej/trunk/debian/watch    2014-12-15 15:47:13 UTC 
(rev 18540)
@@ -1,2 +1,3 @@
 version=3
+opts="repacksuffix=+dfsg,dversionmangle=s/\+dfsg//g" \
 https://github.com/jodogne/Orthanc/releases 
.*/download/[^/]+/OrthancImageJ-(\d\S*)\.tar\.gz


_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to