/[gentoo-x86]/dev-cpp/muParser/muParser-2.2.2.ebuild
Gentoo

Contents of /dev-cpp/muParser/muParser-2.2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu May 10 17:54:29 2012 UTC (2 years, 4 months ago) by bicatali
Branch: MAIN
Version bump

(Portage version: 2.1.10.56/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/dev-cpp/muParser/muParser-2.1.0.ebuild,v 1.3 2011/12/17 05:57:47 grozin Exp $
4
5 EAPI=4
6
7 inherit eutils
8
9 MY_PN=${PN/P/p}
10 MY_P=${MY_PN}_v${PV/./}
11
12 DESCRIPTION="Library for parsing mathematical expressions"
13 HOMEPAGE="http://muparser.sourceforge.net/"
14 SRC_URI="mirror://sourceforge/${PN/P/p}/${PN/P/p}/Version%20${PV}/${PN/P/p}_v${PV//./_}.zip"
15
16 LICENSE="MIT"
17 SLOT="0"
18 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
19 IUSE="doc test"
20
21 RDEPEND=""
22 DEPEND="app-arch/unzip"
23
24 S="${WORKDIR}"/${PN/P/p}_v${PV//./_}
25
26 src_prepare() {
27 epatch \
28 "${FILESDIR}"/${PN}-1.32-build.patch \
29 "${FILESDIR}"/${PN}-1.32-parallel-build.patch
30 sed -i \
31 -e 's:-O2::g' \
32 configure || die
33 }
34
35 src_configure() {
36 chmod +x configure || die
37 econf $(use_enable test samples)
38 }
39
40 src_test() {
41 cat > test.sh <<- EOFTEST
42 LD_LIBRARY_PATH=${S}/lib samples/example1/example1 <<- EOF
43 quit
44 EOF
45 EOFTEST
46 sh ./test.sh || die "test failed"
47 }
48
49 src_install() {
50 default
51 dodoc Changes.txt
52 use doc && dohtml -r docs/html/*
53 }

  ViewVC Help
Powered by ViewVC 1.1.20