/[gentoo-x86]/dev-lang/maude/maude-2.3.0.ebuild
Gentoo

Contents of /dev-lang/maude/maude-2.3.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Tue Feb 10 05:01:37 2009 UTC (4 years, 3 months ago) by dirtyepic
Branch: MAIN
Changes since 1.2: +9 -2 lines
Fix building with GCC 4.3 for bug #227529
(Portage version: 2.2_rc23/cvs/Linux x86_64)

1 dirtyepic 1.3 # Copyright 1999-2009 Gentoo Foundation
2 markusle 1.1 # Distributed under the terms of the GNU General Public License v2
3 dirtyepic 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-lang/maude/maude-2.3.0.ebuild,v 1.2 2008/06/04 15:55:37 mr_bones_ Exp $
4 markusle 1.1
5     inherit toolchain-funcs eutils versionator
6    
7     MY_PN="${PN/m/M}"
8     MY_PV=$(get_version_component_range 1-2)
9    
10     DESCRIPTION="Maude - A high-level specification language"
11     HOMEPAGE="http://maude.cs.uiuc.edu/"
12     SRC_URI="http://maude.cs.uiuc.edu/download/current/${MY_PN}-${MY_PV}.tar.gz
13     mirror://gentoo/${P}-extras.tar.bz2"
14    
15     LICENSE="GPL-2"
16     SLOT="0"
17     KEYWORDS="~x86 ~ppc ~amd64"
18    
19     IUSE="doc"
20    
21     RDEPEND="sci-libs/buddy
22     dev-libs/libtecla
23     >=dev-libs/gmp-4.1.3"
24    
25     DEPEND="${RDEPEND}
26     sys-devel/bison
27     sys-devel/flex"
28    
29     S="${WORKDIR}"/${MY_PN}-${MY_PV}
30    
31 dirtyepic 1.3 src_unpack() {
32     unpack ${A}
33     cd "${S}"
34    
35     epatch "${FILESDIR}"/${P}-gcc43.patch
36     }
37    
38 markusle 1.1 src_compile() {
39     econf || die "econf failed"
40     emake -j1 || die "emake failed"
41     }
42    
43     src_install() {
44     make install DESTDIR="${D}" || die "make install failed"
45     dodoc AUTHORS ChangeLog NEWS README
46    
47     insinto /usr/share/${PN}
48     doins -r src/Main/*.maude \
49     || die "failed to install data files"
50    
51     # Sets the full maude library path.
52     doenvd "${FILESDIR}"/23maude
53    
54     # install full maude
55     cd "${WORKDIR}"/${P}-extras
56     doins full-maude.maude
57    
58     # install docs and examples
59     if use doc; then
60     insinto /usr/share/doc/${P}
61     doins -r pdfs/* || die "failed to install pdf files"
62    
63     insinto /usr/share/${PN}/
64     doins -r manual-examples primer-examples \
65     || die "failed to install example files"
66     fi
67     }

  ViewVC Help
Powered by ViewVC 1.1.13