Package Details: camfr 20070717-1

Git Clone URL: https://aur.archlinux.org/camfr.git (read-only, click to copy)
Package Base: camfr
Description: CAMFR (CAvity Modelling FRamework) is a fast, flexible, friendly full-vectorial Maxwell solver.
Upstream URL: http://camfr.sourceforge.net/
Licenses: GPL
Submitter: j-l
Maintainer: j-l
Last Packager: j-l
Votes: 0
Popularity: 0.000000
First Submitted: 2016-12-25 06:01
Last Updated: 2017-01-09 23:21

Latest Comments

hkl commented on 2020-03-24 21:01

Here is a patch for current python2 and scons versions:

diff --unified --recursive --text camfr.orig/machine_cfg.py camfr.new/machine_cfg.py --- camfr.orig/machine_cfg.py 2020-03-24 21:42:07.813224634 +0100 +++ camfr.new/machine_cfg.py 2020-03-24 21:55:57.226608419 +0100 @@ -2,14 +2,16 @@ # needed during the build process.

import sys -import popen2, os +import os +from subprocess import *

# Get compiler flags from Gentoo's /etc/make.conf.

-r, w = popen2.popen2("source /etc/make.conf ; echo $CFLAGS") -CXXFLAGS = r.readline().strip() -r.close() -w.close() +#r, w = popen2.popen2("source /etc/make.conf ; echo $CFLAGS") +p = Popen("source /etc/makepkg.conf ; echo $CFLAGS ", shell=True, + stdin=PIPE, stdout=PIPE, close_fds=True) +(stdoutdata, stderrdata) = p.communicate() +CXXFLAGS = stdoutdata.strip().decode("utf-8")

# For gcc 4.2.1, filter the flags a bit.

@@ -61,7 +63,7 @@ include_dirs.append("/usr/include/python2.3")
include_dirs.append("/usr/lib/python2.3/site-packages") else: - print "Python dir not found!" + print("Python dir not found!") sys.exit()

# Library directories. diff --unified --recursive --text camfr.orig/SConstruct camfr.new/SConstruct --- camfr.orig/SConstruct 2020-03-24 21:42:07.783225164 +0100 +++ camfr.new/SConstruct 2020-03-24 21:42:48.824890918 +0100 @@ -16,7 +16,7 @@ LIBS = libs, SHLIBPREFIX = "", ENV = os.environ)

-env_noopt = env.Copy(CCFLAGS = flags_noopt, CXXFLAGS = flags_noopt) +env_noopt = env.Clone(CCFLAGS = flags_noopt, CXXFLAGS = flags_noopt)

Export("env", "env_noopt") -SConscript("camfr/SConscript") \ Kein Zeilenumbruch am Dateiende. +SConscript("camfr/SConscript")