/[gentoo-x86]/sci-libs/liborigin/liborigin-20100630.ebuild
Gentoo

Contents of /sci-libs/liborigin/liborigin-20100630.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Mar 5 09:39:11 2011 UTC (9 years, 8 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Version BUmp

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

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/liborigin/liborigin-20100630.ebuild,v 1.3 2010/10/18 16:03:58 jlec Exp $
4
5 EAPI="3"
6
7 inherit eutils qt4
8
9 DESCRIPTION="Library for reading OriginLab OPJ project files"
10 HOMEPAGE="http://soft.proindependent.com/liborigin2/"
11 SRC_URI="mirror://gentoo/${P}.tar.bz2"
12
13 LICENSE="GPL-3"
14 SLOT="2"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="doc"
17
18 RDEPEND="dev-libs/boost"
19 DEPEND="${RDEPEND}
20 x11-libs/qt-gui:4
21 dev-cpp/tree
22 doc? ( app-doc/doxygen )"
23
24 src_prepare() {
25 epatch "${FILESDIR}/liborigin-20100420-build-parsers.patch"
26 cat >> liborigin.pro <<-EOF
27 INCLUDEPATH += "${EPREFIX}/usr/include/tree"
28 headers.files = \$\$HEADERS
29 headers.path = "${EPREFIX}/usr/include/liborigin2"
30 target.path = "${EPREFIX}/usr/$(get_libdir)"
31 INSTALLS = target headers
32 EOF
33 # use system one
34 rm -f tree.hh || die
35 epatch "${FILESDIR}"/${P}-gcc45.patch
36 }
37
38 src_configure() {
39 eqmake4
40 }
41
42 src_compile() {
43 emake || die "emake failed"
44 if use doc; then
45 cd doc
46 doxygen Doxyfile || die "doc generation failed"
47 fi
48 }
49
50 src_install() {
51 emake INSTALL_ROOT="${D}" install || die "emake install failed"
52 dodoc readme FORMAT || die
53 if use doc; then
54 insinto /usr/share/doc/${PF}
55 doins -r doc/html || die "doc install failed"
56 fi
57 }

  ViewVC Help
Powered by ViewVC 1.1.20