mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-19 14:16:36 +02:00
ebuild for Gentoo users. (#101)
* Add gentoo ebuild * Updated readme for Gentoo
This commit is contained in:
parent
2a113de66c
commit
b2270ee696
|
@ -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:
|
||||
|
|
36
contrib/gentoo/onedrive-2.0.2.ebuild
Normal file
36
contrib/gentoo/onedrive-2.0.2.ebuild
Normal file
|
@ -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
|
||||
}
|
Loading…
Reference in a new issue