diff --git a/editors/lapce/Makefile b/editors/lapce/Makefile index ddc29ed9c3bf..007a02893c6b 100644 --- a/editors/lapce/Makefile +++ b/editors/lapce/Makefile @@ -1,33 +1,36 @@ PORTNAME= lapce DISTVERSIONPREFIX= v DISTVERSION= 0.2.0 # remove openssl-src-* from CARGO-CRATES each update +PORTREVISION= 1 CATEGORIES= editors MAINTAINER= eduardo@FreeBSD.org COMMENT= Lightning-fast and Powerful Code Editor WWW= https://lapce.dev/ LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE -NOT_FOR_ARCHS= i386 arm64 +NOT_FOR_ARCHS= i386 NOT_FOR_ARCHS_REASON_i386= doesn't build: [zstd-sys 2.0.1+zstd.1.5.2] AR_i686_unknown_freebsd = None -NOT_FOR_ARCHS_REASON_arm64= doesn't build: https://github.com/lapce/lapce/issues/1185 BUILD_DEPENDS= p5-Cairo-GObject>0:devel/p5-Cairo-GObject \ p5-FindBin-libs>0:devel/p5-FindBin-libs LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libgit2.so:devel/libgit2 \ libssh2.so:security/libssh2 -USES= cargo gmake gnome localbase:ldflags perl5 pkgconfig ssl +USES= cargo dos2unix gmake gnome localbase:ldflags perl5 pkgconfig \ + ssl +DOS2UNIX_FILES= cargo-crates/process_path-0.1.4/src/bsd.rs USE_GITHUB= yes USE_GNOME= atk gdkpixbuf2 gtk30 pango PLIST_FILES= bin/lapce \ bin/lapce-proxy post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/lapce ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/lapce-proxy .include diff --git a/editors/lapce/files/patch-cargo-crates_process__path-0.1.4_src_bsd.rs b/editors/lapce/files/patch-cargo-crates_process__path-0.1.4_src_bsd.rs new file mode 100644 index 000000000000..2a3683c7854d --- /dev/null +++ b/editors/lapce/files/patch-cargo-crates_process__path-0.1.4_src_bsd.rs @@ -0,0 +1,11 @@ +--- cargo-crates/process_path-0.1.4/src/bsd.rs.orig 2022-10-06 14:01:42 UTC ++++ cargo-crates/process_path-0.1.4/src/bsd.rs +@@ -35,7 +35,7 @@ pub fn get_executable_path() -> Option { + // FreeBSD without procfs + if result == 0 { + // Convert the string allocated on the stack to a Rust string. +- let len = unsafe { strlen(buf.as_ptr() as *const i8) }; ++ let len = unsafe { strlen(buf.as_ptr() as *const libc::c_char) }; + unsafe { buf.set_len(len) }; + match String::from_utf8(buf).ok() { + Some(path) => {