Skip to content

Commit

Permalink
net-im/qxmpp: flavorize for Qt5 and Qt6
Browse files Browse the repository at this point in the history
  • Loading branch information
tcberner committed May 26, 2023
1 parent bb1a46a commit 17fcec7
Show file tree
Hide file tree
Showing 9 changed files with 176 additions and 166 deletions.
2 changes: 1 addition & 1 deletion MOVED
Expand Up @@ -1457,7 +1457,6 @@ comms/ubertooth||2019-03-16|Has expired: Qt4 has been EOL since december 2015
devel/bzr-explorer||2019-03-16|Has expired: Qt4 has been EOL since december 2015
devel/qt4-help||2019-03-16|Has expired: Qt4 has been EOL since december 2015
editors/lazarus-qt4||2019-03-16|Has expired: Qt4 has been EOL since december 2015
net-im/qxmpp||2019-03-16|Has expired: Qt4 has been EOL since december 2015
graphics/ayam||2019-03-16|Has expired: Qt4 has been EOL since december 2015
graphics/iccexamin||2019-03-16|Has expired: Qt4 has been EOL since december 2015
graphics/openfx-io||2019-03-16|Has expired: Qt4 has been EOL since december 2015
Expand Down Expand Up @@ -7558,3 +7557,4 @@ www/py-dj40-django-timezone-field|www/py-dj41-django-timezone-field|2023-05-20|H
www/py-dj40-djangorestframework|www/py-dj41-djangorestframework|2023-05-20|Has expired: Extended support of Django 4.0 ends April 2023, upgrade to the Django 4.1+ version of this port. See https://www.djangoproject.com/download/
www/py-django40|www/py-django41|2023-05-20|Has expired: Extended support of Django 4.0 ends April 2023, upgrade to a newer version of Django. See https://www.djangoproject.com/download/
net-p2p/edonkey-tool-hash|net-p2p/ed2k-hash|2023-05-26|Renamed to match upstream naming
net-im/qxmpp-qt5|net-im/qxmpp|2023-05-26|Port flavorized for Qt 5 and 6
2 changes: 1 addition & 1 deletion net-im/Makefile
Expand Up @@ -137,7 +137,7 @@
SUBDIR += py-unmessage
SUBDIR += qTox
SUBDIR += quaternion
SUBDIR += qxmpp-qt5
SUBDIR += qxmpp
SUBDIR += ricochet
SUBDIR += rubygem-discordrb-webhooks
SUBDIR += rubygem-discordrb-webhooks-blackst0ne
Expand Down
4 changes: 2 additions & 2 deletions net-im/kaidan/Makefile
@@ -1,14 +1,14 @@
PORTNAME= kaidan
DISTVERSION= 0.8.0
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= net-im kde
MASTER_SITES= KDE/unstable/${PORTNAME}/${DISTVERSION}

MAINTAINER= kde@FreeBSD.org
COMMENT= User-friendly XMPP client for every device
WWW= https://www.kaidan.im/

LIB_DEPENDS= libQXmppQt5.so:net-im/qxmpp-qt5 \
LIB_DEPENDS= libQXmppQt5.so:net-im/qxmpp@qt5 \
libZXing.so:textproc/zxing-cpp

USES= cmake compiler:c++11-lang desktop-file-utils kde:5 \
Expand Down
153 changes: 0 additions & 153 deletions net-im/qxmpp-qt5/pkg-plist

This file was deleted.

22 changes: 16 additions & 6 deletions net-im/qxmpp-qt5/Makefile → net-im/qxmpp/Makefile
Expand Up @@ -2,6 +2,7 @@ PORTNAME= qxmpp
DISTVERSIONPREFIX= v
DISTVERSION= 1.5.5
CATEGORIES= net-im
PKGNAMESUFFIX= -${FLAVOR}

MAINTAINER= kde@FreeBSD.org
COMMENT= XMPP client library based on Qt and C++
Expand All @@ -12,15 +13,24 @@ LICENSE_FILE= ${WRKSRC}/LICENSES/LGPL-2.1-or-later.txt

LIB_DEPENDS= libomemo-c.so:security/libomemo-c

USES= cmake compiler:c++17-lang libtool pathfix pkgconfig qca qt:5
USE_QT= core gui network xml \
buildtools:build qmake:build testlib:build
CMAKE_ARGS= -DQT_VERSION_MAJOR=5
CMAKE_ON= BUILD_OMEMO
FLAVORS= qt5 qt6
FLAVOR?= qt5

USES= cmake compiler:c++17-lang libtool pathfix pkgconfig qca qt:${FLAVOR:S/qt//}
USE_GITHUB= yes
GH_ACCOUNT= qxmpp-project
USE_QT= ${_USE_QT_${FLAVOR}}
CMAKE_ARGS= -DQT_VERSION_MAJOR=${FLAVOR:S/qt//}
CMAKE_ON= BUILD_OMEMO

_USE_QT_qt5= core gui network xml \
buildtools:build qmake:build testlib:build
_USE_QT_qt6= base

PLIST_SUB= VERSION=${PORTVERSION}
_PLIST_QT5_qt5=
_PLIST_QT5_qt6= "@comment "
PLIST_SUB= VERSION=${PORTVERSION} \
QT_VER=${FLAVOR:S/qt//} \
QT5_ONLY=${_PLIST_QT5_${FLAVOR}}

.include <bsd.port.mk>
2 changes: 1 addition & 1 deletion net-im/qxmpp-qt5/distinfo → net-im/qxmpp/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1682976457
TIMESTAMP = 1685076678
SHA256 (qxmpp-project-qxmpp-v1.5.5_GH0.tar.gz) = b25fba89432c4fd72489d1844f683bfbf4e5aa4cfcfda7a982d6019f8e4529f8
SIZE (qxmpp-project-qxmpp-v1.5.5_GH0.tar.gz) = 606405
File renamed without changes.
153 changes: 153 additions & 0 deletions net-im/qxmpp/pkg-plist
@@ -0,0 +1,153 @@
include/QXmppQt%%QT_VER%%/Omemo/QXmppOmemoManager.h
include/QXmppQt%%QT_VER%%/Omemo/QXmppOmemoMemoryStorage.h
include/QXmppQt%%QT_VER%%/Omemo/QXmppOmemoStorage.h
include/QXmppQt%%QT_VER%%/Omemo/qxmppomemo_export.h
include/QXmppQt%%QT_VER%%/QXmppArchiveIq.h
include/QXmppQt%%QT_VER%%/QXmppArchiveManager.h
include/QXmppQt%%QT_VER%%/QXmppAtmManager.h
include/QXmppQt%%QT_VER%%/QXmppAtmTrustMemoryStorage.h
include/QXmppQt%%QT_VER%%/QXmppAtmTrustStorage.h
include/QXmppQt%%QT_VER%%/QXmppAttentionManager.h
include/QXmppQt%%QT_VER%%/QXmppBindIq.h
include/QXmppQt%%QT_VER%%/QXmppBitsOfBinaryContentId.h
include/QXmppQt%%QT_VER%%/QXmppBitsOfBinaryData.h
include/QXmppQt%%QT_VER%%/QXmppBitsOfBinaryDataList.h
include/QXmppQt%%QT_VER%%/QXmppBitsOfBinaryIq.h
include/QXmppQt%%QT_VER%%/QXmppBookmarkManager.h
include/QXmppQt%%QT_VER%%/QXmppBookmarkSet.h
include/QXmppQt%%QT_VER%%/QXmppByteStreamIq.h
include/QXmppQt%%QT_VER%%/QXmppCarbonManager.h
include/QXmppQt%%QT_VER%%/QXmppCarbonManagerV2.h
include/QXmppQt%%QT_VER%%/QXmppClient.h
include/QXmppQt%%QT_VER%%/QXmppClientExtension.h
include/QXmppQt%%QT_VER%%/QXmppConfiguration.h
include/QXmppQt%%QT_VER%%/QXmppDataForm.h
include/QXmppQt%%QT_VER%%/QXmppDataFormBase.h
include/QXmppQt%%QT_VER%%/QXmppDialback.h
include/QXmppQt%%QT_VER%%/QXmppDiscoveryIq.h
include/QXmppQt%%QT_VER%%/QXmppDiscoveryManager.h
include/QXmppQt%%QT_VER%%/QXmppE2eeExtension.h
include/QXmppQt%%QT_VER%%/QXmppE2eeMetadata.h
include/QXmppQt%%QT_VER%%/QXmppElement.h
include/QXmppQt%%QT_VER%%/QXmppEncryptedFileSharingProvider.h
include/QXmppQt%%QT_VER%%/QXmppEncryptedFileSource.h
include/QXmppQt%%QT_VER%%/QXmppEntityTimeIq.h
include/QXmppQt%%QT_VER%%/QXmppEntityTimeManager.h
include/QXmppQt%%QT_VER%%/QXmppError.h
include/QXmppQt%%QT_VER%%/QXmppExtension.h
include/QXmppQt%%QT_VER%%/QXmppFileMetadata.h
include/QXmppQt%%QT_VER%%/QXmppFileShare.h
include/QXmppQt%%QT_VER%%/QXmppFileSharingManager.h
include/QXmppQt%%QT_VER%%/QXmppFileSharingProvider.h
include/QXmppQt%%QT_VER%%/QXmppFutureUtils_p.h
include/QXmppQt%%QT_VER%%/QXmppGeolocItem.h
include/QXmppQt%%QT_VER%%/QXmppGlobal.h
include/QXmppQt%%QT_VER%%/QXmppHash.h
include/QXmppQt%%QT_VER%%/QXmppHttpFileSharingProvider.h
include/QXmppQt%%QT_VER%%/QXmppHttpFileSource.h
include/QXmppQt%%QT_VER%%/QXmppHttpUploadIq.h
include/QXmppQt%%QT_VER%%/QXmppHttpUploadManager.h
include/QXmppQt%%QT_VER%%/QXmppIbbIq.h
include/QXmppQt%%QT_VER%%/QXmppIncomingClient.h
include/QXmppQt%%QT_VER%%/QXmppIncomingServer.h
include/QXmppQt%%QT_VER%%/QXmppInvokable.h
include/QXmppQt%%QT_VER%%/QXmppIq.h
include/QXmppQt%%QT_VER%%/QXmppIqHandling.h
include/QXmppQt%%QT_VER%%/QXmppJingleIq.h
include/QXmppQt%%QT_VER%%/QXmppLogger.h
include/QXmppQt%%QT_VER%%/QXmppMamIq.h
include/QXmppQt%%QT_VER%%/QXmppMamManager.h
include/QXmppQt%%QT_VER%%/QXmppMessage.h
include/QXmppQt%%QT_VER%%/QXmppMessageHandler.h
include/QXmppQt%%QT_VER%%/QXmppMessageReaction.h
include/QXmppQt%%QT_VER%%/QXmppMessageReceiptManager.h
include/QXmppQt%%QT_VER%%/QXmppMixInfoItem.h
include/QXmppQt%%QT_VER%%/QXmppMixInvitation.h
include/QXmppQt%%QT_VER%%/QXmppMixIq.h
include/QXmppQt%%QT_VER%%/QXmppMixParticipantItem.h
include/QXmppQt%%QT_VER%%/QXmppMucIq.h
include/QXmppQt%%QT_VER%%/QXmppMucManager.h
include/QXmppQt%%QT_VER%%/QXmppNonSASLAuth.h
include/QXmppQt%%QT_VER%%/QXmppNonza.h
include/QXmppQt%%QT_VER%%/QXmppOutOfBandUrl.h
include/QXmppQt%%QT_VER%%/QXmppOutgoingClient.h
include/QXmppQt%%QT_VER%%/QXmppOutgoingServer.h
include/QXmppQt%%QT_VER%%/QXmppPasswordChecker.h
include/QXmppQt%%QT_VER%%/QXmppPingIq.h
include/QXmppQt%%QT_VER%%/QXmppPresence.h
include/QXmppQt%%QT_VER%%/QXmppPromise.h
include/QXmppQt%%QT_VER%%/QXmppPubSubAffiliation.h
include/QXmppQt%%QT_VER%%/QXmppPubSubBaseItem.h
include/QXmppQt%%QT_VER%%/QXmppPubSubEvent.h
include/QXmppQt%%QT_VER%%/QXmppPubSubEventHandler.h
include/QXmppQt%%QT_VER%%/QXmppPubSubIq.h
include/QXmppQt%%QT_VER%%/QXmppPubSubIq_p.h
include/QXmppQt%%QT_VER%%/QXmppPubSubItem.h
include/QXmppQt%%QT_VER%%/QXmppPubSubManager.h
include/QXmppQt%%QT_VER%%/QXmppPubSubMetadata.h
include/QXmppQt%%QT_VER%%/QXmppPubSubNodeConfig.h
include/QXmppQt%%QT_VER%%/QXmppPubSubPublishOptions.h
include/QXmppQt%%QT_VER%%/QXmppPubSubSubAuthorization.h
include/QXmppQt%%QT_VER%%/QXmppPubSubSubscribeOptions.cpp
include/QXmppQt%%QT_VER%%/QXmppPubSubSubscription.h
include/QXmppQt%%QT_VER%%/QXmppPushEnableIq.h
include/QXmppQt%%QT_VER%%/QXmppRegisterIq.h
include/QXmppQt%%QT_VER%%/QXmppRegistrationManager.h
include/QXmppQt%%QT_VER%%/QXmppRemoteMethod.h
include/QXmppQt%%QT_VER%%/QXmppResultSet.h
include/QXmppQt%%QT_VER%%/QXmppRosterIq.h
include/QXmppQt%%QT_VER%%/QXmppRosterManager.h
include/QXmppQt%%QT_VER%%/QXmppRpcIq.h
include/QXmppQt%%QT_VER%%/QXmppRpcManager.h
include/QXmppQt%%QT_VER%%/QXmppSendResult.h
include/QXmppQt%%QT_VER%%/QXmppSendStanzaParams.h
include/QXmppQt%%QT_VER%%/QXmppServer.h
include/QXmppQt%%QT_VER%%/QXmppServerExtension.h
include/QXmppQt%%QT_VER%%/QXmppServerPlugin.h
include/QXmppQt%%QT_VER%%/QXmppSessionIq.h
include/QXmppQt%%QT_VER%%/QXmppSocks.h
include/QXmppQt%%QT_VER%%/QXmppStanza.h
include/QXmppQt%%QT_VER%%/QXmppStartTlsPacket.h
include/QXmppQt%%QT_VER%%/QXmppStream.h
include/QXmppQt%%QT_VER%%/QXmppStreamFeatures.h
include/QXmppQt%%QT_VER%%/QXmppStun.h
include/QXmppQt%%QT_VER%%/QXmppTask.h
include/QXmppQt%%QT_VER%%/QXmppThumbnail.h
include/QXmppQt%%QT_VER%%/QXmppTransferManager.h
include/QXmppQt%%QT_VER%%/QXmppTransferManager_p.h
include/QXmppQt%%QT_VER%%/QXmppTrustLevel.h
include/QXmppQt%%QT_VER%%/QXmppTrustManager.h
include/QXmppQt%%QT_VER%%/QXmppTrustMemoryStorage.h
include/QXmppQt%%QT_VER%%/QXmppTrustMessageElement.h
include/QXmppQt%%QT_VER%%/QXmppTrustMessageKeyOwner.h
include/QXmppQt%%QT_VER%%/QXmppTrustMessages.h
include/QXmppQt%%QT_VER%%/QXmppTrustSecurityPolicy.h
include/QXmppQt%%QT_VER%%/QXmppTrustStorage.h
include/QXmppQt%%QT_VER%%/QXmppUploadRequestManager.h
include/QXmppQt%%QT_VER%%/QXmppUserLocationManager.h
include/QXmppQt%%QT_VER%%/QXmppUserTuneItem.h
include/QXmppQt%%QT_VER%%/QXmppUserTuneManager.h
include/QXmppQt%%QT_VER%%/QXmppUtils.h
include/QXmppQt%%QT_VER%%/QXmppVCardIq.h
include/QXmppQt%%QT_VER%%/QXmppVCardManager.h
include/QXmppQt%%QT_VER%%/QXmppVersionIq.h
include/QXmppQt%%QT_VER%%/QXmppVersionManager.h
include/QXmppQt%%QT_VER%%/qxmpp_export.h
lib/cmake/QXmpp/QXmppConfig.cmake
lib/cmake/QXmpp/QXmppConfigVersion.cmake
lib/cmake/QXmppOmemoQt%%QT_VER%%/QXmppOmemo-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/QXmppOmemoQt%%QT_VER%%/QXmppOmemo.cmake
lib/cmake/QXmppOmemoQt%%QT_VER%%/QXmppOmemoQt%%QT_VER%%Config.cmake
lib/cmake/QXmppOmemoQt%%QT_VER%%/QXmppOmemoQt%%QT_VER%%ConfigVersion.cmake
lib/cmake/QXmppQt%%QT_VER%%/QXmpp-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/QXmppQt%%QT_VER%%/QXmpp.cmake
lib/cmake/QXmppQt%%QT_VER%%/QXmppQt%%QT_VER%%Config.cmake
lib/cmake/QXmppQt%%QT_VER%%/QXmppQt%%QT_VER%%ConfigVersion.cmake
lib/libQXmppOmemoQt%%QT_VER%%.so
lib/libQXmppOmemoQt%%QT_VER%%.so.4
lib/libQXmppOmemoQt%%QT_VER%%.so.%%VERSION%%
lib/libQXmppQt%%QT_VER%%.so
lib/libQXmppQt%%QT_VER%%.so.4
lib/libQXmppQt%%QT_VER%%.so.%%VERSION%%
libdata/pkgconfig/QXmppQt%%QT_VER%%.pc
%%QT5_ONLY%%libdata/pkgconfig/qxmpp.pc

0 comments on commit 17fcec7

Please sign in to comment.