summaryrefslogtreecommitdiff
path: root/dev-libs/qoauth
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/qoauth
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/qoauth')
-rw-r--r--dev-libs/qoauth/Manifest10
-rw-r--r--dev-libs/qoauth/files/qoauth-1.0.1-disable-ft.patch20
-rw-r--r--dev-libs/qoauth/files/qoauth-2.0.1_pre20160315-prf.patch15
-rw-r--r--dev-libs/qoauth/metadata.xml8
-rw-r--r--dev-libs/qoauth/qoauth-1.0.1.ebuild68
-rw-r--r--dev-libs/qoauth/qoauth-2.0.1_pre20160315-r1.ebuild60
-rw-r--r--dev-libs/qoauth/qoauth-2.0.1_pre20160315-r2.ebuild63
7 files changed, 244 insertions, 0 deletions
diff --git a/dev-libs/qoauth/Manifest b/dev-libs/qoauth/Manifest
new file mode 100644
index 000000000000..ed9e5292d720
--- /dev/null
+++ b/dev-libs/qoauth/Manifest
@@ -0,0 +1,10 @@
+AUX qoauth-1.0.1-disable-ft.patch 629 SHA256 8933ba98f972b8b19c5e6bccd685224800810434bfed22987d228137b65c22c0 SHA512 04d06d1989866e208510f9c726fb3a447df2020ba0c7ec169534b39075343c03e05f2dc854696c87cd007ce980dc747f0658d8e88d0ef96b77dc0c70dae923d7 WHIRLPOOL 51a83526605c3e77c3d125c33cd161b57aa46bbcc8704642706e89ac60f93fe7bf031f155ebde47841d90329c8ecce044a751240d92dd7474f1a7566ce79ddb2
+AUX qoauth-2.0.1_pre20160315-prf.patch 312 SHA256 35cdf6f5ed10bb24e54ac5f706e2c16205636bbd0f8b2ee0241e26be56641193 SHA512 2bdd73d0b43325359edcff59d717ec18b2fc87d720d068cc8e8d04ef25eeb213050ab5ebc7991ec59c91299a5c49a2b727a5e5ad11677641b17cbd424092753f WHIRLPOOL ce7b82631f8aef998d07a5334d37fd38f2fc57661cf755e1cc637dd1ce69917e3763da8bbc8646d318b4e28cebacbd9c35fa3d7f22954d92f8ec2041ae8bed97
+DIST qoauth-1.0.1-src.tar.bz2 42298 SHA256 b8579a77cecb07928e557c4a019db902a0f040b22f7926f147299e87ac5a54fd SHA512 86869c82e6efd490888f3bb16cba5bb014821e35507d3d396a84f5112a2d0bd7cb1251ba5dff82a8913eeae77a0feeebfdf4a7d1e9870023fb3c106d603c3dd8 WHIRLPOOL e990ad4fbaa7ce3c45eec6f3a49d9404139432e5941882cc73d85520868bdc592604c8b7058866648d27b2001b310848edd239f8c3f9fc4f0bc66c79fee7f8bd
+DIST qoauth-2.0.1_pre20160315.tar.xz 45604 SHA256 9e5e29b4258d878e9e1f8afdbc8ae94e68040d35d4f87e209b703e090fe278b4 SHA512 ec44c597c7b9729645ab98e2c71c805d01eab4c0684b7ea0da6b015a052b0ad6e3aa9352ef53e36a67ff99b9f75fb9b89156ca8b23c639a70cc49aab656366c3 WHIRLPOOL 3a082480c75aaa49a24937a0707e703dbabb1484d9cb467141bfd14f56169319018ff4b5e3026c59cab2199ca884686002790bc5927c0b2d56d170a34a3b7b5e
+EBUILD qoauth-1.0.1.ebuild 1417 SHA256 c9c1953767ae14afb07cbc2d98829049f3022a9cdb0bd1de9fbaef75562b7626 SHA512 f119c5bcf1d58f811792ed0971abf67a75a3759c0f1356d72c96792a4b1d7197cef2ffc1b3b5193c42f0afdafd2b17625b157847003bbd143ca89b5ad634450a WHIRLPOOL 638ac4985323ffa9c3ab58aebe35cd59cc4dc96cf573b84d78acfd3ac630ee9a39bce700c7482d3fb96bdbfeaccbafc6c52a0b1def22e8cb7f8016be28a44beb
+EBUILD qoauth-2.0.1_pre20160315-r1.ebuild 1291 SHA256 0f5acc2c5413e05eace2dc413f269718752664d6f28f3c630031e6002175788b SHA512 f49c60e42b4bdfc898bb72292bb0ffca07080e14f3a2459e3c4095758bc3f123039081ba1c6ced2c9cd644c6099b1892b93e8192760690041fb2a16aa25fc7d5 WHIRLPOOL f357cac35cd638e12fedf6fef044589a148d477703abfc6efdea10c15a322ebdd173acf18e0dbf32a743480b8966c24d104b4e4ac251fba7713289cb0fd0c544
+EBUILD qoauth-2.0.1_pre20160315-r2.ebuild 1322 SHA256 7346b0c5ccef72d721f50c42abfea6567411f102862a86bf3c58f9c0398a6677 SHA512 0572f6e926b9139e680cfdca73727f1690ab33d466d631375892d2b8ba8419e49100842e40f090096a8e13909db51c7355ac7fd813d71a5376c7cb05058de8fb WHIRLPOOL f80e85c19162fdca53a66f46d4530a82e5289cf88eadcca704ab8e7015c36dbd5bcf5b8e48878841cb880f2f3622cb5ac7099c5dacfcb15265446d5b2217f7e8
+MISC ChangeLog 3303 SHA256 3054d665aefedb64a9e84bf07934fa8815db985afb6554c7eab304d8eb962569 SHA512 5feae8c4b3623b3cbcfc66776960a75428629a434705a9b8cd9fdb5929986e7ec40ba602c0c05946474be93bff51db9720e67413e236ef5da81b32804f304876 WHIRLPOOL 77a9d0dc18d48fd9c51fda53df2bc8eb6907be2d9c0478123beb0f908d94a629b8b2c6fb2b499a50fba74a06fdb8122db127099138381aab4c811ec18ed3b6c6
+MISC ChangeLog-2015 3178 SHA256 49c15062dd1bbc402cb897ab90f1f598340af6696c6e8c063e732bf0a4a278d0 SHA512 7e60c0fa8733a24aa763f00d8141aaddf060a4384b8fb8d8758e6b09c9dcba1b0f11d91c63658df696779a7f0065539b067d9412054df44bd25f42780ec15153 WHIRLPOOL 75362aabe31b8fa0f12410c7f20081da08799accc5a2da88dc55e88b62a68d3834d31701cc42a166b75813f13e08591703e1d2a1113a38ec07585686653f88a5
+MISC metadata.xml 247 SHA256 690d3e08cdd71b405f5361dfa3f33007ce9ec9d0ae7628e9271891da9e2bda92 SHA512 b43c8e84c3c753b49b203921a5aca792639a36d6efdbe16c069ff9abfbce0585718bb3824c03abdd7bd19ada13fb0a98a378c85ed369ac5fdc53ad3b3d5465d2 WHIRLPOOL dffc398d6bdbe8a8afc8863675a819a7bd69ae4d098ffbddad4c21ab8f1a850ab8ede71f98e34999b0605ad01ea93c8864cd681b50d3e153aa3d0901ddb10743
diff --git a/dev-libs/qoauth/files/qoauth-1.0.1-disable-ft.patch b/dev-libs/qoauth/files/qoauth-1.0.1-disable-ft.patch
new file mode 100644
index 000000000000..1fd6fd0fc8c9
--- /dev/null
+++ b/dev-libs/qoauth/files/qoauth-1.0.1-disable-ft.patch
@@ -0,0 +1,20 @@
+diff --git a/qoauth.pro b/qoauth.pro
+index f09b3be..27d7bb3 100644
+--- a/qoauth.pro
++++ b/qoauth.pro
+@@ -5,6 +5,6 @@ SUBDIRS += src tests
+ CONFIG += ordered
+
+ check.target = check
+-check.commands = ( cd tests/ut_interface && ./ut_interface ) && ( cd tests/ft_interface && ./ft_interface )
++check.commands = ( cd tests/ut_interface && ./ut_interface )
+ check.depends = sub-tests
+ QMAKE_EXTRA_TARGETS += check
+diff --git a/tests/tests.pro b/tests/tests.pro
+index d582750..e010bb0 100644
+--- a/tests/tests.pro
++++ b/tests/tests.pro
+@@ -1,2 +1,2 @@
+ TEMPLATE = subdirs
+-SUBDIRS += ut_interface ft_interface
++SUBDIRS += ut_interface
diff --git a/dev-libs/qoauth/files/qoauth-2.0.1_pre20160315-prf.patch b/dev-libs/qoauth/files/qoauth-2.0.1_pre20160315-prf.patch
new file mode 100644
index 000000000000..c3457b0dba41
--- /dev/null
+++ b/dev-libs/qoauth/files/qoauth-2.0.1_pre20160315-prf.patch
@@ -0,0 +1,15 @@
+Point to where the headers are really installed.
+
+--- a/oauth.prf
++++ b/oauth.prf
+@@ -1,9 +1,6 @@
+-QOAUTH_INCDIR = $$[QT_INSTALL_HEADERS]
++QOAUTH_INCDIR = $$[QT_INSTALL_HEADERS]/..
+ QOAUTH_LIBDIR = $$[QT_INSTALL_LIBS]
+
+-QOAUTH_INCDIR ~= s!/qt4*!!
+-QOAUTH_LIBDIR ~= s!/qt4*!!
+-
+ CONFIG *= qt
+ CONFIG += crypto
+
diff --git a/dev-libs/qoauth/metadata.xml b/dev-libs/qoauth/metadata.xml
new file mode 100644
index 000000000000..17237689dcfd
--- /dev/null
+++ b/dev-libs/qoauth/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-libs/qoauth/qoauth-1.0.1.ebuild b/dev-libs/qoauth/qoauth-1.0.1.ebuild
new file mode 100644
index 000000000000..fb045417507e
--- /dev/null
+++ b/dev-libs/qoauth/qoauth-1.0.1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit qt4-r2
+
+DESCRIPTION="A Qt-based library for OAuth support"
+HOMEPAGE="https://github.com/ayoy/qoauth/wiki"
+SRC_URI="http://files.ayoy.net/qoauth/release/${PV}/src/${P}-src.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE="debug doc static-libs test"
+
+COMMON_DEPEND="app-crypt/qca:2[debug?,qt4(+)]"
+DEPEND="${COMMON_DEPEND}
+ doc? ( app-doc/doxygen )
+ test? ( dev-qt/qttest:4 )
+"
+RDEPEND="${COMMON_DEPEND}
+ app-crypt/qca:2[ssl]
+"
+
+S=${WORKDIR}/${P}-src
+
+DOCS="README CHANGELOG"
+PATCHES=(
+ # disable functional tests that require network connection
+ # and rely on 3rd party external server (bug #341267)
+ "${FILESDIR}/${P}-disable-ft.patch"
+)
+
+src_prepare() {
+ qt4-r2_src_prepare
+
+ if ! use test; then
+ sed -i -e '/SUBDIRS/s/tests//' ${PN}.pro || die "sed failed"
+ fi
+
+ sed -i -e '/^ *docs \\$/d' \
+ -e '/^ *build_all \\$/d' \
+ -e 's/^\#\(!macx\)/\1/' \
+ src/src.pro || die "sed failed"
+
+ sed -i -e "s/\(.*\)lib$/\1$(get_libdir)/" src/pcfile.sh || die "sed failed"
+}
+
+src_compile() {
+ default
+ if use static-libs; then
+ emake -C src static
+ fi
+}
+
+src_install() {
+ qt4-r2_src_install
+
+ if use static-libs; then
+ dolib.a "${S}"/lib/lib${PN}.a
+ fi
+
+ if use doc; then
+ doxygen "${S}"/Doxyfile || die "failed to generate documentation"
+ dohtml "${S}"/doc/html/*
+ fi
+}
diff --git a/dev-libs/qoauth/qoauth-2.0.1_pre20160315-r1.ebuild b/dev-libs/qoauth/qoauth-2.0.1_pre20160315-r1.ebuild
new file mode 100644
index 000000000000..5a7f308f3f93
--- /dev/null
+++ b/dev-libs/qoauth/qoauth-2.0.1_pre20160315-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit qmake-utils
+
+DESCRIPTION="Qt-based library for OAuth support"
+HOMEPAGE="https://github.com/ayoy/qoauth/wiki"
+SRC_URI="https://dev.gentoo.org/~johu/distfiles/${P}.tar.xz"
+
+LICENSE="LGPL-2.1"
+SLOT="5"
+KEYWORDS="amd64 ~ppc64 x86"
+IUSE="debug doc test"
+
+COMMON_DEPEND="
+ app-crypt/qca:2[debug?,qt5]
+ dev-qt/qtnetwork:5
+"
+DEPEND="${COMMON_DEPEND}
+ doc? ( app-doc/doxygen )
+ test? ( dev-qt/qttest:5 )
+"
+RDEPEND="${COMMON_DEPEND}
+ app-crypt/qca:2[ssl]
+ !dev-libs/qoauth:0
+"
+
+# disable functional tests that require network connection
+# and rely on 3rd party external server (bug #341267)
+PATCHES=( "${FILESDIR}/${PN}-1.0.1-disable-ft.patch" )
+
+src_prepare() {
+ default
+
+ if ! use test; then
+ sed -i -e '/SUBDIRS/s/tests//' ${PN}.pro || die "sed failed"
+ fi
+
+ sed -i -e '/^ *docs \\$/d' \
+ -e '/^ *build_all \\$/d' \
+ -e 's/^\#\(!macx\)/\1/' \
+ src/src.pro || die "sed failed"
+
+ sed -i -e "s/\(.*\)lib$/\1$(get_libdir)/" src/pcfile.sh || die "sed failed"
+}
+
+src_configure() {
+ eqmake5 qoauth.pro
+}
+
+src_install() {
+ if use doc; then
+ doxygen "${S}"/Doxyfile || die "failed to generate documentation"
+ HTML_DOCS=( "${S}"/doc/html/. )
+ fi
+
+ INSTALL_ROOT="${D}" default
+}
diff --git a/dev-libs/qoauth/qoauth-2.0.1_pre20160315-r2.ebuild b/dev-libs/qoauth/qoauth-2.0.1_pre20160315-r2.ebuild
new file mode 100644
index 000000000000..d2050b55e8cc
--- /dev/null
+++ b/dev-libs/qoauth/qoauth-2.0.1_pre20160315-r2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit qmake-utils
+
+DESCRIPTION="Qt-based library for OAuth support"
+HOMEPAGE="https://github.com/ayoy/qoauth/wiki"
+SRC_URI="https://dev.gentoo.org/~johu/distfiles/${P}.tar.xz"
+
+LICENSE="LGPL-2.1"
+SLOT="5"
+KEYWORDS="amd64 ~ppc64 x86"
+IUSE="debug doc test"
+
+COMMON_DEPEND="
+ app-crypt/qca:2[debug?,qt5]
+ dev-qt/qtnetwork:5
+"
+DEPEND="${COMMON_DEPEND}
+ doc? ( app-doc/doxygen )
+ test? ( dev-qt/qttest:5 )
+"
+RDEPEND="${COMMON_DEPEND}
+ app-crypt/qca:2[ssl]
+ !dev-libs/qoauth:0
+"
+
+# disable functional tests that require network connection
+# and rely on 3rd party external server (bug #341267)
+PATCHES=(
+ "${FILESDIR}/${PN}-1.0.1-disable-ft.patch"
+ "${FILESDIR}/${P}-prf.patch"
+)
+
+src_prepare() {
+ default
+
+ if ! use test; then
+ sed -i -e '/SUBDIRS/s/tests//' ${PN}.pro || die "sed failed"
+ fi
+
+ sed -i -e '/^ *docs \\$/d' \
+ -e '/^ *build_all \\$/d' \
+ -e 's/^\#\(!macx\)/\1/' \
+ src/src.pro || die "sed failed"
+
+ sed -i -e "s/\(.*\)lib$/\1$(get_libdir)/" src/pcfile.sh || die "sed failed"
+}
+
+src_configure() {
+ eqmake5 qoauth.pro
+}
+
+src_install() {
+ if use doc; then
+ doxygen "${S}"/Doxyfile || die "failed to generate documentation"
+ HTML_DOCS=( "${S}"/doc/html/. )
+ fi
+
+ INSTALL_ROOT="${D}" default
+}