diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-06-10 15:51:39 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-06-10 15:51:39 +0100 |
commit | 42e82780761e75f17a5cc96626558a297782f385 (patch) | |
tree | 45425190df4e3cbf429fd2b0834f320d51fd6579 /app-editors/micro/micro-2.0.11.ebuild | |
parent | 3d00647fec2600e217d690a64ba45a41f1a2fa0c (diff) |
gentoo auto-resync : 10:06:2023 - 15:51:39
Diffstat (limited to 'app-editors/micro/micro-2.0.11.ebuild')
-rw-r--r-- | app-editors/micro/micro-2.0.11.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/app-editors/micro/micro-2.0.11.ebuild b/app-editors/micro/micro-2.0.11.ebuild new file mode 100644 index 000000000000..a57e060fc7af --- /dev/null +++ b/app-editors/micro/micro-2.0.11.ebuild @@ -0,0 +1,39 @@ +# 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" + +src_compile() { + ego build -v -work -x -o ${PN} -ldflags \ + "-X github.com/zyedidia/micro/v2/internal/util.Version=${PV} -X github.com/zyedidia/micro/v2/internal/util.CompileDate=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \ + ./cmd/micro +} + +src_install() { + dobin ${PN} + 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 +} |