diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 02:05:42 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 02:05:42 +0000 |
commit | 52506cce144537546ffd519c505a9d67d25b284b (patch) | |
tree | 04dae99a61727033fb475f415a1355fefda04641 /debian | |
parent | Adding upstream version 1.3.1. (diff) | |
download | powerline-gitstatus-52506cce144537546ffd519c505a9d67d25b284b.tar.xz powerline-gitstatus-52506cce144537546ffd519c505a9d67d25b284b.zip |
Adding debian version 1.3.1-1.debian/1.3.1-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | debian/changelog | 18 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 52 | ||||
-rw-r--r-- | debian/copyright | 33 | ||||
-rw-r--r-- | debian/docs | 1 | ||||
-rw-r--r-- | debian/local/colorschemes-default.patch | 28 | ||||
-rw-r--r-- | debian/local/themes-shell-default.patch | 17 | ||||
-rw-r--r-- | debian/local/themes-shell-default_leftonly.patch | 15 | ||||
-rwxr-xr-x | debian/powerline-gitstatus.postrm | 31 | ||||
-rwxr-xr-x | debian/powerline-gitstatus.preinst | 31 | ||||
-rwxr-xr-x | debian/rules | 32 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/watch | 3 |
13 files changed, 263 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..29bde8b --- /dev/null +++ b/debian/changelog @@ -0,0 +1,18 @@ +powerline-gitstatus (1.3.1-1) unstable; urgency=medium + + [ Daniel Baumann ] + * Update to debhelper compat 12 + * Update to standards version 4.3.0 + * Add Rules-Requires-Root and missing Built-Using + + [ Jerome Charaoui ] + * New upstream version 1.3.1 + * Add upstream README in package + + -- Jerome Charaoui <jerome@riseup.net> Sun, 13 Jan 2019 16:05:06 -0500 + +powerline-gitstatus (1.2.1-1) unstable; urgency=medium + + * Initial upload (Closes: #900661). + + -- Jerome Charaoui <jerome@riseup.net> Mon, 04 Jun 2018 22:05:14 -0400 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..48082f7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +12 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..9386546 --- /dev/null +++ b/debian/control @@ -0,0 +1,52 @@ +Source: powerline-gitstatus +Section: python +Priority: optional +Maintainer: Jerome Charaoui <jerome@riseup.net> +Build-Depends: + debhelper (>= 12), + dh-python, + powerline (>= 2.6), + python-all, + python-setuptools, + python3-all, + python3-powerline, + python3-setuptools, +Build-Conflicts: + powerline-gitstatus, +Rules-Requires-Root: no +Standards-Version: 4.3.0 +Homepage: https://github.com/jaspernbrouwer/powerline-gitstatus +Vcs-Browser: https://salsa.debian.org/lavamind/powerline-gitstatus +Vcs-Git: https://salsa.debian.org/lavamind/powerline-gitstatus.git + +Package: powerline-gitstatus +Architecture: all +Depends: + git, + powerline ${powerline:Version}, + python3-powerline-gitstatus, + ${misc:Depends}, +Built-Using: + ${built-using}, +Description: Powerline Git segment + Powerline is a statusline plugin for vim, and provides statuslines and + prompts for several other applications, including zsh, bash, tmux, + IPython, Awesome and Qtile. + . + This package contains the configuration handling for powerline. + +Package: python3-powerline-gitstatus +Architecture: all +Depends: + python3-powerline ${powerline:Version}, + ${misc:Depends}, + ${python3:Depends}, +Built-Using: + ${built-using}, +Description: Powerline Git segment for Python (3.x) + Powerline is a statusline plugin for vim, and provides statuslines and + prompts for several other applications, including zsh, bash, tmux, + IPython, Awesome and Qtile. + . + This package contains the Git segment for showing the status of a Git working + copy for Python 3.x. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..f746e57 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,33 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: powerline-gitstatus +Upstream-Contact: Jasper N. Brouwer <jasper@nerdsweide.nl> +Source: https://pypi.org/project/powerline-gitstatus + +Files: * +Copyright: 2015-2016 Jasper N. Brouwer <jasper@nerdsweide.nl> +License: MIT + +Files: debian/* +Copyright: + 2010-2018 Daniel Baumann <daniel.baumann@progress-linux.org> + 2018 Jerome Charaoui <jerome@riseup.net> +License: MIT + +License: MIT + 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. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/debian/local/colorschemes-default.patch b/debian/local/colorschemes-default.patch new file mode 100644 index 0000000..10e3972 --- /dev/null +++ b/debian/local/colorschemes-default.patch @@ -0,0 +1,28 @@ +Author: Daniel Baumann <daniel.baumann@progress-linux.org> +Description: Adding powerline-gitstatus colors to default colorscheme. + +diff -Naurp powerline-gitstatus.temp/debian/powerline-gitstatus/usr/share/powerline/config_files/colorschemes/default.json powerline-gitstatus/debian/powerline-gitstatus/usr/share/powerline/config_files/colorschemes/default.json +--- powerline-gitstatus.temp/debian/powerline-gitstatus/usr/share/powerline/config_files/colorschemes/default.json ++++ powerline-gitstatus/debian/powerline-gitstatus/usr/share/powerline/config_files/colorschemes/default.json +@@ -51,6 +51,20 @@ + "cwd:current_folder": "information:regular", + "cwd:divider": { "fg": "gray7", "bg": "gray4", "attrs": [] }, + "virtualenv": { "fg": "white", "bg": "darkcyan", "attrs": [] }, +- "attached_clients": { "fg": "gray8", "bg": "gray0", "attrs": [] } ++ "attached_clients": { "fg": "gray8", "bg": "gray0", "attrs": [] }, ++ "gitstatus": { "fg": "gray8", "bg": "gray2", "attrs": [] }, ++ "gitstatus_branch": { "fg": "gray8", "bg": "gray2", "attrs": [] }, ++ "gitstatus_branch_clean": { "fg": "green", "bg": "gray2", "attrs": [] }, ++ "gitstatus_branch_dirty": { "fg": "gray8", "bg": "gray2", "attrs": [] }, ++ "gitstatus_branch_detached": { "fg": "mediumpurple", "bg": "gray2", "attrs": [] }, ++ "gitstatus_tag": { "fg": "darkcyan", "bg": "gray2", "attrs": [] }, ++ "gitstatus_behind": { "fg": "gray10", "bg": "gray2", "attrs": [] }, ++ "gitstatus_ahead": { "fg": "gray10", "bg": "gray2", "attrs": [] }, ++ "gitstatus_staged": { "fg": "green", "bg": "gray2", "attrs": [] }, ++ "gitstatus_unmerged": { "fg": "brightred", "bg": "gray2", "attrs": [] }, ++ "gitstatus_changed": { "fg": "mediumorange", "bg": "gray2", "attrs": [] }, ++ "gitstatus_untracked": { "fg": "brightestorange", "bg": "gray2", "attrs": [] }, ++ "gitstatus_stashed": { "fg": "darkblue", "bg": "gray2", "attrs": [] }, ++ "gitstatus:divider": { "fg": "gray8", "bg": "gray2", "attrs": [] } + } + } diff --git a/debian/local/themes-shell-default.patch b/debian/local/themes-shell-default.patch new file mode 100644 index 0000000..008bdb9 --- /dev/null +++ b/debian/local/themes-shell-default.patch @@ -0,0 +1,17 @@ +Author: Daniel Baumann <daniel.baumann@progress-linux.org> +Description: Enabling powerline-gitstatus in default shell theme. + +diff -Naurp powerline-gitstatus.temp/debian/powerline-gitstatus/usr/share/powerline/config_files/themes/shell/default.json powerline-gitstatus/debian/powerline-gitstatus/usr/share/powerline/config_files/themes/shell/default.json +--- powerline-gitstatus.temp/debian/powerline-gitstatus/usr/share/powerline/config_files/themes/shell/default.json ++++ powerline-gitstatus/debian/powerline-gitstatus/usr/share/powerline/config_files/themes/shell/default.json +@@ -17,6 +17,10 @@ + "priority": 50 + }, + { ++ "function": "powerline_gitstatus.gitstatus", ++ "priority": 40 ++ }, ++ { + "function": "powerline.segments.shell.cwd", + "priority": 10 + }, diff --git a/debian/local/themes-shell-default_leftonly.patch b/debian/local/themes-shell-default_leftonly.patch new file mode 100644 index 0000000..f800700 --- /dev/null +++ b/debian/local/themes-shell-default_leftonly.patch @@ -0,0 +1,15 @@ +Author: Daniel Baumann <daniel.baumann@progress-linux.org> +Description: Enabling powerline-gitstatus in default_leftonly shell theme. + +diff -Naurp powerline-gitstatus.temp/debian/powerline-gitstatus/usr/share/powerline/config_files/themes/shell/default_leftonly.json powerline-gitstatus/debian/powerline-gitstatus/usr/share/powerline/config_files/themes/shell/default_leftonly.json +--- powerline-gitstatus.temp/debian/powerline-gitstatus/usr/share/powerline/config_files/themes/shell/default_leftonly.json ++++ powerline-gitstatus/debian/powerline-gitstatus/usr/share/powerline/config_files/themes/shell/default_leftonly.json +@@ -14,7 +14,7 @@ + "priority": 50 + }, + { +- "function": "powerline.segments.common.vcs.branch", ++ "function": "powerline_gitstatus.gitstatus", + "priority": 40 + }, + { diff --git a/debian/powerline-gitstatus.postrm b/debian/powerline-gitstatus.postrm new file mode 100755 index 0000000..88cb4e6 --- /dev/null +++ b/debian/powerline-gitstatus.postrm @@ -0,0 +1,31 @@ +#!/bin/sh + +set -e + +case "${1}" in + remove) + for FILE in /usr/share/powerline/config_files/colorschemes/default.json \ + /usr/share/powerline/config_files/themes/shell/default.json \ + /usr/share/powerline/config_files/themes/shell/default_leftonly.json + do + DIVERTION="/usr/share/powerline-gitstatus/divert/$(basename $(dirname ${FILE}))_$(basename ${FILE}).powerline" + + dpkg-divert --package powerline-gitstatus --quiet --remove --rename --divert "${DIVERTION}" "${FILE}" + done + + rmdir -p --ignore-fail-on-non-empty /usr/share/powerline-gitstatus/divert > /dev/null 2>&1 || true + ;; + + purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/powerline-gitstatus.preinst b/debian/powerline-gitstatus.preinst new file mode 100755 index 0000000..22d6b0f --- /dev/null +++ b/debian/powerline-gitstatus.preinst @@ -0,0 +1,31 @@ +#!/bin/sh + +set -e + +case "${1}" in + install) + mkdir -p /usr/share/powerline-gitstatus/divert + + for FILE in /usr/share/powerline/config_files/colorschemes/default.json \ + /usr/share/powerline/config_files/themes/shell/default.json \ + /usr/share/powerline/config_files/themes/shell/default_leftonly.json + do + DIVERTION="/usr/share/powerline-gitstatus/divert/$(basename $(dirname ${FILE}))_$(basename ${FILE}).powerline" + + dpkg-divert --package powerline-gitstatus --quiet --add --rename --divert "${DIVERTION}" "${FILE}" + done + ;; + + upgrade|abort-upgrade) + + ;; + + *) + echo "preinst called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..cf6278e --- /dev/null +++ b/debian/rules @@ -0,0 +1,32 @@ +#!/usr/bin/make -f + +export PYBUILD_NAME=powerline-gitstatus + +%: + dh ${@} --buildsystem=pybuild --with python3 + +override_dh_auto_clean: + dh_auto_clean + rm -rf powerline_gitstatus.egg-info + +override_dh_auto_install: + dh_auto_install + + # colorschemes/default.json + mkdir -p debian/powerline-gitstatus/usr/share/powerline/config_files/colorschemes + cp /usr/share/powerline/config_files/colorschemes/default.json debian/powerline-gitstatus/usr/share/powerline/config_files/colorschemes + patch -Np1 -i debian/local/colorschemes-default.patch + + # themes/shell/default.json + mkdir -p debian/powerline-gitstatus/usr/share/powerline/config_files/themes/shell + cp /usr/share/powerline/config_files/themes/shell/default.json debian/powerline-gitstatus/usr/share/powerline/config_files/themes/shell + patch -Np1 -i debian/local/themes-shell-default.patch + + # themes/shell/default_leftonly.json + mkdir -p debian/powerline-gitstatus/usr/share/powerline/config_files/themes/shell + cp /usr/share/powerline/config_files/themes/shell/default_leftonly.json debian/powerline-gitstatus/usr/share/powerline/config_files/themes/shell + patch -Np1 -i debian/local/themes-shell-default_leftonly.patch + +override_dh_gencontrol: + dh_gencontrol -- -Vbuilt-using="powerline (= $$(dpkg-query --show --showformat='$${source:Version}' powerline))" \ + -Vpowerline:Version="(>= $$(dpkg-query --show --showformat='$${source:Version}' powerline)~)" 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..ac28630 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=4 +opts=filenamemangle=s/(?:.*?)?v(\d[\d.]+)\.tar\.gz/powerline-gitstatus-$1.tar.gz/ \ + https://github.com/jaspernbrouwer/powerline-gitstatus/tags (?:.*/)?v?(\d[\d\.]*)\.tar\.gz |