From: paper42 <paper42@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: lagrange-1.0.2
Date: Thu, 07 Jan 2021 10:12:16 +0100 [thread overview]
Message-ID: <20210107091216.WNYa8qH4ZReZEOnPgyukvDaDQ5yl6pzWHL04cT7gXYs@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-27732@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 347 bytes --]
There is an updated 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: 3554 bytes --]
From 6955929b624493156999e7670b6cbd8794813b30 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 | 62 ++++++++++++++++++++++++++++
srcpkgs/lagrange/template | 19 +++++++++
2 files changed, 81 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..bb275e43def
--- /dev/null
+++ b/srcpkgs/lagrange/patches/cross.patch
@@ -0,0 +1,62 @@
+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`)
++ if [ "$SIZES" == "" ]; then
++ SIZES=${vals[4]}
++ else
++ SIZES=$SIZES\;${vals[4]}
++ 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
+}
next prev parent reply other threads:[~2021-01-07 9:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-07 8:56 [PR PATCH] " paper42
2021-01-07 9:12 ` paper42 [this message]
2021-02-03 20:39 ` [PR PATCH] [Updated] " 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210107091216.WNYa8qH4ZReZEOnPgyukvDaDQ5yl6pzWHL04cT7gXYs@z \
--to=paper42@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).