Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: lagrange-1.0.2
@ 2021-01-07  8:56 paper42
  2021-01-07  9:12 ` [PR PATCH] [Updated] " paper42
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: paper42 @ 2021-01-07  8:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 342 bytes --]

There is a new pull request by paper42 against master on the void-packages repository

https://github.com/paper42/void-packages 0001-New-package-lagrange-1.0.2.patch
https://github.com/void-linux/void-packages/pull/27732

New package: lagrange-1.0.2


A patch file from https://github.com/void-linux/void-packages/pull/27732.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-0001-New-package-lagrange-1.0.2.patch-27732.patch --]
[-- Type: text/x-diff, Size: 3599 bytes --]

From dad051e89d0d6a84f419b9f113a21326052a43a5 Mon Sep 17 00:00:00 2001
From: Paper <paper@tilde.institute>
Date: Thu, 7 Jan 2021 09:53:02 +0100
Subject: [PATCH] New package: lagrange-1.0.2

---
 srcpkgs/lagrange/patches/cross.patch | 63 ++++++++++++++++++++++++++++
 srcpkgs/lagrange/template            | 19 +++++++++
 2 files changed, 82 insertions(+)
 create mode 100644 srcpkgs/lagrange/patches/cross.patch
 create mode 100644 srcpkgs/lagrange/template

diff --git a/srcpkgs/lagrange/patches/cross.patch b/srcpkgs/lagrange/patches/cross.patch
new file mode 100644
index 00000000000..e4eda75a9c5
--- /dev/null
+++ b/srcpkgs/lagrange/patches/cross.patch
@@ -0,0 +1,63 @@
+From 192d56c3fb61c43a3a5c3189a2a194a90e7bb3b4 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= <jaakko.keranen@iki.fi>
+Date: Tue, 5 Jan 2021 08:54:31 +0200
+Subject: [PATCH] Embed: Use a shell script for bincat
+
+Todo: Needs testing if this is portable enough. Should be pretty POSIX, though.
+---
+ res/Embed.cmake |  9 ++++++++-
+ res/bincat.sh   | 22 ++++++++++++++++++++++
+ 2 files changed, 30 insertions(+), 1 deletion(-)
+ create mode 100755 res/bincat.sh
+
+diff --git a/res/Embed.cmake b/res/Embed.cmake
+index bab0634..1a971cc 100644
+--- a/res/Embed.cmake
++++ b/res/Embed.cmake
+@@ -3,9 +3,16 @@
+ # License: BSD 2-Clause
+ 
+ option (ENABLE_RESOURCE_EMBED "Embed resources inside the executable" OFF)
++option (ENABLE_BINCAT_SH "Prepare resource files using the 'bincat.sh' shell script" ON)
++
++if (ENABLE_BINCAT_SH OR CMAKE_CROSSCOMPILING)
++    set (embed_use_bincat_sh YES)
++endif ()
+ 
+ # Build "bincat" for concatenating files.
+-if (NOT ENABLE_RESOURCE_EMBED)
++if (embed_use_bincat_sh)
++    set (BINCAT_COMMAND ${CMAKE_SOURCE_DIR}/res/bincat.sh)
++elseif (NOT ENABLE_RESOURCE_EMBED)
+     message (STATUS "Compiling bincat for merging resource files...")
+     set (_catDir ${CMAKE_BINARY_DIR}/res)
+     execute_process (COMMAND ${CMAKE_COMMAND} -E make_directory ${_catDir})
+diff --git a/res/bincat.sh b/res/bincat.sh
+new file mode 100755
+index 0000000..4648399
+--- /dev/null
++++ b/res/bincat.sh
+@@ -0,0 +1,22 @@
++#!/bin/sh
++# Binary Resource Concatenator
++# Copyright: 2021 Jaakko Keränen <jaakko.keranen@iki.fi>
++# License: BSD 2-Clause
++
++OUTPUT=--
++SIZES=""
++for fn in "$@"; do
++    if [ "$OUTPUT" = "--" ]; then        
++        OUTPUT=$fn
++        rm -f "$OUTPUT"
++    else
++        vals=$(/bin/ls -l "$fn")
++        SIZE=$(echo "$vals" | awk '{print $4}')
++        if [ "$SIZES" = "" ]; then
++            SIZES="$SIZE"
++        else
++            SIZES=$SIZES\;$SIZE
++        fi
++        cat "$fn" >> "$OUTPUT"
++    fi
++done
++echo "$SIZES"
diff --git a/srcpkgs/lagrange/template b/srcpkgs/lagrange/template
new file mode 100644
index 00000000000..f58364a7ad5
--- /dev/null
+++ b/srcpkgs/lagrange/template
@@ -0,0 +1,19 @@
+# Template file for 'lagrange'
+pkgname=lagrange
+version=1.0.2
+revision=1
+build_style=cmake
+hostmakedepends="pkg-config"
+makedepends="pcre-devel SDL2-devel libressl-devel zlib-devel libunistring-devel mpg123-devel libcurl-devel"
+short_desc="Beautiful Gemini Client"
+maintainer="Paper <paper@tilde.institute>"
+license="BSD-2-Clause"
+homepage="https://gmi.skyjake.fi/lagrange/"
+changelog="https://git.skyjake.fi/skyjake/lagrange/raw/branch/dev/res/about/version.gmi"
+distfiles="https://git.skyjake.fi/skyjake/lagrange/releases/download/v$version/lagrange-$version.tar.gz"
+checksum=10fe61b98c30758a34ef06013404396c57e3ffdfd37dc2956569e07411d8ea53
+patch_args="-Np1"
+
+post_install() {
+	vlicense LICENSE.md
+}

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-03-28 21:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-07  8:56 [PR PATCH] New package: lagrange-1.0.2 paper42
2021-01-07  9:12 ` [PR PATCH] [Updated] " paper42
2021-02-03 20:39 ` paper42
2021-02-14 19:28 ` [PR PATCH] [Updated] New package: lagrange-1.1.1 paper42
2021-02-23 13:29 ` [PR PATCH] [Updated] New package: lagrange-1.1.3 paper42
2021-03-01 20:10 ` paper42
2021-03-12 21:29 ` paper42
2021-03-28 21:59 ` [PR PATCH] [Merged]: New package: lagrange-1.2.2 Piraty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).