diff --git a/dev-haskell/cmdargs/Manifest b/dev-haskell/cmdargs/Manifest
index c6c327bc5b2fb..20c948578523d 100644
--- a/dev-haskell/cmdargs/Manifest
+++ b/dev-haskell/cmdargs/Manifest
@@ -1 +1,2 @@
DIST cmdargs-0.10.20.tar.gz 64550 BLAKE2B 08511df092c2a7010af94bc8d9b54b29c0e76c33be06a9521eccc85092b57a45ae9f9d22b0f8e81266073c81185b66266d1f2321c327ae730c6ccebea7f6d6cf SHA512 b9e270aa5dabd84eaaa47b95a450ef5b5f43cd19646f2a407579f855857d396e5ab9ca0038e1e876849a596ecb8cdc9964c45970825a0a95021d69b23699da79
+DIST cmdargs-0.10.22.tar.gz 65154 BLAKE2B a6f05c4a186dc4dbb9de3c754f9100138d3954b1537b1ecb81e2fec2c6bd293dd381a2a666dae0bcbbc631e9ab95d8a65d85d68d3e2c80bb2d6ad87baf9906b1 SHA512 571d9584769fdb5bb77a57607c2f432b365604a2ca2e9b5c044c319499004f7fcb12f2f6e61091a245f1bf6a5d321d38ade1a54d5bc86831136fa85b9b898faa
diff --git a/dev-haskell/cmdargs/cmdargs-0.10.22.ebuild b/dev-haskell/cmdargs/cmdargs-0.10.22.ebuild
new file mode 100644
index 0000000000000..2ce0041ab4706
--- /dev/null
+++ b/dev-haskell/cmdargs/cmdargs-0.10.22.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# ebuild generated by hackport 0.8.4.0.9999
+#hackport: flags: testprog:examples
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour"
+inherit haskell-cabal
+
+DESCRIPTION="Command line argument processing"
+HOMEPAGE="https://github.com/ndmitchell/cmdargs#readme"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="examples +quotation"
+REQUIRED_USE="examples? ( quotation )"
+
+CABAL_CHDEPS=(
+ 'executable cmdargs' 'executable cmdargs-demo'
+)
+
+RDEPEND="
+ >=dev-lang/ghc-8.8.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-3.0.0.0
+"
+
+src_configure() {
+ haskell-cabal_src_configure \
+ $(cabal_flag quotation quotation) \
+ $(cabal_flag examples testprog)
+}
diff --git a/dev-haskell/cmdargs/metadata.xml b/dev-haskell/cmdargs/metadata.xml
index 4ba506a01472d..4a2ade06e3bae 100644
--- a/dev-haskell/cmdargs/metadata.xml
+++ b/dev-haskell/cmdargs/metadata.xml
@@ -5,31 +5,13 @@
haskell@gentoo.org
Gentoo Haskell
-
- This library provides an easy way to define command line parsers. Most users
- will want to use the "System.Console.CmdArgs.Implicit" module, whose
- documentation contains an example.
-
- * "System.Console.CmdArgs.Explicit" provides a way to write command line
- parsers for both single mode programs (most programs) and multiple
- mode programs (e.g. darcs or cabal). Parsers are defined by constructing
- a data structure.
-
- * "System.Console.CmdArgs.Implicit" provides a way to concisely define
- command line parsers, up to three times shorter than getopt. These parsers
- are translated into the Explicit data type.
-
- * "System.Console.CmdArgs.GetOpt" provides a wrapper allowing compatiblity
- with existing getopt parsers, mapping to the Explicit data type.
-
- For a general reference on what command line flags are commonly used,
- see <http://www.faqs.org/docs/artu/ch10s05.html>.
-
+ cmdargs
ndmitchell/cmdargs