diff options
author | tcberner <tcberner@FreeBSD.org> | 2016-08-24 16:20:31 +0800 |
---|---|---|
committer | tcberner <tcberner@FreeBSD.org> | 2016-08-24 16:20:31 +0800 |
commit | a5fddeafcdb2cab1016827038e317a262dad4857 (patch) | |
tree | b9dc00f333e96550a5732b38b9c9444035e4339c /editors/calligra-l10n | |
parent | 3832b190ef3ea2bbefdd61450bff8af422a2e9ae (diff) | |
download | freebsd-ports-gnome-a5fddeafcdb2cab1016827038e317a262dad4857.tar.gz freebsd-ports-gnome-a5fddeafcdb2cab1016827038e317a262dad4857.tar.zst freebsd-ports-gnome-a5fddeafcdb2cab1016827038e317a262dad4857.zip |
Replace Mk/bsd.kde4.mk by Mk/Uses/kde.mk in preparation for KDE Frameworks and
Plasma5 ports
At the moment KDE ports use bsd.kde4.mk to handle their dependencies. When
working on the ports for KDE Frameworks and Plasma5 it seemed to be more
reasonable to create a new kde.mk instead of adding an bsd.kde5.mk.
The kde.mk in this review is a stripped down version of the one we are using in
the KDE Test repositories plasma5 branch [1] to only contain the parts relevant
to the current KDE4 ports in the portstree [2].
Changes to the KDE Ports needed by this:
Replace USE_KDE4 by USE_KDE [3]
Add USES=kde:4 [4]
[1] http://src.mouf.net/area51/view/branches/plasma5/KDE/Mk/Uses/kde.mk
[2] The version in the plasma5 branch also handles frameworks/plasma5 and
handles MASTER_SITES via a KDE_DIST variable similar to bsd.qt.mk for Qt
Ports -- I chose to leave this out for now, as the diff is already large
enough.
[3] I chose USE_KDE instead of USE_KDE4, USE_KDE5, USE_KDEX as the version we
want is already specified as argument to kde:<arg>
[4] For KDE Frameworks and Plasma5 ports this would be kde:5
PR: 210667
Approved by: portmgr, mat (mentor), rakuco (mentor)
Reviewed by: mat, rakuco
Differential Revision: https://reviews.freebsd.org/D6961
Diffstat (limited to 'editors/calligra-l10n')
-rw-r--r-- | editors/calligra-l10n/Makefile | 5 | ||||
-rw-r--r-- | editors/calligra-l10n/files/bsd.l10n.mk | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/editors/calligra-l10n/Makefile b/editors/calligra-l10n/Makefile index d0624a7d76cb..758e1561f457 100644 --- a/editors/calligra-l10n/Makefile +++ b/editors/calligra-l10n/Makefile @@ -7,8 +7,7 @@ CATEGORIES= editors kde MAINTAINER= kde@FreeBSD.org COMMENT= Localized messages and documentation for Calligra -USE_KDE4= # blank, needed to get KDE4_VERSION -USES= metaport +USES= kde:4 metaport CALLIGRA_LANG_ALL= bs ca ca@valencia cs da de el en_GB es et fi fr \ gl hu it ja kk nb nl pl pt pt_BR ru sk \ @@ -36,7 +35,7 @@ ALL_DESC= All localizations ALL_RUN_DEPENDS=# empty .for lang in ${CALLIGRA_LANG_ALL} -${lang}_DETECT?= ${KDE4_PREFIX}/share/locale/${lang}/LC_MESSAGES/calligra.mo +${lang}_DETECT?= ${KDE_PREFIX}/share/locale/${lang}/LC_MESSAGES/calligra.mo ${lang}_PORT?= editors/calligra-l10n-${lang:S/@/_/} ${lang}_NAME?= ${lang} diff --git a/editors/calligra-l10n/files/bsd.l10n.mk b/editors/calligra-l10n/files/bsd.l10n.mk index 54b4b197e751..5e69ec7ac7d7 100644 --- a/editors/calligra-l10n/files/bsd.l10n.mk +++ b/editors/calligra-l10n/files/bsd.l10n.mk @@ -6,8 +6,8 @@ DIST_SUBDIR= KDE/calligra/${PORTVERSION}/l10n PLIST_SUB+= LANG=${CALLIGRA_L10N} -USE_KDE4= kdelibs automoc4 +USE_KDE= kdelibs automoc4 USE_QT4= corelib xml moc_build qmake_build rcc_build uic_build -USES+= cmake gettext tar:xz +USES+= cmake gettext kde:4 tar:xz NO_ARCH= yes .endif |