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

Collapse All | Expand All

(-)file_not_specified_in_diff (-21 / +23 lines)
Line  Link Here
0
-- udav-0.7.1.2.ebuild
0
++ udav-0.7.1.2.ebuild
Lines 2-40 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sci-visualization/udav/udav-0.7.1.2.ebuild,v 1.1 2011/06/04 20:18:08 grozin Exp $
3
# $Header: /var/cvsroot/gentoo-x86/sci-visualization/udav/udav-0.7.1.2.ebuild,v 1.1 2011/06/04 20:18:08 grozin Exp $
4
4
5
EAPI=2
5
EAPI=4
6
inherit qt4 fdo-mime
6
LANGS="ru"
7
8
inherit qt4-r2
7
9
8
DESCRIPTION="Universal Data Array Visualization"
10
DESCRIPTION="Universal Data Array Visualization"
9
HOMEPAGE="http://udav.sourceforge.net/"
11
HOMEPAGE="http://udav.sourceforge.net/"
12
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
13
10
LICENSE="GPL-2"
14
LICENSE="GPL-2"
11
SLOT="0"
15
SLOT="0"
12
KEYWORDS="~amd64 ~x86"
16
KEYWORDS="~amd64 ~x86"
13
IUSE=""
17
IUSE=""
14
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
15
RDEPEND=">=sci-libs/mathgl-1.10.2[qt4,hdf5]"
16
DEPEND="${RDEPEND}"
17
18
18
src_prepare() {
19
DEPEND="sci-libs/hdf5
19
	epatch "${FILESDIR}"/${P}-pro.patch
20
	>=sci-libs/mathgl-1.10.2[hdf5,gsl,qt4]
20
}
21
	x11-libs/qt-core:4
22
	x11-libs/qt-gui:4"
23
RDEPEND="${DEPEND}"
24
25
PATCHES=(
26
	"${FILESDIR}/${P}-desktopfile.patch"
27
	"${FILESDIR}/${P}-pro.patch"
28
)
21
29
22
src_compile() {
30
src_prepare() {
23
	eqmake4
31
	qt4-r2_src_prepare
24
	emake || die "emake failed"
32
	if ! use linguas_ru ; then
33
		sed -e '/udav_ru.qm$/d' -i src/src.pro || die "sed failed"
34
	fi
25
}
35
}
26
36
27
src_install() {
37
src_install() {
28
	emake INSTALL_ROOT="${D}" install || die "emake install failed"
38
	emake INSTALL_ROOT="${D}" install
29
39
30
	dosym /usr/share/icons/hicolor/64x64/apps/${PN}.png \
40
	dosym /usr/share/icons/hicolor/64x64/apps/${PN}.png \
31
		/usr/share/pixmaps/${PN}.png
41
		/usr/share/pixmaps/${PN}.png
32
}
42
}
33
34
pkg_postinst() {
35
	fdo-mime_desktop_database_update
36
}
37
38
pkg_postrm() {
39
	fdo-mime_desktop_database_update
40
}

Return to bug 413551