diff options
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/megatools/Manifest | 1 | ||||
l--------- | net-misc/megatools/megatools-1.10.3-r1.ebuild | 1 | ||||
-rw-r--r-- | net-misc/megatools/megatools-9999.ebuild | 70 | ||||
-rw-r--r-- | net-misc/megatools/metadata.xml | 13 |
4 files changed, 85 insertions, 0 deletions
diff --git a/net-misc/megatools/Manifest b/net-misc/megatools/Manifest new file mode 100644 index 0000000..c669a37 --- /dev/null +++ b/net-misc/megatools/Manifest @@ -0,0 +1 @@ +DIST megatools-1.10.3.tar.gz 196361 BLAKE2B 49d7658714074253ab93134bd9fbb6f73a9101e362f219c4394cfe599deeb3cb2ccf01afb89db75691299271fa9dbfdf004abd6dfe26d2a0fda783282561ff51 SHA512 cf431e151f3f7e1a77fcfe07092694f861eca43ab88bb4e0d4de72f01662e9140c51891f8f5cf3cf66d3a04b64a55d57fd766c3febf2fc5cee1720558ff2079b diff --git a/net-misc/megatools/megatools-1.10.3-r1.ebuild b/net-misc/megatools/megatools-1.10.3-r1.ebuild new file mode 120000 index 0000000..e5b1c7e --- /dev/null +++ b/net-misc/megatools/megatools-1.10.3-r1.ebuild @@ -0,0 +1 @@ +megatools-9999.ebuild \ No newline at end of file diff --git a/net-misc/megatools/megatools-9999.ebuild b/net-misc/megatools/megatools-9999.ebuild new file mode 100644 index 0000000..8929e88 --- /dev/null +++ b/net-misc/megatools/megatools-9999.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +if [[ ${PV} == *9999 ]]; then + SCM="git-r3" + EGIT_REPO_URI="https://megous.com/git/megatools" +fi + +if [[ ${PV} != *9999 ]]; then + BUILDSYS="autotools" +else + BUILDSYS="meson" +fi + +inherit ${BUILDSYS} ${SCM} + +DESCRIPTION="Open-source command line tools for accessing Mega.co.nz cloud storage" +HOMEPAGE="https://megatools.megous.com" + +if [[ ${PV} == *9999 ]]; then + SRC_URI="" + KEYWORDS="" +else + SRC_URI="https://megatools.megous.com/builds/megatools-${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="libressl symlinks" + +DEPEND=" + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + dev-libs/glib:2 + net-misc/curl +" +RDEPEND="${DEPEND} + net-libs/glib-networking[ssl] +" +BDEPEND=" + app-text/asciidoc + virtual/pkgconfig +" + +src_prepare() { + default + + if [[ ${PV} != *9999 ]]; then + sed -e "/^AC_PROG_CC/ a AM_PROG_AR" -i configure.ac || die + eautoreconf + else + sed -e '/^install_data/{N;N;d;}' -i meson.build || die + fi +} + +src_configure() { + default + + if [[ ${PV} != *9999 ]]; then + econf \ + --disable-maintainer-mode \ + --disable-warnings + else + local emesonargs=$(meson_use symlinks) + meson_src_configure + fi +} diff --git a/net-misc/megatools/metadata.xml b/net-misc/megatools/metadata.xml new file mode 100644 index 0000000..d7942f6 --- /dev/null +++ b/net-misc/megatools/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>azat@bahawi.net</email> + <name>Azat Bahawi</name> + </maintainer> + <use> + <flag name="symlinks"> + Install symlinks for compatibility with old megatools commands (megals, megacopy, megadl, ...) + </flag> + </use> +</pkgmetadata> |