diff options
Diffstat (limited to 'sci-libs/liborigin/liborigin-3.0.1_p20210828-r1.ebuild')
-rw-r--r-- | sci-libs/liborigin/liborigin-3.0.1_p20210828-r1.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/sci-libs/liborigin/liborigin-3.0.1_p20210828-r1.ebuild b/sci-libs/liborigin/liborigin-3.0.1_p20210828-r1.ebuild new file mode 100644 index 000000000000..9b2c2bb6e60f --- /dev/null +++ b/sci-libs/liborigin/liborigin-3.0.1_p20210828-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +COMMIT="970b90ada051dfa2e80929cde91d052bf28be674" + +DESCRIPTION="Library for reading OriginLab OPJ project files" +HOMEPAGE="https://sourceforge.net/projects/liborigin/ https://github.com/SciDAVis/liborigin/" +SRC_URI="https://github.com/SciDAVis/liborigin/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT}" + +LICENSE="GPL-3" +SLOT="2" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="debug doc tools" + +BDEPEND=" + doc? ( app-doc/doxygen ) +" +RDEPEND=" + dev-cpp/tree +" +DEPEND="${RDEPEND}" + +PATCHES=( + # add missing header + "${FILESDIR}/${PN}-3.0.1-missing-header.patch" + # downstream + "${FILESDIR}/${P}-buildsystem.patch" # ENABLE_TOOLS, shared link, doc paths +) + +src_prepare() { + cmake_src_prepare + rm tree.hh || die "failed to remove bundled tree.hh" + + sed -e "/install.*html/s/liborigin/${PF}/" \ + -i CMakeLists.txt || die "failed to fix htmldoc install path" +} + +src_configure() { + local mycmakeargs=( + -DGENERATE_CODE_FOR_LOG=$(usex debug) + $(cmake_use_find_package doc Doxygen) + -DENABLE_TOOLS=$(usex tools) + ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile + use doc && cmake_src_compile doc +} |