[gentoo-commits] repo/proj/guru:dev commit in: gui-libs/text-engine/files/, gui-libs/text-engine/

2022-12-21 Thread Yuan Liao
commit: 2e65f87613b699434752c4f96cd9e6d2d7075bef
Author: Yuan Liao  gmail  com>
AuthorDate: Wed Dec 21 20:29:34 2022 +
Commit: Yuan Liao  gmail  com>
CommitDate: Wed Dec 21 20:30:11 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2e65f876

gui-libs/text-engine: Add patch to fix -Wreturn-type errors

Closes: https://bugs.gentoo.org/887649
Signed-off-by: Yuan Liao  gmail.com>

 .../files/text-engine-0.1.1-fix-Wreturn-type.patch | 31 ++
 ...0.1.1-r1.ebuild => text-engine-0.1.1-r2.ebuild} |  1 +
 2 files changed, 32 insertions(+)

diff --git 
a/gui-libs/text-engine/files/text-engine-0.1.1-fix-Wreturn-type.patch 
b/gui-libs/text-engine/files/text-engine-0.1.1-fix-Wreturn-type.patch
new file mode 100644
index 0..7afa7ff7a
--- /dev/null
+++ b/gui-libs/text-engine/files/text-engine-0.1.1-fix-Wreturn-type.patch
@@ -0,0 +1,31 @@
+Judging from the commit message, the main intention of this commit,
+which is already staged in the upstream repository for the next release,
+did not seem to be to eliminate compiler errors with -Wreturn-type.
+However, it _is_ a resolution of the bug.
+
+Bug: https://bugs.gentoo.org/887649
+
+From 749c94d853c0b0e29e79a1b270ec61947b65c319 Mon Sep 17 00:00:00 2001
+From: Matthew Jakeman 
+Date: Mon, 6 Jun 2022 16:11:32 +1200
+Subject: [PATCH] fix: Support building on macos
+
+---
+ src/layout/layout.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/layout/layout.c b/src/layout/layout.c
+index dbeb690..32d1845 100644
+--- a/src/layout/layout.c
 b/src/layout/layout.c
+@@ -129,8 +129,8 @@ text_layout_build_layout_tree (TextLayout   *self,
+TextFrame*frame,
+int   width)
+ {
+-g_return_if_fail (TEXT_IS_LAYOUT (self));
+-g_return_if_fail (TEXT_IS_FRAME (frame));
++g_return_val_if_fail (TEXT_IS_LAYOUT (self), NULL);
++g_return_val_if_fail (TEXT_IS_FRAME (frame), NULL);
+ 
+ TextLayoutBox *root = text_layout_box_new ();
+ do_layout_recursive (self, root, context, cursor, TEXT_ITEM (frame), 
width);

diff --git a/gui-libs/text-engine/text-engine-0.1.1-r1.ebuild 
b/gui-libs/text-engine/text-engine-0.1.1-r2.ebuild
similarity index 95%
rename from gui-libs/text-engine/text-engine-0.1.1-r1.ebuild
rename to gui-libs/text-engine/text-engine-0.1.1-r2.ebuild
index d4e525e9c..bd3411bfe 100644
--- a/gui-libs/text-engine/text-engine-0.1.1-r1.ebuild
+++ b/gui-libs/text-engine/text-engine-0.1.1-r2.ebuild
@@ -41,6 +41,7 @@ RDEPEND="
 
 PATCHES=(
"${FILESDIR}/${P}-fix-package-version.patch"
+   "${FILESDIR}/${P}-fix-Wreturn-type.patch"
 )
 
 src_prepare() {



[gentoo-commits] repo/proj/guru:dev commit in: gui-libs/text-engine/

2022-09-26 Thread Andrew Ammerlaan
commit: 90dacd56835e63abdc89bfa43e2190fb9282af2f
Author: Andrew Ammerlaan  gentoo  org>
AuthorDate: Mon Sep 26 10:12:59 2022 +
Commit: Andrew Ammerlaan  gentoo  org>
CommitDate: Mon Sep 26 10:12:59 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=90dacd56

gui-libs/text-engine: delete weird empty file

Signed-off-by: Andrew Ammerlaan  gentoo.org>

 gui-libs/text-engine/sediuNWrL | 0
 1 file changed, 0 insertions(+), 0 deletions(-)

diff --git a/gui-libs/text-engine/sediuNWrL b/gui-libs/text-engine/sediuNWrL
deleted file mode 100644
index e69de29bb..0



[gentoo-commits] repo/proj/guru:dev commit in: gui-libs/text-engine/, gui-libs/text-engine/files/

2022-07-30 Thread Yuan Liao
commit: bf56e3422de54df5b8a9b518d8a1d866f76a6093
Author: Yuan Liao  gmail  com>
AuthorDate: Sat Jul 30 15:39:01 2022 +
Commit: Yuan Liao  gmail  com>
CommitDate: Sat Jul 30 15:39:01 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bf56e342

gui-libs/text-engine: Correct package version in meson.build for 0.1.1

Closes: https://bugs.gentoo.org/860015
Signed-off-by: Yuan Liao  gmail.com>

 .../text-engine-0.1.1-fix-package-version.patch| 25 ++
 ...ne-0.1.1.ebuild => text-engine-0.1.1-r1.ebuild} |  4 
 2 files changed, 29 insertions(+)

diff --git 
a/gui-libs/text-engine/files/text-engine-0.1.1-fix-package-version.patch 
b/gui-libs/text-engine/files/text-engine-0.1.1-fix-package-version.patch
new file mode 100644
index 0..21fe6e5a3
--- /dev/null
+++ b/gui-libs/text-engine/files/text-engine-0.1.1-fix-package-version.patch
@@ -0,0 +1,25 @@
+From aac86863fbbf31c5ef557e5030e7a87f85db79af Mon Sep 17 00:00:00 2001
+From: Yuan Liao 
+Date: Sat, 30 Jul 2022 07:24:51 -0700
+Subject: [PATCH] meson.build: Correct package version
+
+Bug: https://bugs.gentoo.org/860015
+Signed-off-by: Yuan Liao 
+---
+ meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index dab9b8a..80a505b 100644
+--- a/meson.build
 b/meson.build
+@@ -1,5 +1,5 @@
+ project('text-engine', 'c',
+-  version: '0.1.0',
++  version: '0.1.1',
+ meson_version: '>= 0.50.0',
+   default_options: [ 'warning_level=2',
+  'c_std=gnu11',
+-- 
+2.35.1
+

diff --git a/gui-libs/text-engine/text-engine-0.1.1.ebuild 
b/gui-libs/text-engine/text-engine-0.1.1-r1.ebuild
similarity index 93%
rename from gui-libs/text-engine/text-engine-0.1.1.ebuild
rename to gui-libs/text-engine/text-engine-0.1.1-r1.ebuild
index 3d0af284c..d4e525e9c 100644
--- a/gui-libs/text-engine/text-engine-0.1.1.ebuild
+++ b/gui-libs/text-engine/text-engine-0.1.1-r1.ebuild
@@ -39,6 +39,10 @@ RDEPEND="
x11-libs/pango
 "
 
+PATCHES=(
+   "${FILESDIR}/${P}-fix-package-version.patch"
+)
+
 src_prepare() {
default
sed -i -e "/subdir('demo')/d" meson.build ||



[gentoo-commits] repo/proj/guru:dev commit in: gui-libs/text-engine/

2022-07-02 Thread Yuan Liao
commit: 10b2315d889d77fafd474aa521cedd787842910b
Author: Yuan Liao  gmail  com>
AuthorDate: Sat Jul  2 21:50:59 2022 +
Commit: Yuan Liao  gmail  com>
CommitDate: Sat Jul  2 22:19:09 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=10b2315d

gui-libs/text-engine: Drop 0.1.0

Signed-off-by: Yuan Liao  gmail.com>

 gui-libs/text-engine/Manifest |  1 -
 gui-libs/text-engine/text-engine-0.1.0.ebuild | 46 ---
 2 files changed, 47 deletions(-)

diff --git a/gui-libs/text-engine/Manifest b/gui-libs/text-engine/Manifest
index 5ea7b8933..6bc42dd54 100644
--- a/gui-libs/text-engine/Manifest
+++ b/gui-libs/text-engine/Manifest
@@ -1,2 +1 @@
-DIST text-engine-0.1.0.tar.gz 15728 BLAKE2B 
41a5b4bb0347eca29268cf089a7ea127a0a467fa123384bc1d92cbb215ca98f9963742ba5f93972d163c7f6708ac428762a92023d98ad130b56657b6eccb7956
 SHA512 
36be3e913187dfbba96945891a64cb2b3efde8324cdb3457a64c2fdfd19e2c1289d48a92ca60c957c52e18a6cabbcc13f178c34687f183f60557e41db5c36418
 DIST text-engine-0.1.1.tar.gz 16568 BLAKE2B 
71c6766592aa143413721c36d9282624e4bcd1f8594b5a9c1dde24f30704da690ebad8ae483fb04490ec383f6434c211f0c21c37661ba647c97bcae6241231e6
 SHA512 
8f3d4e7964d7256c1386200aa4338d8d6ff35e4578e50381b1fcbdc1a232f4da28c74bc8bfe66a5507888197cbf430cac03730d8624381bd5a2b023eecc73736

diff --git a/gui-libs/text-engine/text-engine-0.1.0.ebuild 
b/gui-libs/text-engine/text-engine-0.1.0.ebuild
deleted file mode 100644
index 5b29e8753..0
--- a/gui-libs/text-engine/text-engine-0.1.0.ebuild
+++ /dev/null
@@ -1,46 +0,0 @@
-# Copyright 2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit meson
-
-if [[ ${PV} == * ]]; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/mjakeman/text-engine.git;
-else
-   SRC_URI="https://github.com/mjakeman/text-engine/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
-   KEYWORDS="~amd64"
-fi
-
-DESCRIPTION="A lightweight rich-text framework for GTK 4"
-HOMEPAGE="https://github.com/mjakeman/text-engine;
-
-LICENSE="MIT"
-SLOT="0"
-
-BDEPEND="
-   virtual/pkgconfig
-"
-
-COMMON_DEPEND="
-   dev-libs/glib:2
-   dev-libs/libxml2:2
-   gui-libs/gtk:4
-"
-
-DEPEND="
-   ${COMMON_DEPEND}
-   dev-libs/json-glib
-"
-
-RDEPEND="
-   ${COMMON_DEPEND}
-   x11-libs/pango
-"
-
-src_prepare() {
-   default
-   sed -i -e "/subdir('demo')/d" meson.build ||
-   die "Failed to modify meson.build to exclude the demo program"
-}



[gentoo-commits] repo/proj/guru:dev commit in: gui-libs/text-engine/

2022-04-22 Thread Yuan Liao
commit: c76b74ac795d859f0895880f0311d61cd8742599
Author: Yuan Liao  gmail  com>
AuthorDate: Fri Apr 22 18:14:25 2022 +
Commit: Yuan Liao  gmail  com>
CommitDate: Fri Apr 22 18:47:33 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c76b74ac

gui-libs/text-engine: Update LICENSE for live ebuild

The upstream has recently changed the license from LGPL-3+ to
|| ( MPL-2.0 LGPL-2.1+ ) in some commits staged for the next release;
the license change has not been retrospectively applied to versions
already released yet.

Signed-off-by: Yuan Liao  gmail.com>

 gui-libs/text-engine/text-engine-.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gui-libs/text-engine/text-engine-.ebuild 
b/gui-libs/text-engine/text-engine-.ebuild
index 3d0af284c..f0d007a6f 100644
--- a/gui-libs/text-engine/text-engine-.ebuild
+++ b/gui-libs/text-engine/text-engine-.ebuild
@@ -16,7 +16,7 @@ fi
 DESCRIPTION="A lightweight rich-text framework for GTK 4"
 HOMEPAGE="https://github.com/mjakeman/text-engine;
 
-LICENSE="LGPL-3+"
+LICENSE="|| ( MPL-2.0 LGPL-2.1+ )"
 SLOT="0"
 
 BDEPEND="



[gentoo-commits] repo/proj/guru:dev commit in: gui-libs/text-engine/

2022-04-22 Thread Yuan Liao
commit: 258ed04d7ebe630ad9d276b540924e02ec41eae2
Author: Yuan Liao  gmail  com>
AuthorDate: Fri Apr 22 18:20:48 2022 +
Commit: Yuan Liao  gmail  com>
CommitDate: Fri Apr 22 18:47:33 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=258ed04d

gui-libs/text-engine: Limit dev-libs/glib to >=2.72.0 for live ebuild

As of the time when this commit is authored, the latest stable version
of dev-libs/glib in ::gentoo is 2.70.4; however, some new tests of this
package added in commits staged for the next release would fail with
glib 2.70.4:

Bail out! GLib-FATAL-ERROR: ../glib-2.70.4/glib/gmem.c:112: failed to 
allocate 18446744073709551611 bytes

(test/split:29196): GLib-ERROR **: 11:25:10.093: 
../glib-2.70.4/glib/gmem.c:112: failed to allocate 18446744073709551611 bytes
Trace/breakpoint trap (core dumped)

These failures can be fixed by upgrading glib to >=2.72.0; 2.72.0 is
also the version used by the upstream in this project's CI builds.

Signed-off-by: Yuan Liao  gmail.com>

 gui-libs/text-engine/text-engine-.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gui-libs/text-engine/text-engine-.ebuild 
b/gui-libs/text-engine/text-engine-.ebuild
index f0d007a6f..f03fe156c 100644
--- a/gui-libs/text-engine/text-engine-.ebuild
+++ b/gui-libs/text-engine/text-engine-.ebuild
@@ -24,7 +24,7 @@ BDEPEND="
 "
 
 COMMON_DEPEND="
-   dev-libs/glib:2
+   >=dev-libs/glib-2.72.0:2
dev-libs/libxml2:2
gui-libs/gtk:4
 "



[gentoo-commits] repo/proj/guru:dev commit in: gui-libs/text-engine/

2022-04-08 Thread Yuan Liao
commit: d2ed8ba6f5c90d4a4e8f87237a60d5fafc00effa
Author: Yuan Liao  gmail  com>
AuthorDate: Fri Apr  8 14:52:47 2022 +
Commit: Yuan Liao  gmail  com>
CommitDate: Fri Apr  8 14:52:47 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d2ed8ba6

gui-libs/text-engine: Add 0.1.1

Signed-off-by: Yuan Liao  gmail.com>

 gui-libs/text-engine/Manifest |  1 +
 gui-libs/text-engine/text-engine-0.1.1.ebuild | 46 +++
 2 files changed, 47 insertions(+)

diff --git a/gui-libs/text-engine/Manifest b/gui-libs/text-engine/Manifest
index d43363127..5ea7b8933 100644
--- a/gui-libs/text-engine/Manifest
+++ b/gui-libs/text-engine/Manifest
@@ -1 +1,2 @@
 DIST text-engine-0.1.0.tar.gz 15728 BLAKE2B 
41a5b4bb0347eca29268cf089a7ea127a0a467fa123384bc1d92cbb215ca98f9963742ba5f93972d163c7f6708ac428762a92023d98ad130b56657b6eccb7956
 SHA512 
36be3e913187dfbba96945891a64cb2b3efde8324cdb3457a64c2fdfd19e2c1289d48a92ca60c957c52e18a6cabbcc13f178c34687f183f60557e41db5c36418
+DIST text-engine-0.1.1.tar.gz 16568 BLAKE2B 
71c6766592aa143413721c36d9282624e4bcd1f8594b5a9c1dde24f30704da690ebad8ae483fb04490ec383f6434c211f0c21c37661ba647c97bcae6241231e6
 SHA512 
8f3d4e7964d7256c1386200aa4338d8d6ff35e4578e50381b1fcbdc1a232f4da28c74bc8bfe66a5507888197cbf430cac03730d8624381bd5a2b023eecc73736

diff --git a/gui-libs/text-engine/text-engine-0.1.1.ebuild 
b/gui-libs/text-engine/text-engine-0.1.1.ebuild
new file mode 100644
index 0..3d0af284c
--- /dev/null
+++ b/gui-libs/text-engine/text-engine-0.1.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson
+
+if [[ ${PV} == * ]]; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/mjakeman/text-engine.git;
+else
+   SRC_URI="https://github.com/mjakeman/text-engine/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
+   KEYWORDS="~amd64"
+fi
+
+DESCRIPTION="A lightweight rich-text framework for GTK 4"
+HOMEPAGE="https://github.com/mjakeman/text-engine;
+
+LICENSE="LGPL-3+"
+SLOT="0"
+
+BDEPEND="
+   virtual/pkgconfig
+"
+
+COMMON_DEPEND="
+   dev-libs/glib:2
+   dev-libs/libxml2:2
+   gui-libs/gtk:4
+"
+
+DEPEND="
+   ${COMMON_DEPEND}
+   dev-libs/json-glib
+"
+
+RDEPEND="
+   ${COMMON_DEPEND}
+   x11-libs/pango
+"
+
+src_prepare() {
+   default
+   sed -i -e "/subdir('demo')/d" meson.build ||
+   die "Failed to modify meson.build to exclude the demo program"
+}



[gentoo-commits] repo/proj/guru:dev commit in: gui-libs/text-engine/

2022-03-31 Thread Yuan Liao
commit: 9c872745238f5c8c33a6cf6e36cb68505bdbf000
Author: Yuan Liao  gmail  com>
AuthorDate: Fri Apr  1 05:10:56 2022 +
Commit: Yuan Liao  gmail  com>
CommitDate: Fri Apr  1 05:21:54 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9c872745

gui-libs/text-engine: Update LICENSE for live ebuild

The upstream has recently changed the license from MIT to LGPL-3+ in
some commits staged for the next release; the license change has not
been retrospectively applied to versions already released yet.

Signed-off-by: Yuan Liao  gmail.com>

 gui-libs/text-engine/text-engine-.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gui-libs/text-engine/text-engine-.ebuild 
b/gui-libs/text-engine/text-engine-.ebuild
index 5b29e8753..3d0af284c 100644
--- a/gui-libs/text-engine/text-engine-.ebuild
+++ b/gui-libs/text-engine/text-engine-.ebuild
@@ -16,7 +16,7 @@ fi
 DESCRIPTION="A lightweight rich-text framework for GTK 4"
 HOMEPAGE="https://github.com/mjakeman/text-engine;
 
-LICENSE="MIT"
+LICENSE="LGPL-3+"
 SLOT="0"
 
 BDEPEND="



[gentoo-commits] repo/proj/guru:dev commit in: gui-libs/text-engine/

2022-03-20 Thread Yuan Liao
commit: 2c9cbd43c061b9d54e54464542f476df36b5a37a
Author: Yuan Liao  gmail  com>
AuthorDate: Mon Mar 21 05:56:16 2022 +
Commit: Yuan Liao  gmail  com>
CommitDate: Mon Mar 21 05:56:16 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2c9cbd43

gui-libs/text-engine: Fix typo in die message

Signed-off-by: Yuan Liao  gmail.com>

 gui-libs/text-engine/text-engine-0.1.0.ebuild | 2 +-
 gui-libs/text-engine/text-engine-.ebuild  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gui-libs/text-engine/text-engine-0.1.0.ebuild 
b/gui-libs/text-engine/text-engine-0.1.0.ebuild
index fef9b5c38..5b29e8753 100644
--- a/gui-libs/text-engine/text-engine-0.1.0.ebuild
+++ b/gui-libs/text-engine/text-engine-0.1.0.ebuild
@@ -42,5 +42,5 @@ RDEPEND="
 src_prepare() {
default
sed -i -e "/subdir('demo')/d" meson.build ||
-   die "Failed to modify meson.ebuild to exclude the demo program"
+   die "Failed to modify meson.build to exclude the demo program"
 }

diff --git a/gui-libs/text-engine/text-engine-.ebuild 
b/gui-libs/text-engine/text-engine-.ebuild
index fef9b5c38..5b29e8753 100644
--- a/gui-libs/text-engine/text-engine-.ebuild
+++ b/gui-libs/text-engine/text-engine-.ebuild
@@ -42,5 +42,5 @@ RDEPEND="
 src_prepare() {
default
sed -i -e "/subdir('demo')/d" meson.build ||
-   die "Failed to modify meson.ebuild to exclude the demo program"
+   die "Failed to modify meson.build to exclude the demo program"
 }



[gentoo-commits] repo/proj/guru:dev commit in: gui-libs/text-engine/

2022-03-20 Thread Yuan Liao
commit: 6a9257cdfd005ea19647f870cc521c6090fe7f76
Author: Yuan Liao  gmail  com>
AuthorDate: Mon Mar 21 03:46:02 2022 +
Commit: Yuan Liao  gmail  com>
CommitDate: Mon Mar 21 04:12:22 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6a9257cd

gui-libs/text-engine: Initial import

Signed-off-by: Yuan Liao  gmail.com>

 gui-libs/text-engine/Manifest |  1 +
 gui-libs/text-engine/metadata.xml | 11 +++
 gui-libs/text-engine/text-engine-0.1.0.ebuild | 46 +++
 gui-libs/text-engine/text-engine-.ebuild  | 46 +++
 4 files changed, 104 insertions(+)

diff --git a/gui-libs/text-engine/Manifest b/gui-libs/text-engine/Manifest
new file mode 100644
index 0..d43363127
--- /dev/null
+++ b/gui-libs/text-engine/Manifest
@@ -0,0 +1 @@
+DIST text-engine-0.1.0.tar.gz 15728 BLAKE2B 
41a5b4bb0347eca29268cf089a7ea127a0a467fa123384bc1d92cbb215ca98f9963742ba5f93972d163c7f6708ac428762a92023d98ad130b56657b6eccb7956
 SHA512 
36be3e913187dfbba96945891a64cb2b3efde8324cdb3457a64c2fdfd19e2c1289d48a92ca60c957c52e18a6cabbcc13f178c34687f183f60557e41db5c36418

diff --git a/gui-libs/text-engine/metadata.xml 
b/gui-libs/text-engine/metadata.xml
new file mode 100644
index 0..20643c52a
--- /dev/null
+++ b/gui-libs/text-engine/metadata.xml
@@ -0,0 +1,11 @@
+
+https://www.gentoo.org/dtd/metadata.dtd;>
+
+   
+   liaoy...@gmail.com
+   Yuan Liao
+   
+   
+   mjakeman/text-engine
+   
+

diff --git a/gui-libs/text-engine/text-engine-0.1.0.ebuild 
b/gui-libs/text-engine/text-engine-0.1.0.ebuild
new file mode 100644
index 0..fef9b5c38
--- /dev/null
+++ b/gui-libs/text-engine/text-engine-0.1.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson
+
+if [[ ${PV} == * ]]; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/mjakeman/text-engine.git;
+else
+   SRC_URI="https://github.com/mjakeman/text-engine/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
+   KEYWORDS="~amd64"
+fi
+
+DESCRIPTION="A lightweight rich-text framework for GTK 4"
+HOMEPAGE="https://github.com/mjakeman/text-engine;
+
+LICENSE="MIT"
+SLOT="0"
+
+BDEPEND="
+   virtual/pkgconfig
+"
+
+COMMON_DEPEND="
+   dev-libs/glib:2
+   dev-libs/libxml2:2
+   gui-libs/gtk:4
+"
+
+DEPEND="
+   ${COMMON_DEPEND}
+   dev-libs/json-glib
+"
+
+RDEPEND="
+   ${COMMON_DEPEND}
+   x11-libs/pango
+"
+
+src_prepare() {
+   default
+   sed -i -e "/subdir('demo')/d" meson.build ||
+   die "Failed to modify meson.ebuild to exclude the demo program"
+}

diff --git a/gui-libs/text-engine/text-engine-.ebuild 
b/gui-libs/text-engine/text-engine-.ebuild
new file mode 100644
index 0..fef9b5c38
--- /dev/null
+++ b/gui-libs/text-engine/text-engine-.ebuild
@@ -0,0 +1,46 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson
+
+if [[ ${PV} == * ]]; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/mjakeman/text-engine.git;
+else
+   SRC_URI="https://github.com/mjakeman/text-engine/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
+   KEYWORDS="~amd64"
+fi
+
+DESCRIPTION="A lightweight rich-text framework for GTK 4"
+HOMEPAGE="https://github.com/mjakeman/text-engine;
+
+LICENSE="MIT"
+SLOT="0"
+
+BDEPEND="
+   virtual/pkgconfig
+"
+
+COMMON_DEPEND="
+   dev-libs/glib:2
+   dev-libs/libxml2:2
+   gui-libs/gtk:4
+"
+
+DEPEND="
+   ${COMMON_DEPEND}
+   dev-libs/json-glib
+"
+
+RDEPEND="
+   ${COMMON_DEPEND}
+   x11-libs/pango
+"
+
+src_prepare() {
+   default
+   sed -i -e "/subdir('demo')/d" meson.build ||
+   die "Failed to modify meson.ebuild to exclude the demo program"
+}