From 19824556d6fcf07f4204e0518ecb07be2e00fd83 Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Tue, 28 Feb 2023 15:00:14 +0100 Subject: [PATCH] Add app-editors/chr --- app-editors/chr/chr-9999.ebuild | 31 +++++++++++++++++++ .../chr/files/chr-9999-meson-install.patch | 20 ++++++++++++ app-editors/chr/metadata.xml | 11 +++++++ 3 files changed, 62 insertions(+) create mode 100644 app-editors/chr/chr-9999.ebuild create mode 100644 app-editors/chr/files/chr-9999-meson-install.patch create mode 100644 app-editors/chr/metadata.xml diff --git a/app-editors/chr/chr-9999.ebuild b/app-editors/chr/chr-9999.ebuild new file mode 100644 index 0000000..ac227f3 --- /dev/null +++ b/app-editors/chr/chr-9999.ebuild @@ -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 +} diff --git a/app-editors/chr/files/chr-9999-meson-install.patch b/app-editors/chr/files/chr-9999-meson-install.patch new file mode 100644 index 0000000..a26281e --- /dev/null +++ b/app-editors/chr/files/chr-9999-meson-install.patch @@ -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, + diff --git a/app-editors/chr/metadata.xml b/app-editors/chr/metadata.xml new file mode 100644 index 0000000..1ea0eb6 --- /dev/null +++ b/app-editors/chr/metadata.xml @@ -0,0 +1,11 @@ + + + + + ben@rs485.network + Benedikt Ziemons + + + istoph/editor + +