Gentoo Archives: gentoo-commits

From: Jauhien Piatlicki <jauhien@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/calculix-cgx/, sci-libs/calculix-cgx/files/
Date: Fri, 05 Sep 2014 15:24:44
Message-Id: 1409921019.feb2244b723c097b3412d70b8bc4fafe1a8495a0.jauhien@gentoo
1 commit: feb2244b723c097b3412d70b8bc4fafe1a8495a0
2 Author: Rongcui Dong <carldong76 <AT> gmail <DOT> com>
3 AuthorDate: Fri Sep 5 12:43:39 2014 +0000
4 Commit: Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 5 12:43:39 2014 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=feb2244b
7
8 Version bump
9
10 Package-Manager: portage-2.3.6-r9
11
12 ---
13 sci-libs/calculix-cgx/ChangeLog | 10 ++++--
14 ...ulix-cgx-2.2.ebuild => calculix-cgx-2.7.ebuild} | 23 +++++++------
15 ... => 01_cgx_2.7_Makefile_custom_cxx_flags.patch} | 39 +++++++++++++++++-----
16 3 files changed, 50 insertions(+), 22 deletions(-)
17
18 diff --git a/sci-libs/calculix-cgx/ChangeLog b/sci-libs/calculix-cgx/ChangeLog
19 index d9b884d..aeec23f 100644
20 --- a/sci-libs/calculix-cgx/ChangeLog
21 +++ b/sci-libs/calculix-cgx/ChangeLog
22 @@ -1,7 +1,14 @@
23 # ChangeLog for sci-libs/calculix-cgx
24 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
25 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
26 # $Header: $
27
28 +*calculix-cgx-2.7 (05 Sep 2014)
29 +
30 + 05 Sep 2014; Rongcui Dong <carldong76@×××××.com> +calculix-cgx-2.7.ebuild,
31 + +files/01_cgx_2.7_Makefile_custom_cxx_flags.patch, -calculix-cgx-2.2.ebuild,
32 + -files/01_cgx_2.2_Makefile.patch:
33 + Version bump
34 +
35 *calculix-cgx-2.2 (29 Oct 2010)
36
37 29 Oct 2010; Oliver Borm (boroli) <oli.borm@×××.de>
38 @@ -30,4 +37,3 @@
39 15 Oct 2008; Oliver Borm (boroli) <oli.borm@×××.de>
40 +files/01_cgx_1.8_Makefile.patch, +calculix-cgx-1.8.ebuild, +metadata.xml:
41 Reworked ebuild for bug 125775, thanks to pva
42 -
43
44 diff --git a/sci-libs/calculix-cgx/calculix-cgx-2.2.ebuild b/sci-libs/calculix-cgx/calculix-cgx-2.7.ebuild
45 similarity index 68%
46 rename from sci-libs/calculix-cgx/calculix-cgx-2.2.ebuild
47 rename to sci-libs/calculix-cgx/calculix-cgx-2.7.ebuild
48 index 14a9627..db1a43d 100644
49 --- a/sci-libs/calculix-cgx/calculix-cgx-2.2.ebuild
50 +++ b/sci-libs/calculix-cgx/calculix-cgx-2.7.ebuild
51 @@ -2,7 +2,7 @@
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: $
54
55 -EAPI=2
56 +EAPI=5
57
58 inherit eutils
59
60 @@ -11,14 +11,15 @@ MY_P=cgx_${PV}
61 DESCRIPTION="A Free Software Three-Dimensional Structural Finite Element Program"
62 HOMEPAGE="http://www.calculix.de/"
63 SRC_URI="http://www.dhondt.de/${MY_P}.all.tar.bz2
64 - doc? ( http://www.dhondt.de/${MY_P}.ps.bz2 )"
65 + doc? ( http://www.dhondt.de/${MY_P}.pdf )"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~amd64 ~x86"
70 -IUSE="doc examples nptl"
71 +# nptl removed since I cannot work around it
72 +IUSE="doc examples"
73
74 -RDEPEND="media-libs/mesa[nptl=]
75 +RDEPEND="media-libs/mesa[nptl]
76 >=media-libs/freeglut-1.0"
77 DEPEND="${RDEPEND}
78 doc? ( app-text/ghostscript-gpl )"
79 @@ -26,15 +27,16 @@ DEPEND="${RDEPEND}
80 S=${WORKDIR}/CalculiX/${MY_P}/src/
81
82 src_prepare() {
83 - epatch "${FILESDIR}"/01_${MY_P}_Makefile.patch
84 + epatch "${FILESDIR}"/01_${MY_P}_Makefile_custom_cxx_flags.patch
85 }
86
87 src_configure () {
88 - if use nptl; then
89 - export PTHREAD="-lpthread"
90 - else
91 - export PTHREAD=""
92 - fi
93 + # Does not compile without -lpthread
94 + #if use nptl; then
95 + export PTHREAD="-lpthread"
96 + #else
97 + # export PTHREAD=""
98 + #fi
99 }
100
101 src_install () {
102 @@ -42,7 +44,6 @@ src_install () {
103
104 if use doc; then
105 cd "${WORKDIR}"
106 - ps2pdf ${MY_P}.ps ${MY_P}.pdf
107 dodoc ${MY_P}.pdf
108 fi
109
110
111 diff --git a/sci-libs/calculix-cgx/files/01_cgx_2.2_Makefile.patch b/sci-libs/calculix-cgx/files/01_cgx_2.7_Makefile_custom_cxx_flags.patch
112 similarity index 61%
113 rename from sci-libs/calculix-cgx/files/01_cgx_2.2_Makefile.patch
114 rename to sci-libs/calculix-cgx/files/01_cgx_2.7_Makefile_custom_cxx_flags.patch
115 index f60d17a..0c97613 100644
116 --- a/sci-libs/calculix-cgx/files/01_cgx_2.2_Makefile.patch
117 +++ b/sci-libs/calculix-cgx/files/01_cgx_2.7_Makefile_custom_cxx_flags.patch
118 @@ -1,17 +1,29 @@
119 ---- CalculiX/cgx_2.0/src/Makefile.orig 2009-08-28 10:24:52.000000000 +0200
120 -+++ CalculiX/cgx_2.0/src/Makefile 2009-08-28 10:26:39.000000000 +0200
121 -@@ -7,8 +7,8 @@
122 - -I/usr/X11/include
123 +diff -rupN CalculiX/cgx_2.7/src/Makefile CalculiX.patched/cgx_2.7/src/Makefile
124 +--- CalculiX/cgx_2.7/src/Makefile 2014-02-18 13:47:05.000000000 -0500
125 ++++ CalculiX.patched/cgx_2.7/src/Makefile 2014-09-04 17:08:58.043266103 -0400
126 +@@ -1,15 +1,15 @@
127 +-CFLAGS = -O3 -Wall \
128 ++CFLAGS := -O3 -Wall \
129 + -I./ \
130 + -I/usr/include \
131 + -I/usr/include/GL \
132 + -I../../libSNL/src \
133 + -I../../glut-3.5/src \
134 +- -I/usr/X11/include
135 ++ -I/usr/X11/include $(CFLAGS)
136
137 - LFLAGS = \
138 +-LFLAGS = \
139 - -L/usr/lib64 -lGL -lGLU \
140 -- -L/usr/X11R6/lib64 -lX11 -lXext -lXi -lXmu -lXt -lSM -lICE \
141 +- -L/usr/X11R6/lib64 -lX11 -lXi -lXmu -lXext -lXt -lSM -lICE \
142 +- -lm -lpthread -lrt
143 ++LFLAGS := \
144 + -L/usr/lib -lGL -lGLU -lglut \
145 -+ -L/usr/X11R6/lib $(PTHREAD) -lX11 -lXext -lXi -lXmu -lXt -lSM -lICE \
146 - -lm
147 ++ -L/usr/X11R6/lib -lX11 -lXi -lXmu -lXext -lXt -lSM -lICE \
148 ++ -lm $(PTHREAD) -lrt $(LFLAGS)
149 +
150
151 # on 32bit systems change lib64 to lib
152 -@@ -18,41 +18,6 @@
153 +@@ -19,41 +19,6 @@ LFLAGS = \
154 include Makefile.inc
155
156 SUTIL = \
157 @@ -51,5 +63,14 @@
158 - ../../glut-3.5/src/glut_init.c \
159 - ../../glut-3.5/src/glut_util.c \
160 uselibSNL.cpp \
161 + generateTet.cpp \
162 ../../libSNL/src/*.cpp
163 +@@ -62,7 +27,7 @@ OLIB = $(SLIB:.c=.o)
164 + OUTIL = $(SUTIL:.c=.o)
165 +
166 + cgx: $(OLIB) $(OUTIL)
167 +- g++ $(OLIB) $(OUTIL) $(CFLAGS) $(LFLAGS) -o $@
168 ++ $(CXX) $(OLIB) $(OUTIL) $(CFLAGS) $(LFLAGS) -o $@
169 +
170 +