blob: 602a51ebd96b4e158d8ec5e2394f0b6e7efdab87 (
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
41
42
43
44
45
46
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/stow/stow-2.2.0-r2.ebuild,v 1.1 2015/03/06 12:28:58 maksbotan Exp $
EAPI="5"
inherit eutils
DESCRIPTION="Manage installation of software in /var/lib/"
HOMEPAGE="http://www.gnu.org/software/stow/"
SRC_URI="mirror://gnu/stow/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="test"
DEPEND="dev-lang/perl
test? (
virtual/perl-Test-Harness
dev-perl/Test-Output
)"
RDEPEND="dev-lang/perl"
src_prepare() {
epatch "${FILESDIR}/${P}-avoid-precedence-warning.patch"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed."
# create new STOWDIR
dodir /var/lib/stow
# install env.d file to add STOWDIR to PATH and LDPATH
doenvd "${FILESDIR}"/99stow || die "doenvd failed"
}
pkg_postinst() {
elog "We now recommend that you use /var/lib/stow as your STOWDIR"
elog "instead of /usr/local in order to avoid conflicts with the"
elog "symlink from /usr/lib64 -> /usr/lib. See Bug 246264 for"
elog "more details on this change."
elog "For your convenience, PATH has been updated to include"
elog "/var/lib/stow/bin."
}
|