Add app-editors/chr

This commit is contained in:
Ben 2023-02-28 15:00:14 +01:00
parent 55a2abe0e1
commit 19824556d6
Signed by: ben
GPG key ID: 1353F41CF1CFF2D3
3 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,31 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson git-r3
DESCRIPTION="Console-based editor designed for simplified use like gedit"
HOMEPAGE="https://github.com/istoph/editor"
EGIT_REPO_URI="https://github.com/istoph/editor.git"
LICENSE="Boost-1.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="=dev-qt/qtcore-5* dev-libs/icu dev-libs/tuiwidgets dev-libs/posixsignalmanager"
RDEPEND="${DEPEND}"
BDEPEND=""
PATCHES=(
"${FILESDIR}"/${P}-meson-install.patch
)
src_prepare() {
default
}
src_configure() {
meson_src_configure
}

View file

@ -0,0 +1,20 @@
diff --git a/src/meson.build b/src/meson.build
index c809a0f..229688e 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -81,10 +81,12 @@ editor_lib = static_library('editor', editor_sources,
include_directories: include_directories('.'),
dependencies : [qt5_dep, tuiwidgets_dep, posixsignalmanager_dep])
-executable('editor', main,
+executable('chr', main,
include_directories: include_directories('.'),
link_with: editor_lib,
- dependencies : [qt5_dep, tuiwidgets_dep, posixsignalmanager_dep])
+ dependencies : [qt5_dep, tuiwidgets_dep, posixsignalmanager_dep],
+ install: true,
+ install_dir: '/usr/bin/')
executable('tests', tests,
qt5.preprocess(moc_headers: tests_headers, moc_sources: tests,

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>ben@rs485.network</email>
<name>Benedikt Ziemons</name>
</maintainer>
<upstream>
<remote-id type="github">istoph/editor</remote-id>
</upstream>
</pkgmetadata>