mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sci-libs/liborigin: drop 3.0.1
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST liborigin-3.0.1.tar.gz 156842 BLAKE2B 2c88d0419c4c7be1ff6d3aaba1f794fe67174e02e591878c754a32d9b2789bd8594d39f4786d9ac04884b443b528086617a9e1fdbca8815089c8ebb400dd321c SHA512 c3fde3549bce462ea38b961885d6c835aac53db64375645db1d3636eb78396b3353c5bcc9ea3313dac3ffb436de35677ecec6fddb2fcf1eb37eaf6a78e2a31f8
|
||||
DIST liborigin-3.0.1_p20210828.tar.gz 156437 BLAKE2B 48713d8854ccd7f46b1aca72bf7b7739af588f08aea32e1d27ff4416ca4fa96a942b19e37fb151f5e7afbd5133d870c305a608e639c620672e683fe805d4f5d1 SHA512 0c9866bef16844102be6ae6e150c927420ca07e6ee50342e9fbd4312f9cd3c476c8d730464b010076f31d7fdcc16bd1133de9ace3a6e5b9b321a231ddab00458
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 2f3b26d..4c543bf 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -28,6 +28,8 @@ else()
|
||||
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic" )
|
||||
endif()
|
||||
|
||||
+option(ENABLE_TOOLS "Install opj2dat command line util" ON)
|
||||
+
|
||||
# compile-time configuration variables to be linked in
|
||||
configure_file(config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
@@ -44,7 +46,6 @@ set (devel-headers
|
||||
OriginObj.h
|
||||
OriginFile.h
|
||||
OriginParser.h
|
||||
- tree.hh
|
||||
)
|
||||
|
||||
# object library
|
||||
@@ -87,6 +88,7 @@ if (BUILD_SHARED_LIBS)
|
||||
endif ()
|
||||
|
||||
# command line util
|
||||
+if(ENABLE_TOOLS)
|
||||
if (BUILD_STATIC_LIBS)
|
||||
add_executable(opj2dat opj2dat.cpp)
|
||||
target_link_libraries (opj2dat origin_static)
|
||||
@@ -94,6 +96,7 @@ elseif (BUILD_SHARED_LIBS)
|
||||
add_executable(opj2dat opj2dat.cpp)
|
||||
target_link_libraries (opj2dat origin_shared)
|
||||
endif ()
|
||||
+endif ()
|
||||
|
||||
# Generate a pkg-config file matching this config
|
||||
configure_file("liborigin.pc.in" "liborigin.pc" @ONLY)
|
||||
@@ -103,7 +106,9 @@ install(FILES ${devel-headers} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/liborigin
|
||||
# install pkg-config file
|
||||
if (BUILD_STATIC_LIBS OR BUILD_SHARED_LIBS)
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/liborigin.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
||||
+ if(ENABLE_TOOLS)
|
||||
install(TARGETS opj2dat DESTINATION ${CMAKE_INSTALL_BINDIR} OPTIONAL)
|
||||
+ endif ()
|
||||
endif ()
|
||||
|
||||
# documentation
|
||||
@@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Library for reading OriginLab OPJ project files"
|
||||
HOMEPAGE="https://sourceforge.net/projects/liborigin/ https://github.com/SciDAVis/liborigin/"
|
||||
SRC_URI="http://downloads.sourceforge.net/liborigin/${P}.tar.gz"
|
||||
|
||||
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}/${P}-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)
|
||||
-DBUILD_STATIC_LIBS=NO
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake_src_compile
|
||||
use doc && cmake_src_compile doc
|
||||
}
|
||||
Reference in New Issue
Block a user