summaryrefslogtreecommitdiff
blob: e85a70fad8b3ce192e82c0242c8d1713366ca2d7 (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
33
34
35
36
37
38
39
40
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit versionator

DESCRIPTION="A bash shell script framework"
HOMEPAGE="http://www.bashinator.org"

SRC_URI="https://github.com/wschlich/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="$(get_major_version)"

KEYWORDS="~amd64 ~x86"

DEPEND=""
RDEPEND="app-shells/bash
	sys-apps/coreutils"

src_compile() { :; }

src_install() {
	insinto /usr/share/${PN}
	doins ${PN}.lib.${SLOT}.sh
	dosym /usr/share/${PN}/${PN}.lib.${SLOT}.sh /usr/lib/${PN}.lib.${SLOT}.sh
	dodoc ChangeLog
	docinto example
	export PORTAGE_COMPRESS=
	dodoc example/*
}

pkg_postinstall() {
	ewarn "Please notice that the bashinator script library has been moved"
	ewarn "from ${ROOT}usr/lib to ${ROOT}usr/share."
	ewarn "For compatiblity reasons, a symlink from the old location to the"
	ewarn "new location has been created."
	ewarn "Please update your scripts accordingly."
}