public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-cpp/muParser/, dev-cpp/muParser/files/
@ 2021-11-07 19:59 Alexey Shvetsov
  0 siblings, 0 replies; 2+ messages in thread
From: Alexey Shvetsov @ 2021-11-07 19:59 UTC (permalink / raw
  To: gentoo-commits

commit:     95c35c5f43f6c712154ea3cb35e735dea39eeddd
Author:     Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
AuthorDate: Sun Nov  7 19:58:46 2021 +0000
Commit:     Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
CommitDate: Sun Nov  7 19:59:12 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95c35c5f

dev-cpp/muParser: Fix cmake export target

Closes: https://bugs.gentoo.org/821718

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Alexey Shvetsov <alexxy <AT> gentoo.org>

 .../muParser/files/muParser-2.3-export-cmake.patch | 405 +++++++++++++++++++++
 ...arser-2.3.2.ebuild => muParser-2.3.2-r1.ebuild} |   2 +
 2 files changed, 407 insertions(+)

diff --git a/dev-cpp/muParser/files/muParser-2.3-export-cmake.patch b/dev-cpp/muParser/files/muParser-2.3-export-cmake.patch
new file mode 100644
index 00000000000..79254626db6
--- /dev/null
+++ b/dev-cpp/muParser/files/muParser-2.3-export-cmake.patch
@@ -0,0 +1,405 @@
+From a9e6626c9b2e250eb9161c767d2fb2e5a07315e2 Mon Sep 17 00:00:00 2001
+From: Francis Giraldeau <francis.giraldeau@nrc-cnrc.gc.ca>
+Date: Wed, 8 Jul 2020 14:59:27 -0400
+Subject: [PATCH] Export muparser cmake targets
+
+Export muparser targets, such that client projects can
+import it using find_package(). This mechanism for both the build tree
+and the install tree. The provided example3 shows how to import muparser
+targets.
+
+Signed-off-by: Francis Giraldeau <francis.giraldeau@nrc-cnrc.gc.ca>
+Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
+---
+ CMakeLists.txt                  |  39 ++++++-
+ CMakeLists.txt.orig             | 173 ++++++++++++++++++++++++++++++++
+ muparserConfig.cmake.in         |   6 ++
+ samples/example3/CMakeLists.txt |  12 +++
+ samples/example3/README.md      |   2 +
+ samples/example3/build.sh       |  23 +++++
+ samples/example3/example3.cpp   |  49 +++++++++
+ 7 files changed, 301 insertions(+), 3 deletions(-)
+ create mode 100644 CMakeLists.txt.orig
+ create mode 100644 muparserConfig.cmake.in
+ create mode 100644 samples/example3/CMakeLists.txt
+ create mode 100644 samples/example3/README.md
+ create mode 100755 samples/example3/build.sh
+ create mode 100644 samples/example3/example3.cpp
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index cfdce99..aecc67d 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -55,6 +55,11 @@ add_library(muparser
+     src/muParserTest.cpp
+     src/muParserTokenReader.cpp
+ )
++# use the headers in the build-tree or the installed ones
++target_include_directories(muparser PUBLIC
++    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
++    $<INSTALL_INTERFACE:include>
++)
+ 
+ # this compiles the "DLL" interface (C API)
+ target_compile_definitions(muparser PRIVATE MUPARSER_DLL)
+@@ -77,9 +82,6 @@ set_target_properties(muparser PROPERTIES
+     SOVERSION ${MUPARSER_VERSION_MAJOR}
+ )
+ 
+-# Install the export set for use with the install-tree
+-export(TARGETS muparser FILE "${CMAKE_BINARY_DIR}/muparser-targets.cmake")
+-
+ if(ENABLE_SAMPLES)
+   add_executable(example1 samples/example1/example1.cpp)
+   target_link_libraries(example1 muparser)
+@@ -91,8 +93,10 @@ endif()
+ # The GNUInstallDirs defines ${CMAKE_INSTALL_DATAROOTDIR}
+ # See https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html
+ include (GNUInstallDirs)
++set(INSTALL_CONFIGDIR ${CMAKE_INSTALL_LIBDIR}/cmake/muparser)
+ 
+ install(TARGETS muparser
++    EXPORT muparser-export
+     LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT RuntimeLibraries
+     ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development
+     RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT RuntimeLibraries
+@@ -116,6 +120,35 @@ install(FILES
+     COMPONENT Development
+ )
+ 
++# Export the target under the build-tree (no need to install)
++export(EXPORT muparser-export
++    FILE "${CMAKE_BINARY_DIR}/muparser-targets.cmake"
++    NAMESPACE muparser::
++)
++
++# Export the installed target (typically for packaging)
++include(CMakePackageConfigHelpers)
++write_basic_package_version_file(
++    "${CMAKE_CURRENT_BINARY_DIR}/muparserConfigVersion.cmake"
++    VERSION ${MUPARSER_VERSION}
++    COMPATIBILITY AnyNewerVersion
++)
++configure_file(muparserConfig.cmake.in
++    "${CMAKE_CURRENT_BINARY_DIR}/muparserConfig.cmake"
++    COPYONLY
++)
++install(EXPORT muparser-export
++    FILE muparser-targets.cmake
++    NAMESPACE muparser::
++    DESTINATION ${INSTALL_CONFIGDIR}
++)
++install(FILES
++    ${CMAKE_CURRENT_BINARY_DIR}/muparserConfig.cmake
++    ${CMAKE_CURRENT_BINARY_DIR}/muparserConfigVersion.cmake
++    DESTINATION ${INSTALL_CONFIGDIR}
++    COMPONENT Development
++)
++
+ # Define variables for the pkg-config file
+ set(PACKAGE_NAME muparser)
+ configure_file(
+diff --git a/CMakeLists.txt.orig b/CMakeLists.txt.orig
+new file mode 100644
+index 0000000..b496584
+--- /dev/null
++++ b/CMakeLists.txt.orig
+@@ -0,0 +1,173 @@
++# CMake based on work from @xantares
++cmake_minimum_required (VERSION 3.1.0)
++set(CMAKE_CXX_STANDARD 11)
++set(CMAKE_CXX_STANDARD_REQUIRED ON)
++
++# By default, build in Release mode. Must appear before project() command
++if (NOT DEFINED CMAKE_BUILD_TYPE)
++  set (CMAKE_BUILD_TYPE Release CACHE STRING "Build type")
++endif ()
++
++project(muParserProject)
++
++
++
++# Bump versions on release
++set(MUPARSER_VERSION_MAJOR 2)
++set(MUPARSER_VERSION_MINOR 3)
++set(MUPARSER_VERSION_PATCH 2)
++set(MUPARSER_VERSION ${MUPARSER_VERSION_MAJOR}.${MUPARSER_VERSION_MINOR}.${MUPARSER_VERSION_PATCH})
++
++# Build options
++option(ENABLE_SAMPLES "Build the samples" ON)
++option(ENABLE_OPENMP "Enable OpenMP for multithreading" ON)
++option(BUILD_SHARED_LIBS "Build shared/static libs" ON)
++
++if(ENABLE_OPENMP)
++    find_package(OpenMP REQUIRED)
++    set(CMAKE_CXX_FLAGS "${OpenMP_CXX_FLAGS} ${CMAKE_CXX_FLAGS}")
++    set(CMAKE_SHARED_LIBRARY_CXX_FLAGS "${OpenMP_CXX_FLAGS} ${CMAKE_SHARED_LIBRARY_CXX_FLAGS}")
++endif()
++
++
++# Credit: https://stackoverflow.com/questions/2368811/how-to-set-warning-level-in-cmake/3818084
++if(MSVC)
++    # Force to always compile with W4
++    if(CMAKE_CXX_FLAGS MATCHES "/W[0-4]")
++      string(REGEX REPLACE "/W[0-4]" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
++    else()
++      set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")
++    endif()
++elseif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
++    # Update if necessary
++    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-long-long -pedantic")
++endif()
++
++include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include")
++add_library(muparser
++    src/muParserBase.cpp
++    src/muParserBytecode.cpp
++    src/muParserCallback.cpp
++    src/muParser.cpp
++    src/muParserDLL.cpp
++    src/muParserError.cpp
++    src/muParserInt.cpp
++    src/muParserTest.cpp
++    src/muParserTokenReader.cpp
++)
++<<<<<<< HEAD
++=======
++# use the headers in the build-tree or the installed ones
++target_include_directories(muparser PUBLIC
++    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
++    $<INSTALL_INTERFACE:include>
++)
++>>>>>>> e259981 (Export muparser cmake targets)
++
++# this compiles the "DLL" interface (C API)
++target_compile_definitions(muparser PRIVATE MUPARSER_DLL)
++
++if (BUILD_SHARED_LIBS)
++  target_compile_definitions(muparser PRIVATE MUPARSERLIB_EXPORTS)
++else ()
++  target_compile_definitions(muparser PUBLIC MUPARSER_STATIC)
++endif()
++
++if (CMAKE_BUILD_TYPE STREQUAL Debug)
++  target_compile_definitions(muparser PRIVATE _DEBUG)
++endif ()
++
++if(ENABLE_OPENMP)
++  target_compile_definitions(muparser PRIVATE MUP_USE_OPENMP)
++endif()
++set_target_properties(muparser PROPERTIES
++    VERSION ${MUPARSER_VERSION}
++    SOVERSION ${MUPARSER_VERSION_MAJOR}
++)
++
++if(ENABLE_SAMPLES)
++  add_executable(example1 samples/example1/example1.cpp)
++  target_link_libraries(example1 muparser)
++
++  add_executable(example2 samples/example2/example2.c)
++  target_link_libraries(example2 muparser)
++endif()
++
++# The GNUInstallDirs defines ${CMAKE_INSTALL_DATAROOTDIR}
++# See https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html
++include (GNUInstallDirs)
++set(INSTALL_CONFIGDIR ${CMAKE_INSTALL_LIBDIR}/cmake/muparser)
++
++install(TARGETS muparser
++    EXPORT muparser-export
++    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT RuntimeLibraries
++    ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development
++    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT RuntimeLibraries
++)
++
++install(FILES
++    include/muParserBase.h
++    include/muParserBytecode.h
++    include/muParserCallback.h
++    include/muParserDef.h
++    include/muParserDLL.h
++    include/muParserError.h
++    include/muParserFixes.h
++    include/muParser.h
++    include/muParserInt.h
++    include/muParserTemplateMagic.h
++    include/muParserTest.h
++    include/muParserToken.h
++    include/muParserTokenReader.h
++    DESTINATION include
++    COMPONENT Development
++)
++
++# Export the target under the build-tree (no need to install)
++export(EXPORT muparser-export
++    FILE "${CMAKE_BINARY_DIR}/muparser-targets.cmake"
++    NAMESPACE muparser::
++)
++
++# Export the installed target (typically for packaging)
++include(CMakePackageConfigHelpers)
++write_basic_package_version_file(
++    "${CMAKE_CURRENT_BINARY_DIR}/muparserConfigVersion.cmake"
++    VERSION ${MUPARSER_VERSION}
++    COMPATIBILITY AnyNewerVersion
++)
++configure_file(muparserConfig.cmake.in
++    "${CMAKE_CURRENT_BINARY_DIR}/muparserConfig.cmake"
++    COPYONLY
++)
++install(EXPORT muparser-export
++    FILE muparser-targets.cmake
++    NAMESPACE muparser::
++    DESTINATION ${INSTALL_CONFIGDIR}
++)
++install(FILES
++    ${CMAKE_CURRENT_BINARY_DIR}/muparserConfig.cmake
++    ${CMAKE_CURRENT_BINARY_DIR}/muparserConfigVersion.cmake
++    DESTINATION ${INSTALL_CONFIGDIR}
++    COMPONENT Development
++)
++
++# Define variables for the pkg-config file
++set(PACKAGE_NAME muparser)
++configure_file(
++    muparser.pc.in
++    ${CMAKE_BINARY_DIR}/muparser.pc
++    @ONLY
++)
++install(
++    FILES ${CMAKE_BINARY_DIR}/muparser.pc
++    DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
++)
++
++include(CTest)
++enable_testing()
++
++add_executable (t_ParserTest test/t_ParserTest.cpp)
++target_link_libraries(t_ParserTest muparser)
++add_test (NAME ParserTest COMMAND t_ParserTest)
++
+diff --git a/muparserConfig.cmake.in b/muparserConfig.cmake.in
+new file mode 100644
+index 0000000..6a28a5e
+--- /dev/null
++++ b/muparserConfig.cmake.in
+@@ -0,0 +1,6 @@
++get_filename_component(muparser_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
++include(CMakeFindDependencyMacro)
++
++if(NOT TARGET muparser::muparser)
++    include("${muparser_CMAKE_DIR}/muparser-targets.cmake")
++endif()
+diff --git a/samples/example3/CMakeLists.txt b/samples/example3/CMakeLists.txt
+new file mode 100644
+index 0000000..0049c3e
+--- /dev/null
++++ b/samples/example3/CMakeLists.txt
+@@ -0,0 +1,12 @@
++cmake_minimum_required(VERSION 3.2)
++project(muparser-example3)
++
++# find muparser target already installed
++find_package(muparser 2.0 REQUIRED)
++
++add_executable(example3 example3.cpp)
++target_link_libraries(example3 muparser::muparser)
++
++include(CTest)
++add_test(example3 example3)
++
+diff --git a/samples/example3/README.md b/samples/example3/README.md
+new file mode 100644
+index 0000000..73e15d4
+--- /dev/null
++++ b/samples/example3/README.md
+@@ -0,0 +1,2 @@
++The example3 shows how to import and use muparser as an installed external
++dependency using cmake `find_package()`.
+diff --git a/samples/example3/build.sh b/samples/example3/build.sh
+new file mode 100755
+index 0000000..289fac9
+--- /dev/null
++++ b/samples/example3/build.sh
+@@ -0,0 +1,23 @@
++#!/bin/bash -x
++
++CWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
++MP_SOURCES=${CWD}/../../
++MP_BUILD=${CWD}/muparser-build
++MP_INSTALL=${CWD}/muparser-install
++EX3_BUILD_TREE=${CWD}/example3-using-buildtree
++EX3_INSTALL_TREE=${CWD}/example3-using-installtree
++
++# Build muparser and install it
++cmake -H${MP_SOURCES} -B${MP_BUILD} -DCMAKE_INSTALL_PREFIX=${MP_INSTALL}
++cmake --build ${MP_BUILD} --target install
++
++# Build the example using muparser build tree
++cmake -H${CWD} -B${EX3_BUILD_TREE} -DCMAKE_PREFIX_PATH=${MP_BUILD} 
++cmake --build ${EX3_BUILD_TREE} --target all
++cmake --build ${EX3_BUILD_TREE} --target test
++
++# Build the example using muparser install tree
++cmake -H${CWD} -B${EX3_INSTALL_TREE} -DCMAKE_PREFIX_PATH=${MP_INSTALL} 
++cmake --build ${EX3_INSTALL_TREE} --target all
++cmake --build ${EX3_INSTALL_TREE} --target test
++
+diff --git a/samples/example3/example3.cpp b/samples/example3/example3.cpp
+new file mode 100644
+index 0000000..78df86f
+--- /dev/null
++++ b/samples/example3/example3.cpp
+@@ -0,0 +1,49 @@
++/*
++
++    _____  __ _____________ _______  ______ ___________
++   /     \|  |  \____ \__  \\_  __ \/  ___// __ \_  __ \
++   |  Y Y  \  |  /  |_> > __ \|  | \/\___ \\  ___/|  | \/
++   |__|_|  /____/|   __(____  /__|  /____  >\___  >__|
++       \/      |__|       \/           \/     \/
++   Copyright (C) 2004 - 2020 Ingo Berg
++
++   Redistribution and use in source and binary forms, with or without modification, are permitted
++   provided that the following conditions are met:
++
++     * Redistributions of source code must retain the above copyright notice, this list of
++      conditions and the following disclaimer.
++     * Redistributions in binary form must reproduce the above copyright notice, this list of
++      conditions and the following disclaimer in the documentation and/or other materials provided
++      with the distribution.
++
++   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
++   IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
++   FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
++   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
++   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
++   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
++   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
++   OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
++*/
++
++// Small example using the cmake imported target. Include file and link library
++// should work automagically.
++
++#include <muParser.h>
++#include <muParserDef.h>
++
++int main()
++{
++   mu::Parser  parser;
++
++   mu::value_type  values[] = { 1, 2 };
++   parser.DefineVar("a", &values[0]);
++   parser.DefineVar("b", &values[1]);
++
++   std::string expr = "a + b";
++   parser.SetExpr("a + b");
++   mu::value_type ans = parser.Eval();
++   std::cout << expr << " == " << ans << "\n";
++
++   return (ans == 3.0) ? 0 : -1;
++}
+-- 
+2.33.1
+

diff --git a/dev-cpp/muParser/muParser-2.3.2.ebuild b/dev-cpp/muParser/muParser-2.3.2-r1.ebuild
similarity index 92%
rename from dev-cpp/muParser/muParser-2.3.2.ebuild
rename to dev-cpp/muParser/muParser-2.3.2-r1.ebuild
index 8e282638dbf..010002a56d2 100644
--- a/dev-cpp/muParser/muParser-2.3.2.ebuild
+++ b/dev-cpp/muParser/muParser-2.3.2-r1.ebuild
@@ -16,6 +16,8 @@ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~pp
 IUSE="doc openmp test"
 RESTRICT="!test? ( test )"
 
+PATCHES=( "${FILESDIR}/muParser-2.3-export-cmake.patch" )
+
 src_configure() {
 	mycmakeargs=(
 		-DENABLE_OPENMP=$(usex openmp)


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-cpp/muParser/, dev-cpp/muParser/files/
@ 2022-05-18  3:44 Matthias Maier
  0 siblings, 0 replies; 2+ messages in thread
From: Matthias Maier @ 2022-05-18  3:44 UTC (permalink / raw
  To: gentoo-commits

commit:     42efd3e7cb580da09b8c44c32b74c7cf69879629
Author:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Wed May 18 03:44:19 2022 +0000
Commit:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Wed May 18 03:44:52 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42efd3e7

dev-cpp/muParser: drop 2.2.6.1

Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>

 dev-cpp/muParser/Manifest                          |  1 -
 .../files/muParser-1.32-parallel-build.patch       | 15 --------
 dev-cpp/muParser/muParser-2.2.6.1.ebuild           | 45 ----------------------
 3 files changed, 61 deletions(-)

diff --git a/dev-cpp/muParser/Manifest b/dev-cpp/muParser/Manifest
index 40f4a377d887..2a400643c4b5 100644
--- a/dev-cpp/muParser/Manifest
+++ b/dev-cpp/muParser/Manifest
@@ -1,3 +1,2 @@
-DIST muParser-2.2.6.1.tar.gz 755653 BLAKE2B b3b6b8da57c0e8a0bda74038689d444ba8da00d6cce80030d8b35693209f0293874e4822c4941974be21fd4b7c09ba7df2c9cef861bc10b890aae4f641040faf SHA512 01bfc8cc48158c8413ae5e1da2ddbac1c9f0b9075470b1ab75853587d641dd195ebea268e1060a340098fd8015bc5f77d8e9cde5f81cffeade2f157c5f295496
 DIST muParser-2.3.2.tar.gz 103979 BLAKE2B f892b4d440a1b7326be27aa0a2b703ccafc02de5e881ef4780e8907688cf7905284f3e5f5855ad2596683f1dad309d287ebae527d917ebf5e0dad045551df7de SHA512 8ef5c8b3834da3995a782b7364a4eb4197fb706bee4cadabe5511d2a9cf2912c3db6de422a91eff7f9690f8c9c355b9900335e940749d5c243cb732ac1992aef
 DIST muParser-2.3.3.tar.gz 112100 BLAKE2B 79a0a29781596f114aeea9756a5a2141eed19857c08d0a32093353eb049f8b179af577cbd07747d2b8093e448714397b47f36c68e54bbce22386f5ec06365bda SHA512 f7e01c83f6ffe71e240653c47fdb8f3152d7fdf61b5997a3c717dec50d0175065c4fc4241ec95fb35b60b968c5c965a820009163ebe84f0fa57d64b3a23226b4

diff --git a/dev-cpp/muParser/files/muParser-1.32-parallel-build.patch b/dev-cpp/muParser/files/muParser-1.32-parallel-build.patch
deleted file mode 100644
index 1681c6e68034..000000000000
--- a/dev-cpp/muParser/files/muParser-1.32-parallel-build.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-Fixing parallel build issue
-
-http://bugs.gentoo.org/show_bug.cgi?id=310037
-
---- muparser_v132/Makefile.in
-+++ muparser_v132/Makefile.in
-@@ -291,7 +291,7 @@
- @COND_SHARED_1@	rm -f $(DESTDIR)$(prefix)/$$f; \
- @COND_SHARED_1@	done
- 
--@COND_SAMPLES_1@$(top_builddir)/samples/example1/example1$(EXEEXT): $(EXAMPLE1_OBJECTS) $(__muParser_lib___depname)
-+@COND_SAMPLES_1@$(top_builddir)/samples/example1/example1$(EXEEXT): $(EXAMPLE1_OBJECTS) $(__muParser_lib___depname) lib
- @COND_SAMPLES_1@	$(CXX) -o $@ $(EXAMPLE1_OBJECTS) -L$(top_builddir)/lib   -L$(srcdir)/lib $(LDFLAGS)  -lmuparser$(DEBUG_BUILD_POSTFIX) $(LIBS)
- @COND_SAMPLES_1@	
- @COND_SAMPLES_1@	$(__example1___mac_setfilecmd)

diff --git a/dev-cpp/muParser/muParser-2.2.6.1.ebuild b/dev-cpp/muParser/muParser-2.2.6.1.ebuild
deleted file mode 100644
index d8bd2f678d9a..000000000000
--- a/dev-cpp/muParser/muParser-2.2.6.1.ebuild
+++ /dev/null
@@ -1,45 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DESCRIPTION="Library for parsing mathematical expressions"
-HOMEPAGE="https://beltoforion.de/en/muparser/"
-SRC_URI="https://github.com/beltoforion/muparser/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-S="${WORKDIR}"/muparser-${PV}
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv x86 ~amd64-linux ~x86-linux ~ppc-macos"
-IUSE="doc test"
-RESTRICT="!test? ( test )"
-
-PATCHES=(
-	"${FILESDIR}"/${PN}-1.32-parallel-build.patch
-)
-
-src_prepare() {
-	default
-
-	sed -i \
-		-e 's:-O2::g' \
-		configure || die
-}
-
-src_configure() {
-	econf $(use_enable test samples)
-}
-
-src_test() {
-	cat > test.sh <<- EOFTEST
-	LD_LIBRARY_PATH="${S}/lib" samples/example1/example1 <<- EOF
-	quit
-	EOF
-	EOFTEST
-	sh ./test.sh || die "test failed"
-}
-
-src_install() {
-	default
-	dodoc Changes.txt
-}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-18  3:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-18  3:44 [gentoo-commits] repo/gentoo:master commit in: dev-cpp/muParser/, dev-cpp/muParser/files/ Matthias Maier
  -- strict thread matches above, loose matches on Subject: below --
2021-11-07 19:59 Alexey Shvetsov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox