diff options
| author | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2017-03-28 10:49:48 +0000 |
|---|---|---|
| committer | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2017-03-28 10:49:48 +0000 |
| commit | 726a3dff29bc78bead8577fe589285ffbed3efce (patch) | |
| tree | 284607825998f11114e9e5cb783ab958d15509a4 | |
| parent | Restore deviceatlas checksums. (diff) | |
New port: net/qoauth-qt5.
This is the Qt5 version of net/qoauth. The port was originally created by
fluffy@ in our area51 repository, and later worked on by tcberner@.
QOAuth is an attempt to support interaction with OAuth-powered network services
in a Qt way.
WWW: https://github.com/ayoy/qoauth
| -rw-r--r-- | net/Makefile | 1 | ||||
| -rw-r--r-- | net/qoauth-qt5/Makefile | 25 | ||||
| -rw-r--r-- | net/qoauth-qt5/distinfo | 3 | ||||
| -rw-r--r-- | net/qoauth-qt5/files/patch-oauth.prf | 14 | ||||
| -rw-r--r-- | net/qoauth-qt5/files/patch-src_pcfile.sh | 19 | ||||
| -rw-r--r-- | net/qoauth-qt5/files/patch-src_src.pro | 29 | ||||
| -rw-r--r-- | net/qoauth-qt5/pkg-descr | 4 | ||||
| -rw-r--r-- | net/qoauth-qt5/pkg-plist | 11 |
8 files changed, 106 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index 4319fc062900..182f32a0eac0 100644 --- a/net/Makefile +++ b/net/Makefile @@ -1076,6 +1076,7 @@ SUBDIR += qadsl SUBDIR += qjsonrpc SUBDIR += qoauth + SUBDIR += qoauth-qt5 SUBDIR += qt4-network SUBDIR += qt5-network SUBDIR += qtweetlib diff --git a/net/qoauth-qt5/Makefile b/net/qoauth-qt5/Makefile new file mode 100644 index 000000000000..b09c1bd3b8c7 --- /dev/null +++ b/net/qoauth-qt5/Makefile @@ -0,0 +1,25 @@ +# Created by: Dima Panov <fluffy@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= qoauth +PORTVERSION= 2.0.0 +DISTVERSIONPREFIX= v +CATEGORIES= net devel security +PKGNAMESUFFIX= -qt5 + +MAINTAINER= kde@FreeBSD.org +COMMENT= Qt5 support for OAuth-powered network services + +LICENSE= LGPL21+ +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libqca-qt5.so:devel/qca-qt5 + +USES= qmake:outsource +USE_LDCONFIG= yes +USE_QT5= core network testlib buildtools_build qmake_build + +USE_GITHUB= yes +GH_ACCOUNT= ayoy + +.include <bsd.port.mk> diff --git a/net/qoauth-qt5/distinfo b/net/qoauth-qt5/distinfo new file mode 100644 index 000000000000..e10b921ec772 --- /dev/null +++ b/net/qoauth-qt5/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1483780221 +SHA256 (ayoy-qoauth-v2.0.0_GH0.tar.gz) = a28005986410d333e03d077679cdf6c504ec5a33342867dc0f9fb0b74285e333 +SIZE (ayoy-qoauth-v2.0.0_GH0.tar.gz) = 53207 diff --git a/net/qoauth-qt5/files/patch-oauth.prf b/net/qoauth-qt5/files/patch-oauth.prf new file mode 100644 index 000000000000..adf2e8b8cf7b --- /dev/null +++ b/net/qoauth-qt5/files/patch-oauth.prf @@ -0,0 +1,14 @@ +--- oauth.prf.orig 2016-11-28 17:52:39 UTC ++++ oauth.prf +@@ -31,9 +31,9 @@ mac: { + # else, link normally + isEmpty(LINKAGE) { + exists($$PWD/qoauth.pro): INCLUDEPATH += $$QOAUTH_INCDIR +- else: INCLUDEPATH += $$QOAUTH_INCDIR/QtOAuth ++ else: INCLUDEPATH += $$QOAUTH_INCDIR/QtOAuth-qt5 + LIBS += -L$$QOAUTH_LIBDIR +- LINKAGE = -lqoauth ++ LINKAGE = -lqoauth-qt5 + CONFIG(debug, debug|release) { + windows:LINKAGE = -lqoauthd1 + mac:LINKAGE = -lqoauth_debug diff --git a/net/qoauth-qt5/files/patch-src_pcfile.sh b/net/qoauth-qt5/files/patch-src_pcfile.sh new file mode 100644 index 000000000000..c3a920a3f119 --- /dev/null +++ b/net/qoauth-qt5/files/patch-src_pcfile.sh @@ -0,0 +1,19 @@ +--- src/pcfile.sh.orig 2016-11-28 17:52:39 UTC ++++ src/pcfile.sh +@@ -5,11 +5,11 @@ + echo "prefix=$1 + exec_prefix=\${prefix} + libdir=\${prefix}/lib +-includedir=\${prefix}/include/QtOAuth ++includedir=\${prefix}/include/QtOAuth-qt5 + +-Name: QOAuth ++Name: QOAuth-qt5 + Description: Qt OAuth support library + Version: $2 +-Requires: QtCore QtNetwork qca2 +-Libs: -L\${libdir} -lqoauth +-Cflags: -I\${includedir}" > qoauth.pc ++Requires: Qt5Core Qt5Network qca2-qt5 ++Libs: -L\${libdir} -lqoauth-qt5 ++Cflags: -I\${includedir}" > qoauth-qt5.pc diff --git a/net/qoauth-qt5/files/patch-src_src.pro b/net/qoauth-qt5/files/patch-src_src.pro new file mode 100644 index 000000000000..a7f15bdeb318 --- /dev/null +++ b/net/qoauth-qt5/files/patch-src_src.pro @@ -0,0 +1,29 @@ +--- src/src.pro.orig 2016-11-28 17:52:39 UTC ++++ src/src.pro +@@ -1,4 +1,4 @@ +-TARGET = qoauth ++TARGET = qoauth-qt5 + DESTDIR = ../lib + win32:DLLDESTDIR = $${DESTDIR} + +@@ -78,7 +78,7 @@ else:unix { + + # this creates a pkgconfig file + system( ./pcfile.sh $${INSTALL_PREFIX} $${VERSION} ) +- pkgconfig.files = qoauth.pc ++ pkgconfig.files = qoauth-qt5.pc + + contains(QMAKE_HOST.arch, x86_64) { + target.path = $${INSTALL_PREFIX}/lib64 +@@ -86,9 +86,9 @@ else:unix { + target.path = $${INSTALL_PREFIX}/lib + } + +- headers.path = $${INSTALL_PREFIX}/include/QtOAuth ++ headers.path = $${INSTALL_PREFIX}/include/QtOAuth-qt5/QtOAuth + docs.path = $${INSTALL_PREFIX}/share/doc/$${TARGET}-$${VERSION}/html +- pkgconfig.path = $${target.path}/pkgconfig ++ pkgconfig.path = $${INSTALL_PREFIX}/libdata/pkgconfig + INSTALLS += \ + target \ + headers \ diff --git a/net/qoauth-qt5/pkg-descr b/net/qoauth-qt5/pkg-descr new file mode 100644 index 000000000000..59be37666285 --- /dev/null +++ b/net/qoauth-qt5/pkg-descr @@ -0,0 +1,4 @@ +QOAuth is an attempt to support interaction with OAuth-powered network services +in a Qt way + +WWW: https://github.com/ayoy/qoauth diff --git a/net/qoauth-qt5/pkg-plist b/net/qoauth-qt5/pkg-plist new file mode 100644 index 000000000000..3fcda5ab7a7d --- /dev/null +++ b/net/qoauth-qt5/pkg-plist @@ -0,0 +1,11 @@ +include/QtOAuth-qt5/QtOAuth/QtOAuth +include/QtOAuth-qt5/QtOAuth/interface.h +include/QtOAuth-qt5/QtOAuth/qoauth_global.h +include/QtOAuth-qt5/QtOAuth/qoauth_namespace.h +lib/libqoauth-qt5.prl +lib/libqoauth-qt5.so +lib/libqoauth-qt5.so.2 +lib/libqoauth-qt5.so.2.0 +lib/libqoauth-qt5.so.2.0.0 +%%QT_MKSPECDIR%%/features/oauth.prf +libdata/pkgconfig/qoauth-qt5.pc |
