Browse Source
development/nim: Updated for version 2.2.0; new maintainer.
development/nim: Updated for version 2.2.0; new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>pull/249/head
committed by
Willy Sudiarto Raharjo
8 changed files with 197 additions and 33 deletions
-
2development/nim/README
-
2development/nim/doinst.sh
-
12development/nim/fix-lib-path.patch
-
12development/nim/fix-nim-gdb-path.patch
-
82development/nim/nim.SlackBuild
-
10development/nim/nim.info
-
108development/nim/remove-missing-documentation.patch
-
2development/nim/slack-desc
@ -1,3 +1,5 @@ |
|||
Nim is a statically typed compiled systems programming language. It |
|||
combines successful concepts from mature languages like Python, Ada |
|||
and Modula. |
|||
|
|||
This package also includes the Nimble package manager. |
@ -0,0 +1,12 @@ |
|||
diff -ur nim-2.2.0-orig/install.sh nim-2.2.0/install.sh
|
|||
--- nim-2.2.0-orig/install.sh 2024-10-04 13:48:24.730391583 +0200
|
|||
+++ nim-2.2.0/install.sh 2024-10-06 15:57:45.877571032 +0200
|
|||
@@ -27,7 +27,7 @@
|
|||
"/usr/bin") |
|||
bindir=$1 |
|||
configdir="/etc/nim" |
|||
- libdir="/usr/lib/nim"
|
|||
+ libdir="/usr/lib/nim/lib"
|
|||
docdir="/usr/share/nim/doc" |
|||
datadir="/usr/share/nim/data" |
|||
nimbleDir="/opt/nimble/pkgs/nim-2.2.0" |
@ -0,0 +1,12 @@ |
|||
diff -ur nim-2.2.0-orig/bin/nim-gdb nim-2.2.0/bin/nim-gdb
|
|||
--- nim-2.2.0-orig/bin/nim-gdb 2024-10-04 13:48:24.730391583 +0200
|
|||
+++ nim-2.2.0/bin/nim-gdb 2024-10-06 15:02:47.005375794 +0200
|
|||
@@ -14,7 +14,7 @@
|
|||
fi |
|||
|
|||
# Find out where the pretty printer Python module is |
|||
-GDB_PYTHON_MODULE_PATH="$NIM_SYSROOT/tools/debug/nim-gdb.py"
|
|||
+GDB_PYTHON_MODULE_PATH="/usr/lib/nim/tools/nim-gdb.py"
|
|||
|
|||
# Run GDB with the additional arguments that load the pretty printers |
|||
# Set the environment variable `NIM_GDB` to overwrite the call to a |
@ -1,10 +1,10 @@ |
|||
PRGNAM="nim" |
|||
VERSION="1.6.8" |
|||
VERSION="2.2.0" |
|||
HOMEPAGE="https://nim-lang.org" |
|||
DOWNLOAD="https://nim-lang.org/download/nim-1.6.8.tar.xz" |
|||
MD5SUM="d2a445ba7deeb27375e145826f35033e" |
|||
DOWNLOAD="https://nim-lang.org/download/nim-2.2.0.tar.xz" |
|||
MD5SUM="e2b4b57e1bc2e1e6b0d9766d17c46fb9" |
|||
DOWNLOAD_x86_64="" |
|||
MD5SUM_x86_64="" |
|||
REQUIRES="" |
|||
MAINTAINER="Ruben Schuller" |
|||
EMAIL="sb@rbn.im" |
|||
MAINTAINER="Nick Smallbone" |
|||
EMAIL="nick@smallbone.se" |
@ -0,0 +1,108 @@ |
|||
diff -ur nim-2.2.0-orig/doc/lib.md nim-2.2.0/doc/lib.md
|
|||
--- nim-2.2.0-orig/doc/lib.md 2024-10-04 13:48:24.723391623 +0200
|
|||
+++ nim-2.2.0/doc/lib.md 2024-10-06 14:28:26.817978213 +0200
|
|||
@@ -163,9 +163,6 @@
|
|||
* [objectdollar](objectdollar.html) |
|||
A generic `$` operator to convert objects to strings. |
|||
|
|||
-* [punycode](punycode.html)
|
|||
- Implements a representation of Unicode with the limited ASCII character subset.
|
|||
-
|
|||
* [strbasics](strbasics.html) |
|||
Some high performance string operations. |
|||
|
|||
@@ -326,9 +323,6 @@
|
|||
* [asyncfile](asyncfile.html) |
|||
An asynchronous file reading and writing using `asyncdispatch`. |
|||
|
|||
-* [asyncftpclient](asyncftpclient.html)
|
|||
- An asynchronous FTP client using the `asyncnet` module.
|
|||
-
|
|||
* [asynchttpserver](asynchttpserver.html) |
|||
An asynchronous HTTP server using the `asyncnet` module. |
|||
|
|||
@@ -364,9 +358,6 @@
|
|||
A selector API with backends specific to each OS. |
|||
Supported OS primitives: `epoll`, `kqueue`, `poll`, and `select` on Windows. |
|||
|
|||
-* [smtp](smtp.html)
|
|||
- A simple SMTP client with support for both synchronous and asynchronous operation.
|
|||
-
|
|||
* [socketstreams](socketstreams.html) |
|||
An implementation of the streams interface for sockets. |
|||
|
|||
@@ -603,26 +594,6 @@
|
|||
Many help functions for handling regular expressions. |
|||
The current implementation uses PCRE. |
|||
|
|||
-Database support
|
|||
-----------------
|
|||
-
|
|||
-* [db_mysql](db_mysql.html)
|
|||
- A higher level MySQL database wrapper. The same interface is implemented
|
|||
- for other databases too.
|
|||
-
|
|||
-* [db_odbc](db_odbc.html)
|
|||
- A higher level ODBC database wrapper. The same interface is implemented
|
|||
- for other databases too.
|
|||
-
|
|||
-* [db_postgres](db_postgres.html)
|
|||
- A higher level PostgreSQL database wrapper. The same interface is implemented
|
|||
- for other databases too.
|
|||
-
|
|||
-* [db_sqlite](db_sqlite.html)
|
|||
- A higher level SQLite database wrapper. The same interface is implemented
|
|||
- for other databases too.
|
|||
-
|
|||
-
|
|||
Generic Operating System Services |
|||
--------------------------------- |
|||
|
|||
diff -ur nim-2.2.0-orig/tools/kochdocs.nim nim-2.2.0/tools/kochdocs.nim
|
|||
--- nim-2.2.0-orig/tools/kochdocs.nim 2024-10-04 13:48:24.101395116 +0200
|
|||
+++ nim-2.2.0/tools/kochdocs.nim 2024-10-06 14:36:17.704553470 +0200
|
|||
@@ -94,7 +94,6 @@
|
|||
execFold(desc, cmd) |
|||
|
|||
const officialPackagesMarkdown = """ |
|||
-pkgs/atlas/doc/atlas.md
|
|||
""".splitWhitespace() |
|||
|
|||
proc getMd2html(): seq[string] = |
|||
@@ -158,28 +157,9 @@
|
|||
""".splitWhitespace() |
|||
|
|||
officialPackagesList = """ |
|||
-pkgs/asyncftpclient/src/asyncftpclient.nim
|
|||
-pkgs/smtp/src/smtp.nim
|
|||
-pkgs/punycode/src/punycode.nim
|
|||
-pkgs/db_connector/src/db_connector/db_common.nim
|
|||
-pkgs/db_connector/src/db_connector/db_mysql.nim
|
|||
-pkgs/db_connector/src/db_connector/db_odbc.nim
|
|||
-pkgs/db_connector/src/db_connector/db_postgres.nim
|
|||
-pkgs/db_connector/src/db_connector/db_sqlite.nim
|
|||
-pkgs/checksums/src/checksums/md5.nim
|
|||
-pkgs/checksums/src/checksums/sha1.nim
|
|||
-pkgs/checksums/src/checksums/sha2.nim
|
|||
-pkgs/checksums/src/checksums/sha3.nim
|
|||
-pkgs/checksums/src/checksums/bcrypt.nim
|
|||
-pkgs/htmlparser/src/htmlparser.nim
|
|||
""".splitWhitespace() |
|||
|
|||
officialPackagesListWithoutIndex = """ |
|||
-pkgs/db_connector/src/db_connector/mysql.nim
|
|||
-pkgs/db_connector/src/db_connector/sqlite3.nim
|
|||
-pkgs/db_connector/src/db_connector/postgres.nim
|
|||
-pkgs/db_connector/src/db_connector/odbcsql.nim
|
|||
-pkgs/db_connector/src/db_connector/private/dbutils.nim
|
|||
""".splitWhitespace() |
|||
|
|||
when (NimMajor, NimMinor) < (1, 1) or not declared(isRelativeTo): |
|||
@@ -348,7 +328,6 @@
|
|||
proc buildDocsDir*(args: string, dir: string) = |
|||
let args = nimArgs & " " & args |
|||
let docHackJsSource = buildJS() |
|||
- gitClonePackages(@["asyncftpclient", "punycode", "smtp", "db_connector", "checksums", "atlas", "htmlparser"])
|
|||
createDir(dir) |
|||
buildDocSamples(args, dir) |
|||
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue