Skip to content

Commit

Permalink
devel/git-delta: Fix i386 build
Browse files Browse the repository at this point in the history
 - sys-info-0.9.1 crate fix
   FillZpp/sys-info-rs#80

PR:		267290
  • Loading branch information
nunotexbsd committed Oct 31, 2022
1 parent 363ee8e commit 98da527
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion devel/git-delta/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PORTNAME= delta
DISTVERSION= 0.14.0
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= devel
PKGNAMEPREFIX= git-

Expand Down Expand Up @@ -28,6 +28,13 @@ BASH_PLIST_FILES= etc/bash_completion.d/_${PORTNAME}.bash
FISH_PLIST_FILES= share/fish/vendor_functions.d/${PORTNAME}.fish
ZSH_PLIST_FILES= share/zsh/site-functions/_${PORTNAME}

# sys-info-0.9.1 crate fix: https://github.com/FillZpp/sys-info-rs/issues/80
post-patch:
@${REINPLACE_CMD} \
-e '/get_cpu/s|unsigned long|uint64_t|' \
-e '/get_proc_total/s|unsigned long|uint64_t|' \
${WRKSRC}/cargo-crates/sys-info-*/c/*.[ch]

post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/delta

Expand Down

0 comments on commit 98da527

Please sign in to comment.