summaryrefslogtreecommitdiff
path: root/app-editors/micro
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-10-20 09:50:23 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-10-20 09:50:23 +0100
commit547caa904733bc2a3ac112415990a114ecbe8824 (patch)
treeb8976d40b28d2cb015e3c07254aee99fe0ad655a /app-editors/micro
parent9346d46d1a9e0399ca3a4d3eb40689d0daa58ebc (diff)
gentoo auto-resync : 20:10:2023 - 09:50:23
Diffstat (limited to 'app-editors/micro')
-rw-r--r--app-editors/micro/Manifest2
-rw-r--r--app-editors/micro/files/micro-2.0.12-no-strip.patch25
-rw-r--r--app-editors/micro/micro-2.0.12-r1.ebuild43
3 files changed, 70 insertions, 0 deletions
diff --git a/app-editors/micro/Manifest b/app-editors/micro/Manifest
index 008d72da0760..fe264c7f895a 100644
--- a/app-editors/micro/Manifest
+++ b/app-editors/micro/Manifest
@@ -1,7 +1,9 @@
+AUX micro-2.0.12-no-strip.patch 988 BLAKE2B 18a0996ce0c100b3545d4569dbdf8c6a0f591d2371856b0eeac00e409e1886755fc29fda45dbbfd38f051f9dae061f24e4e6094a476c560dc7008f026ca1d7c5 SHA512 6336fedcc5d8c80580172af8160d9ad02f0bd66bb85094f08b586a1dd788075c42a812595c4b5538869e69bcb6ba275c3b360cc409643f5399476c5800d5a81f
DIST micro-2.0.11-deps.tar.xz 19390200 BLAKE2B 3f4e3a60395854e1dcba0ed69c7f6b95d7e1efa6897da01232e66b253a0ef2f88c29cc9628ddcc569dc5d4bc63ed21866fb5861ffdfb4de61ae5654f4b6a7ae4 SHA512 c4fcd2ce5d8e85bdaf969d7d2fec5b526ea650b7a58649dd3546f0164b10478e248eaeb1cf4fe371f44ff0a3cd70541e1c4751d01ac33a49a6bd853f78941436
DIST micro-2.0.11.tar.gz 549261 BLAKE2B 30c21d7747870a9a85a8fb552ec9035af5c42232f4d2ee0744c24671e78ee22ff5eea803fbc19fac704b49644df0597538950b735f955eecc921e681c0ad924c SHA512 3aa3dd10baaec9fa73b5c673c3d29eb8b4d04b468e36866118bcfc70dd638c50e56d51fc6085dcc7441a2ce0d9bbf742c37fd26a7e2b92d8b20844c8a7b53487
DIST micro-2.0.12-deps.tar.xz 27563572 BLAKE2B 416548c7b2effa88f80aeb00e15645ace642859af9b3992ec8bc702237a2a17440d34a0ccdad4079933e38fec5ae4d06749a094d211d9fc9f7a11cca9b098a29 SHA512 157f655dfab205e918367c1ea9de849c3c90671bbdf50e8c869e239350f923c62540695839e114e44d6740c06bb0855d5aa139876fe38fe87d24e3162029daef
DIST micro-2.0.12.tar.gz 562941 BLAKE2B b360560cb0e4b27739e4efc880c66e4e934e3b6515062fb853f29ca9ee21e62edfac8ab0d554bff0062089c20ef2ab11b7d28180b851774f25327c6da58793e2 SHA512 a03fe2b91914c423f0195e9a7c7d35c3c6a38ec2ba65ca8dd8719da38806f2bc5a7b10efb73f9a2ee884bdf3f2a71a04bc3404a7a811b4fb329ffdf41336b78a
EBUILD micro-2.0.11.ebuild 1111 BLAKE2B e8bd8f2dd6e8239d5766710c0421a05076f80e0d9df53a19b77be02e2f01195438eec02b99ef77f3e865cfc1e80acaccbc06ae7ce5fb4683546fb09ba60d515b SHA512 b0f617d64e1d2046b0e3aaafa9a5402f5ee7a9df2778e7bcf963717077ab3f15137fd7dba973f3d156f0e49c3a93264c1b92f6948b1254e8cdd9390d3aa37495
+EBUILD micro-2.0.12-r1.ebuild 1082 BLAKE2B 858842d7fb2c76d7b129fd5bbc1603083f163dc7aa17df0d407db5e33ee4617f0032ad97ed4188fbd1606b7928dee76d3c61ed376779e4e1565a6aad23e8ba31 SHA512 4d9468d84a92efa5d1d69f58bfb575a0000b7b146d407cd992c421358243a8e3255934ba7cf6a86702fb6b9f660919a9f6f5c4ab9109eff02f7132c5c6ae2d2f
EBUILD micro-2.0.12.ebuild 1111 BLAKE2B e8bd8f2dd6e8239d5766710c0421a05076f80e0d9df53a19b77be02e2f01195438eec02b99ef77f3e865cfc1e80acaccbc06ae7ce5fb4683546fb09ba60d515b SHA512 b0f617d64e1d2046b0e3aaafa9a5402f5ee7a9df2778e7bcf963717077ab3f15137fd7dba973f3d156f0e49c3a93264c1b92f6948b1254e8cdd9390d3aa37495
MISC metadata.xml 471 BLAKE2B f6487317798718fbf48883ece7a99354ffe1ff88a82d16545d9d27582c679a1c18b3cf9c4a2f39a84a329f3ea272250651e901f1ebea12c2522fab03d565284d SHA512 b3a71e979bdaed4948c196a53b69d9d43cf23bf266e7a03835a83bcbe942202e5c2a14de256574bc8462f94b3211523444bf7c3b5fc4fe2772afbaafaf3346b1
diff --git a/app-editors/micro/files/micro-2.0.12-no-strip.patch b/app-editors/micro/files/micro-2.0.12-no-strip.patch
new file mode 100644
index 000000000000..48700182bd18
--- /dev/null
+++ b/app-editors/micro/files/micro-2.0.12-no-strip.patch
@@ -0,0 +1,25 @@
+--- a/Makefile
++++ b/Makefile
+@@ -16,18 +16,18 @@ VSCODE_TESTS_BASE_URL = 'https://raw.githubusercontent.com/microsoft/vscode/e6a4
+ build: generate build-quick
+
+ build-quick:
+- go build -trimpath -ldflags "-s -w $(GOVARS) $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro
++ go build -trimpath -ldflags "-w $(GOVARS) $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro
+
+ build-dbg:
+- go build -trimpath -ldflags "-s -w $(ADDITIONAL_GO_LINKER_FLAGS) $(DEBUGVAR)" ./cmd/micro
++ go build -trimpath -ldflags "-w $(ADDITIONAL_GO_LINKER_FLAGS) $(DEBUGVAR)" ./cmd/micro
+
+ build-tags: fetch-tags generate
+- go build -trimpath -ldflags "-s -w $(GOVARS) $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro
++ go build -trimpath -ldflags "-w $(GOVARS) $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro
+
+ build-all: build
+
+ install: generate
+- go install -ldflags "-s -w $(GOVARS) $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro
++ go install -ldflags "-w $(GOVARS) $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro
+
+ install-all: install
+
diff --git a/app-editors/micro/micro-2.0.12-r1.ebuild b/app-editors/micro/micro-2.0.12-r1.ebuild
new file mode 100644
index 000000000000..5ccf1af373bf
--- /dev/null
+++ b/app-editors/micro/micro-2.0.12-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 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
+}