Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 45189
Collapse All | Expand All

(-)/usr/portage/app-sci/scilab/scilab-2.7-r3.ebuild (-6 / +9 lines)
Lines 12-18 Link Here
12
LICENSE="scilab"
12
LICENSE="scilab"
13
SLOT="0"
13
SLOT="0"
14
KEYWORDS="~x86"
14
KEYWORDS="~x86"
15
IUSE="tcltk gtk"
15
IUSE="tcltk gtk atlas"
16
16
17
DEPEND="virtual/x11
17
DEPEND="virtual/x11
18
	x11-libs/Xaw3d
18
	x11-libs/Xaw3d
Lines 23-37 Link Here
23
			>=dev-libs/glib-2.2
23
			>=dev-libs/glib-2.2
24
			media-libs/jpeg
24
			media-libs/jpeg
25
			media-libs/libpng
25
			media-libs/libpng
26
			sys-libs/zlib )"
26
			sys-libs/zlib )
27
	atlas? ( dev-libs/atlas )"
27
28
28
pkg_setup() {
29
pkg_setup() {
29
	local SCLB
30
	# The following test is due to a bogus pkg_postrm in scilab-2.7-r0/r1,
30
	SCLB=`which scilab`
31
	# that interferes with upgrades to higher 2.7 versions.
31
	if [ -e "${SCLB}" ]; then
32
	# Remove this warning in 2.8 and later versions.
33
	if has_version "<app-sci/scilab-2.7-r2"; then
32
		ewarn "Previous version of scilab was detected on your system"
34
		ewarn "Previous version of scilab was detected on your system"
33
		ewarn "Unfortunately these versions cause problems for newer ones during update"
35
		ewarn "Unfortunately these versions cause problems for newer ones during update"
34
		ewarn 'Please uninstall it with "emerge unmerge scilab" before continuig'
36
		ewarn 'Please uninstall it with "emerge unmerge scilab" before continuing'
35
		die
37
		die
36
	fi
38
	fi
37
}
39
}
Lines 46-51 Link Here
46
48
47
	use tcltk || myopts="${myopts} --without-tk"
49
	use tcltk || myopts="${myopts} --without-tk"
48
	use gtk && myopts="${myopts} --with-gtk" || myopts="${myopts} --without-gtk"
50
	use gtk && myopts="${myopts} --with-gtk" || myopts="${myopts} --without-gtk"
51
	use atlas && myopts="${myopts} --with-atlas-library=/usr/lib"
49
52
50
	econf ${myopts} || die "./configure failed"
53
	econf ${myopts} || die "./configure failed"
51
	export HOME=${S}
54
	export HOME=${S}

Return to bug 45189