[parboiled] 01/02: Initial packaging

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Nov 10 20:51:29 UTC 2014


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

ebourg-guest pushed a commit to branch master
in repository parboiled.

commit 87a359a4ea235c525af75654696396765cff99ec
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Mon Nov 10 21:46:35 2014 +0100

    Initial packaging
---
 debian/build.xml              | 28 +++++++++++++++
 debian/changelog              |  5 +++
 debian/compat                 |  1 +
 debian/control                | 20 +++++++++++
 debian/copyright              | 83 +++++++++++++++++++++++++++++++++++++++++++
 debian/libparboiled-java.poms | 29 +++++++++++++++
 debian/maven.rules            |  1 +
 debian/pom-core.xml           | 47 ++++++++++++++++++++++++
 debian/pom-java.xml           | 72 +++++++++++++++++++++++++++++++++++++
 debian/rules                  | 22 ++++++++++++
 debian/source/format          |  1 +
 debian/watch                  |  2 ++
 12 files changed, 311 insertions(+)

diff --git a/debian/build.xml b/debian/build.xml
new file mode 100644
index 0000000..45812f5
--- /dev/null
+++ b/debian/build.xml
@@ -0,0 +1,28 @@
+<project default="build" basedir="..">
+  <property name="ant.build.javac.source" value="1.6"/>
+  <property name="ant.build.javac.target" value="1.6"/>
+
+  <target name="build" depends="build.core,build.java"/>
+
+  <target name="build.core">
+    <mkdir dir="parboiled-core/target/classes"/>
+    <javac srcdir="parboiled-core/src/main/java" destdir="parboiled-core/target/classes" debug="yes" includeantruntime="false"/>
+    <jar jarfile="parboiled-core/target/parboiled-core.jar">
+      <fileset dir="parboiled-core/target/classes"/>
+    </jar>
+  </target>
+
+  <target name="build.java">
+    <mkdir dir="parboiled-java/target/classes"/>
+    <javac srcdir="parboiled-java/src/main/java" destdir="parboiled-java/target/classes" debug="yes" includeantruntime="false">
+      <classpath>
+        <pathelement path="parboiled-core/target/classes"/>
+        <pathelement path="/usr/share/java/asm4-all.jar"/>
+      </classpath>
+    </javac>
+    <jar jarfile="parboiled-java/target/parboiled-java.jar">
+      <fileset dir="parboiled-java/target/classes"/>
+    </jar>
+  </target>
+
+</project>
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f62a028
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+parboiled (1.1.6-1) unstable; urgency=medium
+
+  * Initial release (Closes: #685875)
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Mon, 10 Nov 2014 21:10:42 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..b143845
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,20 @@
+Source: parboiled
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Emmanuel Bourg <ebourg at apache.org>
+Build-Depends: debhelper (>= 9), default-jdk, maven-repo-helper, testng, libasm4-java
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-java/parboiled.git
+Vcs-Browser: http://anonscm.debian.org/cgit/pkg-java/parboiled.git
+Homepage: http://parboiled.org
+
+Package: libparboiled-java
+Architecture: all
+Depends: ${misc:Depends}, libasm4-java
+Description: Parser library based on Parsing Expression Grammars (PEGs)
+ Parboiled is a library providing parsing of arbitrary input text based on
+ Parsing expression grammars (PEGs). PEGs are an alternative to context free
+ grammars (CFGs) for formally specifying syntax, they make a good replacement
+ for regular expressions and generally have quite a few advantages over
+ the "traditional" way of building parsers via CFGs. 
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..78d7a39
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,83 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Parboiled
+Source: https://github.com/sirthias/parboiled
+
+Files: *
+Copyright: 2009-2011, Mathias Doenitz
+           2013, Chris Leishman
+License: Apache-2.0
+
+Files: parboiled-core/src/main/java/org/parboiled/common/Predicates.java
+       parboiled-core/src/main/java/org/parboiled/common/Preconditions.java
+Copyright: 2007, Google Inc
+License: Apache-2.0
+
+Files: parboiled-core/src/main/java/org/parboiled/common/StringUtils.java
+Copyright: 2001-2001, The Apache Software Foundation
+License: Apache-2.0
+
+Files: parboiled-java/src/main/java/org/parboiled/transform/ParserClassNode.java
+       parboiled-java/src/main/java/org/parboiled/transform/ClassNodeInitializer.java
+       parboiled-java/src/main/java/org/parboiled/transform/InstructionGraphNode.java
+       parboiled-java/src/main/java/org/parboiled/transform/RuleMethodRewriter.java
+       parboiled-java/src/main/java/org/parboiled/transform/CachingGenerator.java
+       parboiled-java/src/main/java/org/parboiled/transform/BaseAction.java
+       parboiled-java/src/main/java/org/parboiled/transform/RuleMethodInterpreter.java
+       parboiled-java/src/main/java/org/parboiled/transform/InstructionGroupCreator.java
+       parboiled-java/src/main/java/org/parboiled/transform/RuleMethod.java
+       parboiled-java/src/main/java/org/parboiled/transform/InstructionGraphCreator.java
+       parboiled-java/src/main/java/org/parboiled/transform/AsmUtils.java
+       examples-java/src/main/java/org/parboiled/examples/sparql/SparqlParser.java
+       examples-java/src/test/java/org/parboiled/examples/sparql/SparqlTest.java
+Copyright: 2009, Ken Wenzel
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+
+Files: parboiled-core/src/main/java/org/parboiled/common/Base64.java
+Copyright: 2004, Mikael Grev, MiG InfoCom AB
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without modification,
+ are permitted provided that the following conditions are met:
+ Redistributions of source code must retain the above copyright notice, this list
+ of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this
+ list of conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+ Neither the name of the MiG InfoCom AB nor the names of its contributors may be
+ used to endorse or promote products derived from this software without specific
+ prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
+ OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ OF SUCH DAMAGE.
+
+Files: debian/*
+Copyright: 2014, Emmanuel Bourg <ebourg at apache.org>
+License: Apache-2.0
+
+License: Apache-2.0
+ On Debian systems, the full text of the Apache-2.0 license
+ can be found in the file '/usr/share/common-licenses/Apache-2.0'
diff --git a/debian/libparboiled-java.poms b/debian/libparboiled-java.poms
new file mode 100644
index 0000000..046f2f8
--- /dev/null
+++ b/debian/libparboiled-java.poms
@@ -0,0 +1,29 @@
+# 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
+#   --has-package-version: 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]
+#
+debian/pom-core.xml --has-package-version --java-lib --artifact=parboiled-core/target/parboiled-core.jar
+debian/pom-java.xml --has-package-version --java-lib --artifact=parboiled-java/target/parboiled-java.jar
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..18c1eef
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1 @@
+org.ow2.asm asm* * s/.*/4.x/ * *
diff --git a/debian/pom-core.xml b/debian/pom-core.xml
new file mode 100644
index 0000000..249f790
--- /dev/null
+++ b/debian/pom-core.xml
@@ -0,0 +1,47 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.parboiled</groupId>
+    <artifactId>parboiled-core</artifactId>
+    <packaging>bundle</packaging>
+    <description>Elegant parsing in Java and Scala - lightweight, easy-to-use, powerful</description>
+    <url>http://parboiled.org</url>
+    <version>1.1.6</version>
+    <licenses>
+        <license>
+            <name>Apache 2</name>
+            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+            <distribution>repo</distribution>
+        </license>
+    </licenses>
+    <name>parboiled-core</name>
+    <inceptionYear>2009</inceptionYear>
+    <organization>
+        <name>org.parboiled</name>
+        <url>http://parboiled.org</url>
+    </organization>
+    <scm>
+        <url>git at github.com:sirthias/parboiled.git</url>
+        <connection>scm:git:git at github.com:sirthias/parboiled.git</connection>
+    </scm>
+    <developers>
+        <developer>
+            <id>sirthias</id>
+            <name>Mathias Doenitz</name>
+        </developer>
+    </developers>
+    <dependencies>
+        <dependency>
+            <groupId>org.testng</groupId>
+            <artifactId>testng</artifactId>
+            <version>5.14.1</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.scalatest</groupId>
+            <artifactId>scalatest_2.9.3</artifactId>
+            <version>1.9.1</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+</project>
\ No newline at end of file
diff --git a/debian/pom-java.xml b/debian/pom-java.xml
new file mode 100644
index 0000000..83f89da
--- /dev/null
+++ b/debian/pom-java.xml
@@ -0,0 +1,72 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.parboiled</groupId>
+    <artifactId>parboiled-java</artifactId>
+    <packaging>bundle</packaging>
+    <description>Elegant parsing in Java and Scala - lightweight, easy-to-use, powerful</description>
+    <url>http://parboiled.org</url>
+    <version>1.1.6</version>
+    <licenses>
+        <license>
+            <name>Apache 2</name>
+            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+            <distribution>repo</distribution>
+        </license>
+    </licenses>
+    <name>parboiled-java</name>
+    <inceptionYear>2009</inceptionYear>
+    <organization>
+        <name>org.parboiled</name>
+        <url>http://parboiled.org</url>
+    </organization>
+    <scm>
+        <url>git at github.com:sirthias/parboiled.git</url>
+        <connection>scm:git:git at github.com:sirthias/parboiled.git</connection>
+    </scm>
+    <developers>
+        <developer>
+            <id>sirthias</id>
+            <name>Mathias Doenitz</name>
+        </developer>
+    </developers>
+    <dependencies>
+        <dependency>
+            <groupId>org.parboiled</groupId>
+            <artifactId>parboiled-core</artifactId>
+            <version>1.1.6</version>
+        </dependency>
+        <dependency>
+            <groupId>org.testng</groupId>
+            <artifactId>testng</artifactId>
+            <version>5.14.1</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.scalatest</groupId>
+            <artifactId>scalatest_2.9.3</artifactId>
+            <version>1.9.1</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.ow2.asm</groupId>
+            <artifactId>asm</artifactId>
+            <version>4.1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.ow2.asm</groupId>
+            <artifactId>asm-tree</artifactId>
+            <version>4.1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.ow2.asm</groupId>
+            <artifactId>asm-analysis</artifactId>
+            <version>4.1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.ow2.asm</groupId>
+            <artifactId>asm-util</artifactId>
+            <version>4.1</version>
+        </dependency>
+    </dependencies>
+</project>
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..fa1a8ea
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,22 @@
+#!/usr/bin/make -f
+
+export JAVA_HOME=/usr/lib/jvm/default-java
+VERSION = $(shell dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+)[-+].*$$/\1/p')
+
+%:
+	dh $@ --buildsystem=ant --with maven-repo-helper
+
+override_dh_auto_build:
+	dh_auto_build -- -f debian/build.xml
+
+override_dh_auto_clean:
+	mh_clean
+	rm -Rf parboiled-core/target
+	rm -Rf parboiled-java/target
+
+get-orig-source:
+	uscan --download-current-version --force-download --rename
+
+get-orig-pom:
+	wget http://central.maven.org/maven2/org/parboiled/parboiled-core/$(VERSION)/parboiled-core-$(VERSION).pom -O debian/pom-core.xml
+	wget http://central.maven.org/maven2/org/parboiled/parboiled-java/$(VERSION)/parboiled-java-$(VERSION).pom -O debian/pom-java.xml
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..dcfb4b8
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://github.com/sirthias/parboiled/releases .*/(\d.*).tar.gz

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



More information about the pkg-java-commits mailing list