/[gentoo-x86]/dev-lang/qu-prolog/qu-prolog-9.1.ebuild
Gentoo

Contents of /dev-lang/qu-prolog/qu-prolog-9.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sat Nov 19 18:20:30 2011 UTC (2 years, 10 months ago) by keri
Branch: MAIN
Version bump

(Portage version: 2.1.10.11/cvs/Linux x86_64)

1 keri 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/dev-lang/qu-prolog/qu-prolog-8.10.ebuild,v 1.5 2010/04/18 14:35:16 nixnut Exp $
4    
5     EAPI=2
6    
7     inherit eutils qt4-r2
8    
9     MY_P=qp${PV}
10    
11     DESCRIPTION="Qu-Prolog is an extended Prolog supporting quantifiers, object-variables and substitutions"
12     HOMEPAGE="http://www.itee.uq.edu.au/~pjr/HomePages/QuPrologHome.html"
13     SRC_URI="http://www.itee.uq.edu.au/~pjr/HomePages/QPFiles/${MY_P}.tar.gz"
14    
15     LICENSE="as-is"
16     SLOT="0"
17     KEYWORDS="~amd64 ~ppc ~x86"
18     IUSE="debug doc examples pedro qt4 readline threads"
19    
20     RDEPEND="!dev-util/mpatch
21     !dev-util/rej
22     qt4? ( x11-libs/qt-gui:4 )
23     pedro? ( net-misc/pedro )
24     readline? ( app-misc/rlwrap )"
25    
26     DEPEND="${RDEPEND}
27     dev-lang/perl"
28    
29     S="${WORKDIR}"/${MY_P}
30    
31     src_prepare() {
32     epatch "${FILESDIR}"/${P}-portage.patch
33     epatch "${FILESDIR}"/${P}-cflags.patch
34     epatch "${FILESDIR}"/${P}-cerr-ptr.patch
35     }
36    
37     src_configure() {
38     econf \
39     --libdir=/usr/$(get_libdir) \
40     $(use_enable debug) \
41     $(use_enable threads multiple-threads)
42    
43     if use qt4; then
44     cd "${S}"/src/xqp
45     eqmake4 xqp.pro
46     fi
47     }
48    
49     src_compile() {
50     emake || die "emake failed"
51    
52     if use qt4; then
53     cd "${S}"/src/xqp
54     emake || die "emake xqp failed"
55     fi
56     }
57    
58     src_install() {
59     sed -i -e "s|${S}|/usr/$(get_libdir)/qu-prolog|g" \
60     bin/qc bin/qc1.qup bin/qecat bin/qg bin/qp || die
61    
62     exeinto /usr/bin
63     doexe bin/qa bin/qdeal bin/qem bin/ql || die
64     doexe bin/qc bin/qc1.qup bin/qecat bin/qg bin/qp bin/qppp || die
65     doexe bin/kq || die
66    
67     if use qt4; then
68     doexe src/xqp/xqp || die
69     fi
70    
71     insinto /usr/$(get_libdir)/${PN}/bin
72     doins bin/rl_commands
73     doins bin/qc1.qup.qx \
74     bin/qecat.qx \
75     bin/qg.qx \
76     bin/qp.qx || die
77    
78     insinto /usr/$(get_libdir)/${PN}/library
79     doins prolog/library/*.qo || die
80    
81     insinto /usr/$(get_libdir)/${PN}/compiler
82     doins prolog/compiler/*.qo || die
83    
84     doman doc/man/man1/*.1 || die
85    
86     dodoc README || die
87    
88     if use doc ; then
89     docinto reference-manual
90     dodoc doc/manual/*.html || die
91     docinto user-guide
92     dodoc doc/user/main.pdf || die
93     fi
94    
95     if use examples ; then
96     insinto /usr/share/doc/${PF}/examples
97     doins examples/*.ql || die
98     docinto examples
99     dodoc examples/README || die
100     fi
101     }

  ViewVC Help
Powered by ViewVC 1.1.20