View | Details | Raw Unified | Return to bug 232290
Collapse All | Expand All

(-)Makefile (-1 / +1 lines)
Lines 2-8 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	nim
4
PORTNAME=	nim
5
PORTVERSION=	0.18.0
5
PORTVERSION=	0.19.0
6
CATEGORIES=	lang
6
CATEGORIES=	lang
7
MASTER_SITES=	https://nim-lang.org/download/
7
MASTER_SITES=	https://nim-lang.org/download/
8
8
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1521039574
1
TIMESTAMP = 1539012209
2
SHA256 (nim-0.18.0.tar.xz) = 45c74adb35f08dfa9add1112ae17330e5d902ebb4a36e7046caee8b79e6f3bd0
2
SHA256 (nim-0.19.0.tar.xz) = a1996347253c590de42f6e36e33bd1d5ec7479c0aa013769b92deef802df3c2e
3
SIZE (nim-0.18.0.tar.xz) = 4415048
3
SIZE (nim-0.19.0.tar.xz) = 3321644
(-)files/patch-build.sh (-13 lines)
Lines 1-13 Link Here
1
--- build.sh.orig	2016-12-13 16:14:36 UTC
2
+++ build.sh
3
@@ -26,10 +26,6 @@
4
   esac
5
 done
6
 
7
-CC="gcc"
8
-LINKER="gcc"
9
-COMP_FLAGS="${CPPFLAGS:-} ${CFLAGS:-} -w -O3 -fno-strict-aliasing$extraBuildArgs"
10
-LINK_FLAGS="${LDFLAGS:-} "
11
 PS4=""
12
 # platform detection
13
 ucpu=`uname -m`
(-)files/patch-compiler-nimconf.nim (-14 lines)
Lines 1-14 Link Here
1
--- compiler/nimconf.nim.orig	2016-10-08 02:17:21 UTC
2
+++ compiler/nimconf.nim
3
@@ -221,9 +221,8 @@ proc getSystemConfigPath(filename: strin
4
   # the UNIX way)
5
   let p = getPrefixDir()
6
   result = joinPath([p, "config", filename])
7
-  when defined(unix):
8
-    if not existsFile(result): result = joinPath([p, "etc", filename])
9
-    if not existsFile(result): result = "/etc/" & filename
10
+  if not existsFile(result): result = joinPath([p, "etc", filename])
11
+  if not existsFile(result): result = "/etc/" & filename
12
 
13
 proc loadConfigs*(cfg: string) =
14
   setDefaultLibpath()
(-)files/patch-config-nim.cfg (-6 / +15 lines)
Lines 1-10 Link Here
1
--- config/nim.cfg.orig	2017-09-18 14:38:15.184686000 +0000
1
--- config/nim.cfg.orig	2018-10-08 18:40:28.240513000 +0200
2
+++ config/nim.cfg	2017-09-18 14:39:25.862654000 +0000
2
+++ config/nim.cfg	2018-10-08 18:42:30.824954000 +0200
3
@@ -74,12 +74,6 @@
3
@@ -8,7 +8,7 @@
4
 # Environment variables can be accessed like so:
5
 #  gcc.path %= "$CC_PATH"
6
 
7
-cc = gcc
8
+cc = clang
9
 
10
 # additional options always passed to the compiler:
11
 --parallel_build: "0" # 0 to auto-detect number of processors
12
@@ -82,12 +82,6 @@
4
     clang.cpp.options.linker = "-ldl"
13
     clang.cpp.options.linker = "-ldl"
5
     tcc.options.linker = "-ldl"
14
     tcc.options.linker = "-ldl"
6
   @end
15
   @end
7
-  @if bsd or haiku:
16
-  @if bsd:
8
-    # BSD got posix_spawn only recently, so we deactivate it for osproc:
17
-    # BSD got posix_spawn only recently, so we deactivate it for osproc:
9
-    define:useFork
18
-    define:useFork
10
-    # at least NetBSD has problems with thread local storage:
19
-    # at least NetBSD has problems with thread local storage:
Lines 11-15 Link Here
11
-    tlsEmulation:on
20
-    tlsEmulation:on
12
-  @end
21
-  @end
13
   @if haiku:
22
   @if haiku:
14
     # -fopenmp
23
     # Haiku currently have problems with TLS
15
     gcc.options.linker = "-lroot -lnetwork"
24
     # https://dev.haiku-os.org/ticket/14342
(-)files/patch-install.sh (-9 / +9 lines)
Lines 1-5 Link Here
1
--- install.sh.orig	2018-03-14 15:03:07.246974000 +0000
1
--- install.sh.orig	2018-10-08 18:45:36.608723000 +0200
2
+++ install.sh	2018-03-14 15:08:43.631474000 +0000
2
+++ install.sh	2018-10-08 18:51:00.101929000 +0200
3
@@ -15,48 +15,14 @@
3
@@ -15,48 +15,14 @@
4
     "--help"|"-h"|"help"|"h")
4
     "--help"|"-h"|"help"|"h")
5
       echo "Nim installation script"
5
       echo "Nim installation script"
Lines 15-33 Link Here
15
       ;;
15
       ;;
16
-    "/usr/bin")
16
-    "/usr/bin")
17
-      bindir=/usr/bin
17
-      bindir=/usr/bin
18
-      configdir=/etc
18
-      configdir=/etc/nim
19
-      libdir=/usr/lib/nim
19
-      libdir=/usr/lib/nim
20
-      docdir=/usr/share/nim/doc
20
-      docdir=/usr/share/nim/doc
21
-      datadir=/usr/share/nim/data
21
-      datadir=/usr/share/nim/data
22
-      nimbleDir="/opt/nimble/pkgs/compiler-0.18.0"
22
-      nimbleDir="/opt/nimble/pkgs/compiler-0.19.0"
23
-      ;;
23
-      ;;
24
-    "/usr/local/bin")
24
-    "/usr/local/bin")
25
-      bindir=/usr/local/bin
25
-      bindir=/usr/local/bin
26
-      configdir=/etc
26
-      configdir=/etc/nim
27
-      libdir=/usr/local/lib/nim
27
-      libdir=/usr/local/lib/nim
28
-      docdir=/usr/local/share/nim/doc
28
-      docdir=/usr/local/share/nim/doc
29
-      datadir=/usr/local/share/nim/data
29
-      datadir=/usr/local/share/nim/data
30
-      nimbleDir="/opt/nimble/pkgs/compiler-0.18.0"
30
-      nimbleDir="/opt/nimble/pkgs/compiler-0.19.0"
31
-      ;;
31
-      ;;
32
-    "/opt")
32
-    "/opt")
33
-      bindir="/opt/nim/bin"
33
-      bindir="/opt/nim/bin"
Lines 35-41 Link Here
35
-      libdir="/opt/nim/lib"
35
-      libdir="/opt/nim/lib"
36
-      docdir="/opt/nim/doc"
36
-      docdir="/opt/nim/doc"
37
-      datadir="/opt/nim/data"
37
-      datadir="/opt/nim/data"
38
-      nimbleDir="/opt/nimble/pkgs/compiler-0.18.0"
38
-      nimbleDir="/opt/nimble/pkgs/compiler-0.19.0"
39
-      mkdir -p /opt/nim
39
-      mkdir -p /opt/nim
40
-      mkdir -p $bindir
40
-      mkdir -p $bindir
41
-      mkdir -p $configdir
41
-      mkdir -p $configdir
Lines 47-53 Link Here
47
-      docdir="$1/nim/doc"
47
-      docdir="$1/nim/doc"
48
-      datadir="$1/nim/data"
48
-      datadir="$1/nim/data"
49
+      bindir="$1/bin"
49
+      bindir="$1/bin"
50
+      configdir="$1/etc"
50
+      configdir="$1/etc/nim"
51
+      libdir="$1/lib"
51
+      libdir="$1/lib"
52
+      docdir="$1/share/doc/nim"
52
+      docdir="$1/share/doc/nim"
53
+      datadir="$1/share/nim"
53
+      datadir="$1/share/nim"
Lines 54-60 Link Here
54
       nimbleDir="$1/nim"
54
       nimbleDir="$1/nim"
55
       mkdir -p $1/nim
55
       mkdir -p $1/nim
56
       mkdir -p $bindir
56
       mkdir -p $bindir
57
@@ -866,13 +832,6 @@
57
@@ -899,13 +865,6 @@
58
 else
58
 else
59
   echo "Nim installation script"
59
   echo "Nim installation script"
60
   echo "Usage: [sudo] sh install.sh DIR"
60
   echo "Usage: [sudo] sh install.sh DIR"
(-)pkg-plist (-12 / +29 lines)
Lines 1-11 Link Here
1
bin/nim
1
bin/nim
2
etc/nim.cfg
2
etc/nim/nim.cfg
3
etc/nimdoc.cfg
3
etc/nim/nimdoc.cfg
4
etc/nimdoc.tex.cfg
4
etc/nim/nimdoc.tex.cfg
5
lib/arch/x86/amd64.S
5
lib/arch/x86/amd64.S
6
lib/arch/x86/i386.S
6
lib/arch/x86/i386.S
7
lib/core/allocators.nim
7
lib/core/allocators.nim
8
lib/core/locks.nim
8
lib/core/locks.nim
9
lib/core/macrocache.nim
9
lib/core/macros.nim
10
lib/core/macros.nim
10
lib/core/refs.nim
11
lib/core/refs.nim
11
lib/core/rlocks.nim
12
lib/core/rlocks.nim
Lines 22-27 Link Here
22
lib/deprecated/pure/parseurl.nim
23
lib/deprecated/pure/parseurl.nim
23
lib/deprecated/pure/rawsockets.nim
24
lib/deprecated/pure/rawsockets.nim
24
lib/deprecated/pure/sockets.nim
25
lib/deprecated/pure/sockets.nim
26
lib/genode/alloc.nim
27
lib/genode/env.nim
25
lib/genode_cpp/syslocks.h
28
lib/genode_cpp/syslocks.h
26
lib/genode_cpp/threads.h
29
lib/genode_cpp/threads.h
27
lib/impure/db_mysql.nim
30
lib/impure/db_mysql.nim
Lines 38-48 Link Here
38
lib/js/asyncjs.nim
41
lib/js/asyncjs.nim
39
lib/js/dom.nim
42
lib/js/dom.nim
40
lib/js/jsconsole.nim
43
lib/js/jsconsole.nim
44
lib/js/jscore.nim
41
lib/js/jsffi.nim
45
lib/js/jsffi.nim
42
lib/nimbase.h
46
lib/nimbase.h
43
lib/nimrtl.nim
47
lib/nimrtl.nim
44
lib/nimrtl.nim.cfg
48
lib/nimrtl.nim.cfg
45
lib/packages/docutils/docutils.babel
49
lib/nintendoswitch/switch_memory.nim
50
lib/packages/docutils/docutils.nimble
46
lib/packages/docutils/highlite.nim
51
lib/packages/docutils/highlite.nim
47
lib/packages/docutils/rst.nim
52
lib/packages/docutils/rst.nim
48
lib/packages/docutils/rstast.nim
53
lib/packages/docutils/rstast.nim
Lines 55-60 Link Here
55
lib/posix/posix.nim
60
lib/posix/posix.nim
56
lib/posix/posix_linux_amd64.nim
61
lib/posix/posix_linux_amd64.nim
57
lib/posix/posix_linux_amd64_consts.nim
62
lib/posix/posix_linux_amd64_consts.nim
63
lib/posix/posix_nintendoswitch.nim
64
lib/posix/posix_nintendoswitch_consts.nim
58
lib/posix/posix_other.nim
65
lib/posix/posix_other.nim
59
lib/posix/posix_other_consts.nim
66
lib/posix/posix_other_consts.nim
60
lib/posix/termios.nim
67
lib/posix/termios.nim
Lines 145-150 Link Here
145
lib/pure/oswalkdir.nim
152
lib/pure/oswalkdir.nim
146
lib/pure/parsecfg.nim
153
lib/pure/parsecfg.nim
147
lib/pure/parsecsv.nim
154
lib/pure/parsecsv.nim
155
lib/pure/parsejson.nim
148
lib/pure/parseopt.nim
156
lib/pure/parseopt.nim
149
lib/pure/parseopt2.nim
157
lib/pure/parseopt2.nim
150
lib/pure/parsesql.nim
158
lib/pure/parsesql.nim
Lines 169-174 Link Here
169
lib/pure/strtabs.nim
177
lib/pure/strtabs.nim
170
lib/pure/strutils.nim
178
lib/pure/strutils.nim
171
lib/pure/subexes.nim
179
lib/pure/subexes.nim
180
lib/pure/sugar.nim
172
lib/pure/terminal.nim
181
lib/pure/terminal.nim
173
lib/pure/times.nim
182
lib/pure/times.nim
174
lib/pure/typetraits.nim
183
lib/pure/typetraits.nim
Lines 184-189 Link Here
184
lib/pure/xmlparser.nim
193
lib/pure/xmlparser.nim
185
lib/pure/xmltree.nim
194
lib/pure/xmltree.nim
186
lib/std/sha1.nim
195
lib/std/sha1.nim
196
lib/std/varints.nim
187
lib/stdlib.nimble
197
lib/stdlib.nimble
188
lib/system.nim
198
lib/system.nim
189
lib/system/alloc.nim
199
lib/system/alloc.nim
Lines 207-216 Link Here
207
lib/system/gc_common.nim
217
lib/system/gc_common.nim
208
lib/system/gc_ms.nim
218
lib/system/gc_ms.nim
209
lib/system/gc_regions.nim
219
lib/system/gc_regions.nim
210
lib/system/genodealloc.nim
220
lib/system/helpers.nim
211
lib/system/hti.nim
221
lib/system/hti.nim
212
lib/system/inclrtl.nim
222
lib/system/inclrtl.nim
213
lib/system/jssys.nim
223
lib/system/jssys.nim
224
lib/system/memory.nim
214
lib/system/memtracker.nim
225
lib/system/memtracker.nim
215
lib/system/mmdisp.nim
226
lib/system/mmdisp.nim
216
lib/system/nimscript.nim
227
lib/system/nimscript.nim
Lines 220-225 Link Here
220
lib/system/repr.nim
231
lib/system/repr.nim
221
lib/system/reprjs.nim
232
lib/system/reprjs.nim
222
lib/system/sets.nim
233
lib/system/sets.nim
234
lib/system/strmantle.nim
223
lib/system/sysio.nim
235
lib/system/sysio.nim
224
lib/system/syslocks.nim
236
lib/system/syslocks.nim
225
lib/system/sysspawn.nim
237
lib/system/sysspawn.nim
Lines 247-255 Link Here
247
nim/compiler/ast.nim
259
nim/compiler/ast.nim
248
nim/compiler/astalgo.nim
260
nim/compiler/astalgo.nim
249
nim/compiler/bitsets.nim
261
nim/compiler/bitsets.nim
262
nim/compiler/btrees.nim
250
nim/compiler/canonicalizer.nim
263
nim/compiler/canonicalizer.nim
251
nim/compiler/ccgcalls.nim
264
nim/compiler/ccgcalls.nim
252
nim/compiler/ccgexprs.nim
265
nim/compiler/ccgexprs.nim
266
nim/compiler/ccgliterals.nim
253
nim/compiler/ccgmerge.nim
267
nim/compiler/ccgmerge.nim
254
nim/compiler/ccgstmts.nim
268
nim/compiler/ccgstmts.nim
255
nim/compiler/ccgthreadvars.nim
269
nim/compiler/ccgthreadvars.nim
Lines 259-266 Link Here
259
nim/compiler/cgen.nim
273
nim/compiler/cgen.nim
260
nim/compiler/cgendata.nim
274
nim/compiler/cgendata.nim
261
nim/compiler/cgmeth.nim
275
nim/compiler/cgmeth.nim
276
nim/compiler/closureiters.nim
277
nim/compiler/cmdlinehelper.nim
262
nim/compiler/commands.nim
278
nim/compiler/commands.nim
263
nim/compiler/condsyms.nim
279
nim/compiler/condsyms.nim
280
nim/compiler/configuration.nim
264
nim/compiler/debuginfo.nim
281
nim/compiler/debuginfo.nim
265
nim/compiler/depends.nim
282
nim/compiler/depends.nim
266
nim/compiler/destroyer.nim
283
nim/compiler/destroyer.nim
Lines 279-294 Link Here
279
nim/compiler/idents.nim
296
nim/compiler/idents.nim
280
nim/compiler/idgen.nim
297
nim/compiler/idgen.nim
281
nim/compiler/importer.nim
298
nim/compiler/importer.nim
299
nim/compiler/incremental.nim
282
nim/compiler/installer.ini
300
nim/compiler/installer.ini
283
nim/compiler/jsgen.nim
301
nim/compiler/jsgen.nim
284
nim/compiler/jstypes.nim
302
nim/compiler/jstypes.nim
285
nim/compiler/lambdalifting.nim
303
nim/compiler/lambdalifting.nim
304
nim/compiler/layouter.nim
286
nim/compiler/lexer.nim
305
nim/compiler/lexer.nim
287
nim/compiler/liftlocals.nim
306
nim/compiler/liftlocals.nim
307
nim/compiler/lineinfos.nim
308
nim/compiler/linter.nim
288
nim/compiler/lists.nim
309
nim/compiler/lists.nim
289
nim/compiler/llstream.nim
310
nim/compiler/llstream.nim
290
nim/compiler/lookups.nim
311
nim/compiler/lookups.nim
291
nim/compiler/lowerings.nim
312
nim/compiler/lowerings.nim
313
nim/compiler/macrocacheimpl.nim
292
nim/compiler/magicsys.nim
314
nim/compiler/magicsys.nim
293
nim/compiler/main.nim
315
nim/compiler/main.nim
294
nim/compiler/mapping.txt
316
nim/compiler/mapping.txt
Lines 304-310 Link Here
304
nim/compiler/nimeval.nim
326
nim/compiler/nimeval.nim
305
nim/compiler/nimfix/nimfix.nim
327
nim/compiler/nimfix/nimfix.nim
306
nim/compiler/nimfix/nimfix.nim.cfg
328
nim/compiler/nimfix/nimfix.nim.cfg
307
nim/compiler/nimfix/pretty.nim
308
nim/compiler/nimfix/prettybase.nim
329
nim/compiler/nimfix/prettybase.nim
309
nim/compiler/nimlexbase.nim
330
nim/compiler/nimlexbase.nim
310
nim/compiler/nimsets.nim
331
nim/compiler/nimsets.nim
Lines 316-327 Link Here
316
nim/compiler/parser.nim
337
nim/compiler/parser.nim
317
nim/compiler/passaux.nim
338
nim/compiler/passaux.nim
318
nim/compiler/passes.nim
339
nim/compiler/passes.nim
340
nim/compiler/pathutils.nim
319
nim/compiler/patterns.nim
341
nim/compiler/patterns.nim
320
nim/compiler/pbraces.nim
321
nim/compiler/platform.nim
342
nim/compiler/platform.nim
322
nim/compiler/plugins/active.nim
343
nim/compiler/plugins/active.nim
323
nim/compiler/plugins/itersgen.nim
344
nim/compiler/plugins/itersgen.nim
324
nim/compiler/plugins/locals/locals.nim
345
nim/compiler/plugins/locals.nim
325
nim/compiler/pluginsupport.nim
346
nim/compiler/pluginsupport.nim
326
nim/compiler/pragmas.nim
347
nim/compiler/pragmas.nim
327
nim/compiler/prefixmatches.nim
348
nim/compiler/prefixmatches.nim
Lines 331-339 Link Here
331
nim/compiler/reorder.nim
352
nim/compiler/reorder.nim
332
nim/compiler/rod.nim
353
nim/compiler/rod.nim
333
nim/compiler/rodimpl.nim
354
nim/compiler/rodimpl.nim
334
nim/compiler/rodread.nim
335
nim/compiler/rodutils.nim
355
nim/compiler/rodutils.nim
336
nim/compiler/rodwrite.nim
337
nim/compiler/ropes.nim
356
nim/compiler/ropes.nim
338
nim/compiler/saturate.nim
357
nim/compiler/saturate.nim
339
nim/compiler/scriptconfig.nim
358
nim/compiler/scriptconfig.nim
Lines 355-361 Link Here
355
nim/compiler/semtempl.nim
374
nim/compiler/semtempl.nim
356
nim/compiler/semtypes.nim
375
nim/compiler/semtypes.nim
357
nim/compiler/semtypinst.nim
376
nim/compiler/semtypinst.nim
358
nim/compiler/service.nim
359
nim/compiler/sighashes.nim
377
nim/compiler/sighashes.nim
360
nim/compiler/sigmatch.nim
378
nim/compiler/sigmatch.nim
361
nim/compiler/suggest.nim
379
nim/compiler/suggest.nim
Lines 378-383 Link Here
378
nim/doc/advopt.txt
396
nim/doc/advopt.txt
379
nim/doc/basicopt.txt
397
nim/doc/basicopt.txt
380
%%PORTDOCS%%@dir %%DOCSDIR%%
398
%%PORTDOCS%%@dir %%DOCSDIR%%
381
%%PORTDOCS%%%%DOCSDIR%%/html/overview.html
382
%%TOOLS%%bin/nimgrep
399
%%TOOLS%%bin/nimgrep
383
%%TOOLS%%bin/nimsuggest
400
%%TOOLS%%bin/nimsuggest

Return to bug 232290