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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Sep 1 04:57:10 2011 UTC (9 years, 3 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump

(Portage version: 2.1.10.10/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-20100913.ebuild,v 1.1 2010/10/18 16:01:44 jlec Exp $
4
5 EAPI="3"
6
7 inherit eutils qt4-r2
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 ~amd64-linux ~x86-linux"
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 DOCS="readme FORMAT"
25
26 S="${WORKDIR}"/${PN}${SLOT}
27
28 src_prepare() {
29 mv liborigin2.pro liborigin.pro || die
30 qt4-r2_src_prepare
31 cat >> liborigin.pro <<-EOF
32 INCLUDEPATH += "${EPREFIX}/usr/include/tree"
33 headers.files = \$\$HEADERS
34 headers.path = "${EPREFIX}/usr/include/liborigin2"
35 target.path = "${EPREFIX}/usr/$(get_libdir)"
36 INSTALLS = target headers
37 EOF
38 # use system one
39 rm -f tree.hh || die
40 }
41
42 src_compile() {
43 qt4-r2_src_compile
44 if use doc; then
45 cd doc
46 doxygen Doxyfile || die "doc generation failed"
47 fi
48 }
49
50 src_install() {
51 qt4-r2_src_install
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