Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Apr 2020 11:11:50 +0000 (UTC)
From:      =?UTF-8?Q?Lo=c3=afc_Bartoletti?= <lbartoletti@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r530639 - in head/lang/nim: . files
Message-ID:  <202004041111.034BBoLJ086329@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lbartoletti
Date: Sat Apr  4 11:11:50 2020
New Revision: 530639
URL: https://svnweb.freebsd.org/changeset/ports/530639

Log:
  lang/nim: Update to 1.2.0
  
      - Remove files/patch-koch.nim (This patch is not needed to build nim and tools)
      - Update files/patch-install.sh and files/patch-config-nim.cfg
      - Unbreak arm (fixed upstream) [1]
      - Add all optional tools
      - Order pkg-plist
      - Move USES (pet portlint)
  
  [1] https://github.com/nim-lang/Nim/pull/13822
  
  Changelog:
  
      - https://nim-lang.org/blog/2020/04/03/version-120-released.html
  
  PR:		245328
  Approved by:	tcberner (mentor), Neal Nelson (maintainer)
  Differential Revision:	https://reviews.freebsd.org/D24294

Deleted:
  head/lang/nim/files/patch-koch.nim
Modified:
  head/lang/nim/Makefile
  head/lang/nim/distinfo
  head/lang/nim/files/patch-config-nim.cfg
  head/lang/nim/files/patch-install.sh
  head/lang/nim/pkg-plist

Modified: head/lang/nim/Makefile
==============================================================================
--- head/lang/nim/Makefile	Sat Apr  4 11:09:09 2020	(r530638)
+++ head/lang/nim/Makefile	Sat Apr  4 11:11:50 2020	(r530639)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	nim
-PORTVERSION=	1.0.6
+PORTVERSION=	1.2.0
 CATEGORIES=	lang
 MASTER_SITES=	https://nim-lang.org/download/
 
@@ -12,26 +12,26 @@ COMMENT=	Nim programming language
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/copying.txt
 
-BROKEN_aarch64=		fails to compile: crt1.c: undefined reference to main
-BROKEN_armv6=		fails to compile: crt1.c: undefined reference to main
-BROKEN_armv7=		fails to compile: crt1.c: undefined reference to main
 BROKEN_mips64=		fails to build: build.sh: clang: not found
 BROKEN_sparc64=		fails to build: build.sh: clang: not found
 
-TOOLS_DESC=	Build and install nimgrep and nimsuggest
+USES=		compiler tar:xz
 
+TOOLS_DESC=	Build and install nim tools
+
 OPTIONS_DEFINE=	DOCS TOOLS
+OPTIONS_DEFAULT=	DOCS TOOLS
+
 OPTIONS_SUB=	yes
 
 MAKE_JOBS_UNSAFE=	yes
-USES=		compiler tar:xz
 
 .include <bsd.port.pre.mk>
 
-TLIST=	nimgrep nimsuggest
+TLIST=	nimfind nimgrep nimpretty nimsuggest testament
 
 .if ${ARCH} == "powerpc64"
-.  if defined(PPC_ABI) && ${PPC_ABI} == ELFv1 
+.  if defined(PPC_ABI) && ${PPC_ABI} == ELFv1
 EXTRA_PATCHES=	${PATCHDIR}/elfv1-patch-build.sh
 .  endif
 .endif

Modified: head/lang/nim/distinfo
==============================================================================
--- head/lang/nim/distinfo	Sat Apr  4 11:09:09 2020	(r530638)
+++ head/lang/nim/distinfo	Sat Apr  4 11:11:50 2020	(r530639)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1580488025
-SHA256 (nim-1.0.6.tar.xz) = 134e5751cf62fa189f76616a698ce0df4b4a0c1419ec0b582924087e585f66b3
-SIZE (nim-1.0.6.tar.xz) = 5153708
+TIMESTAMP = 1585934270
+SHA256 (nim-1.2.0.tar.xz) = 4e94583a373965821805e665e0a05f52fb610916676edb09148941415637c575
+SIZE (nim-1.2.0.tar.xz) = 5869428

Modified: head/lang/nim/files/patch-config-nim.cfg
==============================================================================
--- head/lang/nim/files/patch-config-nim.cfg	Sat Apr  4 11:09:09 2020	(r530638)
+++ head/lang/nim/files/patch-config-nim.cfg	Sat Apr  4 11:11:50 2020	(r530639)
@@ -1,4 +1,4 @@
---- config/nim.cfg.orig	2019-07-22 09:41:23 UTC
+--- config/nim.cfg.orig	2020-04-03 17:22:53 UTC
 +++ config/nim.cfg
 @@ -8,7 +8,7 @@
  # Environment variables can be accessed like so:
@@ -9,25 +9,16 @@
  
  # additional options always passed to the compiler:
  --parallel_build: "0" # 0 to auto-detect number of processors
-@@ -105,12 +105,6 @@ path="$lib/pure"
+@@ -118,12 +118,6 @@ path="$lib/pure"
+     clang.options.linker = "-ldl"
      clang.cpp.options.linker = "-ldl"
      tcc.options.linker = "-ldl"
-   @end
+-  @end
 -  @if bsd:
 -    # BSD got posix_spawn only recently, so we deactivate it for osproc:
 -    define:useFork
 -    # at least NetBSD has problems with thread local storage:
 -    tlsEmulation:on
--  @end
+   @end
    @if haiku:
      gcc.options.linker = "-Wl,--as-needed -lnetwork"
-     gcc.cpp.options.linker = "-Wl,--as-needed -lnetwork"
-@@ -132,7 +126,7 @@ path="$lib/pure"
- @end
- 
- @if nintendoswitch:
--  cc = "switch_gcc"
-+  cc = "switch_clang"
-   switch_gcc.options.linker = "-g -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE"
-   switch_gcc.cpp.options.linker = "-g -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE"
-   switch_gcc.options.always = "-g -Wall -O2 -ffunction-sections -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -D__SWITCH__"

Modified: head/lang/nim/files/patch-install.sh
==============================================================================
--- head/lang/nim/files/patch-install.sh	Sat Apr  4 11:09:09 2020	(r530638)
+++ head/lang/nim/files/patch-install.sh	Sat Apr  4 11:11:50 2020	(r530639)
@@ -1,4 +1,4 @@
---- install.sh.orig	2020-01-31 16:27:59 UTC
+--- install.sh.orig	2020-04-03 17:25:49 UTC
 +++ install.sh
 @@ -15,48 +15,14 @@ if [ $# -eq 1 ] ; then
      "--help"|"-h"|"help"|"h")
@@ -19,7 +19,7 @@
 -      libdir=/usr/lib/nim
 -      docdir=/usr/share/nim/doc
 -      datadir=/usr/share/nim/data
--      nimbleDir="/opt/nimble/pkgs/compiler-1.0.6"
+-      nimbleDir="/opt/nimble/pkgs/compiler-1.2.0"
 -      ;;
 -    "/usr/local/bin")
 -      bindir=/usr/local/bin
@@ -27,7 +27,7 @@
 -      libdir=/usr/local/lib/nim
 -      docdir=/usr/local/share/nim/doc
 -      datadir=/usr/local/share/nim/data
--      nimbleDir="/opt/nimble/pkgs/compiler-1.0.6"
+-      nimbleDir="/opt/nimble/pkgs/compiler-1.2.0"
 -      ;;
 -    "/opt")
 -      bindir="/opt/nim/bin"
@@ -35,7 +35,7 @@
 -      libdir="/opt/nim/lib"
 -      docdir="/opt/nim/doc"
 -      datadir="/opt/nim/data"
--      nimbleDir="/opt/nimble/pkgs/compiler-1.0.6"
+-      nimbleDir="/opt/nimble/pkgs/compiler-1.2.0"
 -      mkdir -p /opt/nim
 -      mkdir -p $bindir
 -      mkdir -p $configdir
@@ -54,7 +54,7 @@
        nimbleDir="$1/nim"
        mkdir -p $1/nim
        mkdir -p $bindir
-@@ -923,13 +889,6 @@ chmod 644 $nimbleDir/compiler.nimble
+@@ -973,13 +939,6 @@ chmod 644 $nimbleDir/compiler.nimble
  else
    echo "Nim installation script"
    echo "Usage: [sudo] sh install.sh DIR"

Modified: head/lang/nim/pkg-plist
==============================================================================
--- head/lang/nim/pkg-plist	Sat Apr  4 11:09:09 2020	(r530638)
+++ head/lang/nim/pkg-plist	Sat Apr  4 11:11:50 2020	(r530639)
@@ -1,18 +1,19 @@
 bin/nim
-etc/nim/nim.cfg
-etc/nim/nimdoc.cfg
-etc/nim/nimdoc.tex.cfg
+%%TOOLS%%bin/nimfind
+%%TOOLS%%bin/nimgrep
+%%TOOLS%%bin/nimpretty
+%%TOOLS%%bin/nimsuggest
+%%TOOLS%%bin/testament
+%%ETCDIR%%/nim.cfg
+%%ETCDIR%%/nimdoc.cfg
+%%ETCDIR%%/nimdoc.tex.cfg
 lib/arch/x86/amd64.S
 lib/arch/x86/i386.S
-lib/core/allocators.nim
 lib/core/hotcodereloading.nim
 lib/core/locks.nim
 lib/core/macrocache.nim
 lib/core/macros.nim
 lib/core/rlocks.nim
-lib/core/runtime_v2.nim
-lib/core/seqs.nim
-lib/core/strs.nim
 lib/core/typeinfo.nim
 lib/cycle.h
 lib/deprecated/pure/LockFreeHash.nim
@@ -32,8 +33,6 @@ lib/impure/db_postgres.nim
 lib/impure/db_sqlite.nim
 lib/impure/nre.nim
 lib/impure/nre/private/util.nim
-lib/impure/osinfo_posix.nim
-lib/impure/osinfo_win.nim
 lib/impure/rdstdin.nim
 lib/impure/re.nim
 lib/js/asyncjs.nim
@@ -62,6 +61,7 @@ lib/posix/posix_linux_amd64_consts.nim
 lib/posix/posix_macos_amd64.nim
 lib/posix/posix_nintendoswitch.nim
 lib/posix/posix_nintendoswitch_consts.nim
+lib/posix/posix_openbsd_amd64.nim
 lib/posix/posix_other.nim
 lib/posix/posix_other_consts.nim
 lib/posix/posix_utils.nim
@@ -166,6 +166,7 @@ lib/pure/segfaults.nim
 lib/pure/selectors.nim
 lib/pure/smtp.nim
 lib/pure/smtp.nim.cfg
+lib/pure/ssl_certs.nim
 lib/pure/stats.nim
 lib/pure/streams.nim
 lib/pure/strformat.nim
@@ -186,30 +187,43 @@ lib/pure/uri.nim
 lib/pure/volatile.nim
 lib/pure/xmlparser.nim
 lib/pure/xmltree.nim
+lib/std/compilesettings.nim
+lib/std/decls.nim
 lib/std/editdistance.nim
+lib/std/logic.nim
 lib/std/monotimes.nim
+lib/std/private/underscored_calls.nim
 lib/std/sha1.nim
+lib/std/stackframes.nim
 lib/std/sums.nim
 lib/std/time_t.nim
 lib/std/varints.nim
+lib/std/with.nim
 lib/std/wordwrap.nim
+lib/std/wrapnils.nim
 lib/stdlib.nimble
 lib/system.nim
 lib/system/alloc.nim
 lib/system/ansi_c.nim
 lib/system/arithm.nim
+lib/system/arithmetics.nim
 lib/system/assertions.nim
 lib/system/assign.nim
 lib/system/atomics.nim
 lib/system/avltree.nim
+lib/system/basic_types.nim
 lib/system/cellsets.nim
 lib/system/cgprocs.nim
 lib/system/channels.nim
 lib/system/chcks.nim
+lib/system/comparisons.nim
+lib/system/cyclebreaker.nim
+lib/system/cyclicrefs_v2.nim
 lib/system/deepcopy.nim
 lib/system/dollars.nim
 lib/system/dyncalls.nim
 lib/system/embedded.nim
+lib/system/exceptions.nim
 lib/system/excpt.nim
 lib/system/fatal.nim
 lib/system/formatfloat.nim
@@ -217,25 +231,38 @@ lib/system/gc.nim
 lib/system/gc2.nim
 lib/system/gc_common.nim
 lib/system/gc_hooks.nim
+lib/system/gc_interface.nim
 lib/system/gc_ms.nim
 lib/system/gc_regions.nim
 lib/system/hti.nim
 lib/system/inclrtl.nim
 lib/system/indexerrors.nim
+lib/system/integerops.nim
 lib/system/io.nim
 lib/system/iterators.nim
+lib/system/iterators_1.nim
 lib/system/jssys.nim
+lib/system/memalloc.nim
 lib/system/memory.nim
 lib/system/memtracker.nim
+lib/system/mm/boehm.nim
+lib/system/mm/go.nim
+lib/system/mm/malloc.nim
+lib/system/mm/none.nim
 lib/system/mmdisp.nim
 lib/system/nimscript.nim
 lib/system/osalloc.nim
 lib/system/platforms.nim
 lib/system/profiler.nim
+lib/system/refs_v2.nim
 lib/system/repr.nim
+lib/system/repr_v2.nim
 lib/system/reprjs.nim
+lib/system/seqs_v2.nim
+lib/system/setops.nim
 lib/system/sets.nim
 lib/system/strmantle.nim
+lib/system/strs_v2.nim
 lib/system/syslocks.nim
 lib/system/sysspawn.nim
 lib/system/sysstr.nim
@@ -283,7 +310,6 @@ nim/compiler/closureiters.nim
 nim/compiler/cmdlinehelper.nim
 nim/compiler/commands.nim
 nim/compiler/condsyms.nim
-nim/compiler/configuration.nim
 nim/compiler/debuginfo.nim
 nim/compiler/depends.nim
 nim/compiler/dfa.nim
@@ -383,7 +409,9 @@ nim/compiler/semtypes.nim
 nim/compiler/semtypinst.nim
 nim/compiler/sighashes.nim
 nim/compiler/sigmatch.nim
+nim/compiler/sinkparameter_inference.nim
 nim/compiler/sizealignoffsetimpl.nim
+nim/compiler/sourcemap.nim
 nim/compiler/spawn.nim
 nim/compiler/suggest.nim
 nim/compiler/syntaxes.nim
@@ -405,7 +433,5 @@ nim/compiler/wordrecg.nim
 nim/compiler/writetracking.nim
 nim/doc/advopt.txt
 nim/doc/basicopt.txt
-%%PORTDOCS%%@dir %%DOCSDIR%%
+nim/doc/nimdoc.css
 %%PORTDOCS%%%%DOCSDIR%%/html/overview.html
-%%TOOLS%%bin/nimgrep
-%%TOOLS%%bin/nimsuggest



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004041111.034BBoLJ086329>