1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

finance/expense: replace previous naive build "fix" with a real one

Comparator functions must return NSComparisonResult, not an integer.

Fixes:	944d53ea8c
This commit is contained in:
Alexey Dokuchaev 2023-09-04 16:35:24 +00:00
parent 0083e93666
commit 951bb0c949

View File

@ -18,13 +18,11 @@ WRKSRC= ${WRKDIR}/Expense
PORTSCOUT= ignore:1
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
ADDITIONAL_CPPFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/GNUstep/System/Applications/Expense.app/Expense
post-patch:
@${REINPLACE_CMD} -e '/_recordSort/s,^int,NSComparisonResult,' \
${WRKSRC}/LedgerModel.[hm]
.include <bsd.port.mk>