summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/qlipper')
-rw-r--r--x11-misc/qlipper/Manifest1
-rw-r--r--x11-misc/qlipper/files/qlipper-2.0.2-system-includes.patch18
-rw-r--r--x11-misc/qlipper/metadata.xml5
-rw-r--r--x11-misc/qlipper/qlipper-2.0.2.ebuild43
4 files changed, 67 insertions, 0 deletions
diff --git a/x11-misc/qlipper/Manifest b/x11-misc/qlipper/Manifest
new file mode 100644
index 00000000000..68f65edf951
--- /dev/null
+++ b/x11-misc/qlipper/Manifest
@@ -0,0 +1 @@
+DIST qlipper-2.0.2.tar.bz2 83544 SHA256 bd5463183966c6fee464b256b21f6e8397cd05faa20bd12719f7369a72c73958 SHA512 ac402f5d5fe77213192a59b0f52e780bf98f211868f88552a3bbcb400269714da42a5b13222a48aa0b8906c77100c8f5bf058dc159550e0d4a5575dc2917b268 WHIRLPOOL 87341e7172e3b5700a27e071d98fcf287b6cf795e99082707b73eaf4c4cc27e0da3c9e338d938b4a805f295e1163d51365a9f0373679787609ce986f536c91d7
diff --git a/x11-misc/qlipper/files/qlipper-2.0.2-system-includes.patch b/x11-misc/qlipper/files/qlipper-2.0.2-system-includes.patch
new file mode 100644
index 00000000000..1f478324e3f
--- /dev/null
+++ b/x11-misc/qlipper/files/qlipper-2.0.2-system-includes.patch
@@ -0,0 +1,18 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index a036f9b..92a471a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -187,9 +187,13 @@ include_directories (
+ )
+ if (NOT QTSINGLEAPPLICATION_FOUND)
+ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/qtsingleapplication)
++else ()
++ include_directories(${QTSINGLEAPPLICATION_INCLUDE_DIR})
+ endif (NOT QTSINGLEAPPLICATION_FOUND)
+ if (NOT QXT_FOUND)
+ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/qxt)
++else ()
++ include_directories(${QXT_INCLUDE_PATH})
+ endif (NOT QXT_FOUND)
+
+
diff --git a/x11-misc/qlipper/metadata.xml b/x11-misc/qlipper/metadata.xml
new file mode 100644
index 00000000000..dc439f7e84f
--- /dev/null
+++ b/x11-misc/qlipper/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>qt</herd>
+</pkgmetadata>
diff --git a/x11-misc/qlipper/qlipper-2.0.2.ebuild b/x11-misc/qlipper/qlipper-2.0.2.ebuild
new file mode 100644
index 00000000000..a1a4927fd6b
--- /dev/null
+++ b/x11-misc/qlipper/qlipper-2.0.2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PLOCALES="cs sr"
+
+inherit cmake-utils l10n
+
+DESCRIPTION="Lightweight and cross-platform clipboard history applet"
+HOMEPAGE="http://code.google.com/p/qlipper/"
+SRC_URI="http://qlipper.googlecode.com/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtsingleapplication[qt4(+),X]
+ x11-libs/libqxt
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${P}-system-includes.patch"
+)
+
+src_prepare() {
+ cmake-utils_src_prepare
+ l10n_for_each_disabled_locale_do rm_ts
+}
+
+src_configure() {
+ cmake-utils_src_configure INSTALL_PREFIX="${EPREFIX}"/usr
+}
+
+rm_ts() {
+ rm -f "${S}"/ts/${PN}.${1}.ts
+}