summaryrefslogtreecommitdiff
path: root/dev-qt/qtlockedfile
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-qt/qtlockedfile
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-qt/qtlockedfile')
-rw-r--r--dev-qt/qtlockedfile/Manifest6
-rw-r--r--dev-qt/qtlockedfile/files/qtlockedfile.prf6
-rw-r--r--dev-qt/qtlockedfile/metadata.xml8
-rw-r--r--dev-qt/qtlockedfile/qtlockedfile-2.4.1_p20150629.ebuild76
4 files changed, 96 insertions, 0 deletions
diff --git a/dev-qt/qtlockedfile/Manifest b/dev-qt/qtlockedfile/Manifest
new file mode 100644
index 000000000000..dcc4aae7f680
--- /dev/null
+++ b/dev-qt/qtlockedfile/Manifest
@@ -0,0 +1,6 @@
+AUX qtlockedfile.prf 190 SHA256 04a45f27023aad55d51372bd5c6adb1c8090ea32e408f993dd1b9d7bf6fc0572 SHA512 efd51aa88a40ad5615d3ae9122a360997a3d32e3f212e7d9c1c2cf9e42984a1e4b9ccff02c6ddc1e8926104527004536ad848c5ef24bc28a93eb556d99235696 WHIRLPOOL 9e5aa3cdb12730a30438c755c2e98b62f884162acf45fc4b88a95d623df659561de32583ad86cfc743422c6b30c8dfb099449a24cfaf4a7b4733c5100535b301
+DIST qt-solutions-20150629.tar.xz 710488 SHA256 cfa88a67c8396878eaa98f39b7648482fabb73988549cc404816c29212cf6503 SHA512 a95ed58f0218cd90d734a40eedd173b896fa0138ad235f3157d7bee538b16c5f385d93bae483fd22267f2984389b9940bb85ba0cd3d25c16124d56abb39568f5 WHIRLPOOL 23a273cfa2d0bc3834487c9e325c73d0038877c5a5085493ceb37ee5dc03cc4d2cddf4f46f5a89045fcbfe7f6dd03b678d56f3167fb750374d44879f11ded8b7
+EBUILD qtlockedfile-2.4.1_p20150629.ebuild 1601 SHA256 dd138d327e07912638f327befa54a287b4617e920410076c6d929e0b999a6789 SHA512 78b54de3c06fe968feea83d0ac888e34b7c3e55cb757c07ca625537b6f0ddc91bfb0ac7aa52ec77bfc5f36268d065f16af136166a34983029533200d23e48b8f WHIRLPOOL 66639e92d30de0667792350f2a8dc30ed8041ff2637a8e6995d69bafb39969d48df3bbb656d7ecdf529a99d8a273c67e49238612b3acb452a8ee2771b146f711
+MISC ChangeLog 4129 SHA256 747e223a7137a155cf2b6a3c7cc13ee4ef04f258cf37ab12ec79c136168c8d97 SHA512 6dddb61dece9428f1ca59c1b3c2cd86f4fe6e6bec01eb6ec198f65456f9095c4cf2768cc79efa12d1c1f9a64a6ea0a4526bf5a636e7d394e53be5ed5b60cbb4b WHIRLPOOL ba0a4fe32ff95aab83cb507e50734766e9278ece39b7af4e8473f423269dd2e112ef26cf935ec4434061d7225bd38f781f520e9eb045cf7e04785b013f5df50f
+MISC ChangeLog-2015 3518 SHA256 a4797ce6b34f8bf6fb2e040243e225c0b3d039aaaaa307c44b291f117917ed7e SHA512 7a51b52f1616340f142b9febbf4a59303e27404363bf7a07b3fdeb6b29ac8a3bb1f0dce0d100dc52e885905b9fc204d12a53ea814e95bfd3f5d67e2eeafcf78f WHIRLPOOL dc48e5b6e9c5447a74c59f1a3f424bcaefe2124f3ef3be51c690e6cf009dfb1475e0d6de21771c8418e134e15754c0c3807db4ecabdbefa8b603a376330163f7
+MISC metadata.xml 247 SHA256 690d3e08cdd71b405f5361dfa3f33007ce9ec9d0ae7628e9271891da9e2bda92 SHA512 b43c8e84c3c753b49b203921a5aca792639a36d6efdbe16c069ff9abfbce0585718bb3824c03abdd7bd19ada13fb0a98a378c85ed369ac5fdc53ad3b3d5465d2 WHIRLPOOL dffc398d6bdbe8a8afc8863675a819a7bd69ae4d098ffbddad4c21ab8f1a850ab8ede71f98e34999b0605ad01ea93c8864cd681b50d3e153aa3d0901ddb10743
diff --git a/dev-qt/qtlockedfile/files/qtlockedfile.prf b/dev-qt/qtlockedfile/files/qtlockedfile.prf
new file mode 100644
index 000000000000..93d656e69586
--- /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/metadata.xml b/dev-qt/qtlockedfile/metadata.xml
new file mode 100644
index 000000000000..17237689dcfd
--- /dev/null
+++ b/dev-qt/qtlockedfile/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-qt/qtlockedfile/qtlockedfile-2.4.1_p20150629.ebuild b/dev-qt/qtlockedfile/qtlockedfile-2.4.1_p20150629.ebuild
new file mode 100644
index 000000000000..1edea2b80a88
--- /dev/null
+++ b/dev-qt/qtlockedfile/qtlockedfile-2.4.1_p20150629.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit multibuild 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 +qt4 qt5"
+
+REQUIRED_USE="|| ( qt4 qt5 )"
+
+DEPEND="
+ qt4? ( dev-qt/qtcore:4 )
+ qt5? ( dev-qt/qtcore:5 )
+"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}/${PN}
+
+pkg_setup() {
+ MULTIBUILD_VARIANTS=( $(usev qt4) $(usev qt5) )
+}
+
+src_prepare() {
+ 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
+
+ multibuild_copy_sources
+}
+
+src_configure() {
+ myconfigure() {
+ if [[ ${MULTIBUILD_VARIANT} == qt4 ]]; then
+ eqmake4
+ fi
+ if [[ ${MULTIBUILD_VARIANT} == qt5 ]]; then
+ eqmake5
+ fi
+ }
+ multibuild_foreach_variant run_in_build_dir myconfigure
+}
+
+src_compile() {
+ multibuild_foreach_variant run_in_build_dir default
+}
+
+src_install() {
+ dodoc README.TXT
+ use doc && dodoc -r doc/html
+
+ myinstall() {
+ # libraries
+ dolib.so lib/*
+
+ # headers
+ insinto "$(${MULTIBUILD_VARIANT}_get_headerdir)"/QtSolutions
+ doins src/QtLockedFile src/${PN}.h
+
+ # .prf files
+ insinto "$(${MULTIBUILD_VARIANT}_get_mkspecsdir)"/features
+ doins "${FILESDIR}"/${PN}.prf
+ }
+ multibuild_foreach_variant run_in_build_dir myinstall
+}