remove unsupported packages

This commit is contained in:
Alexander Tratsevskiy 2024-11-20 18:40:32 +03:00
parent 8a38865cda
commit b7a8bf15dc
28 changed files with 0 additions and 1738 deletions

View file

@ -1,2 +0,0 @@
DIST wgetpaste-2.33.tar.xz 16408 BLAKE2B 78baebf4edb6e6340a73127099366d306359d02c0c1eab137822c56669da0609a5479940b4fb2accbc79978df091dcd34415876618e64aa556d1584f74773736 SHA512 9bf1f379316da372b4f69296b54f9a266dcf9fdaa2a8718165a2029571f4c2c0166304ffebeb2ec4657ea6f49087793f40d9da383f5da052bce0543c90ea13ab
DIST wgetpaste-2.34.tar.xz 16640 BLAKE2B 6bc71d74945b88774f866a8c1bb693d52b3d5d680a04e45ec29acfb6dd9d9de16433ed9d675db1d63705dac356e44c89d7af0e7b18a71089778bfa92833d95d3 SHA512 9f334299d0314e821d989c785aaae9e8e9c0e4972ced9330039f7e2ca1867528a2d4f090dd754ec72e8a9d7005d8f5154266cd0769627b1023d1199893cf4f8c

View file

@ -1,39 +0,0 @@
From 9614658e6a31bf1b318972008fd9fd1301e9d92f Mon Sep 17 00:00:00 2001
From: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
Date: Sun, 13 Aug 2023 14:32:34 -0500
Subject: [PATCH 2/3] Add -A/--ansi
Don't strip ANSI codes.
---
See also: https://github.com/zlin/wgetpaste/pull/46
- Oskari
wgetpaste | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/wgetpaste b/wgetpaste
index 5f4152d..1e3ae35 100755
--- a/wgetpaste
+++ b/wgetpaste
@@ -556,6 +556,8 @@ Options:
-X, --xpaste write resulting url to the X primary selection buffer (requires x11-misc/xclip)
-C, --xclippaste write resulting url to the X clipboard selection buffer (requires x11-misc/xclip)
-N, --no-ansi strip ANSI codes such as colors before pasting (requires app-text/ansifilter)
+ -A, --ansi don't strip ANSI codes
+ (useful for undoing NOANSI specified in a config file)
-r, --raw show url for the raw paste (no syntax highlighting or html)
-t, --tee use tee to show what is being pasted
@@ -789,6 +791,9 @@ while [[ -n $1 ]]; do
-- )
shift && getfilenames "$@" && break
;;
+ -A | --ansi )
+ NOANSI=
+ ;;
-c | --command )
requiredarg "$@"
SOURCE="command"
--
2.41.0

View file

@ -1,72 +0,0 @@
--- a/wgetpaste 2023-11-05 01:00:11.421397200 +0300
+++ b/wgetpaste 2023-11-05 01:08:36.145761741 +0300
@@ -41,7 +41,18 @@
}
### services
-SERVICES="0x0 bpaste codepad dpaste gists ix_io pgz snippets"
+SERVICES="0x0 bpaste codepad dpaste gists ix_io pgz snippets calculate"
+# calculate
+ENGINE_calculate=calculate
+if [[ "$LANG" =~ 'ru_RU' ]]; then
+ URL_calculate="http://pastebin.calculate-linux.ru"
+else
+ URL_calculate="http://pastebin.calculate-linux.org"
+fi
+DEFAULT_LANGUAGE_calculate="Text"
+DEFAULT_PARENT_calculate=""
+DEFAULT_PRIVATE_calculate=0
+SIZE_calculate="25000 25%kB"
# 0x0
ENGINE_0x0=0x0
URL_0x0="http://0x0.st"
@@ -89,6 +100,22 @@
# 0x0
escape_description_0x0() { echo "$*"; }
escape_input_0x0() { echo "$*"; }
+LANGUAGES_calculate="Apache Bash Batch Boo C C# C++ Clojure Creole_Wiki CSS \
+CSV D Debian_control-files Django_Jinja_Templates Dylan Erlang eRuby_rhtml GAS GCC_Messages \
+Genshi_Templates Gettext_catalogs GL_Shader_language Haskell HTML INI_File Interactive_Ruby IO \
+IRC_Logs Java javac_Messages JavaScript JSP Lighttpd Literate_Haskell LLVM Lua Mako_Templates Matlab \
+Matlab_Session MiniD Multi-File Myghty_Templates MySQL Nasm Nginx Object-Pascal OCaml Perl PHP \
+PHP_(inline) Povray Python Python_Console_Sessions Python_Tracebacks reStructuredText Ruby Scala \
+Scheme Smalltalk Smarty sources.list SQL SquidConf TeX_LaTeX Text Unified_Diff Vim XML XSLT YAML"
+LANGUAGE_VALUES_calculate="apache bash bat boo c csharp cpp clojure creole css csv d control html+django \
+dylan erlang rhtml gas gcc-messages html+genshi gettext glsl haskell html ini irb io irc java \
+javac-messages js jsp lighttpd literate-haskell llvm lua html+mako matlab matlabsession minid multi \
+html+myghty mysql nasm nginx objectpascal ocaml perl html+php php povray python pycon pytb rst ruby \
+scala scheme smalltalk smarty sourceslist sql squidconf tex text diff vim xml xslt yaml"
+REGEX_RAW_calculate='s|^\(http://[^/]*/\)show\(/[0-9]*/\)$|\1raw\2|'
+POST_calculate() {
+ POST_generic "submit=paste! parent private language % % text" "$PARENT" "$PRIVATE" "$3" "$4" "$5" "$6"
+}
POST_0x0() {
local filename="${2}"
local content="${6}" boundary="WGETPASTE-yuLr+iHOSQ+trEgDcj9UVq5R302bid"
@@ -562,6 +589,8 @@
-q, --quiet show the url only
-v, --verbose show wget stderr output if no url is received
--completions emit output suitable for shell completions (only affects --list-*)
--debug be *very* verbose (implies -v)
+ -p, --parent PARENT [service calculate only!] set parent paste as -p <id> paste
+ -P, --private PRIVATE [service calculate only!] set private status as -P <seed>
-h, --help show this help
@@ -847,6 +876,17 @@
-C | --xclippaste )
XCLIPPASTE=0
;;
+ -p | --parent )
+ requiredarg "$@"
+ PARENTSET=0
+ PARENT="$2"
+ ;;
+ -P | --private )
+ requiredarg "$@"
+ PRIVATESET=0
+ PRIVATE="$2"
+ ;;
+
-* )
die "$0: unrecognized option \`$1'"
;;

View file

@ -1,69 +0,0 @@
From cc41231b0ea2ec5cc0a8353fd4a9b6b71301f819 Mon Sep 17 00:00:00 2001
From: Christopher Fore <csfore@posteo.net>
Date: Sat, 14 Oct 2023 21:48:39 -0400
Subject: [PATCH] Add new service - paste.gentoo.zip
Specified in the code with `pgz` and in the cli for usage and brevity.
---
See also: https://github.com/zlin/wgetpaste/pull/48
- Oskari
wgetpaste | 21 +++++++++++++++++++--
1 file changed, 19 insertions(+), 2 deletions(-)
diff --git a/wgetpaste b/wgetpaste
index b3a537b..fc0b559 100755
--- a/wgetpaste
+++ b/wgetpaste
@@ -41,7 +41,7 @@ POST_generic() {
}
### services
-SERVICES="0x0 bpaste codepad dpaste gists ix_io snippets"
+SERVICES="0x0 bpaste codepad dpaste gists ix_io pgz snippets"
# 0x0
ENGINE_0x0=0x0
URL_0x0="http://0x0.st"
@@ -68,6 +68,10 @@ URL_gists="https://api.github.com/gists"
ENGINE_ix_io=ix_io
URL_ix_io="http://ix.io"
SIZE_ix_io="1000000 1%MB"
+# paste.gentoo.zip
+ENGINE_pgz=pgz
+URL_pgz="https://paste.gentoo.zip"
+SIZE_pgz="2000000 2%MB"
# snippets
ENGINE_snippets=snippets
URL_snippets="https://gitlab.com/api/v4/snippets"
@@ -139,7 +143,6 @@ POST_dpaste() {
}
REGEX_RAW_dpaste='s|^http.*|\0.txt|'
REGEX_URL_dpaste='s|^http.*|\0|p'
-
# gists
LANGUAGES_gists="ActionScript Ada Apex AppleScript Arc Arduino ASP Assembly
Augeas AutoHotkey Batchfile Befunge BlitzMax Boo Brainfuck Bro C C# C++
@@ -230,6 +233,20 @@ POST_lodgeit() {
POST_generic "submit=Paste! % % language % % code" "$1" "$2" "$3" "$4" "$5" "$6"
}
REGEX_RAW_lodgeit='s|^\(https\?://[^/]*/\)show\(/[[:alnum:]]*/\)$|\1raw\2|'
+# paste.gentoo.zip
+escape_input_pgz() { echo "$*"; }
+POST_pgz() {
+ local content="${6}"
+ local boundary="WGETPASTE-3d8dfd9bff2b12a7410328d2ec1ed145"
+ echo "--${boundary}"
+ echo "Content-Disposition: form-data; name=\"file\""
+ echo ""
+ echo "${content}"
+ echo "--${boundary}--"
+ ADDITIONAL_HEADERS_pgz=("Content-Type: multipart/form-data; boundary=${boundary}")
+}
+REGEX_RAW_pgz='s|^http.*|\0|'
+REGEX_URL_pgz='s|^http.*|\0|p'
# pinnwand
LANGUAGES_pinnwand="ABAP ActionScript%3 ActionScript Ada ANTLR ANTLR%With%ActionScript%Target \
ANTLR%With%CPP%Target ANTLR%With%C#%Target ANTLR%With%Java%Target ANTLR%With%ObjectiveC%Target \
--
2.41.0

View file

@ -1,38 +0,0 @@
--- a/wgetpaste 2023-11-05 01:14:42.819088466 +0300
+++ b/wgetpaste 2023-11-06 14:31:32.400944620 +0300
@@ -41,7 +41,14 @@
}
### services
-SERVICES="0x0 bpaste codepad dpaste gists ix_io pgz snippets calculate"
+SERVICES="0x0 bpaste codepad dpaste gists ix_io pgz snippets calculate orgru"
+# orgru
+ENGINE_orgru=orgru
+URL_orgru="http://paste.org.ru/"
+SIZE_orgru="100000 100%kB"
+REGEX_URL_orgru="s|<a href=\"\(/\?.*\)\">refresh</a>|http://paste.org.ru\1|p"
+REGEX_RAW_orgru="s|<a href=\"\(/\?.*\)\">refresh</a>|http://paste.org.ru\1|"
+DEFAULT_LANGUAGE_orgru="AutoDetect"
# calculate
ENGINE_calculate=calculate
if [[ "$LANG" =~ 'ru_RU' ]]; then
@@ -97,6 +104,19 @@
REGEX_RAW_tinyurl='s|^\(http://[^/]*/\)\([[:alnum:]]*\)$|\1\2|'
### engines
+# orgru
+LANGUAGES_orgru="AutoDetect C C++ ASM Perl Java IDL Pascal C# JS.NET VB.NET Forth Fortran Visual%Basic html css css%for%html \
+css%for%svg jsp php xhtml%transitional xhtml%strict xhtml%frameset SVG%1.0 ColdFusion JavaScript ActionScript VBScript xml \
+dtd xslt%1.0 XML%Schema Relax%NG Clarion Clipper FoxPro SQLJ%(Java%sql) Paradox SQL,%PL/SQL MySQL Batch/Config.sys/NTcmd \
+sh/ksh/bash%script Apache%httpd.conf Config,%INI%and%CTL Java%properties Lex YACC makefile TeX VRML 1C Ada ABAP/4 AutoIt%2.x \
+AWK Dssp ADSP-21xx%Asm Cobol Cache/Open-M Eiffel Erlang Icon Lisp MatLab Modula2%and%Oberon2 PicAsm Python Rexx Ruby Standard%ML \
+OCaml Tcl/Tk Verilog%HDL VHDL Diff/Patch xslfo%1.0 DocBook%4.2 MathML2 wml rss mason PostScript RTF%text M4 VIM"
+LANGUAGE_VALUES_orgru="1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 27 28 29 30 31 32 33 34 35 36 38 39 40 41 42 \
+43 44 45 46 47 48 53 54 55 56 59 61 66 67 68 69 70 71 72 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 98 111 112 113 114 \
+120 133 135 137 156 158"
+POST_orgru(){
+ POST_generic "submit % % type % % code" "$1" "$2" "$3" "$4" "$5" "$6"
+}
# 0x0
escape_description_0x0() { echo "$*"; }
escape_input_0x0() { echo "$*"; }

View file

@ -1,61 +0,0 @@
From fa0bd6dd8b7bc21b292e4f94eaa4fbf71d5240f1 Mon Sep 17 00:00:00 2001
From: Richard-Rogalski <rrogalski@tutanota.com>
Date: Mon, 6 Nov 2023 14:00:02 -0600
Subject: [PATCH] Added --quiet flag
Signed-off-by: Richard Rogalski <rrogalski@firemail.cc>
Closes: #19
---
See also: https://github.com/zlin/wgetpaste/pull/51
- Oskari
_wgetpaste | 1 +
wgetpaste | 6 +++++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/_wgetpaste b/_wgetpaste
index c4703e5..63696ad 100644
--- a/_wgetpaste
+++ b/_wgetpaste
@@ -50,6 +50,7 @@ _arguments -s : \
'(--xclippaste -C)'{--xclippaste,-C}'[write resulting url to the X clipboard selection buffer]' \
'(--raw -r)'{--raw,-r}'[show url for the raw paste]' \
'(--tee -t)'{--tee,-t}'[use tee to show what is being pasted]' \
+ '(--quiet -q)'{--quiet,-q}'[show the url only]' \
'(--verbose -v)'{--verbose,-v}'[show wget stderr output if no url is received]' \
'--debug[be very verbose]' \
'(--help -h)'{--help,-h}'[show help and exit]' \
diff --git a/wgetpaste b/wgetpaste
index 1e3ae35..e38f9e5 100755
--- a/wgetpaste
+++ b/wgetpaste
@@ -561,6 +561,7 @@ Options:
-r, --raw show url for the raw paste (no syntax highlighting or html)
-t, --tee use tee to show what is being pasted
+ -q, --quiet show the url only
-v, --verbose show wget stderr output if no url is received
--completions emit output suitable for shell completions (only affects --list-*)
--debug be *very* verbose (implies -v)
@@ -659,7 +660,7 @@ showexpirations() {
}
showurl() {
- echo -n "Your ${2}paste can be seen here: " >&2
+ [[ $QUIET ]] || echo -n "Your ${2}paste can be seen here: " >&2
echo "$1"
[[ $XPASTE ]] && x_paste "$1" primary
[[ $XCLIPPASTE ]] && x_paste "$1" clipboard
@@ -841,6 +842,9 @@ while [[ -n $1 ]]; do
-N | --no-ansi )
NOANSI=0
;;
+ -q | --quiet)
+ QUIET=0
+ ;;
-r | --raw )
RAW=0
;;
--
2.41.0

View file

@ -1,95 +0,0 @@
From cfe7dcd8a0e40b8c18556aad0b657f431c90505a Mon Sep 17 00:00:00 2001
From: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
Date: Sun, 13 Aug 2023 14:25:35 -0500
Subject: [PATCH 1/3] Change arg parsing priority
Read config files before parsing CLI args. Allows all options to be set
via config and overridden on the CLI.
---
See also: https://github.com/zlin/wgetpaste/pull/46
- Oskari
wgetpaste | 53 ++++++++++++++++++++++++++++-------------------------
1 file changed, 28 insertions(+), 25 deletions(-)
diff --git a/wgetpaste b/wgetpaste
index fc0b559..5f4152d 100755
--- a/wgetpaste
+++ b/wgetpaste
@@ -720,7 +720,32 @@ geturl() {
fi | tail -n1
}
-### read cli options
+# read the config files
+load_configs() {
+ if [[ ! $IGNORECONFIGS ]]; then
+ # compatibility code
+ local f deprecated=
+ for f in {/etc/,~/.}wgetpaste{.d/*.bash,}; do
+ if [[ -f $f ]]; then
+ if [[ -z $deprecated ]]; then
+ echo "The config files for wgetpaste have changed to *.conf.$N" >&2
+ deprecated=0
+ fi
+ echo "Please move ${f} to ${f%.bash}.conf" >&2
+ source "$f" || die "Failed to source $f"
+ fi
+ done
+ [[ -n $deprecated ]] && echo >&2
+ # new locations override old ones in case they collide
+ for f in {/etc/,~/.}wgetpaste{.d/*,}.conf; do
+ if [[ -f $f ]]; then
+ source "$f" || die "Failed to source $f"
+ fi
+ done
+ fi
+}
+
+### get runtime options
# separate groups of short options. replace --foo=bar with --foo bar
while [[ -n $1 ]]; do
@@ -756,6 +781,8 @@ done
# set the separated options as input options.
set -- "${ARGS[@]}"
+load_configs
+
while [[ -n $1 ]]; do
((args=1))
case "$1" in
@@ -859,30 +886,6 @@ if [[ $NOANSI ]]; then
fi
### defaults
-load_configs() {
- if [[ ! $IGNORECONFIGS ]]; then
- # compatibility code
- local f deprecated=
- for f in {/etc/,~/.}wgetpaste{.d/*.bash,}; do
- if [[ -f $f ]]; then
- if [[ -z $deprecated ]]; then
- echo "The config files for wgetpaste have changed to *.conf.$N" >&2
- deprecated=0
- fi
- echo "Please move ${f} to ${f%.bash}.conf" >&2
- source "$f" || die "Failed to source $f"
- fi
- done
- [[ -n $deprecated ]] && echo >&2
- # new locations override old ones in case they collide
- for f in {/etc/,~/.}wgetpaste{.d/*,}.conf; do
- if [[ -f $f ]]; then
- source "$f" || die "Failed to source $f"
- fi
- done
- fi
-}
-load_configs
[[ $SERVICESET ]] && verifyservice "$SERVICESET" && SERVICE=$(escape "$SERVICESET")
DEFAULT_NICK=${DEFAULT_NICK:-$(whoami)} || die "whoami failed"
DEFAULT_SERVICE=${DEFAULT_SERVICE:-bpaste}
--
2.41.0

View file

@ -1,31 +0,0 @@
https://github.com/zlin/wgetpaste/pull/45
From ab4632ca9cd54c9e7478f37eee821113c0135c37 Mon Sep 17 00:00:00 2001
From: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
Date: Fri, 28 Jul 2023 18:55:10 -0500
Subject: [PATCH] Disable sprunge
Sprunge seems to have recently died. Disable it by removing it from the
service list, but keep the core bits in case it decides to come back.
RIP ;(
---
wgetpaste | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wgetpaste b/wgetpaste
index 864d5ef..b3a537b 100755
--- a/wgetpaste
+++ b/wgetpaste
@@ -41,7 +41,7 @@ POST_generic() {
}
### services
-SERVICES="0x0 bpaste codepad dpaste gists ix_io snippets sprunge"
+SERVICES="0x0 bpaste codepad dpaste gists ix_io snippets"
# 0x0
ENGINE_0x0=0x0
URL_0x0="http://0x0.st"
--
2.41.0

View file

@ -1,171 +0,0 @@
From a1c0782e828bc5f0fc8b79d0131f1847c5e7b359 Mon Sep 17 00:00:00 2001
From: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
Date: Sun, 13 Aug 2023 14:52:20 -0500
Subject: [PATCH 3/3] test_ansi: add -A to the tests
---
See also: https://github.com/zlin/wgetpaste/pull/46
- Oskari
test/test_ansi.sh | 92 +++++++++++++++++++++++++++++++++++++++++------
1 file changed, 81 insertions(+), 11 deletions(-)
diff --git a/test/test_ansi.sh b/test/test_ansi.sh
index 23b27a8..e1e95f0 100755
--- a/test/test_ansi.sh
+++ b/test/test_ansi.sh
@@ -94,8 +94,8 @@ fi
# Paste stuff. Use a short timeout between requests (we're friendly after all!)
sleep 1
-echo -n "Pasting command output (cat): "
-ERROR_LOG="$DL_DIR/command-error.log"
+echo -n "Pasting command output with ANSI stripping (cat): "
+ERROR_LOG="$DL_DIR/command-noansi-error.log"
URL="$("$TEST_DIR"/../wgetpaste -N -r -s "$WORKING" -v -c "cat $ANSI_FILE" 2>"$ERROR_LOG")"
if [ $? -ne 0 ]; then
echo "FAILED!"
@@ -104,7 +104,7 @@ else
echo "SUCCESS!"
echo -n "Downloading: "
- if ! (wget -q "$URL" -O "$DL_DIR/command.txt" 2>>"$ERROR_LOG"); then
+ if ! (wget -q "$URL" -O "$DL_DIR/command-noansi.txt" 2>>"$ERROR_LOG"); then
echo "FAILED!"
FAILED_PASTE=$((FAILED_PASTE + 1))
else
@@ -112,13 +112,35 @@ else
rm "$ERROR_LOG"
echo "Removing 'command run' header"
- sed -i -e '1d' "$DL_DIR/command.txt"
+ sed -i -e '1d' "$DL_DIR/command-noansi.txt"
+ fi
+fi
+sleep 1
+echo -n "Pasting command output without ANSI stripping (cat): "
+ERROR_LOG="$DL_DIR/command-ansi-error.log"
+URL="$("$TEST_DIR"/../wgetpaste -A -r -s "$WORKING" -v -c "cat $ANSI_FILE" 2>"$ERROR_LOG")"
+if [ $? -ne 0 ]; then
+ echo "FAILED!"
+ FAILED_PASTE=$((FAILED_PASTE + 1))
+else
+ echo "SUCCESS!"
+
+ echo -n "Downloading: "
+ if ! (wget -q "$URL" -O "$DL_DIR/command-ansi.txt" 2>>"$ERROR_LOG"); then
+ echo "FAILED!"
+ FAILED_PASTE=$((FAILED_PASTE + 1))
+ else
+ echo "SUCCESS"
+ rm "$ERROR_LOG"
+
+ echo "Removing 'command run' header"
+ sed -i -e '1d' "$DL_DIR/command-ansi.txt"
fi
fi
sleep 1
-echo -n "Pasting stdin (cat | wgetpaste): "
-ERROR_LOG="$DL_DIR/stdin-error.log"
+echo -n "Pasting stdin with ANSI stripping (cat | wgetpaste): "
+ERROR_LOG="$DL_DIR/stdin-noansi-error.log"
URL="$(cat "$ANSI_FILE" | "$TEST_DIR"/../wgetpaste -N -r -s "$WORKING" -v 2>"$ERROR_LOG")"
if [ $? -ne 0 ]; then
echo "FAILED!"
@@ -127,7 +149,26 @@ else
echo "SUCCESS!"
echo -n "Downloading: "
- if ! (wget -q "$URL" -O "$DL_DIR/stdin.txt" 2>>"$ERROR_LOG"); then
+ if ! (wget -q "$URL" -O "$DL_DIR/stdin-noansi.txt" 2>>"$ERROR_LOG"); then
+ echo "FAILED!"
+ FAILED_PASTE=$((FAILED_PASTE + 1))
+ else
+ echo "SUCCESS!"
+ rm "$ERROR_LOG"
+ fi
+fi
+sleep 1
+echo -n "Pasting stdin without ANSI stripping (cat | wgetpaste): "
+ERROR_LOG="$DL_DIR/stdin-ansi-error.log"
+URL="$(cat "$ANSI_FILE" | "$TEST_DIR"/../wgetpaste -A -r -s "$WORKING" -v 2>"$ERROR_LOG")"
+if [ $? -ne 0 ]; then
+ echo "FAILED!"
+ FAILED_PASTE=$((FAILED_PASTE + 1))
+else
+ echo "SUCCESS!"
+
+ echo -n "Downloading: "
+ if ! (wget -q "$URL" -O "$DL_DIR/stdin-ansi.txt" 2>>"$ERROR_LOG"); then
echo "FAILED!"
FAILED_PASTE=$((FAILED_PASTE + 1))
else
@@ -137,8 +178,8 @@ else
fi
sleep 1
-echo -n "Pasting a file: "
-ERROR_LOG="$DL_DIR/file-error.log"
+echo -n "Pasting a file with ANSI stripping: "
+ERROR_LOG="$DL_DIR/file-noansi-error.log"
URL="$("$TEST_DIR"/../wgetpaste -N -r -s "$WORKING" -v "$ANSI_FILE" 2>"$ERROR_LOG")"
if [ $? -ne 0 ]; then
echo "FAILED!"
@@ -147,7 +188,26 @@ else
echo "SUCCESS!"
echo -n "Downloading: "
- if ! (wget -q "$URL" -O "$DL_DIR/file.txt" 2>>"$ERROR_LOG"); then
+ if ! (wget -q "$URL" -O "$DL_DIR/file-noansi.txt" 2>>"$ERROR_LOG"); then
+ echo "FAILED!"
+ FAILED_PASTE=$((FAILED_PASTE + 1))
+ else
+ echo "SUCCESS!"
+ rm "$ERROR_LOG"
+ fi
+fi
+sleep 1
+echo -n "Pasting a file without ANSI stripping: "
+ERROR_LOG="$DL_DIR/file-ansi-error.log"
+URL="$("$TEST_DIR"/../wgetpaste -A -r -s "$WORKING" -v "$ANSI_FILE" 2>"$ERROR_LOG")"
+if [ $? -ne 0 ]; then
+ echo "FAILED!"
+ FAILED_PASTE=$((FAILED_PASTE + 1))
+else
+ echo "SUCCESS!"
+
+ echo -n "Downloading: "
+ if ! (wget -q "$URL" -O "$DL_DIR/file-ansi.txt" 2>>"$ERROR_LOG"); then
echo "FAILED!"
FAILED_PASTE=$((FAILED_PASTE + 1))
else
@@ -157,7 +217,7 @@ else
fi
# Compare downloaded files
-for dl_file in "$DL_DIR"/*.txt; do
+for dl_file in "$DL_DIR"/*-noansi.txt; do
echo -n "Testing file $dl_file: "
# Ignore missing trailing newline and extra empty lines in downloaded file
if (diff -q -Z -B "$NOANSI_FILE" "$dl_file" &>/dev/null); then
@@ -167,6 +227,16 @@ for dl_file in "$DL_DIR"/*.txt; do
DL_MISMATCH=$((DL_MISMATCH + 1))
fi
done
+for dl_file in "$DL_DIR"/*-ansi.txt; do
+ echo -n "Testing file $dl_file: "
+ # Ignore missing trailing newline and extra empty lines in downloaded file
+ if (diff -q -Z -B "$ANSI_FILE" "$dl_file" &>/dev/null); then
+ echo "SUCCESS!"
+ else
+ echo "FAILED!"
+ DL_MISMATCH=$((DL_MISMATCH + 1))
+ fi
+done
echo "Total failed pastes: $FAILED_PASTE"
echo "Total mismatches: $DL_MISMATCH"
--
2.41.0

View file

@ -1,83 +0,0 @@
https://github.com/zlin/wgetpaste/pull/38
From 3470bbe651c2264a7f985f3b86f67a6ff6d0c587 Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Tue, 22 Nov 2022 01:29:16 +0000
Subject: [PATCH 1/3] test: respect TMPDIR in mktemp (pass --tmpdir)
Signed-off-by: Sam James <sam@gentoo.org>
--- a/test/test.sh
+++ b/test/test.sh
@@ -7,7 +7,7 @@
# Don't assume the test is being run from the same directory as the script
TEST_DIR="$(dirname "$0")"
TEST_FILE="$TEST_DIR/test.txt"
-DL_DIR="$(mktemp -q -d /tmp/wgetpaste_test.XXXXX)"
+DL_DIR="$(mktemp -q --tmpdir -d wgetpaste_test.XXXXX)"
# Services to hard skip
# Pre-declare as map to maintain type even if empty
# key -> value := service -> reason
--- a/test/test_ansi.sh
+++ b/test/test_ansi.sh
@@ -9,7 +9,7 @@
TEST_DIR="$(dirname "$0")"
ANSI_FILE="$TEST_DIR/red.txt"
NOANSI_FILE="$TEST_DIR/red_no_ansi.txt"
-DL_DIR="$(mktemp -q -d /tmp/wgetpaste_test_ansi.XXXXX)"
+DL_DIR="$(mktemp -q --tmpdir -d wgetpaste_test_ansi.XXXXX)"
# Services to hard skip
# Pre-declare as map to maintain type even if empty
# key -> value := service -> reason
From 0c3cc1a5286c95a5bcd6408035f6c230350c1565 Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Tue, 22 Nov 2022 01:29:40 +0000
Subject: [PATCH 2/3] test: use portable bash shebang
Signed-off-by: Sam James <sam@gentoo.org>
--- a/test/test.sh
+++ b/test/test.sh
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env bash
# wgetpaste test script
# Exit code: number of mismatched downloads or 1 for general failure
--- a/test/test_ansi.sh
+++ b/test/test_ansi.sh
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env bash
# wgetpaste test script (stripping ANSI codes)
# Based on test/test.sh
From 8d1cf7a8d0ce9ff21a8e1dc66169b04e4f8fc852 Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Tue, 22 Nov 2022 01:29:55 +0000
Subject: [PATCH 3/3] test: normalise copyright header
Signed-off-by: Sam James <sam@gentoo.org>
--- a/test/test.sh
+++ b/test/test.sh
@@ -2,7 +2,7 @@
# wgetpaste test script
# Exit code: number of mismatched downloads or 1 for general failure
-# Copyright (C) 2021 xxc3nsoredxx
+# Copyright (C) 2022 Oskari Pirhonen <xxc3ncoredxx@gmail.com>
# Don't assume the test is being run from the same directory as the script
TEST_DIR="$(dirname "$0")"
--- a/test/test_ansi.sh
+++ b/test/test_ansi.sh
@@ -3,7 +3,7 @@
# wgetpaste test script (stripping ANSI codes)
# Based on test/test.sh
# Exit code: number of mismatched downloads or 1 for general failure
-# Copyright (C) 2022 Oskari Pirhonen <xxc3ncoredxx@gmail.com>
+# Copyright (C) 2022 Oskari Pirhonen <xxc3ncoredxx@gmail.com>
# Don't assume the test is being run from the same directory as the script
TEST_DIR="$(dirname "$0")"

View file

@ -1 +0,0 @@
DEFAULT_SERVICE=calculate

View file

@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>support@calculate.ru</email>
<name>Mir Calculate</name>
<description>Calculate Overlay</description>
</maintainer>
<longdescription>
Command-line interface to various pastebins.
</longdescription>
<upstream>
<remote-id type="github">zlin/wgetpaste</remote-id>
<bugs-to>https://github.com/zlin/wgetpaste/issues</bugs-to>
<changelog>https://github.com/zlin/wgetpaste/releases</changelog>
</upstream>
</pkgmetadata>

View file

@ -1,56 +0,0 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# NOTE: This is the modification of `app-text/wgetpaste-2.33-r4::gentoo` with additional services
EAPI=8
inherit optfeature
DESCRIPTION="Command-line interface to various pastebins"
HOMEPAGE="https://github.com/zlin/wgetpaste"
SRC_URI="https://github.com/zlin/wgetpaste/releases/download/${PV}/${P}.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64"
IUSE="+ssl"
PROPERTIES="test_network"
RESTRICT="test"
RDEPEND="
net-misc/wget[ssl?]
"
PATCHES=(
"${FILESDIR}"/${PN}-2.33-tests.patch
"${FILESDIR}"/${PN}-2.33-disable-sprunge.patch
"${FILESDIR}"/${PN}-2.33-add-paste-gentoo-zip.patch
"${FILESDIR}"/${PN}-2.33-added-quiet-flag.patch
"${FILESDIR}"/${PN}-2.33-add-paste-calculate.patch
"${FILESDIR}"/${PN}-2.33-add-paste-orgru.patch
)
src_prepare() {
default
sed -i -e "s:/etc:\"${EPREFIX}\"/etc:g" wgetpaste || die
}
src_test() {
test/test.sh || die
}
src_install() {
dobin ${PN}
insinto /usr/share/zsh/site-functions
doins _wgetpaste
insinto /etc/wgetpaste.d
newins "${FILESDIR}"/wgetpaste-config-services services.conf
}
pkg_postinst() {
optfeature "ANSI (color code) stripping support" app-text/ansifilter
optfeature "xclip support" x11-misc/xclip
}

View file

@ -1,57 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# NOTE: This is the modification of `app-text/wgetpaste-2.33-r5::gentoo` with additional services
EAPI=8
inherit optfeature
DESCRIPTION="Command-line interface to various pastebins"
HOMEPAGE="https://github.com/zlin/wgetpaste"
SRC_URI="https://github.com/zlin/wgetpaste/releases/download/${PV}/${P}.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
IUSE="+ssl"
PROPERTIES="test_network"
RESTRICT="test"
RDEPEND="net-misc/wget[ssl?]"
PATCHES=(
"${FILESDIR}"/${PN}-2.33-tests.patch
"${FILESDIR}"/${PN}-2.33-disable-sprunge.patch
"${FILESDIR}"/${PN}-2.33-add-paste-gentoo-zip.patch
"${FILESDIR}"/${PN}-2.33-change-arg-parsing-priority.patch
"${FILESDIR}"/${PN}-2.33-add-A-ansi.patch
"${FILESDIR}"/${PN}-2.33-test_ansi-add-A-to-the-tests.patch
"${FILESDIR}"/${PN}-2.33-added-quiet-flag.patch
"${FILESDIR}"/${PN}-2.33-add-paste-calculate.patch
"${FILESDIR}"/${PN}-2.33-add-paste-orgru.patch
)
src_prepare() {
default
sed -i -e "s:/etc:\"${EPREFIX}\"/etc:g" wgetpaste || die
}
src_test() {
test/test.sh || die
}
src_install() {
dobin ${PN}
insinto /usr/share/zsh/site-functions
doins _wgetpaste
insinto /etc/wgetpaste.d
newins "${FILESDIR}"/wgetpaste-config-services services.conf
}
pkg_postinst() {
optfeature "ANSI (color code) stripping support" app-text/ansifilter
optfeature "xclip support" x11-misc/xclip
}

View file

@ -1,50 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# NOTE: This is the modification of `app-text/wgetpaste-2.34::gentoo` with additional services
EAPI=8
inherit optfeature
DESCRIPTION="Command-line interface to various pastebins"
HOMEPAGE="https://github.com/zlin/wgetpaste"
SRC_URI="https://github.com/zlin/wgetpaste/releases/download/${PV}/${P}.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
IUSE="+ssl"
PROPERTIES="test_network"
RESTRICT="test"
RDEPEND="net-misc/wget[ssl?]"
PATCHES=(
"${FILESDIR}"/${PN}-2.33-add-paste-calculate.patch
"${FILESDIR}"/${PN}-2.33-add-paste-orgru.patch
)
src_prepare() {
default
sed -i -e "s:/etc:\"${EPREFIX}\"/etc:g" wgetpaste || die
}
src_test() {
test/test.sh || die
}
src_install() {
dobin ${PN}
insinto /usr/share/zsh/site-functions
doins _wgetpaste
insinto /etc/wgetpaste.d
newins "${FILESDIR}"/wgetpaste-config-services services.conf
}
pkg_postinst() {
optfeature "ANSI (color code) stripping support" app-text/ansifilter
optfeature "xclip support" x11-misc/xclip
}

View file

@ -1,3 +0,0 @@
DIST libjpeg8-2.1.4.tar.gz 2261822 BLAKE2B 3648fec6a90d1ceb76cfd4bcc8c7a92f286060f712a0bba2cd4a9361e97cf1a8a98002aa5bf31f7e7d2930ff06e610cd2882fc1cd8da234b796333249c89dadc SHA512 d3e92d614168355827e0ed884ff847cc7df8f6f1fb7b673c6c99afdf61fdfc0372afe5d30fdbf5e743335e2a7a27ca9f510c67d213e5cb2315a8d946e9414575
DIST libjpeg8-3.0.0.tar.gz 2799663 BLAKE2B 99935bb92458a714b2ef42ea6b464aa34c7e53c74c37e8d96ced54fa650f802951b2c7a95edb03fa8449e2255813803866061540f54cd96026d757cfbdcd8eb7 SHA512 0efb7ce16333f4f3556b889bdd83b0f91697ce1645cbfb13db0c8a93ef47dd9cb0805c7160edaf946d4d54faf30a33bae90800c189e8b4bd44fcf3ce98179115
DIST libjpeg8_8d-2.debian.tar.gz 14764 BLAKE2B e93d12afa062da28b717b540492221f70e8d9ccf3885371647cf85a2937f938ca723d4a27d5e1c5d79c26aa25dddf69b38754558851a1704172e8b52baf8e17c SHA512 8c5959fb7583a2d61e9442187f67b91b45e72d9dd30db3360d583a3b5d8e1a908db5659f760bdd455b3056e6ae3535b2fd3b847df3d58b140a1816b754003675

View file

@ -1,93 +0,0 @@
# Copyright 1999-2024 Gentoo Authors, 2007-2024 Mir Calculate
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
MY_PN=libjpeg-turbo
DESCRIPTION="MMX, SSE, and SSE2 SIMD accelerated JPEG library"
HOMEPAGE="https://libjpeg-turbo.org/ https://sourceforge.net/projects/libjpeg-turbo/"
SRC_URI="https://github.com/libjpeg-turbo/libjpeg-turbo/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
mirror://gentoo/libjpeg8_8d-2.debian.tar.gz"
S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="BSD IJG ZLIB"
SLOT="0/0.2"
if [[ $(ver_cut 3) -lt 90 ]] ; then
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
fi
IUSE="cpu_flags_arm_neon"
ASM_DEPEND="|| ( dev-lang/nasm dev-lang/yasm )"
BDEPEND="
amd64? ( ${ASM_DEPEND} )
x86? ( ${ASM_DEPEND} )
amd64-linux? ( ${ASM_DEPEND} )
x86-linux? ( ${ASM_DEPEND} )
"
MULTILIB_WRAPPED_HEADERS=( /usr/include/jconfig.h )
src_prepare() {
local FILE
ln -snf ../debian/extra/*.c . || die
for FILE in ../debian/extra/*.c; do
FILE=${FILE##*/}
cat >> CMakeLists.txt <<EOF || die
add_executable(${FILE%.c} ${FILE})
install(TARGETS ${FILE%.c})
EOF
done
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON
-DCMAKE_INSTALL_DEFAULT_DOCDIR="${EPREFIX}/usr/share/doc/${PF}"
-DENABLE_SHARED=ON
-DENABLE_STATIC=OFF
-DWITH_JAVA=OFF
-DWITH_JPEG8=1
-DWITH_MEM_SRCDST=ON
)
# Avoid ARM ABI issues by disabling SIMD for CPUs without NEON, bug #792810
if use arm || use arm64; then
mycmakeargs+=(
-DWITH_SIMD=$(usex cpu_flags_arm_neon)
-DNEON_INTRINSICS=$(usex cpu_flags_arm_neon)
)
fi
# We should tell the test suite which floating-point flavor we are
# expecting: https://github.com/libjpeg-turbo/libjpeg-turbo/issues/597
# For now, mark loong as fp-contract.
if use loong; then
mycmakeargs+=(
-DFLOATTEST=fp-contract
)
fi
# mostly for Prefix, ensure that we use our yasm if installed and
# not pick up host-provided nasm
if has_version -b dev-lang/yasm && ! has_version -b dev-lang/nasm; then
mycmakeargs+=(
-DCMAKE_ASM_NASM_COMPILER=$(type -P yasm)
)
fi
cmake_src_configure
}
src_install() {
insinto /usr/lib64/
doins "${WORKDIR}/libjpeg-turbo-${PV}_build/libjpeg.so.8.2.2"
doins "${WORKDIR}/libjpeg-turbo-${PV}_build/libjpeg.so.8"
}

View file

@ -1,71 +0,0 @@
# Copyright 1999-2024 Gentoo Authors, 2007-2024 Mir Calculate
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
MY_P=libjpeg-turbo
DESCRIPTION="MMX, SSE, and SSE2 SIMD accelerated JPEG library"
HOMEPAGE="https://libjpeg-turbo.org/ https://sourceforge.net/projects/libjpeg-turbo/"
SRC_URI="https://github.com/libjpeg-turbo/libjpeg-turbo/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
mirror://gentoo/libjpeg8_8d-2.debian.tar.gz"
S="${WORKDIR}"/${MY_P}-${PV}
LICENSE="BSD IJG ZLIB"
SLOT="0"
KEYWORDS="~amd64"
IUSE="cpu_flags_arm_neon"
BDEPEND="
amd64? (
|| ( dev-lang/nasm dev-lang/yasm )
)
"
MULTILIB_WRAPPED_HEADERS=( /usr/include/jconfig.h )
src_configure() {
local mycmakeargs=(
-DCMAKE_INSTALL_DEFAULT_DOCDIR="${EPREFIX}/usr/share/doc/${PF}"
-DCMAKE_SKIP_RPATH=YES
-DENABLE_STATIC=OFF
-DWITH_JAVA=OFF
-DWITH_JPEG8=1
)
# Avoid ARM ABI issues by disabling SIMD for CPUs without NEON, bug #792810
if use arm || use arm64; then
mycmakeargs+=(
-DWITH_SIMD=$(usex cpu_flags_arm_neon)
-DNEON_INTRINSICS=$(usex cpu_flags_arm_neon)
)
fi
# We should tell the test suite which floating-point flavor we are
# expecting: https://github.com/libjpeg-turbo/libjpeg-turbo/issues/597
# For now, mark loong as fp-contract.
if use loong; then
mycmakeargs+=(
-DFLOATTEST=fp-contract
)
fi
# mostly for Prefix, ensure that we use our yasm if installed and
# not pick up host-provided nasm
if has_version -b dev-lang/yasm && ! has_version -b dev-lang/nasm; then
mycmakeargs+=(
-DCMAKE_ASM_NASM_COMPILER=$(type -P yasm)
)
fi
cmake_src_configure
}
src_install() {
dolib.so "${WORKDIR}/libjpeg-turbo-${PV}_build/libjpeg.so.8.3.2"
dosym libjpeg.so.8.3.2 "/usr/$(get_libdir)/libjpeg.so.8"
}

View file

@ -1,23 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>support@calculate.ru</email>
<name>Mir Calculate</name>
<description>Calculate Overlay</description>
</maintainer>
<longdescription lang="en">
JPEG image codec that uses SIMD instructions to accelerate baseline JPEG compression and decompression.
</longdescription>
<longdescription lang="ru">
Кодек изображений JPEG, использующий SIMD-инструкции для ускорения базовой JPEG компрессии и декомпрессии.
</longdescription>
<slots>
<subslots>Reflect ABI of libturbojpeg.so.</subslots>
</slots>
<upstream>
<remote-id type="github">libjpeg-turbo/libjpeg-turbo</remote-id>
<remote-id type="sourceforge">libjpeg-turbo</remote-id>
<remote-id type="cpe">cpe:/a:libjpeg-turbo:libjpeg-turbo</remote-id>
</upstream>
</pkgmetadata>

View file

@ -1,2 +0,0 @@
DIST viber-21.8.0.11.deb 150000340 BLAKE2B 39605c93f6cca2a5cf8bd229266efceee085e3e8cd19087be479030459a345aa5cf26d1a3373b2076acc0e8e1039b4f4cf1010e74a171a5dceece185281de247 SHA512 47efe09f6b2a7c41cdc5ffb8275312f292a78f6ddce7d2afea883ba2123ae4ee8f0d5dd0b6ffd74466885947714af5a8f6df35c954d8b8631c46482eb251f557
DIST viber-23.2.0.3.deb 162279128 BLAKE2B 9d0057624f1df375fb51a7b5c56788ba68d86b4772d288cb8d3d7806cb174cabffca32fb0d4bb4685d741698c7a7d03beea2dc49ee4e072c4e4a3f7d0ed4bdca SHA512 4d9b644af0c38ed0db11c0364191a373670ca912c03a947c6450c3b81cd3103244eae0e98a08cef554f54bdc66dbc5464e061af4bcaeef89de33352fbaa7c706

View file

@ -1,25 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>support@calculate.ru</email>
<name>Mir Calculate</name>
<description>Calculate Overlay</description>
</maintainer>
<upstream>
<remote-id type="cpe">cpe:/a:rakuten:viber</remote-id>
<bugs-to>https://help.viber.com</bugs-to>
</upstream>
<longdescription>
Viber is a calling and messaging app that connects peopleno matter who they are, or where theyre from.
Each month, hundreds of millions of people connect, for free, with their loved ones via messaging, high-quality
voice and video calls, and more. All one-on-one Viber calls and personal chats, and all group chats
are protected by built-in end-to-end encryption, so you can be sure that your conversations are always secure.
</longdescription>
<use lang="en">
<flag name="apulse">Support for PulseAudio emulation for ALSA</flag>
</use>
<use lang="ru">
<flag name="apulse">Поддержка эмуляции PulseAudio для ALSA</flag>
</use>
</pkgmetadata>

View file

@ -1,157 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MULTILIB_COMPAT=( abi_x86_64 )
inherit desktop multilib-build optfeature pax-utils unpacker xdg
DESCRIPTION="Free and secure calls and messages to anyone, anywhere"
HOMEPAGE="https://www.viber.com/"
SRC_URI="https://download.cdn.viber.com/cdn/desktop/Linux/${PN}.deb -> ${P}.deb"
S="${WORKDIR}"
QA_PRESTRIPPED="
opt/viber/Viber
opt/viber/libexec/QtWebEngineProcess
opt/viber/lib/libicudata.so.66
opt/viber/lib/libssl.so.1.1
opt/viber/lib/libcrypto.so.1.1
opt/viber/lib/libXcomposite.so.1
opt/viber/lib/libwebp.so.6
opt/viber/lib/libicui18n.so.66
opt/viber/lib/libqrencode.so
opt/viber/lib/libViberRTC.so
opt/viber/lib/libminizip.so.1
opt/viber/lib/libdouble-conversion.so.3
opt/viber/lib/libicuuc.so.66
opt/viber/lib/libpng16.so.16
opt/viber/lib/libXdamage.so.1
opt/viber/lib/libb2.so.1
opt/viber/lib/libjpeg.so.8
opt/viber/lib/libpcre2-16.so.0
opt/viber/lib/libre2.so.5
opt/viber/lib/libxcb-cursor.so.0
"
LICENSE="Viber"
SLOT="0"
KEYWORDS="-* ~amd64"
IUSE="+abi_x86_64 apulse +pulseaudio"
REQUIRED_USE="
^^ ( apulse pulseaudio )
"
RESTRICT="bindist mirror"
BDEPEND="
sys-apps/fix-gnustack
"
RDEPEND="
app-arch/brotli:=[${MULTILIB_USEDEP}]
app-arch/snappy:=[${MULTILIB_USEDEP}]
app-arch/zstd:=[${MULTILIB_USEDEP}]
app-crypt/mit-krb5[${MULTILIB_USEDEP}]
dev-libs/expat[${MULTILIB_USEDEP}]
dev-libs/glib:2[${MULTILIB_USEDEP}]
dev-libs/libevent:=[${MULTILIB_USEDEP}]
dev-libs/libxml2[${MULTILIB_USEDEP}]
dev-libs/libxslt[${MULTILIB_USEDEP}]
dev-libs/nspr[${MULTILIB_USEDEP}]
dev-libs/nss[${MULTILIB_USEDEP}]
dev-libs/wayland[${MULTILIB_USEDEP}]
media-libs/alsa-lib[${MULTILIB_USEDEP}]
media-libs/fontconfig:1.0[${MULTILIB_USEDEP}]
media-libs/freetype:2[${MULTILIB_USEDEP}]
media-libs/gst-plugins-bad:1.0[${MULTILIB_USEDEP}]
media-libs/gst-plugins-base:1.0[${MULTILIB_USEDEP}]
media-libs/gst-plugins-good:1.0[${MULTILIB_USEDEP}]
media-plugins/gst-plugins-libav:1.0[${MULTILIB_USEDEP}]
media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
media-libs/harfbuzz:=[${MULTILIB_USEDEP}]
media-libs/lcms:2[${MULTILIB_USEDEP}]
media-libs/libglvnd[${MULTILIB_USEDEP}]
media-libs/libmng:=[${MULTILIB_USEDEP}]
media-libs/libwebp:=[${MULTILIB_USEDEP}]
media-libs/opus[${MULTILIB_USEDEP}]
media-libs/mesa[${MULTILIB_USEDEP}]
media-libs/tiff-compat:4[${MULTILIB_USEDEP}]
net-print/cups[${MULTILIB_USEDEP}]
sys-apps/dbus[${MULTILIB_USEDEP}]
|| (
sys-apps/systemd[${MULTILIB_USEDEP}]
sys-apps/systemd-utils[udev,${MULTILIB_USEDEP}]
)
sys-libs/mtdev
sys-libs/zlib:0/1[${MULTILIB_USEDEP}]
x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}]
x11-libs/gtk+:3[${MULTILIB_USEDEP}]
x11-libs/libdrm[${MULTILIB_USEDEP}]
x11-libs/libICE[${MULTILIB_USEDEP}]
x11-libs/libSM[${MULTILIB_USEDEP}]
x11-libs/libX11[${MULTILIB_USEDEP}]
x11-libs/libxcb:0/1.12[${MULTILIB_USEDEP}]
x11-libs/libXext[${MULTILIB_USEDEP}]
x11-libs/libXfixes[${MULTILIB_USEDEP}]
x11-libs/libxkbcommon[${MULTILIB_USEDEP}]
x11-libs/libxkbfile[${MULTILIB_USEDEP}]
x11-libs/libXrandr[${MULTILIB_USEDEP}]
x11-libs/libXScrnSaver[${MULTILIB_USEDEP}]
x11-libs/libXtst[${MULTILIB_USEDEP}]
x11-libs/pango[${MULTILIB_USEDEP}]
x11-libs/tslib[${MULTILIB_USEDEP}]
x11-libs/xcb-util-image[${MULTILIB_USEDEP}]
x11-libs/xcb-util-keysyms[${MULTILIB_USEDEP}]
x11-libs/xcb-util-renderutil[${MULTILIB_USEDEP}]
x11-libs/xcb-util-wm[${MULTILIB_USEDEP}]
apulse? ( media-sound/apulse[${MULTILIB_USEDEP}] )
pulseaudio? (
media-libs/libpulse[glib,${MULTILIB_USEDEP}]
media-plugins/gst-plugins-pulse:1.0[${MULTILIB_USEDEP}]
)
"
src_prepare() {
default
if use apulse ; then
sed -i '/Exec=/s|/opt|apulse /opt|' \
usr/share/applications/viber.desktop || die "sed failed"
fi
# remove hardcoded path
sed -i '/Icon/s|/usr/share/pixmaps/viber.png|viber|' \
usr/share/applications/viber.desktop \
|| die "sed failed for viber.desktop"
}
src_install() {
newicon -s scalable usr/share/icons/hicolor/scalable/apps/Viber.svg \
viber.svg
for size in 16x16 24x24 32x32 48x48 64x64 96x96 128x128 256x256; do
newicon -s "${size%%x*}" usr/share/viber/"${size}".png viber.png
done
dosym ../icons/hicolor/96x96/apps/viber.png \
/usr/share/pixmaps/viber.png
domenu usr/share/applications/viber.desktop
insinto /opt/viber
doins -r opt/viber/.
pax-mark -m "${ED}"/opt/viber/Viber \
"${ED}"/opt/viber/QtWebEngineProcess
fix-gnustack -f "${ED}"/opt/viber/lib/libQt6WebEngineCore.so.6 > /dev/null \
|| die "removing execstack flag failed"
fperms +x /opt/viber/Viber \
/opt/viber/lib/libQt6Core.so.6 \
/opt/viber/libexec/QtWebEngineProcess
dosym ../../opt/viber/Viber /usr/bin/Viber
}
pkg_postinst() {
optfeature "ffmpeg backend", media-video/ffmpeg:0/56.58.58[${MULTILIB_USEDEP}]
}

View file

@ -1,198 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MULTILIB_COMPAT=( abi_x86_64 )
inherit desktop multilib-build optfeature pax-utils unpacker xdg
DESCRIPTION="Free and secure calls and messages to anyone, anywhere"
HOMEPAGE="https://www.viber.com/"
SRC_URI="https://download.cdn.viber.com/cdn/desktop/Linux/${PN}.deb -> ${P}.deb"
S="${WORKDIR}"
QA_PRESTRIPPED="
opt/viber/Viber
opt/viber/libexec/QtWebEngineProcess
opt/viber/lib/libicudata.so.66
opt/viber/lib/libssl.so.1.1
opt/viber/lib/libcrypto.so.1.1
opt/viber/lib/libXcomposite.so.1
opt/viber/lib/libwebp.so.6
opt/viber/lib/libicui18n.so.66
opt/viber/lib/libminizip.so.1
opt/viber/lib/libdouble-conversion.so.3
opt/viber/lib/libicuuc.so.66
opt/viber/lib/libpng16.so.16
opt/viber/lib/libXdamage.so.1
opt/viber/lib/libb2.so.1
opt/viber/lib/libjpeg.so.8
opt/viber/lib/libpcre2-16.so.0
opt/viber/lib/libre2.so.5
opt/viber/lib/libxcb-cursor.so.0
opt/viber/lib/libswscale.so.5
opt/viber/lib/libaom.so.0
opt/viber/lib/libgme.so.0
opt/viber/lib/libavcodec.so.58
opt/viber/lib/libavformat.so.58
opt/viber/lib/libbz2.so.1.0
opt/viber/lib/libshine.so.3
opt/viber/lib/libx264.so.155
opt/viber/lib/libx265.so.179
opt/viber/lib/libvpx.so.6
opt/viber/lib/libavutil.so.56
opt/viber/lib/libcodec2.so.0.9
opt/viber/lib/libchromaprint.so.1
opt/viber/lib/libssh-gcrypt.so.4
opt/viber/lib/libswresample.so.3
"
LICENSE="Viber"
SLOT="0"
KEYWORDS="-* ~amd64"
IUSE="+abi_x86_64 apulse +pulseaudio"
REQUIRED_USE="
^^ ( apulse pulseaudio )
"
RESTRICT="bindist mirror"
BDEPEND="
sys-apps/fix-gnustack
"
RDEPEND="
app-arch/brotli:=[${MULTILIB_USEDEP}]
app-arch/snappy:=[${MULTILIB_USEDEP}]
app-arch/xz-utils[${MULTILIB_USEDEP}]
app-arch/zstd:=[${MULTILIB_USEDEP}]
app-crypt/mit-krb5[${MULTILIB_USEDEP}]
dev-libs/expat[${MULTILIB_USEDEP}]
dev-libs/glib:2[${MULTILIB_USEDEP}]
dev-libs/libevent:=[${MULTILIB_USEDEP}]
dev-libs/libgcrypt:=[${MULTILIB_USEDEP}]
dev-libs/libgpg-error[${MULTILIB_USEDEP}]
dev-libs/libxml2[${MULTILIB_USEDEP}]
dev-libs/libxslt[${MULTILIB_USEDEP}]
dev-libs/opencl-icd-loader[${MULTILIB_USEDEP}]
dev-libs/nspr[${MULTILIB_USEDEP}]
dev-libs/nss[${MULTILIB_USEDEP}]
dev-libs/wayland[${MULTILIB_USEDEP}]
gnome-base/librsvg:2[${MULTILIB_USEDEP}]
media-libs/alsa-lib[${MULTILIB_USEDEP}]
media-libs/fontconfig:1.0[${MULTILIB_USEDEP}]
media-libs/freetype:2[${MULTILIB_USEDEP}]
media-libs/gst-plugins-bad:1.0[${MULTILIB_USEDEP}]
media-libs/gst-plugins-base:1.0[${MULTILIB_USEDEP}]
media-libs/gst-plugins-good:1.0[${MULTILIB_USEDEP}]
media-plugins/gst-plugins-libav:1.0[${MULTILIB_USEDEP}]
media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
media-libs/libbluray[${MULTILIB_USEDEP}]
media-libs/libopenmpt[${MULTILIB_USEDEP}]
media-libs/libtheora[${MULTILIB_USEDEP}]
media-libs/libva:=[${MULTILIB_USEDEP}]
media-libs/libvorbis[${MULTILIB_USEDEP}]
media-libs/openjpeg:2=[${MULTILIB_USEDEP}]
media-libs/soxr[${MULTILIB_USEDEP}]
media-libs/speex[${MULTILIB_USEDEP}]
media-libs/xvid[${MULTILIB_USEDEP}]
media-libs/zvbi[${MULTILIB_USEDEP}]
media-sound/gsm[${MULTILIB_USEDEP}]
media-sound/lame[${MULTILIB_USEDEP}]
media-sound/twolame[${MULTILIB_USEDEP}]
media-sound/wavpack[${MULTILIB_USEDEP}]
media-libs/harfbuzz:=[${MULTILIB_USEDEP}]
media-libs/lcms:2[${MULTILIB_USEDEP}]
media-libs/libglvnd[${MULTILIB_USEDEP}]
media-libs/libmng:=[${MULTILIB_USEDEP}]
media-libs/libwebp:=[${MULTILIB_USEDEP}]
media-libs/opus[${MULTILIB_USEDEP}]
media-libs/mesa[${MULTILIB_USEDEP}]
media-libs/tiff-compat:4[${MULTILIB_USEDEP}]
net-libs/gnutls:=[${MULTILIB_USEDEP}]
net-print/cups[${MULTILIB_USEDEP}]
sys-apps/dbus[${MULTILIB_USEDEP}]
|| (
sys-apps/systemd[${MULTILIB_USEDEP}]
sys-apps/systemd-utils[udev,${MULTILIB_USEDEP}]
)
sys-process/numactl[${MULTILIB_USEDEP}]
sys-libs/mtdev
sys-libs/zlib:0/1[${MULTILIB_USEDEP}]
x11-libs/cairo[${MULTILIB_USEDEP}]
x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}]
x11-libs/gtk+:3[${MULTILIB_USEDEP}]
x11-libs/libdrm[${MULTILIB_USEDEP}]
x11-libs/libICE[${MULTILIB_USEDEP}]
x11-libs/libSM[${MULTILIB_USEDEP}]
x11-libs/libvdpau[${MULTILIB_USEDEP}]
x11-libs/libX11[${MULTILIB_USEDEP}]
x11-libs/libxcb:0/1.12[${MULTILIB_USEDEP}]
x11-libs/libXext[${MULTILIB_USEDEP}]
x11-libs/libXfixes[${MULTILIB_USEDEP}]
x11-libs/libxkbcommon[${MULTILIB_USEDEP}]
x11-libs/libxkbfile[${MULTILIB_USEDEP}]
x11-libs/libXrandr[${MULTILIB_USEDEP}]
x11-libs/libXScrnSaver[${MULTILIB_USEDEP}]
x11-libs/libXtst[${MULTILIB_USEDEP}]
x11-libs/pango[${MULTILIB_USEDEP}]
x11-libs/tslib[${MULTILIB_USEDEP}]
x11-libs/xcb-util-image[${MULTILIB_USEDEP}]
x11-libs/xcb-util-keysyms[${MULTILIB_USEDEP}]
x11-libs/xcb-util-renderutil[${MULTILIB_USEDEP}]
x11-libs/xcb-util-wm[${MULTILIB_USEDEP}]
apulse? ( media-sound/apulse[${MULTILIB_USEDEP}] )
pulseaudio? (
media-libs/libpulse[glib,${MULTILIB_USEDEP}]
media-plugins/gst-plugins-pulse:1.0[${MULTILIB_USEDEP}]
)
"
src_prepare() {
default
if use apulse ; then
sed -i '/Exec=/s|/opt|apulse /opt|' \
usr/share/applications/viber.desktop || die "sed failed"
fi
# remove hardcoded path
sed -i '/Icon/s|/usr/share/pixmaps/viber.png|viber|' \
usr/share/applications/viber.desktop \
|| die "sed failed for viber.desktop"
}
src_install() {
newicon -s scalable usr/share/icons/hicolor/scalable/apps/Viber.svg \
viber.svg
for icon in "usr/share/viber/"*.png; do
size=${icon##*/${PN}\/}
size=${size%.png}
dodir "usr/share/icons/hicolor/${size}/apps"
newicon -s ${size%%x*} "$icon" ${PN}.png
done
dosym ../icons/hicolor/96x96/apps/viber.png \
/usr/share/pixmaps/viber.png
domenu usr/share/applications/viber.desktop
insinto /opt/viber
doins -r opt/viber/.
pax-mark -m "${ED}"/opt/viber/Viber \
"${ED}"/opt/viber/QtWebEngineProcess
fix-gnustack -f "${ED}"/opt/viber/lib/libQt6WebEngineCore.so.6 > /dev/null \
|| die "removing execstack flag failed"
fperms +x /opt/viber/Viber \
/opt/viber/lib/libQt6Core.so.6 \
/opt/viber/libexec/QtWebEngineProcess
dosym ../../opt/viber/Viber /usr/bin/Viber
}
pkg_postinst() {
optfeature "ffmpeg backend", media-video/ffmpeg:0/56.58.58[${MULTILIB_USEDEP}]
}

View file

@ -1,162 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MULTILIB_COMPAT=( abi_x86_64 )
inherit desktop multilib-build optfeature pax-utils unpacker xdg
DESCRIPTION="Free and secure calls and messages to anyone, anywhere"
HOMEPAGE="https://www.viber.com/"
SRC_URI="https://download.cdn.viber.com/cdn/desktop/Linux/${PN}.deb -> ${P}.deb"
S="${WORKDIR}"
QA_PRESTRIPPED="
opt/viber/Viber
opt/viber/libexec/QtWebEngineProcess
opt/viber/lib/libicudata.so.66
opt/viber/lib/libssl.so.1.1
opt/viber/lib/libcrypto.so.1.1
opt/viber/lib/libXcomposite.so.1
opt/viber/lib/libwebp.so.6
opt/viber/lib/libicui18n.so.66
opt/viber/lib/libqrencode.so
opt/viber/lib/libViberRTC.so
opt/viber/lib/libminizip.so.1
opt/viber/lib/libdouble-conversion.so.3
opt/viber/lib/libicuuc.so.66
opt/viber/lib/libpng16.so.16
opt/viber/lib/libXdamage.so.1
opt/viber/lib/libb2.so.1
opt/viber/lib/libjpeg.so.8
opt/viber/lib/libpcre2-16.so.0
opt/viber/lib/libre2.so.5
opt/viber/lib/libxcb-cursor.so.0
"
LICENSE="Viber"
SLOT="0"
KEYWORDS="-* ~amd64"
IUSE="+abi_x86_64 apulse +pulseaudio"
REQUIRED_USE="
^^ ( apulse pulseaudio )
"
RESTRICT="bindist mirror"
BDEPEND="
sys-apps/fix-gnustack
"
RDEPEND="
app-arch/brotli:=[${MULTILIB_USEDEP}]
app-arch/snappy:=[${MULTILIB_USEDEP}]
app-arch/zstd:=[${MULTILIB_USEDEP}]
app-crypt/mit-krb5[${MULTILIB_USEDEP}]
dev-libs/expat[${MULTILIB_USEDEP}]
dev-libs/glib:2[${MULTILIB_USEDEP}]
dev-libs/libevent:=[${MULTILIB_USEDEP}]
dev-libs/libxml2[${MULTILIB_USEDEP}]
dev-libs/libxslt[${MULTILIB_USEDEP}]
dev-libs/nspr[${MULTILIB_USEDEP}]
dev-libs/nss[${MULTILIB_USEDEP}]
dev-libs/wayland[${MULTILIB_USEDEP}]
media-libs/alsa-lib[${MULTILIB_USEDEP}]
media-libs/fontconfig:1.0[${MULTILIB_USEDEP}]
media-libs/freetype:2[${MULTILIB_USEDEP}]
media-libs/gst-plugins-bad:1.0[${MULTILIB_USEDEP}]
media-libs/gst-plugins-base:1.0[${MULTILIB_USEDEP}]
media-libs/gst-plugins-good:1.0[${MULTILIB_USEDEP}]
media-plugins/gst-plugins-libav:1.0[${MULTILIB_USEDEP}]
media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
media-libs/harfbuzz:=[${MULTILIB_USEDEP}]
media-libs/lcms:2[${MULTILIB_USEDEP}]
media-libs/libglvnd[${MULTILIB_USEDEP}]
media-libs/libmng:=[${MULTILIB_USEDEP}]
media-libs/libwebp:=[${MULTILIB_USEDEP}]
media-libs/opus[${MULTILIB_USEDEP}]
media-libs/mesa[${MULTILIB_USEDEP}]
media-libs/tiff-compat:4[${MULTILIB_USEDEP}]
net-print/cups[${MULTILIB_USEDEP}]
sys-apps/dbus[${MULTILIB_USEDEP}]
|| (
sys-apps/systemd[${MULTILIB_USEDEP}]
sys-apps/systemd-utils[udev,${MULTILIB_USEDEP}]
)
sys-libs/mtdev
sys-libs/zlib:0/1[${MULTILIB_USEDEP}]
x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}]
x11-libs/gtk+:3[${MULTILIB_USEDEP}]
x11-libs/libdrm[${MULTILIB_USEDEP}]
x11-libs/libICE[${MULTILIB_USEDEP}]
x11-libs/libSM[${MULTILIB_USEDEP}]
x11-libs/libX11[${MULTILIB_USEDEP}]
x11-libs/libxcb:0/1.12[${MULTILIB_USEDEP}]
x11-libs/libXext[${MULTILIB_USEDEP}]
x11-libs/libXfixes[${MULTILIB_USEDEP}]
x11-libs/libxkbcommon[${MULTILIB_USEDEP}]
x11-libs/libxkbfile[${MULTILIB_USEDEP}]
x11-libs/libXrandr[${MULTILIB_USEDEP}]
x11-libs/libXScrnSaver[${MULTILIB_USEDEP}]
x11-libs/libXtst[${MULTILIB_USEDEP}]
x11-libs/pango[${MULTILIB_USEDEP}]
x11-libs/tslib[${MULTILIB_USEDEP}]
x11-libs/xcb-util-image[${MULTILIB_USEDEP}]
x11-libs/xcb-util-keysyms[${MULTILIB_USEDEP}]
x11-libs/xcb-util-renderutil[${MULTILIB_USEDEP}]
x11-libs/xcb-util-wm[${MULTILIB_USEDEP}]
apulse? ( media-sound/apulse[${MULTILIB_USEDEP}] )
pulseaudio? (
media-libs/libpulse[glib,${MULTILIB_USEDEP}]
media-plugins/gst-plugins-pulse:1.0[${MULTILIB_USEDEP}]
)
"
src_prepare() {
default
if use apulse ; then
sed -i '/Exec=/s|/opt|apulse /opt|' \
usr/share/applications/viber.desktop || die "sed failed"
fi
# remove hardcoded path
sed -i '/Icon/s|/usr/share/pixmaps/viber.png|viber|' \
usr/share/applications/viber.desktop \
|| die "sed failed for viber.desktop"
}
src_install() {
newicon -s scalable usr/share/icons/hicolor/scalable/apps/Viber.svg \
viber.svg
for icon in "usr/share/viber/"*.png; do
size=${icon##*/${PN}\/}
size=${size%.png}
dodir "usr/share/icons/hicolor/${size}/apps"
newicon -s ${size%%x*} "$icon" ${PN}.png
done
dosym ../icons/hicolor/96x96/apps/viber.png \
/usr/share/pixmaps/viber.png
domenu usr/share/applications/viber.desktop
insinto /opt/viber
doins -r opt/viber/.
pax-mark -m "${ED}"/opt/viber/Viber \
"${ED}"/opt/viber/QtWebEngineProcess
fix-gnustack -f "${ED}"/opt/viber/lib/libQt6WebEngineCore.so.6 > /dev/null \
|| die "removing execstack flag failed"
fperms +x /opt/viber/Viber \
/opt/viber/lib/libQt6Core.so.6 \
/opt/viber/libexec/QtWebEngineProcess
dosym ../../opt/viber/Viber /usr/bin/Viber
}
pkg_postinst() {
optfeature "ffmpeg backend", media-video/ffmpeg:0/56.58.58[${MULTILIB_USEDEP}]
}

View file

@ -1,2 +0,0 @@
DIST Pantum%20Ubuntu%20Driver%20V1_1_106(1).zip 9449195 BLAKE2B a3abb5adffa85ca9c36e08fc26b7b4568d181368710f6e4ff81530178cb3dd6e046605382e598d0a650b540a0bfeef477b7fa67fe54b9b8b7982176b0d3b9896 SHA512 7732ea9292574027e11d2a0a8b4fee859c880304c6e21b3579017f5c7d55f42f698015989c63732bb902000b0d73a5ac7a9b9399fd3e63216fade31cd9895d57
DIST Pantum%20Ubuntu%20Driver%20V1_1_123(1).zip 10188191 BLAKE2B 04792b4808d8c53c1d1e9aca3ffdde91e1a2f6ce6b4905dd8a29af90aa9bf74cf6d7ee18021dfa2740f43c0bf516af2fc27a989fb212b6ffa290bfc72e58be70 SHA512 c69e690541308e22dc1b90395c60acd0dfdea9b0eee8a0a72ee71785d7b393dc3e4c5f4fddc7a54c87ce66171378a0fad75187b7924437af4cf6f4c04b534ebb

View file

@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>support@calculate.ru</email>
<name>Mir Calculate</name>
<description>Calculate Overlay</description>
</maintainer>
<longdescription>
CUPS and SANE drivers for Pantum series printer and scanner.
</longdescription>
</pkgmetadata>

View file

@ -1,69 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit udev
MY_PV=${PV//./_}
DESCRIPTION="CUPS and SANE drivers for Pantum series printer and scanner."
HOMEPAGE="https://www.pantum.ru/support/download/driver/"
SRC_URI="https://drivers.pantum.ru/userfiles/files/download/drive/2013/0619/Pantum%20Ubuntu%20Driver%20V${MY_PV}(1).zip"
S="${WORKDIR}/Pantum Ubuntu Driver V${PV}"
LICENSE="Pantum-EULA"
SLOT="0"
KEYWORDS="amd64"
IUSE="scanner"
RESTRICT="bindist mirror strip"
DEPEND="
media-libs/libjpeg8
net-print/cups
net-print/cups-filters
sys-apps/dbus
sys-libs/glibc
sys-libs/libcap
scanner? (
media-gfx/sane-backends
)
"
BDEPEND="
app-arch/unzip
virtual/pkgconfig
"
RDEPEND="
${DEPEND}
app-text/ghostscript-gpl
"
src_prepare() {
eapply_user
unpack "${S}/Resources/pantum_${PV}-1_amd64.deb" || die
tar -xvf "${S}/data.tar.xz" || die
}
src_install() {
insinto /etc/sane.d
doins etc/sane.d/*
insinto "/usr/$(get_libdir)/sane"
doins usr/lib/x86_64-linux-gnu/sane/libsane-pantum*.so*
udev_dorules etc/udev/rules.d/*.rules
exeinto /opt/pantum/bin
doexe opt/pantum/bin/ptqpdf
exeinto /usr/libexec/cups/filter
doexe usr/lib/cups/filter/*
insinto /usr/share/cups/model
doins -r usr/share/cups/model/Pantum
}
pkg_postrm() {
udev_reload
}
pkg_postinst() {
udev_reload
}

View file

@ -1,79 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit udev
MY_PV=${PV//./_}
DESCRIPTION="CUPS and SANE drivers for Pantum series printer and scanner."
HOMEPAGE="https://www.pantum.ru/support/download/driver/"
SRC_URI="https://drivers.pantum.ru/userfiles/files/download/drive/2013/0619/Pantum%20Ubuntu%20Driver%20V${MY_PV}(1).zip"
S="${WORKDIR}/Pantum Ubuntu Driver V${PV}"
LICENSE="Pantum-EULA"
SLOT="0"
KEYWORDS="amd64"
IUSE="scanner"
RESTRICT="bindist fetch mirror strip"
DEPEND="
media-libs/libjpeg8
net-print/cups
net-print/cups-filters
sys-apps/dbus
sys-libs/glibc
sys-libs/libcap
scanner? (
media-gfx/sane-backends
)
"
BDEPEND="
app-arch/unzip
virtual/pkgconfig
"
RDEPEND="
${DEPEND}
app-text/ghostscript-gpl
"
pkg_nofetch() {
einfo "Please visit ${HOMEPAGE},"
einfo "use filter МФУ -> Серия M6800 -> M6800FDW"
einfo " Драйвер для Pantum M6800FDW Linux"
einfo " Версия:V1.1.123"
einfo " Размер файла:9.72MB"
einfo "Move downloaded Pantum%20Ubuntu%20Driver%20V${MY_PV}(1).zip to distfile directory"
}
src_prepare() {
default
unpack "${S}/Resources/pantum_${PV}-1_amd64.deb" || die
tar -xvf "${S}/data.tar.xz" || die
}
src_install() {
insinto /etc/sane.d
doins -r etc/sane.d/*
insinto "/usr/$(get_libdir)/sane"
doins usr/lib/x86_64-linux-gnu/sane/libsane-pantum*.so*
udev_dorules etc/udev/rules.d/*.rules
exeinto /opt/pantum/bin
doexe opt/pantum/bin/ptqpdf
exeinto /usr/libexec/cups/filter
doexe usr/lib/cups/filter/*
insinto /usr/share/cups/model
doins -r usr/share/cups/model/Pantum
}
pkg_postrm() {
udev_reload
}
pkg_postinst() {
udev_reload
}