Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jul 2023 10:50:26 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 4b46ece45219 - main - japanese/edict: Fix build with llvm16
Message-ID:  <202307231050.36NAoQBi005543@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4b46ece4521978b0f2e6c76ff118003ae9883653

commit 4b46ece4521978b0f2e6c76ff118003ae9883653
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-23 10:01:28 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-23 10:50:16 +0000

    japanese/edict: Fix build with llvm16
    
    - Remove stale MASTER_SITES
    - Pet portclippy
    
    Sponsored by:   The FreeBSD Foundation
---
 japanese/edict/Makefile | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/japanese/edict/Makefile b/japanese/edict/Makefile
index 64bcb77a3e89..c2466a49c56a 100644
--- a/japanese/edict/Makefile
+++ b/japanese/edict/Makefile
@@ -4,22 +4,17 @@ PORTREVISION=	5
 CATEGORIES=	japanese
 MASTER_SITES=	\
 		http://japanology.arts.kuleuven.ac.be/mirrors/monash/ \
-		http://www.bcit-broadcast.com/monash/ \
-		ftp://ftp.mirrorservice.org/sites/ftp.cc.monash.edu.au/pub/nihongo/ \
-		ftp://ftp.edrdg.org/pub/Nihongo/ \
-		ftp://ftp.u-aizu.ac.jp/pub/SciEng/nihongo/ftp.cc.monash.edu.au/ \
-		ftp://ftp.funet.fi/pub/culture/japan/mirrors/monash/pub/nihongo/ \
-		ftp://ftp.uni-duisburg.de/Mirrors/ftp.monash.edu.au/pub/nihongo/ \
-		ftp://ftp.monash.edu.au/pub/nihongo/
-EXTRACT_SUFX=	# empty
+		http://ftp.edrdg.org/pub/Nihongo/
 DISTFILES=	${DICTFILES} ${SRCFILES} ${DOCFILES}
+DIST_SUBDIR=	edict
 EXTRACT_ONLY=	${SRCFILES}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Japanese-English dictionaries with access and maintenance utilities
 WWW=		http://ftp.monash.edu.au/pub/nihongo/00INDEX.html
 
-DIST_SUBDIR=	edict
+# Fix build with clang11
+CFLAGS+=	-fcommon
 
 DICTFILES=	edict.gz edicth enamdict.gz compdic.gz \
 		j_places.gz ediclsd3.zip \
@@ -45,11 +40,14 @@ DOCSDIR=	${PREFIX}/share/doc/xjdic
 
 NO_WRKSUBDIR=	yes
 
-# Fix build with clang11
-CFLAGS+=	-fcommon
-
 OPTIONS_DEFINE=	DOCS
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-patch:
 	@${GREP} -l '^main' ${WRKSRC}/*.c | ${XARGS} ${REINPLACE_CMD} \
 		-e '/argv/s/unsigned//'
@@ -72,7 +70,7 @@ do-install:
 		${dict:R} ${dict:R}.xjdx)
 .endfor
 	${RM} ${STAGEDIR}${PREFIX}/bin/xjdic
-	${LN} -s ${PREFIX}/bin/xjdic_sa ${STAGEDIR}${PREFIX}/bin/xjdic
+	(cd ${STAGEDIR}${PREFIX}/bin && ${LN} -s xjdic_sa xjdic)
 	(cd ${WRKSRC} && ${INSTALL_DATA} radicals.tm radkfile kanjstroke \
 		romkana.cnv vconj ${STAGEDIR}${DATADIR})
 	#
@@ -95,6 +93,8 @@ do-install:
 	# @${ECHO_CMD} dicfile lingdic >> ${DATADIR}/.xjdicrc
 	@${CHMOD} ${SHAREMODE} ${STAGEDIR}${DATADIR}/.xjdicrc
 	${INSTALL_MAN} ${WRKSRC}/xjdic.1 ${STAGEDIR}${PREFIX}/man/man1
+
+do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/xjdic23.inf ${STAGEDIR}${DOCSDIR}
 	(cd ${_DISTDIR} && ${INSTALL_DATA} ${DOCFILES} ${STAGEDIR}${DOCSDIR})



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307231050.36NAoQBi005543>