gentoo/sci-physics/pythia/files/pythia-8.3.15-ar.patch
Alexander Puck Neuwirth 87d830cf9b
sci-physics/pythia: add 8.3.15, 8.3.16, drop 8.3.13
- symlink inconsistent /usr/share/{pythia,Pythia8} names
- expose USE static-libs for sci-physics/madgraph5::sci
- add upstream submiteed AR patch for linked bug

See-also: https://github.com/gentoo/sci/pull/1380
Closes: https://bugs.gentoo.org/866719
Part-of: https://github.com/gentoo/gentoo/pull/44219
Signed-off-by: Alexander Puck Neuwirth <apn-pucky@gentoo.org>
2025-10-29 15:33:10 +01:00

24 lines
726 B
Diff

diff --git c/Makefile w/Makefile
index ba61cc2a..d301c3c2 100644
--- c/Makefile
+++ w/Makefile
@@ -17,6 +17,9 @@
# Set the shell.
SHELL=/usr/bin/env bash
+# Use standard variables if missing
+AR ?= ar
+ARFLAGS ?= cr
# Include the configuration and set the local directory structure.
ifeq (,$(findstring clean, $(MAKECMDGOALS)))
@@ -129,7 +132,7 @@ $(LOCAL_TMP)/Streams.o: $(LOCAL_SRC)/Streams.cc Makefile.inc
$(LOCAL_TMP)/%.o: $(LOCAL_SRC)/%.cc
$(CXX) $< -o $@ -c $(OBJ_COMMON)
$(LOCAL_LIB)/libpythia8.a: $(OBJECTS)
- ar cr $@ $^
+ $(AR) $(ARFLAGS) $@ $^
$(LOCAL_LIB)/libpythia8$(LIB_SUFFIX): $(OBJECTS)
$(CXX) $^ -o $@ $(CXX_COMMON) $(CXX_SHARED) $(CXX_SONAME)$(notdir $@)\
$(LIB_COMMON) $(CXX_DTAGS)