* [gentoo-commits] proj/sci:master commit in: sci-libs/calculix-cgx/files/, sci-libs/calculix-ccx/files/, ...
@ 2016-03-29 17:15 Justin Lecher
0 siblings, 0 replies; 2+ messages in thread
From: Justin Lecher @ 2016-03-29 17:15 UTC (permalink / raw
To: gentoo-commits
commit: e93aea35f5392272ade15fc3df09441cc411d457
Author: Grégory Salvan <apieum <AT> gmail <DOT> com>
AuthorDate: Mon Mar 7 05:19:31 2016 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Tue Mar 22 13:55:12 2016 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=e93aea35
sci-libs/calculix-ccx-2.10 sci-libs/calculix-cgx-2.10 version bump (ref #602)
...-ccx-2.8_p2.ebuild => calculix-ccx-2.10.ebuild} | 15 ++++++----
...0_Makefile_custom_cc_flags_spooles_arpack.patch | 35 ++++++++++++++++++++++
...7_Makefile_custom_cc_flags_spooles_arpack.patch | 31 -------------------
.../calculix-ccx/files/01_ccx_2.7_lapack.patch | 11 -------
...2_Makefile_custom_cc_flags_spooles_arpack.patch | 32 --------------------
...-cgx-2.7-r1.ebuild => calculix-cgx-2.10.ebuild} | 31 +++++++++----------
...=> 01_cgx_2.10_Makefile_custom_cxx_flags.patch} | 33 ++++++++++----------
| 35 +++++++++++-----------
8 files changed, 93 insertions(+), 130 deletions(-)
diff --git a/sci-libs/calculix-ccx/calculix-ccx-2.8_p2.ebuild b/sci-libs/calculix-ccx/calculix-ccx-2.10.ebuild
similarity index 87%
rename from sci-libs/calculix-ccx/calculix-ccx-2.8_p2.ebuild
rename to sci-libs/calculix-ccx/calculix-ccx-2.10.ebuild
index f643dc9..c9eb261 100644
--- a/sci-libs/calculix-ccx/calculix-ccx-2.8_p2.ebuild
+++ b/sci-libs/calculix-ccx/calculix-ccx-2.10.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=5
+EAPI=6
inherit eutils toolchain-funcs flag-o-matic fortran-2
@@ -18,7 +18,7 @@ SRC_URI="
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="arpack doc examples threads"
+IUSE="arpack doc examples openmp threads"
RDEPEND="
arpack? ( >=sci-libs/arpack-3.1.3 )
@@ -31,9 +31,9 @@ DEPEND="${RDEPEND}
S=${WORKDIR}/CalculiX/${MY_P}/src
-src_prepare (){
- epatch "${FILESDIR}/01_${MY_P}_Makefile_custom_cc_flags_spooles_arpack.patch"
-}
+PATCHES=(
+ "${FILESDIR}/01_${MY_P}_Makefile_custom_cc_flags_spooles_arpack.patch"
+)
src_configure() {
# Technically we currently only need this when arpack is not used.
@@ -44,6 +44,11 @@ src_configure() {
if use threads; then
append-cflags "-DUSE_MT"
fi
+
+ if use openmp; then
+ append-fflags "-fopenmp"
+ append-cflags "-fopenmp"
+ fi
if use arpack; then
export ARPACKLIB=$($(tc-getPKG_CONFIG) --libs arpack)
diff --git a/sci-libs/calculix-ccx/files/01_ccx_2.10_Makefile_custom_cc_flags_spooles_arpack.patch b/sci-libs/calculix-ccx/files/01_ccx_2.10_Makefile_custom_cc_flags_spooles_arpack.patch
new file mode 100644
index 0000000..83caf80
--- /dev/null
+++ b/sci-libs/calculix-ccx/files/01_ccx_2.10_Makefile_custom_cc_flags_spooles_arpack.patch
@@ -0,0 +1,35 @@
+Fix Makefile to make it use custom CFLAGS and system libraries.
+
+diff -uwrN ccx_2.10.ORIG/src/Makefile ccx_2.10/src/Makefile
+--- src/Makefile 2016-03-07 04:57:09.462878788 +0100
++++ ccx_2.10/src/Makefile 2016-03-07 06:05:44.150786978 +0100
+@@ -1,9 +1,6 @@
+
+-CFLAGS = -Wall -O3 -fopenmp -I ../../../SPOOLES.2.2 -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE
+-FFLAGS = -Wall -O3 -fopenmp
+-
+-CC=cc
+-FC=gfortran
++CFLAGS := -Wall -DARCH="Linux" -DMATRIXSTORAGE $(CFLAGS)
++FFLAGS := -Wall $(FFLAGS)
+
+ .c.o :
+ $(CC) $(CFLAGS) -c $<
+@@ -18,15 +15,10 @@
+ OCCXC = $(SCCXC:.c=.o)
+ OCCXMAIN = $(SCCXMAIN:.c=.o)
+
+-DIR=../../../SPOOLES.2.2
+-
+-LIBS = \
+- $(DIR)/spooles.a \
+- ../../../ARPACK/libarpack_INTEL.a \
+- -lpthread -lm -lc
++LIBS = $(ARPACKLIB) $(LAPACK) -lm -lc -lspooles -lpthread
+
+ ccx_2.10: $(OCCXMAIN) ccx_2.10.a $(LIBS)
+- ./date.pl; $(CC) $(CFLAGS) -c ccx_2.10.c; $(FC) -fopenmp -Wall -O3 -o $@ $(OCCXMAIN) ccx_2.10.a $(LIBS)
++ ./date.pl; $(CC) $(CFLAGS) -c ccx_2.10.c; $(FC) $(FFLAGS) -o $@ $(OCCXMAIN) ccx_2.10.a $(LIBS)
+
+ ccx_2.10.a: $(OCCXF) $(OCCXC)
+ ar vr $@ $?
diff --git a/sci-libs/calculix-ccx/files/01_ccx_2.7_Makefile_custom_cc_flags_spooles_arpack.patch b/sci-libs/calculix-ccx/files/01_ccx_2.7_Makefile_custom_cc_flags_spooles_arpack.patch
deleted file mode 100644
index b042634..0000000
--- a/sci-libs/calculix-ccx/files/01_ccx_2.7_Makefile_custom_cc_flags_spooles_arpack.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-diff -rupN CalculiX/ccx_2.7/src/Makefile CalculiX.patched/ccx_2.7/src/Makefile
---- CalculiX/ccx_2.7/src/Makefile 2014-03-02 09:33:28.000000000 -0500
-+++ CalculiX.patched/ccx_2.7/src/Makefile 2014-09-04 16:49:28.456612880 -0400
-@@ -1,9 +1,8 @@
-+CFLAGS := -Wall -O3 -DARCH="Linux" -DMATRIXSTORAGE $(CFLAGS)
-+FFLAGS := -Wall -O3 $(FFLAGS)
-
--CFLAGS = -Wall -O3 -I ../../../SPOOLES.2.2 -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE
--FFLAGS = -Wall -O3
--
--CC=cc
--FC=gfortran
-+#CC:=cc
-+#FC:=gfortran
-
- .c.o :
- $(CC) $(CFLAGS) -c $<
-@@ -18,12 +17,7 @@ OCCXF = $(SCCXF:.f=.o)
- OCCXC = $(SCCXC:.c=.o)
- OCCXMAIN = $(SCCXMAIN:.c=.o)
-
--DIR=../../../SPOOLES.2.2
--
--LIBS = \
-- $(DIR)/spooles.a \
-- ../../../ARPACK/libarpack_INTEL.a \
-- -lpthread -lm -lc
-+LIBS = $(ARPACKLIB) $(LAPACK) -lm -lc -lspooles -lpthread
-
- ccx_2.7: $(OCCXMAIN) ccx_2.7.a $(LIBS)
- ./date.pl; $(CC) $(CFLAGS) -c ccx_2.7.c; $(FC) -Wall -O3 -o $@ $(OCCXMAIN) ccx_2.7.a $(LIBS)
diff --git a/sci-libs/calculix-ccx/files/01_ccx_2.7_lapack.patch b/sci-libs/calculix-ccx/files/01_ccx_2.7_lapack.patch
deleted file mode 100644
index cc83fca..0000000
--- a/sci-libs/calculix-ccx/files/01_ccx_2.7_lapack.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -rupN CalculiX/ccx_2.7/src/Makefile.inc CalculiX.patch/ccx_2.7/src/Makefile.inc
---- CalculiX/ccx_2.7/src/Makefile.inc 2014-03-02 09:33:27.000000000 -0500
-+++ CalculiX.patch/ccx_2.7/src/Makefile.inc 2014-08-30 11:18:14.914823360 -0400
-@@ -128,7 +128,6 @@ depvars.f \
- deuldlag.f \
- dflux.f \
- dfluxs.f \
--dgesv.f \
- distattach.f \
- distattach_3d.f \
- distattachline.f \
diff --git a/sci-libs/calculix-ccx/files/01_ccx_2.8p2_Makefile_custom_cc_flags_spooles_arpack.patch b/sci-libs/calculix-ccx/files/01_ccx_2.8p2_Makefile_custom_cc_flags_spooles_arpack.patch
deleted file mode 100644
index a47fdc6..0000000
--- a/sci-libs/calculix-ccx/files/01_ccx_2.8p2_Makefile_custom_cc_flags_spooles_arpack.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-Fix Makefile to make it use custom CFLAGS and system libraries.
-
---- CalculiX.orig/ccx_2.8p2/src/Makefile 2015-05-21 11:04:58.125111330 +0300
-+++ CalculiX/ccx_2.8p2/src/Makefile 2015-05-21 11:08:26.848130631 +0300
-@@ -1,9 +1,9 @@
-
--CFLAGS = -Wall -O3 -I ../../../SPOOLES.2.2 -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE
--FFLAGS = -Wall -O3 -fopenmp
-+CFLAGS := -Wall -O3 -DARCH="Linux" -DMATRIXSTORAGE $(CFLAGS)
-+FFLAGS := -Wall -O3 $(FFLAGS)
-
--CC=cc
--FC=gfortran
-+#CC=cc
-+#FC=gfortran
-
- .c.o :
- $(CC) $(CFLAGS) -c $<
-@@ -18,12 +18,7 @@
- OCCXC = $(SCCXC:.c=.o)
- OCCXMAIN = $(SCCXMAIN:.c=.o)
-
--DIR=../../../SPOOLES.2.2
--
--LIBS = \
-- $(DIR)/spooles.a \
-- ../../../ARPACK/libarpack_INTEL.a \
-- -lpthread -lm -lc
-+LIBS = $(ARPACKLIB) $(LAPACK) -lm -lc -lspooles -lpthread
-
- ccx_2.8p2: $(OCCXMAIN) ccx_2.8p2.a $(LIBS)
- ./date.pl; $(CC) $(CFLAGS) -c ccx_2.8p2.c; $(FC) -fopenmp -Wall -O3 -o $@ $(OCCXMAIN) ccx_2.8p2.a $(LIBS)
diff --git a/sci-libs/calculix-cgx/calculix-cgx-2.7-r1.ebuild b/sci-libs/calculix-cgx/calculix-cgx-2.10.ebuild
similarity index 69%
rename from sci-libs/calculix-cgx/calculix-cgx-2.7-r1.ebuild
rename to sci-libs/calculix-cgx/calculix-cgx-2.10.ebuild
index d007036..0535bb8 100644
--- a/sci-libs/calculix-cgx/calculix-cgx-2.7-r1.ebuild
+++ b/sci-libs/calculix-cgx/calculix-cgx-2.10.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=5
+EAPI=6
inherit eutils
@@ -20,35 +20,36 @@ KEYWORDS="~amd64 ~x86"
IUSE="doc examples"
RDEPEND="media-libs/mesa[nptl]
- >=media-libs/freeglut-1.0"
+ >=media-libs/freeglut-1.0
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXmu
+ x11-libs/libXi
+ x11-libs/libXext
+ x11-libs/libXt
+ x11-libs/libSM
+ x11-libs/libICE"
DEPEND="${RDEPEND}
doc? ( app-text/ghostscript-gpl )"
S=${WORKDIR}/CalculiX/${MY_P}/src/
-src_unpack() {
- default
- cp "${DISTDIR}/${MY_P}.pdf" "${S}"
-}
-src_prepare() {
- epatch "${FILESDIR}"/01_${MY_P}_Makefile_custom_cxx_flags.patch
- epatch "${FILESDIR}"/02_${MY_P}_menu_fix-freeglut_2.8.1.patch
-}
+PATCHES=(
+ "${FILESDIR}"/01_${MY_P}_Makefile_custom_cxx_flags.patch
+ "${FILESDIR}"/02_${MY_P}_menu_fix-freeglut_2.8.1.patch
+)
src_configure () {
# Does not compile without -lpthread
- #if use nptl; then
export PTHREAD="-lpthread"
- #else
- # export PTHREAD=""
- #fi
+ export LFLAGS="-L/usr/$(get_libdir) ${LFLAGS}"
}
src_install () {
dobin cgx
if use doc; then
- dodoc ${MY_P}.pdf
+ dodoc "${DISTDIR}/${MY_P}.pdf"
fi
if use examples; then
diff --git a/sci-libs/calculix-cgx/files/01_cgx_2.7_Makefile_custom_cxx_flags.patch b/sci-libs/calculix-cgx/files/01_cgx_2.10_Makefile_custom_cxx_flags.patch
similarity index 72%
rename from sci-libs/calculix-cgx/files/01_cgx_2.7_Makefile_custom_cxx_flags.patch
rename to sci-libs/calculix-cgx/files/01_cgx_2.10_Makefile_custom_cxx_flags.patch
index 0c97613..d6e22f9 100644
--- a/sci-libs/calculix-cgx/files/01_cgx_2.7_Makefile_custom_cxx_flags.patch
+++ b/sci-libs/calculix-cgx/files/01_cgx_2.10_Makefile_custom_cxx_flags.patch
@@ -1,30 +1,30 @@
-diff -rupN CalculiX/cgx_2.7/src/Makefile CalculiX.patched/cgx_2.7/src/Makefile
---- CalculiX/cgx_2.7/src/Makefile 2014-02-18 13:47:05.000000000 -0500
-+++ CalculiX.patched/cgx_2.7/src/Makefile 2014-09-04 17:08:58.043266103 -0400
+diff -uwrN cgx_2.10.ORIG/src/Makefile cgx_2.10/src/Makefile
+--- src/Makefile 2016-01-13 12:41:40.398930000 +0100
++++ cgx_2.10/src/Makefile 2016-03-08 11:02:59.591853482 +0100
@@ -1,15 +1,15 @@
-CFLAGS = -O3 -Wall \
-+CFLAGS := -O3 -Wall \
++CFLAGS += -Wall \
-I./ \
-I/usr/include \
-I/usr/include/GL \
-I../../libSNL/src \
-I../../glut-3.5/src \
- -I/usr/X11/include
-+ -I/usr/X11/include $(CFLAGS)
++ -I/usr/include/X11
-LFLAGS = \
- -L/usr/lib64 -lGL -lGLU \
- -L/usr/X11R6/lib64 -lX11 -lXi -lXmu -lXext -lXt -lSM -lICE \
- -lm -lpthread -lrt
-+LFLAGS := \
-+ -L/usr/lib -lGL -lGLU -lglut \
-+ -L/usr/X11R6/lib -lX11 -lXi -lXmu -lXext -lXt -lSM -lICE \
-+ -lm $(PTHREAD) -lrt $(LFLAGS)
++LFLAGS += \
++ -lGL -lGLU -lglut\
++ -lX11 -lXi -lXmu -lXext -lXt -lSM -lICE \
++ -lm $(PTHREAD) -lrt
# on 32bit systems change lib64 to lib
-@@ -19,41 +19,6 @@ LFLAGS = \
- include Makefile.inc
+@@ -22,41 +22,6 @@
+ userFunction.c
SUTIL = \
- ../../glut-3.5/src/layerutil.c \
@@ -65,12 +65,9 @@ diff -rupN CalculiX/cgx_2.7/src/Makefile CalculiX.patched/cgx_2.7/src/Makefile
uselibSNL.cpp \
generateTet.cpp \
../../libSNL/src/*.cpp
-@@ -62,7 +27,7 @@ OLIB = $(SLIB:.c=.o)
+@@ -66,7 +31,7 @@
OUTIL = $(SUTIL:.c=.o)
- cgx: $(OLIB) $(OUTIL)
-- g++ $(OLIB) $(OUTIL) $(CFLAGS) $(LFLAGS) -o $@
-+ $(CXX) $(OLIB) $(OUTIL) $(CFLAGS) $(LFLAGS) -o $@
-
-
-
+ cgx: $(OLIB) $(OUTIL) $(OULIB)
+- g++ $(OULIB) $(OLIB) $(OUTIL) $(CFLAGS) $(LFLAGS) -o $@
++ $(CXX) $(OULIB) $(OLIB) $(OUTIL) $(CFLAGS) $(LFLAGS) -o $@
diff --git a/sci-libs/calculix-cgx/files/02_cgx_2.7_menu_fix-freeglut_2.8.1.patch b/sci-libs/calculix-cgx/files/02_cgx_2.10_menu_fix-freeglut_2.8.1.patch
similarity index 59%
rename from sci-libs/calculix-cgx/files/02_cgx_2.7_menu_fix-freeglut_2.8.1.patch
rename to sci-libs/calculix-cgx/files/02_cgx_2.10_menu_fix-freeglut_2.8.1.patch
index 8f304af..ff440b4 100644
--- a/sci-libs/calculix-cgx/files/02_cgx_2.7_menu_fix-freeglut_2.8.1.patch
+++ b/sci-libs/calculix-cgx/files/02_cgx_2.10_menu_fix-freeglut_2.8.1.patch
@@ -1,7 +1,7 @@
-diff -rupN CalculiX/cgx_2.7/src/cgx.c CalculiX.patched/cgx_2.7/src/cgx.c
---- CalculiX/cgx_2.7/src/cgx.c 2014-02-18 13:43:53.000000000 -0500
-+++ CalculiX.patched/cgx_2.7/src/cgx.c 2014-09-07 10:59:21.396969109 -0400
-@@ -240,6 +240,9 @@ int subsubmenu_entity=-1, subsubmenu_p
+diff -uwrN cgx_2.10.ORIG/src/cgx.c cgx_2.10/src/cgx.c
+--- src/cgx.c 2016-03-04 20:40:43.429549000 +0100
++++ cgx_2.10/src/cgx.c 2016-03-08 10:53:56.816865592 +0100
+@@ -242,6 +242,9 @@
int subsubmenu_animTune=-1, subsubmenu_animSteps=-1;
int subsubmenu_animPeriod=-1;
@@ -11,20 +11,20 @@ diff -rupN CalculiX/cgx_2.7/src/cgx.c CalculiX.patched/cgx_2.7/src/cgx.c
GLfloat lmodel_twoside[] = { GL_TRUE };
GLfloat lmodel_oneside[] = { GL_FALSE };
double dx ,dy; /* Mauskoordinaten im bereich +-1*/
-@@ -397,6 +400,12 @@ void allocUtilityData(void)
+@@ -400,7 +403,11 @@
+ #endif
}
-
+-
+void queueRecompileEntitiesInMenu(int lc)
+{
+ recompileFlag = 1;
+ recompileMenu = lc;
+}
-+
-
- #if INX_MODE
-@@ -3105,7 +3114,7 @@ void selectDataset( int selection )
+ /* the node pointer must not be changed inside the function. Since that is the case the *node is changed to *node_dummy
+ and the global *node is used which is always correct so far */
+@@ -3201,7 +3208,7 @@
seqLC[2]=anz->l-1;
}/* no sequence until a new entity is selected and all data are prepared */
@@ -33,7 +33,7 @@ diff -rupN CalculiX/cgx_2.7/src/cgx.c CalculiX.patched/cgx_2.7/src/cgx.c
}
-@@ -3133,7 +3142,15 @@ void createNewMainMenu(void)
+@@ -3229,7 +3236,15 @@
glutSetWindow( activWindow);
}
@@ -50,7 +50,7 @@ diff -rupN CalculiX/cgx_2.7/src/cgx.c CalculiX.patched/cgx_2.7/src/cgx.c
void recompileEntitiesInMenu(int lc)
{
-@@ -5486,6 +5503,7 @@ int main ( int argc, char **argv )
+@@ -5918,6 +5933,7 @@
glutSpecialFunc ( specialKeyboard );
glutEntryFunc ( entryfunktion );
glutPassiveMotionFunc ( Mouse );
@@ -58,16 +58,15 @@ diff -rupN CalculiX/cgx_2.7/src/cgx.c CalculiX.patched/cgx_2.7/src/cgx.c
glDisable(GL_DITHER);
glLightModelfv(GL_LIGHT_MODEL_TWO_SIDE, lmodel_oneside);
glCullFace ( GL_BACK );
-diff -rupN CalculiX/cgx_2.7/src/extUtil.h CalculiX.patched/cgx_2.7/src/extUtil.h
---- CalculiX/cgx_2.7/src/extUtil.h 2014-02-18 13:44:22.000000000 -0500
-+++ CalculiX.patched/cgx_2.7/src/extUtil.h 2014-09-07 10:54:05.816962047 -0400
-@@ -34,7 +34,8 @@ void printf_fflush(const char *fmt,...);
+diff -uwrN cgx_2.10.ORIG/src/extUtil.h cgx_2.10/src/extUtil.h
+--- src/extUtil.h 2016-02-13 02:21:44.342442000 +0100
++++ cgx_2.10/src/extUtil.h 2016-03-08 10:55:36.194863375 +0100
+@@ -34,7 +34,7 @@
}
#endif
#else
- #include <GL/glut_cgx.h>
-+ //#include <GL/glut_cgx.h>
+ #include <GL/glut.h>
#endif
- #define PI 3.14159265358979323846264338327950288
+ #define PI 3.14159265358979323846264338327950288
\ No newline at end of file
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/calculix-cgx/files/, sci-libs/calculix-ccx/files/, ...
@ 2020-09-27 23:42 Aisha Tammy
0 siblings, 0 replies; 2+ messages in thread
From: Aisha Tammy @ 2020-09-27 23:42 UTC (permalink / raw
To: gentoo-commits
commit: 90afbee2f7a8457590f89b4866a4c1ae5364f41a
Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
AuthorDate: Sun Sep 27 23:41:25 2020 +0000
Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
CommitDate: Sun Sep 27 23:41:25 2020 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=90afbee2
sci-libs/calculix-c{c,g}x: drop dead packages
depend on spooles which was defunct in 1999
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
sci-libs/calculix-ccx/calculix-ccx-2.10.ebuild | 74 ----------------------
...0_Makefile_custom_cc_flags_spooles_arpack.patch | 35 ----------
sci-libs/calculix-ccx/metadata.xml | 11 ----
sci-libs/calculix-cgx/calculix-cgx-2.10.ebuild | 58 -----------------
.../01_cgx_2.10_Makefile_custom_cxx_flags.patch | 73 ---------------------
| 72 ---------------------
sci-libs/calculix-cgx/metadata.xml | 8 ---
7 files changed, 331 deletions(-)
diff --git a/sci-libs/calculix-ccx/calculix-ccx-2.10.ebuild b/sci-libs/calculix-ccx/calculix-ccx-2.10.ebuild
deleted file mode 100644
index 9b7efa9f3..000000000
--- a/sci-libs/calculix-ccx/calculix-ccx-2.10.ebuild
+++ /dev/null
@@ -1,74 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit eutils toolchain-funcs flag-o-matic fortran-2
-
-MY_P=ccx_${PV/_/}
-
-DESCRIPTION="A Free Software Three-Dimensional Structural Finite Element Program"
-HOMEPAGE="http://www.calculix.de/"
-SRC_URI="
- http://www.dhondt.de/${MY_P}.src.tar.bz2
- doc? ( http://www.dhondt.de/${MY_P}.ps.tar.bz2 )
- examples? ( http://www.dhondt.de/${MY_P}.test.tar.bz2 )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="arpack doc examples openmp threads"
-
-RDEPEND="
- arpack? ( >=sci-libs/arpack-3.1.3 )
- >=sci-libs/spooles-2.2[threads=]
- virtual/lapack
- virtual/blas"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- doc? ( app-text/ghostscript-gpl )"
-
-S=${WORKDIR}/CalculiX/${MY_P}/src
-
-PATCHES=(
- "${FILESDIR}/01_${MY_P}_Makefile_custom_cc_flags_spooles_arpack.patch"
-)
-
-src_configure() {
- # Technically we currently only need this when arpack is not used.
- # Keeping things this way in case we change pkgconfig for arpack
- export LAPACK=$($(tc-getPKG_CONFIG) --libs lapack)
-
- append-cflags "-I/usr/include/spooles -DSPOOLES"
- if use threads; then
- append-cflags "-DUSE_MT"
- fi
-
- if use openmp; then
- append-fflags "-fopenmp"
- append-cflags "-fopenmp"
- fi
-
- if use arpack; then
- export ARPACKLIB=$($(tc-getPKG_CONFIG) --libs arpack)
- append-cflags "-DARPACK"
- fi
- export CC="$(tc-getCC)"
- export FC="$(tc-getFC)"
-}
-
-src_install () {
- dobin ${MY_P}
- dosym ${MY_P} /usr/bin/ccx
-
- if use doc; then
- cd "${S}/../doc" || die
- ps2pdf ${MY_P}.ps ${MY_P}.pdf || die "ps2pdf failed"
- dodoc ${MY_P}.pdf
- fi
-
- if use examples; then
- insinto /usr/share/doc/${PF}/examples
- doins -r "${S}"/../test/*
- fi
-}
diff --git a/sci-libs/calculix-ccx/files/01_ccx_2.10_Makefile_custom_cc_flags_spooles_arpack.patch b/sci-libs/calculix-ccx/files/01_ccx_2.10_Makefile_custom_cc_flags_spooles_arpack.patch
deleted file mode 100644
index 83caf80f9..000000000
--- a/sci-libs/calculix-ccx/files/01_ccx_2.10_Makefile_custom_cc_flags_spooles_arpack.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-Fix Makefile to make it use custom CFLAGS and system libraries.
-
-diff -uwrN ccx_2.10.ORIG/src/Makefile ccx_2.10/src/Makefile
---- src/Makefile 2016-03-07 04:57:09.462878788 +0100
-+++ ccx_2.10/src/Makefile 2016-03-07 06:05:44.150786978 +0100
-@@ -1,9 +1,6 @@
-
--CFLAGS = -Wall -O3 -fopenmp -I ../../../SPOOLES.2.2 -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE
--FFLAGS = -Wall -O3 -fopenmp
--
--CC=cc
--FC=gfortran
-+CFLAGS := -Wall -DARCH="Linux" -DMATRIXSTORAGE $(CFLAGS)
-+FFLAGS := -Wall $(FFLAGS)
-
- .c.o :
- $(CC) $(CFLAGS) -c $<
-@@ -18,15 +15,10 @@
- OCCXC = $(SCCXC:.c=.o)
- OCCXMAIN = $(SCCXMAIN:.c=.o)
-
--DIR=../../../SPOOLES.2.2
--
--LIBS = \
-- $(DIR)/spooles.a \
-- ../../../ARPACK/libarpack_INTEL.a \
-- -lpthread -lm -lc
-+LIBS = $(ARPACKLIB) $(LAPACK) -lm -lc -lspooles -lpthread
-
- ccx_2.10: $(OCCXMAIN) ccx_2.10.a $(LIBS)
-- ./date.pl; $(CC) $(CFLAGS) -c ccx_2.10.c; $(FC) -fopenmp -Wall -O3 -o $@ $(OCCXMAIN) ccx_2.10.a $(LIBS)
-+ ./date.pl; $(CC) $(CFLAGS) -c ccx_2.10.c; $(FC) $(FFLAGS) -o $@ $(OCCXMAIN) ccx_2.10.a $(LIBS)
-
- ccx_2.10.a: $(OCCXF) $(OCCXC)
- ar vr $@ $?
diff --git a/sci-libs/calculix-ccx/metadata.xml b/sci-libs/calculix-ccx/metadata.xml
deleted file mode 100644
index a62eacf73..000000000
--- a/sci-libs/calculix-ccx/metadata.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>sci@gentoo.org</email>
- <name>Gentoo Science Project</name>
- </maintainer>
- <use>
- <flag name="arpack"> Add sparse eigen value support via sci-libs/arpack </flag>
- </use>
-</pkgmetadata>
diff --git a/sci-libs/calculix-cgx/calculix-cgx-2.10.ebuild b/sci-libs/calculix-cgx/calculix-cgx-2.10.ebuild
deleted file mode 100644
index e7535f52f..000000000
--- a/sci-libs/calculix-cgx/calculix-cgx-2.10.ebuild
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit eutils
-
-MY_P=cgx_${PV}
-
-DESCRIPTION="A Free Software Three-Dimensional Structural Finite Element Program"
-HOMEPAGE="http://www.calculix.de/"
-SRC_URI="http://www.dhondt.de/${MY_P}.all.tar.bz2
- doc? ( http://www.dhondt.de/${MY_P}.pdf )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-# nptl removed since I cannot work around it
-IUSE="doc examples"
-
-RDEPEND="media-libs/mesa[nptl]
- >=media-libs/freeglut-1.0
- virtual/opengl
- x11-libs/libX11
- x11-libs/libXmu
- x11-libs/libXi
- x11-libs/libXext
- x11-libs/libXt
- x11-libs/libSM
- x11-libs/libICE"
-DEPEND="${RDEPEND}
- doc? ( app-text/ghostscript-gpl )"
-
-S=${WORKDIR}/CalculiX/${MY_P}/src/
-
-PATCHES=(
- "${FILESDIR}"/01_${MY_P}_Makefile_custom_cxx_flags.patch
- "${FILESDIR}"/02_${MY_P}_menu_fix-freeglut_2.8.1.patch
-)
-
-src_configure () {
- # Does not compile without -lpthread
- export PTHREAD="-lpthread"
- export LFLAGS="-L/usr/$(get_libdir) ${LFLAGS}"
-}
-
-src_install () {
- dobin cgx
-
- if use doc; then
- dodoc "${DISTDIR}/${MY_P}.pdf"
- fi
-
- if use examples; then
- insinto /usr/share/doc/${PF}/examples
- doins -r "${S}"/../examples/*
- fi
-}
diff --git a/sci-libs/calculix-cgx/files/01_cgx_2.10_Makefile_custom_cxx_flags.patch b/sci-libs/calculix-cgx/files/01_cgx_2.10_Makefile_custom_cxx_flags.patch
deleted file mode 100644
index d6e22f9c9..000000000
--- a/sci-libs/calculix-cgx/files/01_cgx_2.10_Makefile_custom_cxx_flags.patch
+++ /dev/null
@@ -1,73 +0,0 @@
-diff -uwrN cgx_2.10.ORIG/src/Makefile cgx_2.10/src/Makefile
---- src/Makefile 2016-01-13 12:41:40.398930000 +0100
-+++ cgx_2.10/src/Makefile 2016-03-08 11:02:59.591853482 +0100
-@@ -1,15 +1,15 @@
--CFLAGS = -O3 -Wall \
-+CFLAGS += -Wall \
- -I./ \
- -I/usr/include \
- -I/usr/include/GL \
- -I../../libSNL/src \
- -I../../glut-3.5/src \
-- -I/usr/X11/include
-+ -I/usr/include/X11
-
--LFLAGS = \
-- -L/usr/lib64 -lGL -lGLU \
-- -L/usr/X11R6/lib64 -lX11 -lXi -lXmu -lXext -lXt -lSM -lICE \
-- -lm -lpthread -lrt
-+LFLAGS += \
-+ -lGL -lGLU -lglut\
-+ -lX11 -lXi -lXmu -lXext -lXt -lSM -lICE \
-+ -lm $(PTHREAD) -lrt
-
-
- # on 32bit systems change lib64 to lib
-@@ -22,41 +22,6 @@
- userFunction.c
-
- SUTIL = \
-- ../../glut-3.5/src/layerutil.c \
-- ../../glut-3.5/src/glut_dials.c \
-- ../../glut-3.5/src/glut_ext.c \
-- ../../glut-3.5/src/glut_mesa.c \
-- ../../glut-3.5/src/glut_menu.c \
-- ../../glut-3.5/src/glut_modifier.c \
-- ../../glut-3.5/src/glut_space.c \
-- ../../glut-3.5/src/glut_shapes.c \
-- ../../glut-3.5/src/glut_tablet.c \
-- ../../glut-3.5/src/glut_warp.c \
-- ../../glut-3.5/src/glut_8x13.c \
-- ../../glut-3.5/src/glut_9x15.c \
-- ../../glut-3.5/src/glut_hel10.c \
-- ../../glut-3.5/src/glut_hel18.c \
-- ../../glut-3.5/src/glut_hel12.c \
-- ../../glut-3.5/src/glut_tr10.c \
-- ../../glut-3.5/src/glut_tr24.c \
-- ../../glut-3.5/src/glut_bitmap.c \
-- ../../glut-3.5/src/glut_cursor.c \
-- ../../glut-3.5/src/glut_event.c \
-- ../../glut-3.5/src/glut_get.c \
-- ../../glut-3.5/src/glut_overlay.c \
-- ../../glut-3.5/src/glut_input.c \
-- ../../glut-3.5/src/glut_stroke.c \
-- ../../glut-3.5/src/glut_teapot.c \
-- ../../glut-3.5/src/glut_winmisc.c \
-- ../../glut-3.5/src/glut_fullscrn.c \
-- ../../glut-3.5/src/glut_cindex.c \
-- ../../glut-3.5/src/glut_roman.c \
-- ../../glut-3.5/src/glut_mroman.c \
-- ../../glut-3.5/src/glut_swidth.c \
-- ../../glut-3.5/src/glut_bwidth.c \
-- ../../glut-3.5/src/glut_win.c \
-- ../../glut-3.5/src/glut_init.c \
-- ../../glut-3.5/src/glut_util.c \
- uselibSNL.cpp \
- generateTet.cpp \
- ../../libSNL/src/*.cpp
-@@ -66,7 +31,7 @@
- OUTIL = $(SUTIL:.c=.o)
-
- cgx: $(OLIB) $(OUTIL) $(OULIB)
-- g++ $(OULIB) $(OLIB) $(OUTIL) $(CFLAGS) $(LFLAGS) -o $@
-+ $(CXX) $(OULIB) $(OLIB) $(OUTIL) $(CFLAGS) $(LFLAGS) -o $@
diff --git a/sci-libs/calculix-cgx/files/02_cgx_2.10_menu_fix-freeglut_2.8.1.patch b/sci-libs/calculix-cgx/files/02_cgx_2.10_menu_fix-freeglut_2.8.1.patch
deleted file mode 100644
index ff440b44e..000000000
--- a/sci-libs/calculix-cgx/files/02_cgx_2.10_menu_fix-freeglut_2.8.1.patch
+++ /dev/null
@@ -1,72 +0,0 @@
-diff -uwrN cgx_2.10.ORIG/src/cgx.c cgx_2.10/src/cgx.c
---- src/cgx.c 2016-03-04 20:40:43.429549000 +0100
-+++ cgx_2.10/src/cgx.c 2016-03-08 10:53:56.816865592 +0100
-@@ -242,6 +242,9 @@
- int subsubmenu_animTune=-1, subsubmenu_animSteps=-1;
- int subsubmenu_animPeriod=-1;
-
-+char recompileFlag=0; /* 0 if nothing to recompile */
-+int recompileMenu=0; /* If recompile needed, set to lc */
-+
- GLfloat lmodel_twoside[] = { GL_TRUE };
- GLfloat lmodel_oneside[] = { GL_FALSE };
- double dx ,dy; /* Mauskoordinaten im bereich +-1*/
-@@ -400,7 +403,11 @@
- #endif
- }
-
--
-+void queueRecompileEntitiesInMenu(int lc)
-+{
-+ recompileFlag = 1;
-+ recompileMenu = lc;
-+}
-
- /* the node pointer must not be changed inside the function. Since that is the case the *node is changed to *node_dummy
- and the global *node is used which is always correct so far */
-@@ -3201,7 +3208,7 @@
- seqLC[2]=anz->l-1;
- }/* no sequence until a new entity is selected and all data are prepared */
-
-- recompileEntitiesInMenu(pre_lc);
-+ queueRecompileEntitiesInMenu(pre_lc);
- }
-
-
-@@ -3229,7 +3236,15 @@
- glutSetWindow( activWindow);
- }
-
--
-+void processMenuStatus(int status, int x, int y)
-+{
-+ if (status == GLUT_MENU_NOT_IN_USE) {
-+ if (recompileFlag) {
-+ recompileEntitiesInMenu(recompileMenu);
-+ recompileFlag = 0;
-+ }
-+ }
-+}
-
- void recompileEntitiesInMenu(int lc)
- {
-@@ -5918,6 +5933,7 @@
- glutSpecialFunc ( specialKeyboard );
- glutEntryFunc ( entryfunktion );
- glutPassiveMotionFunc ( Mouse );
-+ glutMenuStatusFunc( processMenuStatus );
- glDisable(GL_DITHER);
- glLightModelfv(GL_LIGHT_MODEL_TWO_SIDE, lmodel_oneside);
- glCullFace ( GL_BACK );
-diff -uwrN cgx_2.10.ORIG/src/extUtil.h cgx_2.10/src/extUtil.h
---- src/extUtil.h 2016-02-13 02:21:44.342442000 +0100
-+++ cgx_2.10/src/extUtil.h 2016-03-08 10:55:36.194863375 +0100
-@@ -34,7 +34,7 @@
- }
- #endif
- #else
-- #include <GL/glut_cgx.h>
-+ #include <GL/glut.h>
- #endif
-
- #define PI 3.14159265358979323846264338327950288
\ No newline at end of file
diff --git a/sci-libs/calculix-cgx/metadata.xml b/sci-libs/calculix-cgx/metadata.xml
deleted file mode 100644
index ae9640ffb..000000000
--- a/sci-libs/calculix-cgx/metadata.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>sci@gentoo.org</email>
- <name>Gentoo Science Project</name>
- </maintainer>
-</pkgmetadata>
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-27 23:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-27 23:42 [gentoo-commits] proj/sci:master commit in: sci-libs/calculix-cgx/files/, sci-libs/calculix-ccx/files/, Aisha Tammy
-- strict thread matches above, loose matches on Subject: below --
2016-03-29 17:15 Justin Lecher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox