Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 355507 | Differences between
and this patch

Collapse All | Expand All

(-)maven-bin-2.0.10.ebuild (-2 / +16 lines)
Lines 14-20 LICENSE="Apache-2.0" Link Here
14
SLOT="2.0"
14
SLOT="2.0"
15
KEYWORDS="amd64 ppc x86"
15
KEYWORDS="amd64 ppc x86"
16
16
17
RDEPEND=">=virtual/jdk-1.4"
17
RDEPEND=">=virtual/jdk-1.4
18
	app-admin/eselect-maven"
18
19
19
IUSE=""
20
IUSE=""
20
21
Lines 39-43 src_install() { Link Here
39
	dodoc NOTICE.txt README.txt || die
40
	dodoc NOTICE.txt README.txt || die
40
41
41
	dodir /usr/bin
42
	dodir /usr/bin
42
	dosym "${MAVEN_SHARE}/bin/mvn" /usr/bin/mvn
43
	dosym "${MAVEN_SHARE}/bin/mvn" /usr/bin/mvn-${SLOT}
43
}
44
}
45
46
pkg_postinst() {
47
        if [[ ! -n $(readlink "${ROOT}"usr/bin/mvn) ]] ; then
48
                eselect maven set mvn-${SLOT}
49
        else
50
                einfo "${ROOT}usr/bin/mvn symbolic link already exists. Run 'eselect maven update <target>' if you want to update the symlink."
51
        fi
52
}
53
54
pkg_postrm() {
55
       eselect maven update
56
}
57

Return to bug 355507