/[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.7 - (hide annotations) (download)
Fri Apr 12 22:44:57 2013 UTC (19 months, 1 week ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
Fix LICENSE, bug 463876.

(Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key 9433907D693FB5B8!)

1 keri 1.5 # Copyright 1999-2013 Gentoo Foundation
2 keri 1.1 # Distributed under the terms of the GNU General Public License v2
3 ulm 1.7 # $Header: /var/cvsroot/gentoo-x86/dev-lang/qu-prolog/qu-prolog-9.1.ebuild,v 1.6 2013/03/02 19:58:29 hwoarang Exp $
4 keri 1.1
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 ulm 1.7 LICENSE="Qu-Prolog GPL-2+"
16 keri 1.1 SLOT="0"
17 ranger 1.4 KEYWORDS="amd64 ppc x86"
18 keri 1.1 IUSE="debug doc examples pedro qt4 readline threads"
19    
20     RDEPEND="!dev-util/mpatch
21     !dev-util/rej
22 hwoarang 1.6 qt4? ( dev-qt/qtgui:4 )
23 keri 1.1 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 keri 1.5 epatch "${FILESDIR}"/${P}-gcc.patch
36 keri 1.1 }
37    
38     src_configure() {
39     econf \
40     --libdir=/usr/$(get_libdir) \
41     $(use_enable debug) \
42     $(use_enable threads multiple-threads)
43    
44     if use qt4; then
45     cd "${S}"/src/xqp
46     eqmake4 xqp.pro
47     fi
48     }
49    
50     src_compile() {
51     emake || die "emake failed"
52    
53     if use qt4; then
54     cd "${S}"/src/xqp
55     emake || die "emake xqp failed"
56     fi
57     }
58    
59     src_install() {
60     sed -i -e "s|${S}|/usr/$(get_libdir)/qu-prolog|g" \
61     bin/qc bin/qc1.qup bin/qecat bin/qg bin/qp || die
62    
63     exeinto /usr/bin
64     doexe bin/qa bin/qdeal bin/qem bin/ql || die
65     doexe bin/qc bin/qc1.qup bin/qecat bin/qg bin/qp bin/qppp || die
66     doexe bin/kq || die
67    
68     if use qt4; then
69     doexe src/xqp/xqp || die
70     fi
71    
72     insinto /usr/$(get_libdir)/${PN}/bin
73     doins bin/rl_commands
74     doins bin/qc1.qup.qx \
75     bin/qecat.qx \
76     bin/qg.qx \
77     bin/qp.qx || die
78    
79     insinto /usr/$(get_libdir)/${PN}/library
80     doins prolog/library/*.qo || die
81    
82     insinto /usr/$(get_libdir)/${PN}/compiler
83     doins prolog/compiler/*.qo || die
84    
85     doman doc/man/man1/*.1 || die
86    
87     dodoc README || die
88    
89     if use doc ; then
90     docinto reference-manual
91     dodoc doc/manual/*.html || die
92     docinto user-guide
93     dodoc doc/user/main.pdf || die
94     fi
95    
96     if use examples ; then
97     insinto /usr/share/doc/${PF}/examples
98     doins examples/*.ql || die
99     docinto examples
100     dodoc examples/README || die
101     fi
102     }

  ViewVC Help
Powered by ViewVC 1.1.20