diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-11-12 10:27:43 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-11-12 10:27:43 +0000 |
commit | f1535b44d6fda761018ea432a180dcb482e97652 (patch) | |
tree | 0c17b546154f9b91340a45d84b5dc42dc12c7713 /app-editors/micro/micro-2.0.13-r1.ebuild | |
parent | cdc1eda9c1ad611dd737415be2790c8f44812f1c (diff) |
gentoo auto-resync : 12:11:2023 - 10:27:42
Diffstat (limited to 'app-editors/micro/micro-2.0.13-r1.ebuild')
-rw-r--r-- | app-editors/micro/micro-2.0.13-r1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/app-editors/micro/micro-2.0.13-r1.ebuild b/app-editors/micro/micro-2.0.13-r1.ebuild new file mode 100644 index 000000000000..228d3d9cecc8 --- /dev/null +++ b/app-editors/micro/micro-2.0.13-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module optfeature desktop xdg + +DESCRIPTION="Modern and intuitive terminal-based text editor" +HOMEPAGE="https://github.com/zyedidia/micro" +SRC_URI="https://github.com/zyedidia/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz" + +LICENSE="MIT Apache-2.0 BSD MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv ~x86" + +BDEPEND="dev-vcs/git" + +PATCHES=( + "${FILESDIR}"/${PN}-2.0.12-no-strip.patch +) + +src_compile() { + # We build/install this way for bug #915628 (highlighting) + emake VERSION=${PV} build +} + +src_install() { + dodir /usr/bin + emake VERSION=${PV} GOBIN="${ED}"/usr/bin install + doman ./assets/packaging/micro.1 + domenu assets/packaging/micro.desktop + einstalldocs +} + +pkg_postinst() { + # Update desktop file mime cache + xdg_pkg_postinst + + optfeature_header "Clipboard support with display servers:" + optfeature "Xorg" x11-misc/xsel x11-misc/xclip + optfeature "Wayland" gui-apps/wl-clipboard +} |