diff --git a/README.md b/README.md index 399a2456..316b9bad 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,15 @@ wget https://github.com/ldc-developers/ldc/releases/download/v1.10.0/ldc2-1.10.0 tar -xvf ldc2-1.10.0-linux-armhf.tar.xz ``` +### Dependencies: Gentoo +``` +sudo emerge app-portage/layman +sudo layman -a dlang + +Add ebuild from contrib/gentoo to a local overlay to use. + +``` + ## Compilation & Installation ### Building using DMD Reference Compiler: Before cloning and compiling, if you have installed DMD via curl for your OS, you will need to activate DMD as per example below: diff --git a/contrib/gentoo/onedrive-2.0.2.ebuild b/contrib/gentoo/onedrive-2.0.2.ebuild new file mode 100644 index 00000000..1ff329ee --- /dev/null +++ b/contrib/gentoo/onedrive-2.0.2.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Onedrive sync client for Linux" +HOMEPAGE="https://github.com/abraunegg/onedrive" +SRC_URI="https://github.com/abraunegg/onedrive/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=" + || ( + dev-util/dub[dmd-2_080] + dev-util/dub[dmd-2_079] + dev-util/dub[dmd-2_078] + dev-util/dub[dmd-2_076] + dev-util/dub[dmd-2_075] + dev-util/dub[dmd-2_074] +) + dev-db/sqlite +" + +RDEPEND="${DEPEND} + net-misc/curl + " +src_prepare() { + default + # Update the makefile so that it doesnt use git commands to get the version during build. + sed -i -e "s/version:.*/version:/" \ + -e "\$s/.*/\techo v${PV} > version/" \ + Makefile +}