[med-svn] r6022 - trunk/packages/patristic/trunk/debian

Andreas Tille tille at alioth.debian.org
Fri Feb 18 13:07:38 UTC 2011


Author: tille
Date: 2011-02-18 13:07:34 +0000 (Fri, 18 Feb 2011)
New Revision: 6022

Modified:
   trunk/packages/patristic/trunk/debian/get-orig-source
Log:
Get a orig.tar.gz which really enables building patristic (hopefully)


Modified: trunk/packages/patristic/trunk/debian/get-orig-source
===================================================================
--- trunk/packages/patristic/trunk/debian/get-orig-source	2011-02-18 12:19:15 UTC (rev 6021)
+++ trunk/packages/patristic/trunk/debian/get-orig-source	2011-02-18 13:07:34 UTC (rev 6022)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -e
 # The upstream tarball is not clean (gpl-3.0.txt in root).
 # Once the tarball was repackaged anyway some additional examples
 # which were originally in a separate archive were added.
@@ -13,17 +13,68 @@
 mkdir -p ../tarballs
 cd ../tarballs
 
-wget ftp://ftp.bioinformatics.org/pub/patristic/Patristic-src.tar.gz
-wget ftp://ftp.bioinformatics.org/pub/patristic/Patristic-example.zip
+# Java source
+wget -N ftp://ftp.bioinformatics.org/pub/patristic/Patristic-src.tar.gz
+# Examples
+wget -N ftp://ftp.bioinformatics.org/pub/patristic/Patristic-example.zip
+# Addional binary JARs
+wget -N ftp://ftp.bioinformatics.org/pub/patristic/Patristic.zip
 
-tar -xzf Patristic-src.tar.gz
-# avoid dirty tarball
-mv gpl-3.0.txt Patristic
+TARDIR=${name}-${version}
+rm -rf ${TARDIR}
+
+mkdir -p ${TARDIR}/src/main/java
+cd ${TARDIR}/src/main/java
+tar -xzf ../../../../Patristic-src.tar.gz
+mv gpl-3.0.txt ../../..
+cd ../../..
 # unpack examples
-mkdir -p Patristic/examples
-cd Patristic/examples
+mkdir -p examples
+cd examples
 unzip ../../Patristic-example.zip
-cd ../..
+cd ..
+mkdir -p lib
 
-GZIP="--best --no-name" tar -czf "$name"_"$version".orig.tar.gz Patristic
-rm -rf Patristic
+# create pom.xml for maven
+cat > pom.xml <<EOT
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>patristic</groupId>
+    <artifactId>patristic</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <name>Patristic</name>
+
+    <build>
+	<plugins>
+	    <plugin>
+		<groupId>org.apache.maven.plugins</groupId>
+		<artifactId>maven-compiler-plugin</artifactId>
+		<version>2.1</version>
+		<configuration>
+		    <source>1.5</source>
+		    <target>1.5</target>
+		</configuration>
+	    </plugin>
+	</plugins>
+    </build>
+    <dependencies>
+	<dependency>
+	    <groupId>org.freehep</groupId>
+	    <artifactId>freehep-graphics2d</artifactId>
+	    <version>2.1.3</version>
+	</dependency>
+    </dependencies>
+</project>
+EOT
+
+cd ..
+
+# Get binary JARs which are not yet in Debian
+unzip Patristic.zip
+mv Patristic/lib/fileDrop.jar ${TARDIR}/lib
+mv Patristic/picture/jlfgr-1_0.jar ${TARDIR}/lib
+
+GZIP="--best --no-name" tar -czf "$name"_"$version".orig.tar.gz ${TARDIR}
+rm -rf Patristic ${TARDIR} Patristic*.zip Patristic*.tar.gz




More information about the debian-med-commit mailing list