Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: klfc-1.5.7
@ 2022-05-01 16:31 nadevko
  2022-05-01 16:32 ` [PR PATCH] [Updated] " nadevko
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: nadevko @ 2022-05-01 16:31 UTC (permalink / raw)
  To: ml

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

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

https://github.com/nadevko/void-packages master
https://github.com/void-linux/void-packages/pull/36939

New package: klfc-1.5.7
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-gnulibc

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

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

From e21eaeb38ce56d6adeed51c095f3f6f032ac13c7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nade=C5=ADka?= <nadevko@riseup.net>
Date: Sun, 1 May 2022 18:34:24 +0300
Subject: [PATCH] New package: klfc-1.5.7

---
 ...0001-Fix-compilation-with-GHC-9.0-40.patch | 44 +++++++++++++++++++
 .../patches/0002-More-fixes-for-GHC-9.0.patch | 25 +++++++++++
 srcpkgs/klfc/template                         | 24 ++++++++++
 3 files changed, 93 insertions(+)
 create mode 100644 srcpkgs/klfc/patches/0001-Fix-compilation-with-GHC-9.0-40.patch
 create mode 100644 srcpkgs/klfc/patches/0002-More-fixes-for-GHC-9.0.patch
 create mode 100644 srcpkgs/klfc/template

diff --git a/srcpkgs/klfc/patches/0001-Fix-compilation-with-GHC-9.0-40.patch b/srcpkgs/klfc/patches/0001-Fix-compilation-with-GHC-9.0-40.patch
new file mode 100644
index 000000000000..8c154f41b81a
--- /dev/null
+++ b/srcpkgs/klfc/patches/0001-Fix-compilation-with-GHC-9.0-40.patch
@@ -0,0 +1,44 @@
+From fee9bdeb76cc1f9e9e36b91764aff665c9164164 Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Thu, 16 Dec 2021 22:38:09 +0100
+Subject: [PATCH 1/5] Fix compilation with GHC 9.0 (#40)
+
+See https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.0#simplified-subsumption
+for the required eta-expansion in lensWithDefault'
+
+Hiding singleton from BasePrelude gives a warning for previous GHC versions,
+but this is a minor issue
+---
+ src/Util.hs     | 2 +-
+ src/WithPlus.hs | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Util.hs b/src/Util.hs
+index 0dc0884..dc096db 100644
+--- a/src/Util.hs
++++ b/src/Util.hs
+@@ -80,7 +80,7 @@ lensWithDefault guess setter getter f x =
+     (\y → setter (Just y) x) <$> f (fromMaybe (guess x) (getter x))
+ 
+ lensWithDefault' ∷ α → (Maybe α → σ → σ) → (σ → Maybe α) → Lens' σ α
+-lensWithDefault' = lensWithDefault ∘ const
++lensWithDefault' x = lensWithDefault (const x)
+ 
+ (!?) ∷ [α] → Int → Maybe α
+ (!?) xs i =
+diff --git a/src/WithPlus.hs b/src/WithPlus.hs
+index 1a46faf..558591d 100644
+--- a/src/WithPlus.hs
++++ b/src/WithPlus.hs
+@@ -9,7 +9,7 @@ module WithPlus
+     , parseString
+     ) where
+ 
+-import BasePrelude hiding (toList, fromList)
++import BasePrelude hiding (toList, fromList, singleton)
+ import Prelude.Unicode
+ import Data.Monoid.Unicode ((∅))
+ import Util (HumanReadable, split)
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/patches/0002-More-fixes-for-GHC-9.0.patch b/srcpkgs/klfc/patches/0002-More-fixes-for-GHC-9.0.patch
new file mode 100644
index 000000000000..75c6b81f85cb
--- /dev/null
+++ b/srcpkgs/klfc/patches/0002-More-fixes-for-GHC-9.0.patch
@@ -0,0 +1,25 @@
+From ad4a431513470f8386dd7a8c28aeef35187193fe Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Fri, 17 Dec 2021 00:11:58 +0100
+Subject: [PATCH 2/5] More fixes for GHC 9.0
+
+---
+ src/Layout/Modifier.hs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Layout/Modifier.hs b/src/Layout/Modifier.hs
+index 1fe456e..0d5e44c 100644
+--- a/src/Layout/Modifier.hs
++++ b/src/Layout/Modifier.hs
+@@ -22,7 +22,7 @@ module Layout.Modifier
+     , activatedBy
+     ) where
+ 
+-import BasePrelude hiding (Alt, Control, empty, fromList)
++import BasePrelude hiding (Alt, Control, empty, fromList, singleton)
+ import Prelude.Unicode hiding ((∈))
+ import Data.Foldable.Unicode ((∈))
+ import Data.Monoid.Unicode ((∅), (⊕))
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/template b/srcpkgs/klfc/template
new file mode 100644
index 000000000000..e70e49628830
--- /dev/null
+++ b/srcpkgs/klfc/template
@@ -0,0 +1,24 @@
+# Template file for 'klfc'
+pkgname='klfc'
+short_desc='Keyboard layout files creator'
+maintainer='Nadeŭka <nadevko@riseup.net>'
+license='GPL-3.0-or-later'
+homepage='https://github.com/39aldo39/klfc'
+revision='1'
+
+version='1.5.7'
+checksum='5a052c6f59917e99593e507e460e37b6633a388a43ef9ed0401b297c723c1eba'
+
+build_style='haskell-stack'
+stackage='nightly-2021-10-07'
+distfiles="https://github.com/39aldo39/klfc/archive/refs/tags/v$version.tar.gz"
+nopie_files='/usr/bin/klfc'
+python_version='3'
+
+pre_install() {
+	vdoc README.md
+	vlicense LICENSE.txt
+	for i in doc/* examples; do
+		vcopy "$i" usr/share/doc/$pkgname
+	done
+}

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [PR PATCH] New package: klfc-1.5.7
@ 2022-05-08 12:28 nadevko
  2022-05-19 12:55 ` [PR PATCH] [Updated] " nadevko
  0 siblings, 1 reply; 11+ messages in thread
From: nadevko @ 2022-05-08 12:28 UTC (permalink / raw)
  To: ml

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

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

https://github.com/nadevko/void-packages klfc
https://github.com/void-linux/void-packages/pull/37039

New package: klfc-1.5.7
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64

I'm sorry that this is third time I'm creating a pull request with this package, that simply my first with git. But now it's all fine from the start.

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

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

From 9e9d45e9832c33870d4fac0471d37a06a34b3b0b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nade=C5=ADka?= <nadevko@riseup.net>
Date: Sun, 1 May 2022 18:34:24 +0300
Subject: [PATCH] New package: klfc-1.5.7

---
 .../klfc/patches/0001-Fix-some-warnings.patch | 32 ++++++++++++++
 ...0002-Fix-compilation-with-GHC-9.0-40.patch | 44 +++++++++++++++++++
 .../patches/0003-More-fixes-for-GHC-9.0.patch | 25 +++++++++++
 srcpkgs/klfc/template                         | 23 ++++++++++
 4 files changed, 124 insertions(+)
 create mode 100644 srcpkgs/klfc/patches/0001-Fix-some-warnings.patch
 create mode 100644 srcpkgs/klfc/patches/0002-Fix-compilation-with-GHC-9.0-40.patch
 create mode 100644 srcpkgs/klfc/patches/0003-More-fixes-for-GHC-9.0.patch
 create mode 100644 srcpkgs/klfc/template

diff --git a/srcpkgs/klfc/patches/0001-Fix-some-warnings.patch b/srcpkgs/klfc/patches/0001-Fix-some-warnings.patch
new file mode 100644
index 000000000000..9d405dbf92c8
--- /dev/null
+++ b/srcpkgs/klfc/patches/0001-Fix-some-warnings.patch
@@ -0,0 +1,32 @@
+From 725bf5bf6c7177c538bcd6bab73a8ce1bd179c42 Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Thu, 16 Dec 2021 22:38:03 +0100
+Subject: [PATCH 1/6] Fix some warnings
+
+---
+ src/KlcParse.hs | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/KlcParse.hs b/src/KlcParse.hs
+index 7cc76ac..de90301 100644
+--- a/src/KlcParse.hs
++++ b/src/KlcParse.hs
+@@ -196,13 +196,13 @@ keyName = do
+ descriptions ∷ (Parser m, MonadFail m) ⇒ m ()
+ descriptions = do
+     ["DESCRIPTIONS"] ← readLine
+-    many (some hexDigitChar *> spacing *> endLine)
++    void $ many (some hexDigitChar *> spacing *> endLine)
+     pure ()
+ 
+ languageNames ∷ (Parser m, MonadFail m) ⇒ m ()
+ languageNames = do
+     ["LANGUAGENAMES"] ← readLine
+-    many (some hexDigitChar *> spacing *> endLine)
++    void $ many (some hexDigitChar *> spacing *> endLine)
+     pure ()
+ 
+ endKbd ∷ (Parser m, MonadFail m) ⇒ m ()
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/patches/0002-Fix-compilation-with-GHC-9.0-40.patch b/srcpkgs/klfc/patches/0002-Fix-compilation-with-GHC-9.0-40.patch
new file mode 100644
index 000000000000..c4743120f49e
--- /dev/null
+++ b/srcpkgs/klfc/patches/0002-Fix-compilation-with-GHC-9.0-40.patch
@@ -0,0 +1,44 @@
+From fee9bdeb76cc1f9e9e36b91764aff665c9164164 Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Thu, 16 Dec 2021 22:38:09 +0100
+Subject: [PATCH 2/6] Fix compilation with GHC 9.0 (#40)
+
+See https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.0#simplified-subsumption
+for the required eta-expansion in lensWithDefault'
+
+Hiding singleton from BasePrelude gives a warning for previous GHC versions,
+but this is a minor issue
+---
+ src/Util.hs     | 2 +-
+ src/WithPlus.hs | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Util.hs b/src/Util.hs
+index 0dc0884..dc096db 100644
+--- a/src/Util.hs
++++ b/src/Util.hs
+@@ -80,7 +80,7 @@ lensWithDefault guess setter getter f x =
+     (\y → setter (Just y) x) <$> f (fromMaybe (guess x) (getter x))
+ 
+ lensWithDefault' ∷ α → (Maybe α → σ → σ) → (σ → Maybe α) → Lens' σ α
+-lensWithDefault' = lensWithDefault ∘ const
++lensWithDefault' x = lensWithDefault (const x)
+ 
+ (!?) ∷ [α] → Int → Maybe α
+ (!?) xs i =
+diff --git a/src/WithPlus.hs b/src/WithPlus.hs
+index 1a46faf..558591d 100644
+--- a/src/WithPlus.hs
++++ b/src/WithPlus.hs
+@@ -9,7 +9,7 @@ module WithPlus
+     , parseString
+     ) where
+ 
+-import BasePrelude hiding (toList, fromList)
++import BasePrelude hiding (toList, fromList, singleton)
+ import Prelude.Unicode
+ import Data.Monoid.Unicode ((∅))
+ import Util (HumanReadable, split)
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/patches/0003-More-fixes-for-GHC-9.0.patch b/srcpkgs/klfc/patches/0003-More-fixes-for-GHC-9.0.patch
new file mode 100644
index 000000000000..e7a3d29979ff
--- /dev/null
+++ b/srcpkgs/klfc/patches/0003-More-fixes-for-GHC-9.0.patch
@@ -0,0 +1,25 @@
+From ad4a431513470f8386dd7a8c28aeef35187193fe Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Fri, 17 Dec 2021 00:11:58 +0100
+Subject: [PATCH 3/6] More fixes for GHC 9.0
+
+---
+ src/Layout/Modifier.hs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Layout/Modifier.hs b/src/Layout/Modifier.hs
+index 1fe456e..0d5e44c 100644
+--- a/src/Layout/Modifier.hs
++++ b/src/Layout/Modifier.hs
+@@ -22,7 +22,7 @@ module Layout.Modifier
+     , activatedBy
+     ) where
+ 
+-import BasePrelude hiding (Alt, Control, empty, fromList)
++import BasePrelude hiding (Alt, Control, empty, fromList, singleton)
+ import Prelude.Unicode hiding ((∈))
+ import Data.Foldable.Unicode ((∈))
+ import Data.Monoid.Unicode ((∅), (⊕))
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/template b/srcpkgs/klfc/template
new file mode 100644
index 000000000000..ab3de6761a41
--- /dev/null
+++ b/srcpkgs/klfc/template
@@ -0,0 +1,23 @@
+# Template file for 'klfc'
+pkgname=klfc
+version=1.5.7
+revision=1
+build_style=haskell-stack
+stackage=nightly-2021-10-07
+short_desc="Keyboard layout files creator"
+maintainer="Nadeŭka <nadevko@riseup.net>"
+license=GPL-3.0-or-later
+homepage=https://github.com/39aldo39/klfc
+distfiles=https://github.com/39aldo39/klfc/archive/refs/tags/v$version.tar.gz
+checksum=5a052c6f59917e99593e507e460e37b6633a388a43ef9ed0401b297c723c1eba
+python_version=3
+nopie_files=/usr/bin/klfc
+nocross="Cannot yet cross compile with Haskell"
+
+pre_install() {
+	vdoc README.md
+	vlicense LICENSE.txt
+	for i in doc/* examples; do
+		vcopy "$i" usr/share/doc/$pkgname
+	done
+}

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

end of thread, other threads:[~2022-05-19 12:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-01 16:31 [PR PATCH] New package: klfc-1.5.7 nadevko
2022-05-01 16:32 ` [PR PATCH] [Updated] " nadevko
2022-05-01 16:34 ` nadevko
2022-05-01 16:44 ` [PR REVIEW] " classabbyamp
2022-05-01 16:52 ` [PR PATCH] [Updated] " nadevko
2022-05-01 16:55 ` [PR REVIEW] " nadevko
2022-05-02  7:40 ` [PR PATCH] [Updated] " nadevko
2022-05-02 16:18 ` nadevko
2022-05-02 17:39 ` nadevko
2022-05-08 12:07 ` [PR PATCH] [Closed]: " nadevko
2022-05-08 12:28 [PR PATCH] " nadevko
2022-05-19 12:55 ` [PR PATCH] [Updated] " nadevko

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).