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

Contents of /sci-libs/liborigin/liborigin-20110221.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-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/liborigin/liborigin-20110221.ebuild,v 1.1 2011/03/05 09:39:11 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 SRC_URI="mirror://berlios/qtiplot/${PN}2-${PV}.zip"
13
14 LICENSE="GPL-3"
15 SLOT="2"
16 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
17 IUSE="doc"
18
19 RDEPEND="dev-libs/boost"
20 DEPEND="${RDEPEND}
21 app-arch/unzip
22 x11-libs/qt-gui:4
23 dev-cpp/tree
24 doc? ( app-doc/doxygen )"
25
26 DOCS="readme FORMAT"
27
28 S="${WORKDIR}"/${PN}${SLOT}
29
30 src_prepare() {
31 mv liborigin2.pro liborigin.pro || die
32 qt4-r2_src_prepare
33 cat >> liborigin.pro <<-EOF
34 INCLUDEPATH += "${EPREFIX}/usr/include/tree"
35 headers.files = \$\$HEADERS
36 headers.path = "${EPREFIX}/usr/include/liborigin2"
37 target.path = "${EPREFIX}/usr/$(get_libdir)"
38 INSTALLS = target headers
39 EOF
40 # use system one
41 rm -f tree.hh || die
42 }
43
44 src_compile() {
45 qt4-r2_src_compile
46 if use doc; then
47 cd doc
48 doxygen Doxyfile || die "doc generation failed"
49 fi
50 }
51
52 src_install() {
53 qt4-r2_src_install
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