Page MenuHomeFreeBSD

Replace Mk/bsd.kde4.mk by Mk/Uses/kde.mk in preparation for KDE Frameworks and Plasma5 ports
ClosedPublic

Authored by tcberner on Jun 25 2016, 12:17 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 24, 1:35 AM
Unknown Object (File)
Feb 22 2024, 8:51 PM
Unknown Object (File)
Jan 19 2024, 8:25 PM
Unknown Object (File)
Jan 12 2024, 6:19 AM
Unknown Object (File)
Jan 6 2024, 12:30 PM
Unknown Object (File)
Jan 6 2024, 12:29 PM
Unknown Object (File)
Dec 27 2023, 11:34 PM
Unknown Object (File)
Dec 25 2023, 4:08 PM
Subscribers

Details

Summary

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

Test Plan
  • The kde.mk has been used in our testing repository [successfully] since 2015-10-03 (initial version).
  • I ran a poudriere build against [nearly] all ports that use KDE with attache patch with ports r417413.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

tcberner retitled this revision from to Replace Uses/kde.mk in preparation for KDE Frameworks and Plasma5 ports.
tcberner updated this object.
tcberner edited the test plan for this revision. (Show Details)
tcberner added reviewers: swills, kde.
tcberner set the repository for this revision to rP FreeBSD ports repository.
tcberner added a subscriber: rakuco.
tcberner retitled this revision from Replace Uses/kde.mk in preparation for KDE Frameworks and Plasma5 ports to Replace Mk/bsd.kde4.mk by Mk/Uses/kde.mk in preparation for KDE Frameworks and Plasma5 ports.Jun 25 2016, 12:19 AM
tcberner edited edge metadata.

Fix a dozen of KDE4-options I missed previously.

Be sure to svn mv Mk/bsd.kde4.mk Mk/Uses/kde.mk before you commit.

Also, it is better to put first the USES line, then the variables concerning the USES, so you should write:

USES=kde:4
USE_KDE=foo

and not:

USE_KDE=foo
USES=kde:4
Mk/bsd.port.mk
1431–1435

Don't add comments ;-)

3344

Don't change things other than what you're doing :-)

4004

Don't change things other than what you're doing :-)

tcberner edited edge metadata.

The newest version

  • moves USES atop of all the USE_FOO.
  • does not modify bsd.port.mk more than wanted
  • has kde.mk moved from bsd.kde4.mk
  • drops to componenents from newer kde applications that slipped in previously in kde.mk

This, in all, looks nice, open a PR so that an exp-run is made.

I've added some inline comments with some questions and comments; there's nothing major, and those changes likely don't require a new exp-run. Once those are taken care of we should be ready to land this.

Mk/Uses/kde.mk
74

I think this can be removed since all ports seem to have been converted to KDE_PREFIX.

76

Is this going to be used by the KF5 ports? Otherwise this as well as the version-independent INCDIR variables can be dropped.

97

Perhaps with this (together with setting INFO_INSTALL_DIR) x11/kdelibs4/files/patch-cmake_modules_FindKDE4Internal.cmake can be removed in the future (no need to do this here and it likely will require an exp-run too).

100

The kdeprefix code has since been removed rP415864, so this block can be dropped too.

141

It'd be good to have this alphabetically sorted.

278

This should be sorted and put after the ontologies bit.

x11/kdelibs4/Makefile
1

Extra empty line.

tcberner edited the test plan for this revision. (Show Details)
tcberner edited edge metadata.

Address issues

  • kde.mk
    • removed KDE4_PREFIX -- simply set KDE_PREFIX to $LOCALBASE
      • fix kate_PATH -- still used KDE4_PREFIX
      • fix net-p2p/amule*/pkg-plist -- PLASMAMULE option used KDE4_PREFIX [missed before] [1]
      • fix deskutils/kdepimlibs4/files/patch-cmakemodulesFindQGpgme.cmake [missed before]
    • removed KDE*INCDIR
    • removed unsupported 'kdprefix' handling
    • sorted components list and defintions alphabetically
    • svn mv it from bsd.kde4.mk
    • run Tools/scripts/indent_make_if.pl on it
  • x11/kdelibs4/Makefile
    • dropped empty line

[1] I think these two plists are broken -- I will look at them tomorrow.

Mark stuff done.

rakuco added a reviewer: rakuco.

Looks great to me!
@mat, can you take a look at it with your portmgr hat?

This revision was automatically updated to reflect the committed changes.