Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sci-mathematics/clingo/files/, sci-mathematics/clingo/
Date: Tue, 03 May 2022 20:21:42
Message-Id: 1651609295.b63bc684cc2101bb29c2343b1f60ccb6f21ea4de.Alessandro-Barbieri@gentoo
1 commit: b63bc684cc2101bb29c2343b1f60ccb6f21ea4de
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Tue May 3 20:09:39 2022 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Tue May 3 20:21:35 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b63bc684
7
8 sci-mathematics/clingo: fix for new clasp
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 ...{clingo-5.5.1.ebuild => clingo-5.5.1-r1.ebuild} | 4 +--
13 .../clingo/files/clingo-5.5.1-system-clasp.patch | 38 ++++++++--------------
14 2 files changed, 16 insertions(+), 26 deletions(-)
15
16 diff --git a/sci-mathematics/clingo/clingo-5.5.1.ebuild b/sci-mathematics/clingo/clingo-5.5.1-r1.ebuild
17 similarity index 94%
18 rename from sci-mathematics/clingo/clingo-5.5.1.ebuild
19 rename to sci-mathematics/clingo/clingo-5.5.1-r1.ebuild
20 index b68917848..087adc44c 100644
21 --- a/sci-mathematics/clingo/clingo-5.5.1.ebuild
22 +++ b/sci-mathematics/clingo/clingo-5.5.1-r1.ebuild
23 @@ -22,7 +22,7 @@ KEYWORDS="~amd64"
24 IUSE="examples lua python test +tools"
25
26 RDEPEND="
27 - sci-mathematics/clasp:=[tools]
28 + >=sci-mathematics/clasp-3.3.8:=[tools]
29 sci-libs/libpotassco:=
30 lua? ( ${LUA_DEPS} )
31 python? ( ${PYTHON_DEPS} )
32 @@ -67,7 +67,7 @@ src_configure() {
33 -DCLINGO_USE_LIB=OFF
34 )
35 if use lua; then
36 - mycmakeargs+=( "-DCLINGO_LUA_VERSION:LIST=$(lua_get_version);EXACT" )
37 + mycmakeargs+=( "DCLINGO_LUA_VERSION:LIST=$(lua_get_version);EXACT" )
38 mycmakeargs+=( "-DLUACLINGO_INSTALL_DIR=$(lua_get_cmod_dir)" )
39 fi
40 if use python; then
41
42 diff --git a/sci-mathematics/clingo/files/clingo-5.5.1-system-clasp.patch b/sci-mathematics/clingo/files/clingo-5.5.1-system-clasp.patch
43 index 0eadf4fda..0adad6116 100644
44 --- a/sci-mathematics/clingo/files/clingo-5.5.1-system-clasp.patch
45 +++ b/sci-mathematics/clingo/files/clingo-5.5.1-system-clasp.patch
46 @@ -1,20 +1,20 @@
47 -diff '--color=auto' -ru /var/tmp/portage/sci-mathematics/clingo-5.5.1/work/clingo-5.5.1/CMakeLists.txt clingo-5.5.1/CMakeLists.txt
48 ---- /var/tmp/portage/sci-mathematics/clingo-5.5.1/work/clingo-5.5.1/CMakeLists.txt 2022-04-28 06:09:26.673973864 +0200
49 -+++ clingo-5.5.1/CMakeLists.txt 2022-04-28 06:27:47.090303346 +0200
50 -@@ -232,20 +232,15 @@
51 +--- a/CMakeLists.txt
52 ++++ b/CMakeLists.txt
53 +@@ -232,8 +232,10 @@
54
55 enable_testing()
56
57 --# NOTE: assumes that submodule has been initialized
58 ++find_package(Potassco REQUIRED)
59 ++find_package(Clasp REQUIRED)
60 ++
61 + # NOTE: assumes that submodule has been initialized
62 -set(CLASP_BUILD_APP ${CLINGO_BUILD_APPS} CACHE BOOL "")
63 if (CLINGO_USE_LIB)
64 set(clingo_library_targets)
65 add_library(libclingo INTERFACE IMPORTED)
66 - set_property(TARGET libclingo PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${CLINGO_SOURCE_DIR}/libclingo")
67 +@@ -241,11 +243,6 @@
68 set_property(TARGET libclingo PROPERTY INTERFACE_LINK_LIBRARIES "clingo")
69 else()
70 -+ find_package(Potassco REQUIRED)
71 -+ find_package(Clasp REQUIRED)
72 set(clingo_library_targets libgringo libpotassco libclasp libreify)
73 - set(CLASP_USE_LOCAL_LIB_POTASSCO ON CACHE BOOL "" FORCE)
74 - if (NOT CLINGO_BUILD_SHARED AND CLINGO_INSTALL_LIB)
75 @@ -24,33 +24,23 @@ diff '--color=auto' -ru /var/tmp/portage/sci-mathematics/clingo-5.5.1/work/cling
76 add_subdirectory(libreify)
77 add_subdirectory(libgringo)
78 add_subdirectory(libclingo)
79 -diff '--color=auto' -ru /var/tmp/portage/sci-mathematics/clingo-5.5.1/work/clingo-5.5.1/libclingo/CMakeLists.txt clingo-5.5.1/libclingo/CMakeLists.txt
80 ---- /var/tmp/portage/sci-mathematics/clingo-5.5.1/work/clingo-5.5.1/libclingo/CMakeLists.txt 2022-04-28 06:09:26.590972375 +0200
81 -+++ clingo-5.5.1/libclingo/CMakeLists.txt 2022-04-28 07:12:59.047212489 +0200
82 -@@ -37,9 +37,6 @@
83 +--- a/libclingo/CMakeLists.txt
84 ++++ b/libclingo/CMakeLists.txt
85 +@@ -37,8 +37,6 @@
86 ${source-group})
87 # ]]]
88
89 -list(APPEND header "${CLASP_SOURCE_DIR}/app/clasp_app.h")
90 -list(APPEND source "${CLASP_SOURCE_DIR}/app/clasp_app.cpp")
91 --
92 +
93 set(clingo_public_scope_ PUBLIC)
94 set(clingo_private_scope_ PRIVATE)
95 - if (CLINGO_BUILD_SHARED)
96 -@@ -56,13 +53,14 @@
97 -
98 - add_library(libclingo ${clingo_lib_type})
99 - target_sources(libclingo ${clingo_private_scope_} ${header} ${source})
100 --target_link_libraries(libclingo ${clingo_private_scope_} libgringo libclasp)
101 -+target_link_libraries(libclingo ${clingo_private_scope_} libgringo libclasp -lclasp_app)
102 - target_include_directories(libclingo
103 - ${clingo_public_scope_}
104 +@@ -62,7 +60,7 @@
105 "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>"
106 "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
107 ${clingo_private_scope_}
108 - "$<BUILD_INTERFACE:${CLASP_SOURCE_DIR}/app>")
109 -+ "/usr/include/clasp/app"
110 -+)
111 ++ "/usr/include/clasp/cli")
112 target_compile_definitions(libclingo ${clingo_private_scope_} CLINGO_BUILD_LIBRARY)
113
114 if (NOT CLINGO_BUILD_SHARED)