/[gentoo-x86]/sci-chemistry/gsim/gsim-0.20.1.ebuild
Gentoo

Contents of /sci-chemistry/gsim/gsim-0.20.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon May 21 15:08:27 2012 UTC (2 years, 3 months ago) by jlec
Branch: MAIN
Changes since 1.1: +11 -10 lines
sci-chemistry/gsim: Add missing dep, move to EAPI=4

(Portage version: 2.2.0_alpha107/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gsim/gsim-0.20.1.ebuild,v 1.1 2011/08/31 14:28:51 jlec Exp $
4
5 EAPI=4
6
7 inherit eutils qt4-r2
8
9 DESCRIPTION="Programm for visualisation and processing of experimental and simulated NMR spectra"
10 HOMEPAGE="http://sourceforge.net/projects/gsim/"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
16 IUSE="emf opengl"
17
18 RDEPEND="
19 dev-cpp/muParser
20 media-libs/freetype
21 sci-libs/libcmatrix
22 sci-libs/minuit
23 virtual/blas
24 x11-libs/qt-svg:4
25 emf? ( media-libs/libemf )
26 opengl? ( x11-libs/qt-opengl:4 )"
27 DEPEND="${RDEPEND}"
28
29 PATCHES=( "${FILESDIR}"/${PV}-build.conf.patch )
30 DOCS="release.txt README_GSIM.* quickstart.* changes.log programming.*"
31
32 src_prepare() {
33 edos2unix ${PN}.pro
34
35 qt4-r2_src_prepare
36
37 cat >> build.conf <<- EOF
38 INCLUDEPATH += "${EPREFIX}/usr/include/libcmatrixR3/" \
39 "${EPREFIX}/usr/include/Minuit2" \
40 "${EPREFIX}/usr/include"
41 LIBS += -lcmatrix -lMinuit2 -lmuparser $(pkg-config --libs cblas)
42 EOF
43
44 use opengl && echo "CONFIG+=use_opengl" >> build.conf
45
46 if use emf; then
47 cat >> build.conf <<- EOF
48 CONFIG+=use_emf
49 DEFINES+=USE_EMF_OUTPUT
50 LIBS += -L\"${EPREFIX}/usr/include/libEMF\" -lEMF
51 EOF
52 fi
53 sed \
54 -e "s:quickstart.pdf:../share/doc/${PF}/quickstart.pdf:g" \
55 -e "s:README_GSIM.pdf:../share/doc/${PF}/README_GSIM.pdf:g" \
56 -i mainform.h || die
57 }
58
59 src_install() {
60 qt4-r2_src_install
61 dobin ${PN}
62 insinto /usr/share/${PN}
63 doins -r images ${PN}.ico
64 insinto /usr/share/${PN}/ui
65 doins *.ui
66 }

  ViewVC Help
Powered by ViewVC 1.1.20