[scala-pickling] 02/03: Add packaging as done by Frédéric Bonnard <frediz at linux.vnet.ibm.com>
Andreas Tille
tille at debian.org
Mon Feb 27 14:00:25 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository scala-pickling.
commit 49d1aac28cc55d350982b405892398f899ef7315
Author: Andreas Tille <tille at debian.org>
Date: Mon Feb 27 14:57:27 2017 +0100
Add packaging as done by Frédéric Bonnard <frediz at linux.vnet.ibm.com>
---
debian/changelog | 5 +
debian/compat | 1 +
debian/control | 17 ++
debian/copyright | 337 ++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/patches/use-latest-sbt.patch | 11 ++
debian/rules | 83 +++++++++
debian/source/format | 1 +
debian/source/include-binaries | 1 +
debian/watch | 3 +
10 files changed, 460 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f77180e
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+scala-pickling (0.10.1-1) experimental; urgency=medium
+
+ * Initial release. (Closes: #855298)
+
+ -- Frédéric Bonnard <frediz at linux.vnet.ibm.com> Fri, 14 Oct 2016 10:57:10 +0000
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..d4c0c35
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,17 @@
+Source: scala-pickling
+Section: java
+Priority: optional
+Maintainer: Frédéric Bonnard <frediz at linux.vnet.ibm.com>
+Build-Depends: debhelper (>= 9), default-jdk, javahelper, maven-repo-helper
+Standards-Version: 3.9.8
+Homepage: https://github.com/scala/pickling
+
+Package: libscala-pickling-java
+Architecture: all
+Depends: ${java:Depends}, ${misc:Depends}
+Recommends: ${java:Recommends}
+Description: Fast, customizable, boilerplate-free pickling support for Scala
+ Scala Pickling is an automatic serialization framework made for Scala. It's
+ fast, boilerplate-free, and allows users to easily swap in/out different
+ serialization formats (such as binary, or JSON), or even to provide their own
+ custom serialization format.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..35ddaaa
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,337 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: scala pickling
+Source: https://github.com/scala/pickling
+
+Files: *
+Copyright: 2012-2014 École Polytechnique Fédérale de Lausanne
+ 2012-2014 Typesafe, Inc.
+ 2014 Databricks
+License: BSD-3-clause
+
+Files: benchmark/Event.scala
+ benchmark/HasMessage.scala
+ benchmark/DataEvent.scala
+Copyright: 2012 Albert Örwall
+License: Apache-2.0
+
+Files: core/src/test/scala/pickling/run/externalizable-mapstatus.scala
+Copyright: 2012-2014 École Polytechnique Fédérale de Lausanne
+ 2012-2014 Typesafe, Inc.
+ 2014 Databricks
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2017 Frédéric Bonnard <frediz at linux.vnet.ibm.com>
+License: BSD-3-clause
+
+Files: bootstrapsbt/*
+Copyright: Typesafe Inc
+ Mark Harrah
+ Grzegorz Kossakowski
+ Josh Suereth
+ Indrajit Raychaudhuri
+ Eugene Yokota, and other contributors
+License: BSD-3-clause
+
+Files: bootstrapdeps-sources/org.scala-sbt/compiler-interface/srcs/compiler-interface-*-sources.jar
+Copyright: 2008-2014 Typesafe Inc, Mark Harrah, Grzegorz Kossakowski, Josh Suereth, Indrajit Raychaudhuri, Eugene Yokota, and other contributors
+ 2002-2008 EPFL, Lausanne, unless otherwise specified.
+License: BSD-3-clause
+
+Files: bootstrapdeps/com.esotericsoftware.kryo/kryo/jars/kryo-2.20-shaded.jar
+ bootstrapdeps/com.esotericsoftware.kryo/kryo/ivy-2.20.xml
+ bootstrapdeps/com.esotericsoftware.minlog/minlog/jars/minlog-1.2.jar
+ bootstrapdeps/com.esotericsoftware.minlog/minlog/ivy-1.2.xml
+ bootstrapdeps/com.esotericsoftware.reflectasm/reflectasm/jars/reflectasm-1.07-shaded.jar
+ bootstrapdeps/com.esotericsoftware.reflectasm/reflectasm/ivy-1.07.xml
+Copyright: Nathan Sweet
+License: BSD-2-clause
+
+Files: bootstrapdeps/com.jcraft/jsch/jars/jsch-0.1.46.jar
+ bootstrapdeps/com.jcraft/jsch/ivy-0.1.46.xml
+Copyright: Atsuhiko Yamanaka
+License: BSD-3-clause
+
+Files: bootstrapdeps/com.thoughtworks.paranamer/paranamer/jars/paranamer-2.6.jar
+ bootstrapdeps/com.thoughtworks.paranamer/paranamer/ivy-2.6.xml
+Copyright: Paul Hammant
+ Mauro Talevi
+ Guilherme Silveira
+License: BSD-3-clause
+
+Files: bootstrapdeps/de.javakaffee/kryo-serializers/bundles/kryo-serializers-0.22.jar
+ bootstrapdeps/de.javakaffee/kryo-serializers/ivy-0.22.xml
+Copyright: Martin Grotzke
+License: Apache-2.0
+
+Files: bootstrapdeps/jline/jline/jars/jline-2.12.1.jar
+ bootstrapdeps/jline/jline/ivy-2.12.1.xml
+ bootstrapdeps/jline/jline/jars/jline-2.13.jar
+ bootstrapdeps/jline/jline/ivy-2.13.xml
+Copyright: Jason Dillon
+ Guillaume Nodet
+ Marc Prud'hommeaux
+License: BSD-2-clause
+
+Files: bootstrapdeps/org.fusesource.jansi/jansi/jars/jansi-1.11.jar
+ bootstrapdeps/org.fusesource.jansi/jansi/ivy-1.11.xml
+ bootstrapdeps/org.fusesource.jansi/jansi/jars/jansi-1.4.jar
+ bootstrapdeps/org.fusesource.jansi/jansi/ivy-1.4.xml
+Copyright: Hiram Chirino
+License: Apache-2.0
+
+Files: bootstrapdeps/org.json4s/json4s-ast_2.10/jars/json4s-ast_2.10-3.2.10.jar
+ bootstrapdeps/org.json4s/json4s-ast_2.10/ivy-3.2.10.xml
+ bootstrapdeps/org.json4s/json4s-core_2.10/jars/json4s-core_2.10-3.2.10.jar
+ bootstrapdeps/org.json4s/json4s-core_2.10/ivy-3.2.10.xml
+Copyright: Ivan Porto Carrero
+License: Apache-2.0
+
+Files: bootstrapdeps/org.objenesis/objenesis/jars/objenesis-1.2.jar
+ bootstrapdeps/org.objenesis/objenesis/ivy-1.2.xml
+Copyright: Joe Walnes
+ Henri Tremblay
+ Leonardo Mesquita
+License: Apache-2.0
+
+Files: bootstrapdeps/org.ow2.asm/asm/jars/asm-4.0.jar
+ bootstrapdeps/org.ow2.asm/asm/ivy-4.0.xml
+Copyright: INRIA, France Telecom
+License: BSD-3-clause
+
+Files: bootstrapdeps/org.scala-lang.modules/scala-parser-combinators_2.11/bundles/scala-parser-combinators_2.11-1.0.3.jar
+ bootstrapdeps/org.scala-lang.modules/scala-parser-combinators_2.11/ivy-1.0.3.xml
+ bootstrapdeps/org.scala-lang.modules/scala-parser-combinators_2.11/bundles/scala-parser-combinators_2.11-1.0.4.jar
+ bootstrapdeps/org.scala-lang.modules/scala-parser-combinators_2.11/ivy-1.0.4.xml
+ bootstrapdeps/org.scala-lang.modules/scala-xml_2.11/bundles/scala-xml_2.11-1.0.3.jar
+ bootstrapdeps/org.scala-lang.modules/scala-xml_2.11/ivy-1.0.3.xml
+Copyright: EPFL
+ Typesafe, Inc.
+License: BSD-3-clause
+
+Files: bootstrapdeps/org.scala-lang.modules/scala-pickling_2.10/jars/scala-pickling_2.10-0.10.1.jar
+ bootstrapdeps/org.scala-lang.modules/scala-pickling_2.10/ivy-0.10.1.xml
+Copyright: Eugene Burmako
+ Heather Miller
+ Philipp Haller
+ Havoc Pennington
+ Eugene Yokota
+ Josh Suereth
+License: BSD-3-clause
+
+Files: bootstrapdeps/org.scala-lang/jline/jars/jline-2.10.6.jar
+ bootstrapdeps/org.scala-lang/jline/ivy-2.10.6.xml
+Copyright: EPFL LAMP
+ Typesafe, Inc.
+License: BSD-2-clause
+
+Files: bootstrapdeps/org.scala-lang/scala-compiler/jars/scala-compiler-2.10.6.jar
+ bootstrapdeps/org.scala-lang/scala-compiler/ivy-2.10.6.xml
+ bootstrapdeps/org.scala-lang/scala-library/jars/scala-library-2.10.6.jar
+ bootstrapdeps/org.scala-lang/scala-library/ivy-2.10.6.xml
+ bootstrapdeps/org.scala-lang/scala-reflect/jars/scala-reflect-2.10.6.jar
+ bootstrapdeps/org.scala-lang/scala-reflect/ivy-2.10.6.xml
+ bootstrapdeps/org.scala-lang/scala-compiler/jars/scala-compiler-2.11.6.jar
+ bootstrapdeps/org.scala-lang/scala-compiler/ivy-2.11.6.xml
+ bootstrapdeps/org.scala-lang/scala-library/jars/scala-library-2.11.6.jar
+ bootstrapdeps/org.scala-lang/scala-library/ivy-2.11.6.xml
+ bootstrapdeps/org.scala-lang/scala-reflect/jars/scala-reflect-2.11.6.jar
+ bootstrapdeps/org.scala-lang/scala-reflect/ivy-2.11.6.xml
+Copyright: EPFL LAMP
+ Typesafe, Inc.
+License: BSD-3-clause
+
+Files: bootstrapdeps/org.scala-sbt.ivy/ivy/jars/ivy-2.3.0-sbt-2cc8d2761242b072cedb0a04cb39435c4fa24f9a.jar
+ bootstrapdeps/org.scala-sbt.ivy/ivy/ivy-2.3.0-sbt-2cc8d2761242b072cedb0a04cb39435c4fa24f9a.xml
+Copyright: Eugene Yokota
+License: Apache-2.0
+
+Files: bootstrapdeps/org.scala-sbt/actions/jars/actions-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/actions/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/api/jars/api-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/api/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/apply-macro/jars/apply-macro-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/apply-macro/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/cache/jars/cache-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/cache/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/classfile/jars/classfile-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/classfile/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/classpath/jars/classpath-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/classpath/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/collections/jars/collections-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/collections/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/command/jars/command-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/command/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/compile/jars/compile-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/compile/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/compiler-integration/jars/compiler-integration-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/compiler-integration/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/compiler-interface/jars/compiler-interface-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/compiler-interface/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/compiler-ivy-integration/jars/compiler-ivy-integration-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/compiler-ivy-integration/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/completion/jars/completion-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/completion/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/control/jars/control-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/control/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/cross/jars/cross-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/cross/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/incremental-compiler/jars/incremental-compiler-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/incremental-compiler/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/interface/jars/interface-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/interface/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/io/jars/io-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/io/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/ivy/jars/ivy-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/ivy/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/logging/jars/logging-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/logging/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/logic/jars/logic-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/logic/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/main-settings/jars/main-settings-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/main-settings/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/main/jars/main-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/main/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/persist/jars/persist-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/persist/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/process/jars/process-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/process/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/relation/jars/relation-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/relation/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/run/jars/run-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/run/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/sbt/jars/sbt-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/sbt/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/task-system/jars/task-system-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/task-system/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/tasks/jars/tasks-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/tasks/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/test-agent/jars/test-agent-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/test-agent/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/testing/jars/testing-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/testing/ivy-0.13.12.xml
+ bootstrapdeps/org.scala-sbt/tracking/jars/tracking-0.13.12.jar
+ bootstrapdeps/org.scala-sbt/tracking/ivy-0.13.12.xml
+Copyright: Josh Suereth
+ Eugene Yokota
+License: BSD-3-clause
+
+Files: bootstrapdeps/org.scala-tools.sbinary/sbinary_2.10/jars/sbinary_2.10-0.4.2.jar
+ bootstrapdeps/org.scala-tools.sbinary/sbinary_2.10/ivy-0.4.2.xml
+Copyright: David R. MacIver
+License: Expat
+
+Files: bootstrapdeps/org.scala-sbt/launcher-interface/jars/launcher-interface-1.0.0-M1.jar
+ bootstrapdeps/org.scala-sbt/launcher-interface/ivy-1.0.0-M1.xml
+Copyright: Josh Suereth
+ Eugene Yokota
+License: BSD-3-clause
+
+Files: bootstrapdeps/org.scala-sbt/serialization_2.10/jars/serialization_2.10-0.1.2.jar
+ bootstrapdeps/org.scala-sbt/serialization_2.10/ivy-0.1.2.xml
+Copyright: Havoc Pennington
+ Eugene Yokota
+ Josh Suereth
+License: Apache-2.0
+
+Files: bootstrapdeps/org.scala-sbt/test-interface/jars/test-interface-1.0.jar
+ bootstrapdeps/org.scala-sbt/test-interface/ivy-1.0.xml
+Copyright: Mark Harrah
+ Josh Cough
+ Bill Venners
+ Chua Chee Seng
+License: BSD-3-clause
+
+Files: bootstrapdeps/org.scalacheck/scalacheck_2.11/jars/scalacheck_2.11-1.11.6.jar
+ bootstrapdeps/org.scalacheck/scalacheck_2.11/ivy-1.11.6.xml
+Copyright: Rickard Nilsson
+License: BSD-2-clause
+
+Files: bootstrapdeps/org.scalamacros/quasiquotes_2.10/jars/quasiquotes_2.10-2.0.1.jar
+ bootstrapdeps/org.scalamacros/quasiquotes_2.10/ivy-2.0.1.xml
+Copyright: Eugene Burmako
+License: BSD-3-clause
+
+Files: bootstrapdeps/org.scalatest/scalatest_2.11/jars/scalatest_2.11-2.1.7.jar
+ bootstrapdeps/org.scalatest/scalatest_2.11/ivy-2.1.7.xml
+Copyright: Bill Venners
+License: Apache-2.0
+
+Files: bootstrapdeps/org.spire-math/jawn-parser_2.10/jars/jawn-parser_2.10-0.6.0.jar
+ bootstrapdeps/org.spire-math/jawn-parser_2.10/ivy-0.6.0.xml
+ bootstrapdeps/org.spire-math/json4s-support_2.10/jars/json4s-support_2.10-0.6.0.jar
+ bootstrapdeps/org.spire-math/json4s-support_2.10/ivy-0.6.0.xml
+Copyright: Erik Osheim
+License: Expat
+
+
+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.
+
+License: BSD-2-clause
+ All rights reserved.
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+ .
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. 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.
+ .
+ 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.
+
+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:
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. 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.
+ 3. The name of the author may not be used to endorse or promote products
+ derived from this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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.
+
+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/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d50c39e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+use-latest-sbt.patch
diff --git a/debian/patches/use-latest-sbt.patch b/debian/patches/use-latest-sbt.patch
new file mode 100644
index 0000000..717aec3
--- /dev/null
+++ b/debian/patches/use-latest-sbt.patch
@@ -0,0 +1,11 @@
+Description: Use latest sbt version
+ sbt launcher is used by sbt and we're in the process of building sbt so, let's
+ use the sbt that is just before and available.
+Author: Frederic Bonnard <frediz at linux.vnet.ibm.com>
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/project/build.properties
++++ b/project/build.properties
+@@ -1 +1 @@
+-sbt.version=0.13.7
++sbt.version=0.13.12
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..7651502
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,83 @@
+#!/usr/bin/make -f
+
+export SBTHOME=$(CURDIR)/debian/sbt_home
+export HOME=$(SBTHOME)
+export SBTCMD=$(CURDIR)/bootstrapsbt/bin/sbt -verbose -debug -sbt-dir $(SBTHOME)/.sbt -ivy $(SBTHOME)/.ivy2
+
+PKD = $(abspath $(dir $(MAKEFILE_LIST)))
+SRCPKG = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
+BINPKG = lib$(SRCPKG)-java
+PKGVER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog -SVersion | cut -d- -f1)
+SBTVER ?= $(shell grep sbt.version= $(CURDIR)/project/build.properties | sed 's/.*=//')
+URL = https://dl.bintray.com/sbt/native-packages/sbt/$(SBTVER)/sbt-$(SBTVER).tgz
+
+PKG_ORIG = $(CURDIR)/../$(SRCPKG)_$(PKGVER).orig.tar.gz
+BOOTSTRAP_SBT = $(CURDIR)/../$(SRCPKG)_$(PKGVER).orig-bootstrapsbt.tar.xz
+BOOTSTRAP_DEPS = $(CURDIR)/../$(SRCPKG)_$(PKGVER).orig-bootstrapdeps.tar.xz
+BOOTSTRAP_DEPS_SOURCES = $(CURDIR)/../$(SRCPKG)_$(PKGVER).orig-bootstrapdeps-sources.tar.xz
+
+%:
+ dh $@ --with javahelper --with maven_repo_helper
+
+override_dh_auto_build:
+ mkdir -p $(SBTHOME)/.ivy2/cache
+ cp -fr $(CURDIR)/bootstrapdeps/* $(SBTHOME)/.ivy2/cache/
+ mkdir $(SBTHOME)/.sbt
+ echo "[repositories]" > $(SBTHOME)/.sbt/repositories
+ echo "local" >> $(SBTHOME)/.sbt/repositories
+ cp -frv $(CURDIR)/bootstrapdeps-sources/. $(SBTHOME)/.ivy2/cache/
+ $(SBTCMD) 'set offline := true' -Dsbt.override.build.repos=true packageBin make-pom
+ rm -fr target/scala-2.11 #scala-pickling empty jars here.. need to know why
+ find ./ -name '*.pom'|grep target|sed 's/\(.*\).pom/\1.pom --package=$(BINPKG) --has-package-version --java-lib --artifact=\1.jar/' | grep -v sandbox > $(CURDIR)/debian/$(BINPKG).poms
+
+override_dh_clean:
+ rm -fr .git $(SBTHOME) project/project $(shell find ./ -name target -type d) debian/$(BINPKG).poms
+ dh_clean
+
+.PHONY: get-orig-source
+
+get-orig-source: $(PKG_ORIG) $(BOOTSTRAP_DEPS) $(BOOTSTRAP_DEPS_SOURCES)
+
+$(PKG_ORIG):
+ @echo
+ @echo "Downloading latest $(SRCPKG)-$(PKGVER)"
+ uscan --noconf --verbose --rename --check-dirname-level=0 --download-version $(PKGVER) $(PKD)
+
+$(BOOTSTRAP_SBT):
+ @echo
+ @echo "Fetching sbt binary for bootstrap"
+ wget -q $(URL)
+ rm -fr bootstrapsbt
+ mkdir bootstrapsbt
+ tar -C bootstrapsbt --strip-components=1 -zxf sbt-$(SBTVER).tgz
+ tar -JcC bootstrapsbt -f $(BOOTSTRAP_SBT) .
+ rm -fr sbt-$(SBTVER).tgz
+
+$(BOOTSTRAP_DEPS) $(BOOTSTRAP_DEPS_SOURCES): $(BOOTSTRAP_SBT)
+ @echo
+ @echo "Fetching online sbt project build dependancies"
+ rm -fr bootstrapsbt bootstrapdeps-sources
+ mkdir bootstrapsbt
+ tar -Jx -C bootstrapsbt -f $(BOOTSTRAP_SBT)
+ mkdir -p $(SBTHOME)/.ivy2/cache
+ mkdir $(SBTHOME)/.sbt
+ $(SBTCMD) update
+ # "update" compiles compiler-interface jar with the scala defined by
+ # the project, so we remove it and store all jar srcs into a dedicated
+ # debian source component that will be copied before compiling the
+ # whole project, including the compiler-interface jar
+ # After bootstrap, we intend to provide this compiler-interface, built
+ # with debian's scala
+ rm -fr $(SBTHOME)/.ivy2/cache/org.scala-sbt/org.scala-sbt-compiler-interface-*
+ # .properties and .xml.original will be regenerated and that will avoid unnecessary debian/copyright work
+ find $(SBTHOME)/.ivy2/cache \( -name '*.properties' -o -name '*.xml.original' \) -delete
+ # remove path with no jar file
+ find $(SBTHOME)/.ivy2/cache/ -name '*.xml' |while read DIR; do \
+ if [ ! -d $${DIR%/*}/jars -a ! -d $${DIR%/*}/bundles -a ! -d $${DIR%/*}/orbits ]; then rm -fr $${DIR%/*}; fi done
+ cd $(SBTHOME)/.ivy2/cache ; find . -type d -name 'srcs'| while read DIR; do \
+ mkdir -p $(CURDIR)/bootstrapdeps-sources/$$DIR ; \
+ mv $$DIR/* $(CURDIR)/bootstrapdeps-sources/$$DIR ; \
+ rm -fr $$DIR ; \
+ done
+ tar -JcC $(SBTHOME)/.ivy2/cache/ -f $(BOOTSTRAP_DEPS) .
+ tar -Jc -f $(BOOTSTRAP_DEPS_SOURCES) bootstrapdeps-sources
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/source/include-binaries b/debian/source/include-binaries
new file mode 100644
index 0000000..69a5d1c
--- /dev/null
+++ b/debian/source/include-binaries
@@ -0,0 +1 @@
+bootstrapscala/bin/sbt-launch.jar
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..d07596d
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/scala-pickling-$1\.tar\.gz/,uversionmangle=s/-(RC|M)/~$1/ \
+ https://github.com/scala/pickling/tags .*/v?(\d\S*)\.tar\.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/scala-pickling.git
More information about the pkg-java-commits
mailing list