We have the same helper for l10n (KDE4) in kf5.port.mk. I would like to
use both of them for all x11/kde-applications. Most KDE5 ports have
conflicts with kde3 and kde4 language packages.


Index: PFRAG.i18n
RCS file: PFRAG.i18n
diff -N PFRAG.i18n
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ PFRAG.i18n  28 May 2020 19:22:02 -0000
@@ -0,0 +1,72 @@
+@comment $OpenBSD: PFRAG.l10n,v 1.2 2018/06/04 20:25:31 rsadowski Exp $
+@conflict kde-i18n-af-*
+@conflict kde-i18n-ar-*
+@conflict kde-i18n-az-*
+@conflict kde-i18n-be-*
+@conflict kde-i18n-bg-*
+@conflict kde-i18n-bn-*
+@conflict kde-i18n-br-*
+@conflict kde-i18n-bs-*
+@conflict kde-i18n-ca-*
+@conflict kde-i18n-cs-*
+@conflict kde-i18n-csb-*
+@conflict kde-i18n-cy-*
+@conflict kde-i18n-da-*
+@conflict kde-i18n-de-*
+@conflict kde-i18n-el-*
+@conflict kde-i18n-en_GB-*
+@conflict kde-i18n-eo-*
+@conflict kde-i18n-es-*
+@conflict kde-i18n-et-*
+@conflict kde-i18n-eu-*
+@conflict kde-i18n-fa-*
+@conflict kde-i18n-fi-*
+@conflict kde-i18n-fr-*
+@conflict kde-i18n-fy-*
+@conflict kde-i18n-ga-*
+@conflict kde-i18n-gl-*
+@conflict kde-i18n-he-*
+@conflict kde-i18n-hi-*
+@conflict kde-i18n-hr-*
+@conflict kde-i18n-hu-*
+@conflict kde-i18n-is-*
+@conflict kde-i18n-it-*
+@conflict kde-i18n-ja-*
+@conflict kde-i18n-kk-*
+@conflict kde-i18n-km-*
+@conflict kde-i18n-ko-*
+@conflict kde-i18n-lt-*
+@conflict kde-i18n-lv-*
+@conflict kde-i18n-mk-*
+@conflict kde-i18n-mn-*
+@conflict kde-i18n-ms-*
+@conflict kde-i18n-nb-*
+@conflict kde-i18n-nds-*
+@conflict kde-i18n-nl-*
+@conflict kde-i18n-nn-*
+@conflict kde-i18n-pa-*
+@conflict kde-i18n-pl-*
+@conflict kde-i18n-pt-*
+@conflict kde-i18n-pt_BR-*
+@conflict kde-i18n-ro-*
+@conflict kde-i18n-ru-*
+@conflict kde-i18n-rw-*
+@conflict kde-i18n-se-*
+@conflict kde-i18n-sk-*
+@conflict kde-i18n-sl-*
+@conflict kde-i18n-sr-*
+@conflict kde-i18n-sr@Latn-*
+@conflict kde-i18n-ss-*
+@conflict kde-i18n-sv-*
+@conflict kde-i18n-ta-*
+@conflict kde-i18n-te-*
+@conflict kde-i18n-tg-*
+@conflict kde-i18n-th-*
+@conflict kde-i18n-tr-*
+@conflict kde-i18n-uk-*
+@conflict kde-i18n-uz-*
+@conflict kde-i18n-uz@cyrillic-*
+@conflict kde-i18n-vi-*
+@conflict kde-i18n-wa-*
+@conflict kde-i18n-zh_CN-*
+@conflict kde-i18n-zh_TW-*
Index: kf5.port.mk
RCS file: /cvs/ports/devel/kf5/kf5.port.mk,v
retrieving revision 1.12
diff -u -p -r1.12 kf5.port.mk
--- kf5.port.mk 23 Mar 2020 18:01:03 -0000      1.12
+++ kf5.port.mk 28 May 2020 19:22:02 -0000
@@ -81,6 +81,18 @@ PKG_ARGS${_s} +=-f ${MAKEFILE_LIST:M*/kf
 . endif
+# if needed, mark conflicts with kde-i18n-* packages from KDE 3
+MODKF5_I18N_CONFLICT ?=        no
+.if ${MODKF5_I18N_CONFLICT:L} != "no"
+PKG_ARGS +=    -f ${MAKEFILE_LIST:M*/kf5.port.mk:C,/[^/]+$,,}/PFRAG.i18n
+.for _s in ${MULTI_PACKAGES}
+MODKF5_I18N_CONFLICT${_s} ?=   no
+. if ${MODKF5_I18N_CONFLICT${_s}:L} != "no"
+PKG_ARGS${_s} +=-f ${MAKEFILE_LIST:M*/kf5.port.mk:C,/[^/]+$,,}/PFRAG.i18n
+. endif
 # do not install localized manual pages
 MODKF5_post-install += \
        rm -Rf ${ALL_LANGS:S,^,${PREFIX}/man/,}

Reply via email to