summaryrefslogtreecommitdiff
blob: da6a9107ca85366ab3027cb30707d6ae88c4b242 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
RESTRICT="mirror"

DESCRIPTION="postsync hooks for portage to sync from git"
HOMEPAGE="https://github.com/vaeth/portage-postsyncd-mv/"
SRC_URI="https://github.com/vaeth/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

src_prepare() {
	use prefix || sed -i \
			-e '1s"^#!/usr/bin/env sh$"#!'"${EPREFIX}/bin/sh"'"' \
			-- etc/portage/repo.postsync.d/*-* || die
	eapply_user
}

src_install() {
	dodoc README
	insinto /etc/portage/repo.postsync.d
	doins etc/portage/repo.postsync.d/README
	docompress /etc/portage/repo.postsync.d/README
	exeinto /etc/portage/repo.postsync.d
	doexe etc/portage/repo.postsync.d/*-*
	insinto /lib/gentoo
	doins lib/gentoo/*
}