summaryrefslogtreecommitdiff
path: root/net-misc/meganz-sdk/meganz-sdk-3.3.3.ebuild
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-04-18 02:33:34 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-04-18 02:33:34 +0100
commit7fa6a1c83e51e371879d3215f59e43334f920069 (patch)
treefbb69385f96d1dc2b15362388e0293ffff8bbe7e /net-misc/meganz-sdk/meganz-sdk-3.3.3.ebuild
parent664390e8fd3aa014cca600bd436870416fef5620 (diff)
net-misc/meganz-sdk : new package
Diffstat (limited to 'net-misc/meganz-sdk/meganz-sdk-3.3.3.ebuild')
-rw-r--r--net-misc/meganz-sdk/meganz-sdk-3.3.3.ebuild71
1 files changed, 71 insertions, 0 deletions
diff --git a/net-misc/meganz-sdk/meganz-sdk-3.3.3.ebuild b/net-misc/meganz-sdk/meganz-sdk-3.3.3.ebuild
new file mode 100644
index 00000000..9bb73de7
--- /dev/null
+++ b/net-misc/meganz-sdk/meganz-sdk-3.3.3.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit flag-o-matic qmake-utils autotools db-use
+DESCRIPTION="MEGA C++ SDK"
+HOMEPAGE="https://github.com/meganz/sdk"
+SRC_URI="https://github.com/meganz/sdk/archive/v3.3.3.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+IUSE="freeimage fuse hardened inotify libuv mediainfo +qt +sqlite"
+
+KEYWORDS="~amd64"
+
+DEPEND="
+ dev-libs/crypto++
+ sys-libs/zlib
+ dev-libs/libpcre:3[cxx]
+ dev-libs/openssl:0
+ net-dns/c-ares
+ net-misc/curl
+ sqlite? ( dev-db/sqlite:3 )
+ !sqlite? ( sys-libs/db:*[cxx] )
+ freeimage? ( media-libs/freeimage )
+ libuv? ( dev-libs/libuv )
+ dev-libs/libsodium
+ mediainfo? ( media-libs/libmediainfo )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"/sdk-"${PV}"
+
+pkg_setup() {
+ use sqlite || append-cppflags "-I$(db_includedir)"
+}
+
+src_prepare() {
+ default
+ use qt && sed \
+ -e '/SOURCES += src\// s:+:-:' \
+ -e '/!exists.*config.h/ s:!::' \
+ -e 's:-lsqlite3 -lrt:-lmega &:' \
+ -i bindings/qt/sdk.pri
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --enable-chat
+ --disable-examples
+ $(use_enable inotify)
+ $(use_enable hardened gcc-hardening)
+ $(use_with libuv)
+ $(use_with !sqlite db)
+ $(use_with sqlite)
+ $(use_with freeimage)
+ $(use_with fuse)
+ $(use_with mediainfo libmediainfo)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+ doheader -r include/mega
+
+ use qt || return
+ insinto /usr/share/${PN}/bindings/qt
+ doins bindings/qt/*.{h,cpp,pri}
+}