Skip to content

Commit d3a0a91

Browse files
committed
kakoune: fix install prefix, revbump
Closes: https://trac.macports.org/ticket/71584
1 parent 6682f36 commit d3a0a91

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

editors/kakoune/Portfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ PortGroup makefile 1.0
77

88
github.setup mawww kakoune 2024.05.18 v
99
github.tarball_from archive
10-
revision 0
10+
revision 1
1111

1212
homepage https://kakoune.org
1313

@@ -44,6 +44,8 @@ checksums rmd160 9700c43f525a5b174368e0abe1f5ca2884456869 \
4444
sha256 50f2920db8ab8f71556b73dfd6d53fb924f67d1c60b9882050cfecfaa3aed31f \
4545
size 720073
4646

47+
patchfiles-append patch-fix-prefix.diff
48+
4749
# error: 'uncaught_exceptions' is unavailable: introduced in macOS 10.12
4850
if {${os.platform} eq "darwin" && ${os.major} < 16} {
4951
post-patch {
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- Makefile 2024-05-18 12:43:06.000000000 +0800
2+
+++ Makefile 2024-12-18 20:48:21.000000000 +0800
3+
@@ -33,7 +33,7 @@
4+
version = $(shell cat .version 2>/dev/null || git describe --tags HEAD 2>/dev/null | sed s/^v// || echo unknown)
5+
version != cat .version 2>/dev/null || ( git describe --tags HEAD 2>/dev/null | sed s/^v// ) || echo unknown
6+
7+
-PREFIX = /usr/local
8+
+PREFIX ?= /usr/local
9+
DESTDIR = # root dir
10+
11+
bindir = $(DESTDIR)$(PREFIX)/bin

0 commit comments

Comments
 (0)