[Git][haskell-team/DHG_packages][master] elm-compiler: Upload to unstable
Hilko Bengen (@bengen)
gitlab at salsa.debian.org
Fri Oct 7 00:16:38 BST 2022
Hilko Bengen pushed to branch master at Debian Haskell Group / DHG_packages
Commits:
2fa8398a by Hilko Bengen at 2022-10-07T01:16:04+02:00
elm-compiler: Upload to unstable
- - - - -
15 changed files:
- + p/elm-compiler/debian/README.source
- + p/elm-compiler/debian/changelog
- + p/elm-compiler/debian/clean
- + p/elm-compiler/debian/compat
- + p/elm-compiler/debian/control
- + p/elm-compiler/debian/copyright
- + p/elm-compiler/debian/elm-compiler.docs
- + p/elm-compiler/debian/elm-compiler.install
- + p/elm-compiler/debian/make-packages-origtar.sh
- + p/elm-compiler/debian/patches/0001-Remmove-upper-bounds-for-build-dependencies.patch
- + p/elm-compiler/debian/patches/series
- + p/elm-compiler/debian/rules
- + p/elm-compiler/debian/source/format
- + p/elm-compiler/debian/source/lintian-overrides
- + p/elm-compiler/debian/watch
Changes:
=====================================
p/elm-compiler/debian/README.source
=====================================
@@ -0,0 +1,13 @@
+elm-compiler for Debian
+=======================
+
+To build this package, ssome extra Elm packages referenced in various
+elm.json files) are required.
+
+Those are not part of the elm/compiler source distribution. To avoid
+downloads at build time, they are provided in a separate orig tarball
+which has been created (and can be reproduced) using
+debian/make-packages-origtar.sh.
+
+ -- Hilko Bengen <bengen at debian.org>, Thu, 06 Oct 2022 22:02:55 +0200
+
=====================================
p/elm-compiler/debian/changelog
=====================================
@@ -0,0 +1,5 @@
+elm-compiler (0.19.1-1) unstable; urgency=low
+
+ * Initial release (Closes: #973915)
+
+ -- Hilko Bengen <bengen at debian.org> Thu, 06 Oct 2022 22:02:55 +0200
=====================================
p/elm-compiler/debian/clean
=====================================
@@ -0,0 +1,4 @@
+reactor/elm-stuff/
+
+debian/elm-home/
+debian/tmp-setup-hs/
=====================================
p/elm-compiler/debian/compat
=====================================
@@ -0,0 +1 @@
+10
=====================================
p/elm-compiler/debian/control
=====================================
@@ -0,0 +1,72 @@
+Source: elm-compiler
+Maintainer: Debian Haskell Group <pkg-haskell-maintainers at lists.alioth.debian.org>
+Uploaders: Hilko Bengen <bengen at debian.org>
+Priority: optional
+Section: haskell
+Build-Depends: debhelper (>= 10),
+ haskell-devscripts-minimal | haskell-devscripts (>= 0.13),
+ cdbs,
+ ghc,
+ ghc-prof,
+ libghc-http-dev (>= 1:4000.2.5),
+ libghc-http-prof (>= 1:4000.2.5),
+ libghc-sha-dev,
+ libghc-sha-prof,
+ libghc-ansi-terminal-dev (>= 0.8),
+ libghc-ansi-terminal-prof (>= 0.8),
+ libghc-ansi-wl-pprint-dev (>= 0.6.8),
+ libghc-ansi-wl-pprint-prof (>= 0.6.8),
+ libghc-edit-distance-dev (>= 0.2),
+ libghc-edit-distance-prof (>= 0.2),
+ libghc-file-embed-dev,
+ libghc-file-embed-prof,
+ libghc-filelock-dev,
+ libghc-filelock-prof,
+ libghc-http-client-dev (>= 0.6),
+ libghc-http-client-prof (>= 0.6),
+ libghc-http-client-tls-dev (>= 0.3),
+ libghc-http-client-tls-prof (>= 0.3),
+ libghc-http-types-dev (>= 0.12),
+ libghc-http-types-prof (>= 0.12),
+ libghc-language-glsl-dev (>= 0.3),
+ libghc-language-glsl-prof (>= 0.3),
+ libghc-network-dev (>= 2.4),
+ libghc-network-prof (>= 2.4),
+ libghc-raw-strings-qq-dev,
+ libghc-raw-strings-qq-prof,
+ libghc-scientific-dev,
+ libghc-scientific-prof,
+ libghc-snap-core-dev,
+ libghc-snap-core-prof,
+ libghc-snap-server-dev,
+ libghc-snap-server-prof,
+ libghc-unordered-containers-dev,
+ libghc-unordered-containers-prof,
+ libghc-utf8-string-dev,
+ libghc-utf8-string-prof,
+ libghc-vector-dev,
+ libghc-vector-prof,
+ libghc-zip-archive-dev,
+ libghc-zip-archive-prof,
+Standards-Version: 4.6.1
+Homepage: https://elm-lang.org
+
+Package: elm-compiler
+Architecture: any
+Section: misc
+Depends: ${haskell:Depends},
+ ${misc:Depends},
+ ${shlibs:Depends},
+Recommends: ${haskell:Recommends},
+Suggests: ${haskell:Suggests},
+Conflicts: ${haskell:Conflicts},
+Provides: ${haskell:Provides},
+Description: Elm, a delightful language for reliable webapps
+ Elm is a functional language that compiles to JavaScript, It is
+ intended to be used for websites and web apps and has a strong
+ emphasis on simplicity and quality tooling.
+ .
+ This package includes commands like `elm make`, `elm repl`, and many
+ others for helping make Elm developers happy and productive.
+ .
+ ${haskell:Blurb}
=====================================
p/elm-compiler/debian/copyright
=====================================
@@ -0,0 +1,62 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: elm
+Upstream-Contact: info at elm-lang.org
+Source: https://hackage.haskell.org/package/elm
+
+Files: *
+Copyright: 2011-present, Evan Czaplicki
+License: BSD-3-clause
+
+Files: packages/elm-explorations/markdown/1.0.0/src/Elm/Kernel/Markdown.js packages/elm-explorations/markdown/1.0.0/marked.js
+Copyright: 2014, Christopher Jeffrey <https://github.com/chjj/>
+Comment: marked.js contains contains the original, non-minified form
+ of the minified vode contained in Markdown.js.
+License: Expat
+
+Files: debian/*
+Copyright: 2022, Hilko Bengen <bengen at debian.org>
+License: BSD-3-clause
+
+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. Neither the name of the University 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 HOLDERS 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: 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.
=====================================
p/elm-compiler/debian/elm-compiler.docs
=====================================
@@ -0,0 +1,2 @@
+docs/*
+hints
=====================================
p/elm-compiler/debian/elm-compiler.install
=====================================
@@ -0,0 +1 @@
+dist-ghc/build/elm/elm usr/bin
=====================================
p/elm-compiler/debian/make-packages-origtar.sh
=====================================
@@ -0,0 +1,42 @@
+#!/bin/bash
+
+# Build everything from source, collect downloaded Elm packages into
+# extra orig tarball, fetch unminified form of "marked" parser from
+# Github.
+#
+# This script is intended to be run on upstream version upgrades.
+
+set -eu
+
+version=$( dpkg-parsechangelog -S Version | sed -E -e 's/^([^:]:)?([^-]*)(-.*)?$/\2/' )
+
+rm -rf packages/ reactor/elm-stuff/
+mkdir packages
+
+dpkg-source --before-build .
+fakeroot debian/rules clean build
+
+rm -f packages/lock
+
+markdown_js=$(find packages/ -name Markdown.js)
+markdown_basedir=$(echo "$markdown_js" | sed -e 's/^\(.*[0-9]\/\).*/\1/')
+marked_commit=$(< "$markdown_js" sed -ne '/\* commit/ {; s/.* commit *\(.*\)$/\1/; p; q; }')
+tempdir=$(mktemp -d)
+
+git init "$tempdir"
+(
+ cd "$tempdir"
+ git fetch https://github.com/chjj/marked "$marked_commit"
+ git checkout "$marked_commit"
+)
+cp "$tempdir/lib/marked.js" "$markdown_basedir/"
+rm -rf "$tempdir"
+
+tar \
+ --numeric-owner --owner=0 --group=0 \
+ --no-acls \
+ --no-selinux \
+ --no-xattrs \
+ --mtime=@0 \
+ --sort=name \
+ -cJf ../elm-compiler_"$version".orig-packages.tar.xz packages/
=====================================
p/elm-compiler/debian/patches/0001-Remmove-upper-bounds-for-build-dependencies.patch
=====================================
@@ -0,0 +1,110 @@
+From: Hilko Bengen <bengen at debian.org>
+Date: Thu, 22 Sep 2022 22:09:28 +0200
+Subject: Remmove upper bounds for build-dependencies
+
+---
+ elm.cabal | 32 ++++++++++++++++----------------
+ worker/elm.cabal | 30 +++++++++++++++---------------
+ 2 files changed, 31 insertions(+), 31 deletions(-)
+
+diff --git a/elm.cabal b/elm.cabal
+index bf1cfcf..7f2c2d2 100644
+--- a/elm.cabal
++++ b/elm.cabal
+@@ -20,7 +20,7 @@ Copyright: Copyright (c) 2011-present, Evan Czaplicki
+
+ Category: Compiler, Language
+
+-Cabal-version: >=1.9
++Cabal-version: >= 1.9
+ Build-type: Simple
+
+ source-repository head
+@@ -203,26 +203,26 @@ Executable elm
+ Paths_elm
+
+ Build-depends:
+- ansi-terminal >= 0.8 && < 0.9,
+- ansi-wl-pprint >= 0.6.8 && < 0.7,
+- base >=4.11 && <5,
+- binary >= 0.8 && < 0.9,
+- bytestring >= 0.9 && < 0.11,
+- containers >= 0.5.8.2 && < 0.6,
+- directory >= 1.2.3.0 && < 2.0,
+- edit-distance >= 0.2 && < 0.3,
++ ansi-terminal >= 0.8,
++ ansi-wl-pprint >= 0.6.8,
++ base >=4.11,
++ binary >= 0.8,
++ bytestring >= 0.9,
++ containers >= 0.5.8.2,
++ directory >= 1.2.3.0,
++ edit-distance >= 0.2,
+ file-embed,
+ filelock,
+- filepath >= 1 && < 2.0,
++ filepath >= 1,
+ ghc-prim >= 0.5.2,
+ haskeline,
+- HTTP >= 4000.2.5 && < 4000.4,
+- http-client >= 0.6 && < 0.7,
+- http-client-tls >= 0.3 && < 0.4,
+- http-types >= 0.12 && < 1.0,
++ HTTP >= 4000.2.5,
++ http-client >= 0.6,
++ http-client-tls >= 0.3,
++ http-types >= 0.12,
+ language-glsl >= 0.3,
+- mtl >= 2.2.1 && < 3,
+- network >= 2.4 && < 2.7,
++ mtl >= 2.2.1,
++ network >= 2.4,
+ parsec,
+ process,
+ raw-strings-qq,
+diff --git a/worker/elm.cabal b/worker/elm.cabal
+index 5a4a56b..4bc31b2 100644
+--- a/worker/elm.cabal
++++ b/worker/elm.cabal
+@@ -170,26 +170,26 @@ Executable worker
+
+ Build-depends:
+ aeson,
+- ansi-terminal >= 0.8 && < 0.9,
+- ansi-wl-pprint >= 0.6.8 && < 0.7,
+- base >=4.11 && <5,
+- binary >= 0.8 && < 0.9,
+- bytestring >= 0.9 && < 0.11,
+- containers >= 0.5.8.2 && < 0.6,
+- directory >= 1.2.3.0 && < 2.0,
+- edit-distance >= 0.2 && < 0.3,
++ ansi-terminal >= 0.8,
++ ansi-wl-pprint >= 0.6.8,
++ base >=4.11,
++ binary >= 0.8,
++ bytestring >= 0.9,
++ containers >= 0.5.8.2,
++ directory >= 1.2.3.0,
++ edit-distance >= 0.2,
+ filelock,
+- filepath >= 1 && < 2.0,
++ filepath >= 1,
+ ghc-prim >= 0.5.2,
+ haskeline,
+- HTTP >= 4000.2.5 && < 4000.4,
+- http-client >= 0.6 && < 0.7,
+- http-client-tls >= 0.3 && < 0.4,
+- http-types >= 0.12 && < 1.0,
++ HTTP >= 4000.2.5,
++ http-client >= 0.6,
++ http-client-tls >= 0.3,
++ http-types >= 0.12,
+ io-streams,
+ language-glsl >= 0.3,
+- mtl >= 2.2.1 && < 3,
+- network >= 2.4 && < 2.7,
++ mtl >= 2.2.1,
++ network >= 2.4,
+ network-uri,
+ parsec,
+ process,
=====================================
p/elm-compiler/debian/patches/series
=====================================
@@ -0,0 +1 @@
+0001-Remmove-upper-bounds-for-build-dependencies.patch
=====================================
p/elm-compiler/debian/rules
=====================================
@@ -0,0 +1,19 @@
+#!/usr/bin/make -f
+
+DEB_CABAL_PACKAGE = elm
+DEB_DEFAULT_COMPILER = ghc
+DEB_COMPRESS_EXCLUDE = .md
+
+export ELM_HOME := $(CURDIR)/debian/elm-home
+ELM_VERSION := $(shell dpkg-parsechangelog -SVersion | sed -E -e 's/^([^:]:)?([^-]*)(-.*)?$$/\2/')
+PACKAGES_DIR := $(ELM_HOME)/$(ELM_VERSION)/packages
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/hlibrary.mk
+
+pre-build::
+ rm -f $(PACKAGES_DIR)
+ mkdir -p $(ELM_HOME)/$(ELM_VERSION)
+ ln -sf $(CURDIR)/packages $(PACKAGES_DIR)
+
+build/elm-compiler:: build-ghc-stamp
=====================================
p/elm-compiler/debian/source/format
=====================================
@@ -0,0 +1 @@
+3.0 (quilt)
=====================================
p/elm-compiler/debian/source/lintian-overrides
=====================================
@@ -0,0 +1,2 @@
+# Source is actually provided in packages/elm-explorations/markdown/1.0.0/marked.js
+elm-compiler source: source-is-missing [packages/elm-explorations/markdown/1.0.0/src/Elm/Kernel/Markdown.js]
=====================================
p/elm-compiler/debian/watch
=====================================
@@ -0,0 +1,5 @@
+version=4
+
+opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%elm-compiler-$1.tar.gz%" \
+ https://github.com/elm/compiler//tags \
+ (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/2fa8398a93d2f009b0e071eee5673cade82e960f
--
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/2fa8398a93d2f009b0e071eee5673cade82e960f
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20221006/04858cd0/attachment-0001.htm>
More information about the Pkg-haskell-commits
mailing list