Github messages for voidlinux
 help / color / mirror / Atom feed
From: freddylist <freddylist@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] nnn: add build options
Date: Fri, 30 Sep 2022 15:03:17 +0200	[thread overview]
Message-ID: <20220930130317.vNbKlMAJmdwQfH8yrDIOCKJg3TF655DEi_mFJ5JzBxk@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-39360@inbox.vuxu.org>

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

There is an updated pull request by freddylist against master on the void-packages repository

https://github.com/freddylist/void-packages nnn-buildopts
https://github.com/void-linux/void-packages/pull/39360

nnn: add build options
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**


#### Local build testing
- I built this PR locally for my native architecture, x86-64-glibc

---

~~`xlint` doesn't like my string on multiple lines.~~

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-nnn-buildopts-39360.patch --]
[-- Type: text/x-diff, Size: 2299 bytes --]

From 1ae8e27e93539db9bb0a11a5b8de7a7b7ae8527a Mon Sep 17 00:00:00 2001
From: Freddy List <github@freddylist.xyz>
Date: Mon, 19 Sep 2022 10:33:34 +0200
Subject: [PATCH] nnn: add build options

---
 srcpkgs/nnn/template | 33 +++++++++++++++++++++++++++++++--
 1 file changed, 31 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/nnn/template b/srcpkgs/nnn/template
index cea82d368152..1cc0fa1e2cb4 100644
--- a/srcpkgs/nnn/template
+++ b/srcpkgs/nnn/template
@@ -1,11 +1,18 @@
 # Template file for 'nnn'
 pkgname=nnn
 version=4.6
-revision=1
+revision=2
 build_style=gnu-makefile
+make_build_args="O_PCRE=$(vopt_if pcre 1 0)
+ O_CTX8=$(vopt_if ctx8 1 0)
+ O_ICONS=$(vopt_if icons 1 0)
+ O_NERD=$(vopt_if nerdfont 1 0)
+ O_EMOJI=$(vopt_if emojis 1 0)
+ O_QSORT=$(vopt_if qsort 1 0)
+ O_MATCHFLTR=$(vopt_if matchfilter 1 0)"
 make_install_target="install install-desktop"
 hostmakedepends="pkg-config"
-makedepends="ncurses-devel readline-devel"
+makedepends="ncurses-devel readline-devel $(vopt_if pcre pcre-devel)"
 short_desc="Missing terminal file browser for X"
 maintainer="Dennis Kraus <kraus@posteo.de>"
 license="BSD-2-Clause"
@@ -14,6 +21,28 @@ changelog="https://raw.githubusercontent.com/jarun/nnn/master/CHANGELOG"
 distfiles="https://github.com/jarun/nnn/archive/v${version}.tar.gz"
 checksum=15acaf9a88cfb5a2a640d3ef55a48af644fba92b46aac0768efe94c4addf7e3f
 
+build_options="pcre
+ icons
+ nerdfont
+ emojis
+ qsort
+ ctx8
+ matchfilter"
+
+# See https://github.com/jarun/nnn/wiki/Developer-guides#make-options
+desc_option_pcre="PCRE instead of POSIX regex"
+desc_option_icons="icons-in-terminal support, not compatible with set nerdfont or emojis or unset locale"
+desc_option_nerdfont="Nerdfont icons, not compatible with set icons or emojis or unset locale"
+desc_option_emojis="Emoji icons, not compatible with set nerdfont or icons or unset locale"
+desc_option_qsort="Alexey Tourbin's QSORT"
+desc_option_ctx8="Enable 8 contexts, however, saved sessions may no longer be usable"
+desc_option_matchfilter="Matching filters only, discard filter key when there's no match"
+
+# Following are mutually exclusive
+vopt_conflict icons nerdfont
+vopt_conflict nerdfont emojis
+vopt_conflict emojis icons
+
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 	makedepends+=" musl-fts-devel"
 fi

  parent reply	other threads:[~2022-09-30 13:03 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-19  8:48 [PR PATCH] " freddylist
2022-09-19 10:32 ` [PR REVIEW] " classabbyamp
2022-09-19 10:34 ` classabbyamp
2022-09-19 10:38 ` classabbyamp
2022-09-19 10:39 ` [PR REVIEW] " classabbyamp
2022-09-19 10:40 ` freddylist
2022-09-19 10:43 ` freddylist
2022-09-19 10:46 ` freddylist
2022-09-19 10:48 ` freddylist
2022-09-19 10:53 ` freddylist
2022-09-19 10:54 ` sgn
2022-09-19 10:57 ` freddylist
2022-09-19 10:58 ` sgn
2022-09-19 11:00 ` sgn
2022-09-19 11:32 ` paper42
2022-09-19 11:59 ` freddylist
2022-09-19 12:33 ` [PR PATCH] [Updated] " freddylist
2022-09-19 12:39 ` freddylist
2022-09-19 12:40 ` paper42
2022-09-19 12:49 ` sgn
2022-09-19 12:51 ` sgn
2022-09-19 12:54 ` [PR PATCH] [Updated] " freddylist
2022-09-19 13:06 ` freddylist
2022-09-19 13:10 ` freddylist
2022-09-19 13:12 ` sgn
2022-09-19 13:12 ` sgn
2022-09-19 13:13 ` freddylist
2022-09-19 13:14 ` sgn
2022-09-19 13:16 ` [PR PATCH] [Updated] " freddylist
2022-09-19 13:57 ` freddylist
2022-09-19 13:58 ` freddylist
2022-09-19 13:59 ` freddylist
2022-09-19 14:08 ` freddylist
2022-09-19 16:26 ` freddylist
2022-09-19 19:12 ` freddylist
2022-09-20  8:24 ` freddylist
2022-09-20  8:31 ` freddylist
2022-09-20  8:32 ` freddylist
2022-09-20  8:37 ` [PR REVIEW] " freddylist
2022-09-30 13:03 ` freddylist [this message]
2022-12-05 19:47 ` [PR PATCH] [Closed]: " freddylist
2022-12-06  0:01 ` sgn

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=20220930130317.vNbKlMAJmdwQfH8yrDIOCKJg3TF655DEi_mFJ5JzBxk@z \
    --to=freddylist@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).