1 |
commit: 4f17cb81fb85a9599f9c948329e1bbc75579b23f |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 29 14:41:22 2011 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 29 14:41:22 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=4f17cb81 |
7 |
|
8 |
Another Version bump |
9 |
|
10 |
(Portage version: 2.2.0_alpha79/git/Linux x86_64, signed Manifest commit with key 70EB7916) |
11 |
|
12 |
--- |
13 |
sci-chemistry/simpson/ChangeLog | 6 ++ |
14 |
sci-chemistry/simpson/files/3.1.2-gentoo.patch | 114 ++++++++++++++++++++++++ |
15 |
sci-chemistry/simpson/simpson-3.1.2.ebuild | 44 +++++++++ |
16 |
3 files changed, 164 insertions(+), 0 deletions(-) |
17 |
|
18 |
diff --git a/sci-chemistry/simpson/ChangeLog b/sci-chemistry/simpson/ChangeLog |
19 |
index 33b30cf..16c557e 100644 |
20 |
--- a/sci-chemistry/simpson/ChangeLog |
21 |
+++ b/sci-chemistry/simpson/ChangeLog |
22 |
@@ -2,6 +2,12 @@ |
23 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
24 |
# $Header: $ |
25 |
|
26 |
+*simpson-3.1.2 (29 Nov 2011) |
27 |
+ |
28 |
+ 29 Nov 2011; Justin Lecher <jlec@g.o> +files/3.1.2-gentoo.patch, |
29 |
+ +simpson-3.1.2.ebuild: |
30 |
+ Another Version bump |
31 |
+ |
32 |
*simpson-3.1.0 (29 Nov 2011) |
33 |
|
34 |
29 Nov 2011; Justin Lecher <jlec@g.o> +files/3.1.0-gentoo.patch, |
35 |
|
36 |
diff --git a/sci-chemistry/simpson/files/3.1.2-gentoo.patch b/sci-chemistry/simpson/files/3.1.2-gentoo.patch |
37 |
new file mode 100644 |
38 |
index 0000000..34cd2b1 |
39 |
--- /dev/null |
40 |
+++ b/sci-chemistry/simpson/files/3.1.2-gentoo.patch |
41 |
@@ -0,0 +1,114 @@ |
42 |
+ Makefile | 106 +++++++++++++++++++++++++++++++------------------------------- |
43 |
+ 1 files changed, 53 insertions(+), 53 deletions(-) |
44 |
+ |
45 |
+diff --git a/Makefile b/Makefile |
46 |
+index 216955d..ba54573 100644 |
47 |
+--- a/Makefile |
48 |
++++ b/Makefile |
49 |
+@@ -1,53 +1,53 @@ |
50 |
+-VERSION = 3.1.2 |
51 |
+- |
52 |
+-# Mac OS X |
53 |
+-INCLUDES = -I/usr/include/tcl8.5 |
54 |
+-LIBRARIES = -lm -framework Accelerate -framework Tcl |
55 |
+-EXTRA_FLAGS = -DNO_CONST |
56 |
+-BINDIR = /usr/bin |
57 |
+- |
58 |
+-# Windows |
59 |
+-#INCLUDES = -IC:/Tcl/include -I../CBLAS/src |
60 |
+-#LIBRARIES = -lm *.dll |
61 |
+- |
62 |
+-# Linux (Ubuntu 10.?) |
63 |
+-#INCLUDES = -I/usr/include/tcl8.4 |
64 |
+-#LIBRARIES = -lm -llapack -lblas -ltcl8.4 |
65 |
+-#BINDIR = /usr/local/bin |
66 |
+- |
67 |
+-# Linux MPI |
68 |
+-#INCLUDES = -I/usr/include/tcl8.4 -I/com/intel/mkl/10.1.1.019/include/ |
69 |
+-#LIBRARIES = -L/com/intel/mkl/10.1.1.019/lib/em64t -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lmkl_lapack -liomp5 -ltcl8.4 -lm |
70 |
+-#CC = mpicc |
71 |
+-#EXTRA_FLAGS = -DMKL_INTEL -DMPI |
72 |
+- |
73 |
+-SRC = B0inhom.c crystdat.c gd.c iodata.c relax.c spinsys.c \ |
74 |
+-OCroutines.c csa.c gdfontg.c isotopes.c restrict.c tclcode.c \ |
75 |
+-cm_new.c csastat.c gdfontl.c main.c rfprof.c tclutil.c \ |
76 |
+-cmblock.c fft.c gdfontmb.c matrix_new.c rfshapes.c wigner.c \ |
77 |
+-complx.c fidcalc.c gdfonts.c new_direct.c sim.c zte.c \ |
78 |
+-contour.c fit.c gdfontt.c pulse.c simplex.c \ |
79 |
+-cryst.c ftools.c ham.c readsys.c simpson.c |
80 |
+-OBJ = $(SRC:.c=.o) |
81 |
+-CC = gcc |
82 |
+-STRIP = strip |
83 |
+-CP = cp |
84 |
+-FLAGS = -c -O3 |
85 |
+-RM = rm |
86 |
+-TAR = tar |
87 |
+-MKDIR = mkdir |
88 |
+- |
89 |
+-simpson: $(OBJ) |
90 |
+- $(CC) $(LIBRARIES) $(OBJ) -o simpson |
91 |
+-.c.o: |
92 |
+- $(CC) $(FLAGS) $(EXTRA_FLAGS) $(INCLUDES) -DVERSION=\"$(VERSION)\" $< |
93 |
+-clean: |
94 |
+- $(RM) -f *.o simpson |
95 |
+-dist: |
96 |
+- $(MKDIR) simpson-source-$(VERSION) |
97 |
+- $(CP) -r *.c *.h simpson.xcodeproj Makefile simpson-source-$(VERSION) |
98 |
+- $(TAR) cvjf simpson-source-$(VERSION).tbz2 simpson-source-$(VERSION) |
99 |
+- $(RM) -fr simpson-source-$(VERSION) |
100 |
+-install: |
101 |
+- $(STRIP) simpson |
102 |
+- $(CP) simpson $(BINDIR) |
103 |
++VERSION = 3.1.2 |
104 |
++ |
105 |
++# Mac OS X |
106 |
++INCLUDES = -I/usr/include/tcl8.5 |
107 |
++LIBRARIES = -lm -framework Accelerate -framework Tcl |
108 |
++EXTRA_FLAGS = -DNO_CONST |
109 |
++BINDIR = /usr/bin |
110 |
++ |
111 |
++# Windows |
112 |
++#INCLUDES = -IC:/Tcl/include -I../CBLAS/src |
113 |
++#LIBRARIES = -lm *.dll |
114 |
++ |
115 |
++# Linux |
116 |
++INCLUDES = -I@GENTOO_PORTAGE_EPREFIX@/usr/include/ |
117 |
++BLASLIBS = `pkg-config --libs blas lapack` |
118 |
++LIBRARIES = -lm ${BLASLIBS} -ltcl |
119 |
++ |
120 |
++# Linux MPI |
121 |
++#INCLUDES = -I/usr/include/tcl8.4 -I/com/intel/mkl/10.1.1.019/include/ |
122 |
++#LIBRARIES = -L/com/intel/mkl/10.1.1.019/lib/em64t -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lmkl_lapack -liomp5 -ltcl8.4 -lm |
123 |
++#CC = mpicc |
124 |
++#EXTRA_FLAGS = -DMKL_INTEL -DMPI |
125 |
++ |
126 |
++SRC = B0inhom.c crystdat.c gd.c iodata.c relax.c spinsys.c \ |
127 |
++OCroutines.c csa.c gdfontg.c isotopes.c restrict.c tclcode.c \ |
128 |
++cm_new.c csastat.c gdfontl.c main.c rfprof.c tclutil.c \ |
129 |
++cmblock.c fft.c gdfontmb.c matrix_new.c rfshapes.c wigner.c \ |
130 |
++complx.c fidcalc.c gdfonts.c new_direct.c sim.c zte.c \ |
131 |
++contour.c fit.c gdfontt.c pulse.c simplex.c \ |
132 |
++cryst.c ftools.c ham.c readsys.c simpson.c |
133 |
++OBJ = $(SRC:.c=.o) |
134 |
++CC = gcc |
135 |
++STRIP = strip |
136 |
++CP = cp |
137 |
++FLAGS = -c -O3 |
138 |
++RM = rm |
139 |
++TAR = tar |
140 |
++MKDIR = mkdir |
141 |
++ |
142 |
++simpson: $(OBJ) |
143 |
++ $(CC) $(LDFLAGS) -o $@ $(OBJ) $(LIBRARIES) |
144 |
++.c.o: |
145 |
++ $(CC) $(CFLAGS) $(EXTRA_FLAGS) $(INCLUDES) -DVERSION=\"$(VERSION)\" -c $< |
146 |
++clean: |
147 |
++ $(RM) -f *.o simpson |
148 |
++dist: |
149 |
++ $(MKDIR) simpson-source-$(VERSION) |
150 |
++ $(CP) -r *.c *.h simpson.xcodeproj Makefile simpson-source-$(VERSION) |
151 |
++ $(TAR) cvjf simpson-source-$(VERSION).tbz2 simpson-source-$(VERSION) |
152 |
++ $(RM) -fr simpson-source-$(VERSION) |
153 |
++install: |
154 |
++ $(STRIP) simpson |
155 |
++ $(CP) simpson $(BINDIR) |
156 |
|
157 |
diff --git a/sci-chemistry/simpson/simpson-3.1.2.ebuild b/sci-chemistry/simpson/simpson-3.1.2.ebuild |
158 |
new file mode 100644 |
159 |
index 0000000..b46c559 |
160 |
--- /dev/null |
161 |
+++ b/sci-chemistry/simpson/simpson-3.1.2.ebuild |
162 |
@@ -0,0 +1,44 @@ |
163 |
+# Copyright 1999-2011 Gentoo Foundation |
164 |
+# Distributed under the terms of the GNU General Public License v2 |
165 |
+# $Header: $ |
166 |
+ |
167 |
+EAPI=4 |
168 |
+ |
169 |
+inherit eutils prefix |
170 |
+ |
171 |
+DESCRIPTION="General-purpose software package for simulation virtually all kinds of solid-state NMR experiments" |
172 |
+HOMEPAGE="http://bionmr.chem.au.dk/bionmr/software/index.php" |
173 |
+SRC_URI="http://www.bionmr.chem.au.dk/download/${PN}/3.1/${PN}-source-${PV}.tbz2" |
174 |
+ |
175 |
+SLOT="0" |
176 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux" |
177 |
+LICENSE="GPL-2" |
178 |
+IUSE="gtk threads tk" |
179 |
+ |
180 |
+RDEPEND=" |
181 |
+ dev-libs/libf2c |
182 |
+ virtual/blas |
183 |
+ virtual/cblas |
184 |
+ virtual/lapack |
185 |
+ gtk? ( x11-libs/gtk+:1 ) |
186 |
+ tk? ( dev-lang/tk )" |
187 |
+DEPEND="${RDEPEND}" |
188 |
+ |
189 |
+S="${WORKDIR}"/${PN}-source-${PV} |
190 |
+ |
191 |
+src_prepare() { |
192 |
+ edos2unix Makefile |
193 |
+ epatch "${FILESDIR}"/${PV}-gentoo.patch |
194 |
+ epatch "${FILESDIR}"/3.0.1-type.patch |
195 |
+ eprefixify Makefile |
196 |
+} |
197 |
+ |
198 |
+src_compile() { |
199 |
+ emake \ |
200 |
+ CC="$(tc-getCC)" \ |
201 |
+ CFLAGS="${CFLAGS}" |
202 |
+} |
203 |
+ |
204 |
+src_install() { |
205 |
+ dobin ${PN} |
206 |
+} |