public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/gklib/files/, sci-libs/gklib/
@ 2023-05-02 13:57 Andrew Ammerlaan
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Ammerlaan @ 2023-05-02 13:57 UTC (permalink / raw
  To: gentoo-commits

commit:     b4f6d32c350756661d1db7ebdcc5379cc560b587
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Tue May  2 13:55:26 2023 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Tue May  2 13:57:28 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4f6d32c

sci-libs/gklib: new package, add 5.1.1_p20230327

Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 sci-libs/gklib/Manifest                             |  1 +
 .../files/gklib-5.1.1_p20230327-multilib.patch      | 13 +++++++++++++
 sci-libs/gklib/gklib-5.1.1_p20230327.ebuild         | 21 +++++++++++++++++++++
 sci-libs/gklib/metadata.xml                         | 11 +++++++++++
 4 files changed, 46 insertions(+)

diff --git a/sci-libs/gklib/Manifest b/sci-libs/gklib/Manifest
new file mode 100644
index 000000000000..4d3ba01da662
--- /dev/null
+++ b/sci-libs/gklib/Manifest
@@ -0,0 +1 @@
+DIST gklib-5.1.1_p20230327.tar.gz 186266 BLAKE2B f8c8bad20d98717141f748364614bfe95644dbaadf9370f3ad4751eb5a8f1cc7a429b42481af86bbe4df18541366e594d3b8d078305d2154f76928f587af91fc SHA512 128cd9a48047b18b8013288162556f0b0f1d81845f5445f7cc62590ab28c06ee0a6c602cc999ce268ab27237eca3e8295df6432d377e45071946b98558872997

diff --git a/sci-libs/gklib/files/gklib-5.1.1_p20230327-multilib.patch b/sci-libs/gklib/files/gklib-5.1.1_p20230327-multilib.patch
new file mode 100644
index 000000000000..92fd8024f9a8
--- /dev/null
+++ b/sci-libs/gklib/files/gklib-5.1.1_p20230327-multilib.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 9cd1b4b..592b70a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -26,6 +26,6 @@ include_directories("test")
+ add_subdirectory("test")
+ 
+ install(TARGETS GKlib
+-  ARCHIVE DESTINATION lib/${LINSTALL_PATH}
+-  LIBRARY DESTINATION lib/${LINSTALL_PATH})
++  ARCHIVE DESTINATION lib${LIB_SUFFIX}/${LINSTALL_PATH}
++  LIBRARY DESTINATION lib${LIB_SUFFIX}/${LINSTALL_PATH})
+ install(FILES ${GKlib_includes} DESTINATION include/${HINSTALL_PATH})

diff --git a/sci-libs/gklib/gklib-5.1.1_p20230327.ebuild b/sci-libs/gklib/gklib-5.1.1_p20230327.ebuild
new file mode 100644
index 000000000000..487afc8fe562
--- /dev/null
+++ b/sci-libs/gklib/gklib-5.1.1_p20230327.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+COMMIT="8bd6bad750b2b0d90800c632cf18e8ee93ad72d7"
+
+DESCRIPTION="Helper routines and frameworks used by KarypisLab software"
+HOMEPAGE="https://github.com/KarypisLab/GKlib"
+SRC_URI="https://github.com/KarypisLab/GKlib/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/GKlib-${COMMIT}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+PATCHES=(
+	"${FILESDIR}/${P}-multilib.patch"
+)

diff --git a/sci-libs/gklib/metadata.xml b/sci-libs/gklib/metadata.xml
new file mode 100644
index 000000000000..1c83399ced50
--- /dev/null
+++ b/sci-libs/gklib/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="project">
+    <email>sci@gentoo.org</email>
+    <name>Gentoo Science Project</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="github">KarypisLab/GKlib</remote-id>
+  </upstream>
+</pkgmetadata>


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

* [gentoo-commits] repo/gentoo:master commit in: sci-libs/gklib/files/, sci-libs/gklib/
@ 2023-05-02 14:25 Andrew Ammerlaan
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Ammerlaan @ 2023-05-02 14:25 UTC (permalink / raw
  To: gentoo-commits

commit:     55f6641933bde51d14c1a67fe0957b997e122031
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Tue May  2 14:24:55 2023 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Tue May  2 14:25:12 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55f66419

sci-libs/gklib: respect user flags

Closes: https://bugs.gentoo.org/905469
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 .../gklib-5.1.1_p20230327-respect-user-flags.patch | 51 ++++++++++++++++++++++
 ...0327.ebuild => gklib-5.1.1_p20230327-r1.ebuild} |  1 +
 2 files changed, 52 insertions(+)

diff --git a/sci-libs/gklib/files/gklib-5.1.1_p20230327-respect-user-flags.patch b/sci-libs/gklib/files/gklib-5.1.1_p20230327-respect-user-flags.patch
new file mode 100644
index 000000000000..bbad20ee1113
--- /dev/null
+++ b/sci-libs/gklib/files/gklib-5.1.1_p20230327-respect-user-flags.patch
@@ -0,0 +1,51 @@
+diff --git a/GKlibSystem.cmake b/GKlibSystem.cmake
+index 31a1cf1..15ccfe7 100644
+--- a/GKlibSystem.cmake
++++ b/GKlibSystem.cmake
+@@ -31,21 +31,6 @@ endif(CYGWIN)
+ if(CMAKE_COMPILER_IS_GNUCC)
+ # GCC opts.
+   set(GKlib_COPTIONS "${GKlib_COPTIONS} -std=c99 -fno-strict-aliasing")
+-if(VALGRIND)
+-  set(GKlib_COPTIONS "${GK_COPTIONS} -march=x86-64 -mtune=generic")
+-else()
+-# -march=native is not a valid flag on PPC:
+-if(CMAKE_SYSTEM_PROCESSOR MATCHES "power|ppc|powerpc|ppc64|powerpc64" OR (APPLE AND CMAKE_OSX_ARCHITECTURES MATCHES "ppc|ppc64"))
+-  set(GKlib_COPTIONS "${GKlib_COPTIONS} -mtune=native")
+-else()
+-  set(GKlib_COPTIONS "${GKlib_COPTIONS} -march=native")
+-endif()
+-endif(VALGRIND)
+-  if(NOT MINGW)
+-      set(GKlib_COPTIONS "${GKlib_COPTIONS} -fPIC")
+-  endif(NOT MINGW)
+-# GCC warnings.
+-  set(GKlib_COPTIONS "${GKlib_COPTIONS} -Werror -Wall -pedantic -Wno-unused-function -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unknown-pragmas -Wno-unused-label")
+ elseif(${CMAKE_C_COMPILER_ID} MATCHES "Sun")
+ # Sun insists on -xc99.
+   set(GKlib_COPTIONS "${GKlib_COPTIONS} -xc99")
+@@ -71,24 +56,6 @@ if(NO_X86)
+   set(GKlib_COPTIONS "${GKlib_COPTIONS} -DNO_X86=${NO_X86}")
+ endif(NO_X86)
+ 
+-# Add various definitions.
+-if(GDB)
+-  set(GKlib_COPTS "${GKlib_COPTS} -g")
+-  set(GKlib_COPTIONS "${GKlib_COPTIONS} -Werror")
+-else()
+-  set(GKlib_COPTS "-O3")
+-endif(GDB)
+-
+-
+-if(DEBUG)
+-  set(GKlib_COPTS "-g")
+-  set(GKlib_COPTIONS "${GKlib_COPTIONS} -DDEBUG")
+-endif(DEBUG)
+-
+-if(GPROF)
+-  set(GKlib_COPTS "-pg")
+-endif(GPROF)
+-
+ if(NOT ASSERT)
+   set(GKlib_COPTIONS "${GKlib_COPTIONS} -DNDEBUG")
+ endif(NOT ASSERT)

diff --git a/sci-libs/gklib/gklib-5.1.1_p20230327.ebuild b/sci-libs/gklib/gklib-5.1.1_p20230327-r1.ebuild
similarity index 91%
rename from sci-libs/gklib/gklib-5.1.1_p20230327.ebuild
rename to sci-libs/gklib/gklib-5.1.1_p20230327-r1.ebuild
index 487afc8fe562..87573b9748ae 100644
--- a/sci-libs/gklib/gklib-5.1.1_p20230327.ebuild
+++ b/sci-libs/gklib/gklib-5.1.1_p20230327-r1.ebuild
@@ -18,4 +18,5 @@ KEYWORDS="~amd64"
 
 PATCHES=(
 	"${FILESDIR}/${P}-multilib.patch"
+	"${FILESDIR}/${P}-respect-user-flags.patch"
 )


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

end of thread, other threads:[~2023-05-02 14:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-02 14:25 [gentoo-commits] repo/gentoo:master commit in: sci-libs/gklib/files/, sci-libs/gklib/ Andrew Ammerlaan
  -- strict thread matches above, loose matches on Subject: below --
2023-05-02 13:57 Andrew Ammerlaan

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