mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
Add patches to fix build failures when using clang, when using the latest version of scons, when scons is using python 3, and to prevent the creation of the unwanted file gmtl-0.6.1.tar.gz and to install the file gmtl.pc. Add runtime dependencies on flagpoll and python which are used by gmtl-config. flagpoll is currently incompatible with python 3 and uses python27 so use the same python here to reduce the number of pythons a user needs to install. Specify absolute path to scons. Specify prefix at build time so that build output does not give the erroneous impression that files will be installed in /usr/local. Specify empty directories for Boost and CppUnit at build time so that any Boost or CppUnit that might be installed in /usr/local is not inadvertently used. No need to specify destroot.cmd or destroot.target; the defaults work. Add modeline. Modernize checksums. Set platforms to any and set supported_archs to noarch because this port doesn't install anything architecture- or OS-specific. Add GitHub handle to maintainers line. Install documentation files. Indicate license. The software claims to be licensed LGPL-2.1+ but there is also a license addendum that imposes additional restrictions and the LGPL does not permit the imposition of additional restrictions. Rewrite master_sites to avoid redirects. Closes: https://trac.macports.org/ticket/57421
67 lines
1.7 KiB
Diff
67 lines
1.7 KiB
Diff
Fixes for new SCons versions.
|
|
https://sourceforge.net/p/ggt/code/1267/
|
|
https://sourceforge.net/p/ggt/code/1277/
|
|
--- SConstruct.orig 2023-03-08 19:53:26.000000000 -0600
|
|
+++ SConstruct 2023-03-08 19:53:26.000000000 -0600
|
|
@@ -627,7 +627,7 @@
|
|
Export('baseEnv')
|
|
|
|
options_cache = 'options.cache.' + distutils.util.get_platform()
|
|
-opts = Options(options_cache)
|
|
+opts = Variables(options_cache)
|
|
AddCppUnitOptions(opts)
|
|
AddPythonOptions(opts)
|
|
AddBoostOptions(opts)
|
|
@@ -725,7 +725,7 @@
|
|
subdirs.append('Test')
|
|
SConscript(dirs = subdirs)
|
|
|
|
- env = baseEnv.Copy()
|
|
+ env = baseEnv.Clone()
|
|
|
|
# Build up the provides vars for the .fpc files
|
|
provides = "gmtl"
|
|
--- Test/TestSuite/SConscript.orig
|
|
+++ Test/TestSuite/SConscript
|
|
@@ -14,7 +14,7 @@
|
|
sources.extend(testcases_sources)
|
|
|
|
# Setup the runtests executable target
|
|
-env = baseEnv.Copy()
|
|
+env = baseEnv.Clone()
|
|
ApplyCppUnitOptions(env)
|
|
env.Append(CPPPATH = Split('#Test/TestSuite #'))
|
|
|
|
--- python/SConscript.orig
|
|
+++ python/SConscript
|
|
@@ -20,7 +20,7 @@
|
|
|
|
|
|
# Define the Python module
|
|
-env = baseEnv.Copy()
|
|
+env = baseEnv.Clone()
|
|
|
|
# If using GCC, deal with ld O(n^2) algorithm.
|
|
if env['CXX'][:3] == 'g++' and WhereIs('objcopy'):
|
|
--- tools/build/AutoDist.py.orig
|
|
+++ tools/build/AutoDist.py
|
|
@@ -109,7 +109,7 @@
|
|
|
|
# Clone the base environment if we have one
|
|
if baseEnv:
|
|
- self.data['env'] = baseEnv.Copy()
|
|
+ self.data['env'] = baseEnv.Clone()
|
|
else:
|
|
self.data['env'] = Environment()
|
|
|
|
@@ -378,7 +378,7 @@
|
|
"""
|
|
# Clone the base environment if we have one
|
|
if baseEnv:
|
|
- env = baseEnv.Copy()
|
|
+ env = baseEnv.Clone()
|
|
else:
|
|
env = Environment()
|
|
|
|
Terms Privacy Opt Out Advertise
|