[malai] 02/03: Import initial packaging

Stuart Prescott stuart at debian.org
Fri Nov 25 00:03:27 UTC 2016


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

stuart pushed a commit to branch master
in repository malai.

commit 096ba901ee763f131f32699d351133d79318aac9
Author: Stuart Prescott <stuart at debian.org>
Date:   Sun Nov 13 00:51:47 2016 +1100

    Import initial packaging
---
 debian/changelog                      |  5 +++++
 debian/compat                         |  1 +
 debian/control                        | 30 +++++++++++++++++++++++++++++
 debian/copyright                      | 21 ++++++++++++++++++++
 debian/libmalai-java.poms             | 33 ++++++++++++++++++++++++++++++++
 debian/maven.cleanIgnoreRules         |  1 +
 debian/maven.ignoreRules              |  4 ++++
 debian/maven.properties               |  1 +
 debian/maven.rules                    |  3 +++
 debian/patches/pom-dependencies.patch | 36 +++++++++++++++++++++++++++++++++++
 debian/patches/pom-master.patch       | 20 +++++++++++++++++++
 debian/patches/series                 |  2 ++
 debian/rules                          |  7 +++++++
 debian/source/format                  |  1 +
 debian/watch                          |  4 ++++
 15 files changed, 169 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..0bbe2de
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+malai (2.0+ds1-1) UNRELEASED; urgency=medium
+
+  * Initial release. (Closes: #XXXXXX)
+
+ -- Stuart Prescott <stuart at debian.org>  Thu, 10 Nov 2016 01:05:45 +1100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..9a03714
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
\ No newline at end of file
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..6092dc2
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,30 @@
+Source: malai
+Section: java
+Priority: optional
+Maintainer: Stuart Prescott <stuart at debian.org>
+Build-Depends:
+ debhelper (>= 10),
+ default-jdk,
+ maven-debian-helper (>= 1.5),
+ libmaven-bundle-plugin-java,
+ libmockito-java (>= 1.10~),
+ libjinput-java,
+Build-Depends-Indep:
+ junit4
+Standards-Version: 3.9.8
+Homepage: http://latexdraw.sourceforge.net/
+
+Package: libmalai-java
+Architecture: all
+Depends:
+ ${maven:Depends},
+ ${misc:Depends}
+Description: vector drawing program for LaTeX using PSTricks
+ LaTeXDraw is a free PSTricks code generator or PSTricks editor for LaTeX.
+ It has the usual drawing tools (lines, rectangles, circles, Bezier curves)
+ and can resize, rotate, move and join objects using vector transformations.
+ LaTeXDraw uses SVG as its file format and figures can be exported as PSTricks
+ code, pdf, eps, jpg, bmp, png, ppm.
+ .
+ PSTricks is an extension of LaTeX which allows the creation of drawings,
+ diagrams and graphs in 2D or 3D.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f14e9d6
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,21 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: malai
+Upstream-Contact: Arnaud BLOUIN <arno.b.dev at gmail.com>
+Source: https://github.com/arnobl/malai/
+Files-Excluded:
+    *.jar
+    *.dll
+    *.so
+    *.class
+
+Files: *
+Copyright: © 2005-2016, Arnaud BLOUIN <arno_b at users.sourceforge.net>
+License: GPL-2+
+
+Files: debian/*
+Copyright: © 2007-2016, Stuart Prescott <stuart at debian.org>
+License: GPL-2+
+
+License: GPL-2+
+ On Debian systems, the complete text of the GNU General Public License,
+ version 2, can be found in /usr/share/common-licenses/GPL-2.
diff --git a/debian/libmalai-java.poms b/debian/libmalai-java.poms
new file mode 100644
index 0000000..b23b590
--- /dev/null
+++ b/debian/libmalai-java.poms
@@ -0,0 +1,33 @@
+# List of POM files for the package
+# Format of this file is:
+# <path to pom file> [option]*
+# where option can be:
+#   --ignore: ignore this POM and its artifact if any
+#   --ignore-pom: don't install the POM. To use on POM files that are created
+#     temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms]
+#   --no-parent: remove the <parent> tag from the POM
+#   --package=<package>: an alternative package to use when installing this POM
+#      and its artifact
+#  : to indicate that the original version of the POM is the same as the upstream part
+#      of the version for the package.
+#   --keep-elements=<elem1,elem2>: a list of XML elements to keep in the POM
+#      during a clean operation with mh_cleanpom or mh_installpom
+#   --artifact=<path>: path to the build artifact associated with this POM,
+#      it will be installed when using the command mh_install. [mh_install]
+#   --java-lib: install the jar into /usr/share/java to comply with Debian
+#      packaging guidelines
+#   --usj-name=<name>: name to use when installing the library in /usr/share/java
+#   --usj-version=<version>: version to use when installing the library in /usr/share/java
+#   --no-usj-versionless: don't install the versionless link in /usr/share/java
+#   --dest-jar=<path>: the destination for the real jar.
+#     It will be installed with mh_install. [mh_install]
+#   --classifier=<classifier>: Optional, the classifier for the jar. Empty by default.
+#   --site-xml=<location>: Optional, the location for site.xml if it needs to be installed.
+#     Empty by default. [mh_install]
+#
+malai-core/org.malai.core/pom.xml -v
+malai-core/org.malai.swing/pom.xml -v
+#malai-core/org.malai.jinput/pom.xml
+#malai-core/org.malai.javafx/pom.xml
+#malai-mde/org.malai.model.mbt/pom.xml
+#malai-mde/org.malai.warpper/pom.xml
diff --git a/debian/maven.cleanIgnoreRules b/debian/maven.cleanIgnoreRules
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/debian/maven.cleanIgnoreRules
@@ -0,0 +1 @@
+
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..9d618c3
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,4 @@
+
+org.apache.maven.plugins maven-assembly-plugin * * * *
+org.jinput jinput * * * *
+net.java.javafx javafx * * * *
diff --git a/debian/maven.properties b/debian/maven.properties
new file mode 100644
index 0000000..9a9a1fa
--- /dev/null
+++ b/debian/maven.properties
@@ -0,0 +1 @@
+#maven.test.skip = true
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..f49b281
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,3 @@
+
+junit junit jar s/4\..*/4.x/ * *
+org.apache.felix maven-bundle-plugin s/.*/debian/ * *
diff --git a/debian/patches/pom-dependencies.patch b/debian/patches/pom-dependencies.patch
new file mode 100644
index 0000000..499c41a
--- /dev/null
+++ b/debian/patches/pom-dependencies.patch
@@ -0,0 +1,36 @@
+Description: Force use of outputs in next stage.
+Author: Stuart Prescott <stuart at debian.org>
+
+--- a/malai-core/org.malai.javafx/pom.xml
++++ b/malai-core/org.malai.javafx/pom.xml
+@@ -75,7 +75,6 @@
+ 	      <artifactId>javafx</artifactId>
+ 	      <version>2.0</version>
+ 	      <scope>system</scope>
+-	      <systemPath>${project.basedir}/lib/jfxrt.jar</systemPath>
+ 	    </dependency>
+ 	    <dependency>
+ 	      <groupId>org.malai</groupId>
+@@ -86,8 +85,8 @@
+ 		  <groupId>org.malai</groupId>
+ 		  <artifactId>malai.core</artifactId>
+ 		  <version>${project.version}</version>
+-		  <type>test-jar</type>
+-		  <scope>test</scope>
++          <scope>system</scope>
++          <systemPath>${basedir}/../org.malai.core/target/malai.core-${project.version}-tests.jar</systemPath>
+ 		</dependency>
+ 	</dependencies>
+ 
+--- a/malai-core/org.malai.swing/pom.xml
++++ b/malai-core/org.malai.swing/pom.xml
+@@ -129,7 +129,8 @@
+ 	  <artifactId>malai.core</artifactId>
+ 	  <version>${project.version}</version>
+ 	  <type>test-jar</type>
+-	  <scope>test</scope>
++	  <scope>system</scope>
++      <systemPath>${basedir}/../org.malai.core/target/malai.core-${project.version}-tests.jar</systemPath>
+ 	</dependency>
+ </dependencies>
+ 
diff --git a/debian/patches/pom-master.patch b/debian/patches/pom-master.patch
new file mode 100644
index 0000000..3c5544e
--- /dev/null
+++ b/debian/patches/pom-master.patch
@@ -0,0 +1,20 @@
+Description: Add a master pom.xml for the projects
+Author: Stuart Prescott <stuart at debian.org>
+
+--- /dev/null
++++ b/pom.xml
+@@ -0,0 +1,14 @@
++<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/xsd/maven-4.0.0.xsd">
++  <modelVersion>4.0.0</modelVersion>
++
++  <groupId>org.malai</groupId>
++  <artifactId>malai</artifactId>
++  <version>2.0</version>
++  <packaging>pom</packaging>
++
++  <modules>
++    <module>malai-core/org.malai.core</module>
++    <module>malai-core/org.malai.swing</module>
++  </modules>
++
++</project>
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..dbf2312
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+pom-dependencies.patch
+pom-master.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..ec24864
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+# Prevent the tests trying to open pages in the local web browser
+export DISPLAY =
+
+%:
+	dh $@ --buildsystem=maven
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..8457a30
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+
+opts="dversionmangle=s/\+ds\d+$//,filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/malai-$1\.tar\.gz/,repacksuffix=+ds1" \
+  https://github.com/arnobl/malai/tags .*/v?(\d\S+)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/malai.git



More information about the pkg-java-commits mailing list