git: eebc5fd18a9b - main - japanese/ibus-anthy: flavorize for anthy-unicode

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Tue, 18 Feb 2025 14:26:35 UTC
The branch main has been updated by fuz:

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

commit eebc5fd18a9bde05875797bb9aba9c5893a6fc66
Author:     WATANABE Kazuhiro <CQG00620@nifty.ne.jp>
AuthorDate: 2025-02-13 18:42:55 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-02-18 14:16:17 +0000

    japanese/ibus-anthy: flavorize for anthy-unicode
    
    Reported by:    mew14930xvi <mew14930xvi@inbox.lv>
    PR:             283740
    Co-authored-by: mew14930xvi <mew14930xvi@inbox.lv>
---
 japanese/ibus-anthy/Makefile | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/japanese/ibus-anthy/Makefile b/japanese/ibus-anthy/Makefile
index a7989dafb0a4..df5085e3f5b1 100644
--- a/japanese/ibus-anthy/Makefile
+++ b/japanese/ibus-anthy/Makefile
@@ -1,8 +1,8 @@
 PORTNAME=	ibus-anthy
-PORTVERSION=	1.5.16
-PORTREVISION=	1
+DISTVERSION=	1.5.16
+PORTREVISION=	2
 CATEGORIES=	japanese
-MASTER_SITES=	https://github.com/ibus/ibus-anthy/releases/download/${PORTVERSION}/
+MASTER_SITES=	https://github.com/ibus/ibus-anthy/releases/download/${DISTVERSION}/
 PKGNAMEPREFIX=	ja-
 
 MAINTAINER=	CQG00620@nifty.ne.jp
@@ -12,8 +12,7 @@ WWW=		https://github.com/ibus/ibus-anthy
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-LIB_DEPENDS=	libanthy.so:japanese/anthy \
-		libibus-1.0.so:textproc/ibus
+LIB_DEPENDS=	libibus-1.0.so:textproc/ibus
 
 GNU_CONFIGURE=	yes
 INSTALL_TARGET=	install-strip
@@ -22,4 +21,12 @@ USES=		gettext gmake gnome libtool pkgconfig python
 USE_GNOME=	pygobject3
 GLIB_SCHEMAS=	org.freedesktop.ibus.engine.anthy.gschema.xml
 
+FLAVORS=	original unicode
+
+original_CONFLICTS_INSTALL=	${PORTNAME}-unicode
+original_LIB_DEPENDS=		libanthy.so:japanese/anthy
+unicode_CONFLICTS_INSTALL=	${PORTNAME}
+unicode_LIB_DEPENDS=		libanthy-unicode.so:japanese/anthy-unicode
+unicode_PKGNAMESUFFIX=		-unicode
+
 .include <bsd.port.mk>