From 39d6d16eae08ca6992071aa60714905b036f9d46 Mon Sep 17 00:00:00 2001 From: Espen Henriksen Date: Sat, 23 Apr 2016 18:30:37 +0200 Subject: [PATCH 1/2] #9 Add gentoo ebuild --- README.md | 14 ++++++++++++++ gentoo/Manifest | 1 + gentoo/yadm-1.04.ebuild | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 gentoo/Manifest create mode 100644 gentoo/yadm-1.04.ebuild diff --git a/README.md b/README.md index 7c1b706..3b71e10 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,20 @@ Or if not using yum, you can just directly download the RPM yaourt -S yadm +#### Gentoo Linux + +**yadm** is not yet available in the main gentoo portage tree, however an ebuild +is available for you to use + + mkdir -p /usr/local/portage/app-admin/yadm + cp /gentoo/* /usr/local/portage/app-admin/yadm/ + emerge -atv app-admin/yadm + +If you have not configured portage to use `/usr/local/portage` as your local +repository, you also need to add this to the portage `make.conf` + + echo 'PORTDIR_OVERLAY="/usr/local/portage"' >> /etc/portage/make.conf + #### Other You *can* simply download the **yadm** script and put it into your `$PATH`. Something like this: diff --git a/gentoo/Manifest b/gentoo/Manifest new file mode 100644 index 0000000..227ed55 --- /dev/null +++ b/gentoo/Manifest @@ -0,0 +1 @@ +DIST yadm-1.04.tar.gz 27391 SHA256 a73aa51245866ce67aeb4322a62995ebbb13f29dc35508f486819dceb534968a SHA512 f3f909118f29382c6cbae565de336c27fd7d159955a231ac22b0d25e25e50c4c3e1bdc68b1629920904ad9353ee8ce8f7e5c5e50d289984447815a685a4132c9 WHIRLPOOL c74c2bfc89abb6955bb4e0d60b1cb0777c9f9ec43bc1919c130cd8470e44c090fba9003e473f4344ed92df23e399ea45ece6dafde80d575a8af491bb4c16b554 diff --git a/gentoo/yadm-1.04.ebuild b/gentoo/yadm-1.04.ebuild new file mode 100644 index 0000000..298e43b --- /dev/null +++ b/gentoo/yadm-1.04.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Yet Another Dotfiles Manager" +HOMEPAGE="https://github.com/TheLocehiliosan/yadm/" +SRC_URI="https://github.com/TheLocehiliosan/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPLv3" +SLOT="0" +KEYWORDS="amd64 x86 ~alpha ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc" +IUSE="doc" + +DOCS=( CHANGES CONTRIBUTORS yadm.md README.md ) + +DEPEND="dev-vcs/git +app-shells/bash" +RDEPEND="${DEPEND}" + +src_compile() { + # Bash scripts don't need to compile + true +} + +src_install() { + if use doc; then + dodoc "${DOCS[@]}" + fi + + dobin yadm + doman yadm.1 +} + From 18ce904b9e66bf201d3074c9a798e95917d1cd34 Mon Sep 17 00:00:00 2001 From: Espen Henriksen Date: Sat, 23 Apr 2016 20:44:54 +0200 Subject: [PATCH 2/2] Use curl for Gentoo install --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3b71e10..e70affa 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,8 @@ Or if not using yum, you can just directly download the RPM is available for you to use mkdir -p /usr/local/portage/app-admin/yadm - cp /gentoo/* /usr/local/portage/app-admin/yadm/ + cd $_ + curl -O 'https://raw.githubusercontent.com/TheLocehiliosan/yadm/master/gentoo/yadm-1.04.ebuild' -O 'https://raw.githubusercontent.com/TheLocehiliosan/yadm/master/gentoo/Manifest' emerge -atv app-admin/yadm If you have not configured portage to use `/usr/local/portage` as your local