You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.2 KiB
63 lines
1.2 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=6
|
||
13 years ago
|
|
||
6 years ago
|
inherit qmake-utils
|
||
13 years ago
|
|
||
|
DESCRIPTION="Library for reading OriginLab OPJ project files"
|
||
|
HOMEPAGE="http://soft.proindependent.com/liborigin2/"
|
||
9 years ago
|
SRC_URI="https://dev.gentoo.org/~dilfridge/distfiles/${PN}2-${PV}.zip"
|
||
13 years ago
|
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="2"
|
||
6 years ago
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||
13 years ago
|
IUSE="doc"
|
||
|
|
||
9 years ago
|
RDEPEND="
|
||
|
dev-libs/boost
|
||
6 years ago
|
dev-qt/qtcore:5
|
||
|
dev-qt/qtgui:5
|
||
|
"
|
||
13 years ago
|
DEPEND="${RDEPEND}
|
||
|
app-arch/unzip
|
||
|
dev-cpp/tree
|
||
6 years ago
|
doc? ( app-doc/doxygen )
|
||
|
"
|
||
|
|
||
|
DOCS=( readme FORMAT )
|
||
13 years ago
|
|
||
|
S="${WORKDIR}"/${PN}${SLOT}
|
||
|
|
||
|
src_prepare() {
|
||
6 years ago
|
default
|
||
|
|
||
|
cat >> liborigin2.pro <<-EOF
|
||
13 years ago
|
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
|
||
|
}
|
||
|
|
||
6 years ago
|
src_configure() {
|
||
|
eqmake5 liborigin2.pro
|
||
|
}
|
||
|
|
||
13 years ago
|
src_compile() {
|
||
6 years ago
|
default
|
||
13 years ago
|
if use doc; then
|
||
6 years ago
|
cd doc || die
|
||
|
doxygen Doxyfile || die "doc generation failed"
|
||
13 years ago
|
fi
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
9 years ago
|
use doc && local HTML_DOCS=( doc/html/. )
|
||
6 years ago
|
einstalldocs
|
||
|
emake install INSTALL_ROOT="${D}"
|
||
13 years ago
|
}
|