summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/liborigin/liborigin-20110829.ebuild')
-rw-r--r--sci-libs/liborigin/liborigin-20110829.ebuild54
1 files changed, 54 insertions, 0 deletions
diff --git a/sci-libs/liborigin/liborigin-20110829.ebuild b/sci-libs/liborigin/liborigin-20110829.ebuild
new file mode 100644
index 000000000000..9c2cca0fde4b
--- /dev/null
+++ b/sci-libs/liborigin/liborigin-20110829.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/liborigin/liborigin-20110829.ebuild,v 1.1 2011/09/01 04:57:10 bicatali Exp $
+
+EAPI=4
+
+inherit eutils qt4-r2
+
+DESCRIPTION="Library for reading OriginLab OPJ project files"
+HOMEPAGE="http://soft.proindependent.com/liborigin2/"
+SRC_URI="mirror://berlios/qtiplot/${PN}2-${PV}.zip"
+
+LICENSE="GPL-3"
+SLOT="2"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc"
+
+RDEPEND="dev-libs/boost"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ x11-libs/qt-gui:4
+ dev-cpp/tree
+ doc? ( app-doc/doxygen )"
+
+DOCS="readme FORMAT"
+
+S="${WORKDIR}"/${PN}${SLOT}
+
+src_prepare() {
+ mv liborigin2.pro liborigin.pro || die
+ qt4-r2_src_prepare
+ cat >> liborigin.pro <<-EOF
+ INCLUDEPATH += "${EPREFIX}/usr/include/tree"
+ headers.files = \$\$HEADERS
+ headers.path = "${EPREFIX}/usr/include/liborigin2"
+ target.path = "${EPREFIX}/usr/$(get_libdir)"
+ INSTALLS = target headers
+ EOF
+ # use system one
+ rm -f tree.hh || die
+}
+
+src_compile() {
+ qt4-r2_src_compile
+ if use doc; then
+ cd doc
+ doxygen Doxyfile || die "doc generation failed"
+ fi
+}
+
+src_install() {
+ qt4-r2_src_install
+ use doc && dohtml -r doc/html/*
+}