summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-05-14 13:23:14 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-05-14 13:23:14 +0100
commitd4f9fcb43e17d54b93bdc16cdc454a57c202974f (patch)
tree03416b92a943445035033b31e605e64e64a7e36b
parenta2f572191e7d2459c062ccff0739107bad13ed06 (diff)
dev-qt/qtlockedfile : import from gentoo tree
-rw-r--r--dev-qt/qtlockedfile/Manifest1
-rw-r--r--dev-qt/qtlockedfile/files/qtlockedfile.prf6
-rw-r--r--dev-qt/qtlockedfile/qtlockedfile-2.4.1_p20171024-r1.ebuild52
3 files changed, 59 insertions, 0 deletions
diff --git a/dev-qt/qtlockedfile/Manifest b/dev-qt/qtlockedfile/Manifest
new file mode 100644
index 00000000..45d4d15e
--- /dev/null
+++ b/dev-qt/qtlockedfile/Manifest
@@ -0,0 +1 @@
+DIST qt-solutions-20171024.tar.xz 710532 BLAKE2B 365f4c6fc3bee34bf26ac5039984ceac1d90527297b985b0d1b606f3ba67219bab7f7cba40b4adca55446c34e9f4fe218b4449ee255ba6f6409de78f80ccdaec SHA512 4784d88c2f40c88f06abeb728842875fb5e428a630dbf749f71055681b0c631803d2901b60aa8cc95f5f382dcd21da8d739873aa45e3dd3676ee95925f0198da
diff --git a/dev-qt/qtlockedfile/files/qtlockedfile.prf b/dev-qt/qtlockedfile/files/qtlockedfile.prf
new file mode 100644
index 00000000..93d656e6
--- /dev/null
+++ b/dev-qt/qtlockedfile/files/qtlockedfile.prf
@@ -0,0 +1,6 @@
+INCLUDEPATH *= $$[QT_INSTALL_HEADERS]/QtSolutions
+greaterThan(QT_MAJOR_VERSION, 4) {
+LIBS *= -lQt$${QT_MAJOR_VERSION}Solutions_LockedFile-2.4
+} else {
+LIBS *= -lQtSolutions_LockedFile-2.4
+}
diff --git a/dev-qt/qtlockedfile/qtlockedfile-2.4.1_p20171024-r1.ebuild b/dev-qt/qtlockedfile/qtlockedfile-2.4.1_p20171024-r1.ebuild
new file mode 100644
index 00000000..aecc05cf
--- /dev/null
+++ b/dev-qt/qtlockedfile/qtlockedfile-2.4.1_p20171024-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit qmake-utils
+
+MY_P=qt-solutions-${PV#*_p}
+
+DESCRIPTION="QFile extension with advisory locking functions"
+HOMEPAGE="https://code.qt.io/cgit/qt-solutions/qt-solutions.git/"
+SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.xz"
+
+LICENSE="|| ( LGPL-2.1 GPL-3 )"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~hppa ~ppc ~ppc64 x86"
+IUSE="doc"
+
+DEPEND="dev-qt/qtcore:5"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}/${PN}"
+
+src_prepare() {
+ default
+
+ echo 'SOLUTIONS_LIBRARY = yes' > config.pri
+ echo 'QT -= gui' >> src/qtlockedfile.pri
+
+ sed -i -e "s/-head/-${PV%.*}/" common.pri || die
+ sed -i -e '/SUBDIRS+=example/d' ${PN}.pro || die
+}
+
+src_configure() {
+ eqmake5
+}
+
+src_install() {
+ use doc && local HTML_DOCS=( doc/html/. )
+ einstalldocs
+
+ # libraries
+ dolib.so lib/*
+
+ # headers
+ insinto "$(qt5_get_headerdir)"/QtSolutions
+ doins src/QtLockedFile src/${PN}.h
+
+ # .prf files
+ insinto "$(qt5_get_mkspecsdir)"/features
+ doins "${FILESDIR}"/${PN}.prf
+}