Skip to content

Commit

Permalink
japanese/ruby-uconv: Fix build with llvm16
Browse files Browse the repository at this point in the history
Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Jul 19, 2023
1 parent 14b946d commit 07e4c1f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions japanese/ruby-uconv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ OPTIONS_DEFINE= DOCS

PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX}

post-patch:
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
@${REINPLACE_CMD} -e 's|fdeclspec|fdeclspec -Wno-error=incompatible-function-pointer-types|g' \
${WRKSRC}/extconf.rb
.endif

post-install:
${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}/ja
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${RUBY_MODDOCDIR}/
Expand Down

0 comments on commit 07e4c1f

Please sign in to comment.