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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20