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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Apr 14 11:27:58 2009 UTC (11 years, 7 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump
(Portage version: 2.2_rc28/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20