summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Huber <johu@gentoo.org>2013-05-29 23:20:33 +0000
committerJohannes Huber <johu@gentoo.org>2013-05-29 23:20:33 +0000
commit18442d8d350e1b19044f584fd003d87a6d58d7b8 (patch)
tree57d4894d2b27465289f736b271168e8b9611512a /dev-libs/qtkeychain
parentDev channel bump. Fix bug #471292 by Dan Douglas. (diff)
downloadgentoo-2-18442d8d350e1b19044f584fd003d87a6d58d7b8.tar.gz
gentoo-2-18442d8d350e1b19044f584fd003d87a6d58d7b8.tar.bz2
gentoo-2-18442d8d350e1b19044f584fd003d87a6d58d7b8.zip
New package. Ebuild by me.
(Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key F3CFD2BD)
Diffstat (limited to 'dev-libs/qtkeychain')
-rw-r--r--dev-libs/qtkeychain/ChangeLog10
-rw-r--r--dev-libs/qtkeychain/files/qtkeychain-0.1.0-qt5.patch35
-rw-r--r--dev-libs/qtkeychain/metadata.xml8
-rw-r--r--dev-libs/qtkeychain/qtkeychain-0.1.0.ebuild30
4 files changed, 83 insertions, 0 deletions
diff --git a/dev-libs/qtkeychain/ChangeLog b/dev-libs/qtkeychain/ChangeLog
new file mode 100644
index 000000000000..aa0fde0a67de
--- /dev/null
+++ b/dev-libs/qtkeychain/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-libs/qtkeychain
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/qtkeychain/ChangeLog,v 1.1 2013/05/29 23:20:33 johu Exp $
+
+*qtkeychain-0.1.0 (29 May 2013)
+
+ 29 May 2013; Johannes Huber <johu@gentoo.org> +qtkeychain-0.1.0.ebuild,
+ +files/qtkeychain-0.1.0-qt5.patch, +metadata.xml:
+ New package. Ebuild by me.
+
diff --git a/dev-libs/qtkeychain/files/qtkeychain-0.1.0-qt5.patch b/dev-libs/qtkeychain/files/qtkeychain-0.1.0-qt5.patch
new file mode 100644
index 000000000000..2ec9861fba1a
--- /dev/null
+++ b/dev-libs/qtkeychain/files/qtkeychain-0.1.0-qt5.patch
@@ -0,0 +1,35 @@
+From 69638a5ddb725c4f8000f86546d5d41f2917fe40 Mon Sep 17 00:00:00 2001
+From: Johannes Huber <johu@gentoo.org>
+Date: Thu, 30 May 2013 00:03:45 +0200
+Subject: [PATCH] Add Qt5 build option.
+
+* removes automagic build when Qt4 + Qt5 is installed on system
+---
+ CMakeLists.txt | 10 +++++++++-
+ 1 file changed, 9 insertions(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index aba9032..f601a11 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -11,8 +11,16 @@ set(QTKEYCHAIN_SOVERSION 0)
+ set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${PROJECT_SOURCE_DIR}/cmake/Modules")
+ include(GNUInstallDirs)
+
++option(QT5_BUILD "Build qtkeychain using the Qt5 framework" TRUE)
++
++if(QT5_BUILD)
++ find_package(Qt5Core QUIET)
++else()
++ find_package(Qt4 REQUIRED)
++ include(${QT_USE_FILE})
++endif()
++
+ # try Qt5 first, and prefer that if found
+-find_package(Qt5Core QUIET)
+ if (Qt5Core_FOUND)
+ if(UNIX AND NOT APPLE)
+ find_package(Qt5DBus REQUIRED)
+--
+1.8.2.1
+
diff --git a/dev-libs/qtkeychain/metadata.xml b/dev-libs/qtkeychain/metadata.xml
new file mode 100644
index 000000000000..4a53d4889ca6
--- /dev/null
+++ b/dev-libs/qtkeychain/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>
+ <email>johu@gentoo.org</email>
+ <name>Johannes Huber</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-libs/qtkeychain/qtkeychain-0.1.0.ebuild b/dev-libs/qtkeychain/qtkeychain-0.1.0.ebuild
new file mode 100644
index 000000000000..11113281d335
--- /dev/null
+++ b/dev-libs/qtkeychain/qtkeychain-0.1.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/qtkeychain/qtkeychain-0.1.0.ebuild,v 1.1 2013/05/29 23:20:33 johu Exp $
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="Qt API for storing passwords securely"
+HOMEPAGE="https://github.com/frankosterfeld/qtkeychain"
+SRC_URI="https://github.com/frankosterfeld/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ dev-qt/qtcore:4
+ dev-qt/qtdbus:4
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-qt5.patch" )
+
+src_configure() {
+ local mycmakeargs=( -DQT5_BUILD=OFF )
+
+ cmake-utils_src_configure
+}