unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob e4a42035e3ae59e0eedfe7234253606322a56f9f 8476 bytes (raw)
name: gnu/packages/dotgnu.scm 	 # note: path name is non-authoritative(*)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
 
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2020 Pierre Neidhardt <mail@ambrevar.xyz>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages dotgnu)
  #:use-module (guix build-system gnu)
  #:use-module (guix download)
  #:use-module (guix gexp)
  #:use-module (guix packages)
  #:use-module ((guix licenses)
                #:prefix license:)
  #:use-module (gnu packages assembly)
  #:use-module (gnu packages autotools)
  #:use-module (gnu packages bdw-gc)
  #:use-module (gnu packages bison)
  #:use-module (gnu packages flex))

(define-public treecc
  (package
    (name "treecc")
    (version "0.3.10")
    (source (origin
              (method url-fetch)
              (uri (string-append
                    "mirror://savannah/dotgnu-pnet/"
                    "treecc-" version ".tar.gz"))
              (sha256
               (base32
                "1rzgnspg2xccdq3qsx0vi3j28h4qkrzbrjnhzvnny34fjfk217ay"))))
    (build-system gnu-build-system)
    (home-page "http://www.gnu.org/software/dotgnu/")
    (synopsis "Abstract syntax tree compiler compiler")
    (description
     "The treecc program is designed to assist in the development of compilers
and other language-based tools.  It manages the generation of code to handle
abstract syntax trees and operations upon the trees.")
    (license license:gpl2+)))

(define-public pnet
  (package
    (name "pnet")
    (version "0.8.0")
    (source (origin
              (method url-fetch)
              (uri (string-append
                    "mirror://savannah/dotgnu-pnet/pnet-"
                    version ".tar.gz"))
              (sha256
               (base32
                "1fsi8nkgvawjib2n4kyygfhfr31637bin84xkmr0apvsavihld7i"))
              (modules '((guix build utils)))
              (snippet
               #~(begin
                   (for-each delete-file-recursively '("libffi" "libgc"))
                   (for-each delete-file '("compile"
                                           "configure"
                                           "config.guess"
                                           "config.sub"
                                           "depcomp"
                                           "install-sh"
                                           "ltconfig"
                                           "ltcf-c.sh"
                                           "ltmain.sh"))
                   (for-each delete-file (find-files "." "Makefile\\.in$"))
                   (for-each delete-file (find-files "." "_grammar\\.(c|h)$"))
                   (for-each delete-file (find-files "." "_scanner\\.(c|h)$"))
                   ; Fix to not require bundled dependencies
                   (substitute* "configure.in"
                     (("FFILIBS='.*libffi.a'") "FFILIBS='-lffi'")
                     (("GCLIBS='.*libgc.a'") "GCLIBS='-lgc'")
                     ; AC_SEARCH_LIBJIT checks hardcoded header locations
                     (("search_libjit=true")
                      (string-append "search_libjit=false\n"
                                     "JIT_LIBS=-ljit")))
                   (substitute* "Makefile.am"
                     (("OPT_SUBDIRS \\+= lib.*") ""))
                   (substitute* "support/hb_gc.c"
                     (("#include .*/libgc/include/gc.h.")
                      "#include <gc.h>")
                     (("#include .*/libgc/include/gc_typed.h.")
                      "#include <gc_typed.h>"))
                   (substitute* "support/thread.c"
                     ; Maybe GC_CreateThread can be used as replacement?
                     (("result = GC_run_thread.*;")
                      "result = thread_func(arg);"))
                   (substitute* (list "codegen/Makefile.am"
                                      "cscc/bf/Makefile.am"
                                      "cscc/csharp/Makefile.am"
                                      "cscc/c/Makefile.am"
                                      "cscc/java/Makefile.am")
                     ; Generated files aren't prerequisites
                     (("TREECC_OUTPUT =.*") ""))
                   (substitute* "cscc/csharp/cs_grammar.y"
                     (("YYLEX") "yylex()"))
                   (substitute* "cscc/common/cc_main.h"
                     (("CCPreProc CCPreProcessorStream;" all)
                      (string-append "extern " all)))
                   (substitute* "csdoc/scanner.c"
                     (("int\ttoken;" all)
                      (string-append "extern " all)))))))
    (build-system gnu-build-system)
    (native-inputs
     (list autoconf
           automake
           bison
           flex
           libtool
           libatomic-ops
           treecc))
    (inputs
     (list libgc
           libgc-all-headers
           libjit))
    (arguments
     (list #:configure-flags
           #~(list
              (string-append
               "CPPFLAGS=-I" #$(this-package-input "libgc") "/include/gc"
               " -I" #$(this-package-input "libgc-all-headers") "/include/private")
              "--with-jit")))
    (native-search-paths
        (list (search-path-specification
               (variable "CSCC_LIB_PATH")
               (files (list "lib/cscc/lib")))))
    (home-page "http://www.gnu.org/software/dotgnu/html2.0/pnet.html")
    (synopsis "Compiler for the C# programming language")
    (description
     "The goal of this project is to build a suite of free software tools
to build and execute .NET applications, including a C# compiler,
assembler, disassembler, and runtime engine.")
    (license license:gpl2+)))

(define-public pnetlib
  (package
    (name "pnetlib")
    (version "0.8.0")
    (source (origin
              (method url-fetch)
              (uri (string-append
                    "mirror://savannah/dotgnu-pnet/pnetlib-"
                    version ".tar.gz"))
              (sha256
               (base32
                "1adr5nyrx6ip3rlcilr5kyahw11bpzj1ijb5zdjpn2lvn218ksms"))
              (modules '((guix build utils)))
              (snippet
               #~(begin
                   (for-each delete-file '("configure"
                                           "config.guess"
                                           "config.sub"
                                           "install-sh"
                                           "ltmain.sh"))
                   (for-each delete-file (find-files "." "Makefile\\.in"))
                   (substitute* "tests/runtime/Makefile.am"
                     (("TESTS_ENVIRONMENT.*")
                      (string-append
                       "LOG_COMPILER = $(SHELL)\n"
                       "AM_LOG_FLAGS = $(top_builddir)/tools/run_test.sh"
                       " $(top_builddir)")))
                   (substitute* "tools/run_test.sh.in"
                     (("en_US") "en_US.utf8"))
                   (substitute* "tools/wrapper.sh.in"
                     (("exec .LN_S clrwrap ..1." all)
                      (string-append
                       "echo '#!@SHELL@' >> $1\n"
                       "echo exec $CLRWRAP"
                       " $(dirname $(dirname $1))"
                       "/lib/cscc/lib/$(basename $1).exe '$*' >> $1\n"
                       "chmod +x $1")))))))
    (build-system gnu-build-system)
    (arguments
     (list #:tests? #f)) ; 4 tests fail
    (native-inputs
     (list autoconf automake libtool treecc))
    (inputs
     (list pnet))
    (home-page "http://www.gnu.org/software/dotgnu/html2.0/pnet.html")
    (synopsis "Libraries for the C# programming language")
    (description
     "DotGNU Portable.NET Library contains an implementation of the C# library,
for use with .NET-capable runtime engines and applications.")
    (license license:gpl2+)))

debug log:

solving e4a42035e3 ...
found e4a42035e3 in https://yhetil.org/guix-patches/e8745e32-abd4-d88b-2c6f-3f701ca656b3@disroot.org/
found 283168c5c0 in https://yhetil.org/guix-patches/1bbde14e-a13f-7bf3-cb09-f6f9158140ca@disroot.org/
found 7d59496f22 in https://yhetil.org/guix-patches/c4c0417c-5d11-817f-c583-a12ea8188c84@disroot.org/

applying [1/3] https://yhetil.org/guix-patches/c4c0417c-5d11-817f-c583-a12ea8188c84@disroot.org/
diff --git a/gnu/packages/dotgnu.scm b/gnu/packages/dotgnu.scm
new file mode 100644
index 0000000000..7d59496f22


applying [2/3] https://yhetil.org/guix-patches/1bbde14e-a13f-7bf3-cb09-f6f9158140ca@disroot.org/
diff --git a/gnu/packages/dotgnu.scm b/gnu/packages/dotgnu.scm
index 7d59496f22..283168c5c0 100644


applying [3/3] https://yhetil.org/guix-patches/e8745e32-abd4-d88b-2c6f-3f701ca656b3@disroot.org/
diff --git a/gnu/packages/dotgnu.scm b/gnu/packages/dotgnu.scm
index 283168c5c0..e4a42035e3 100644

Checking patch gnu/packages/dotgnu.scm...
Applied patch gnu/packages/dotgnu.scm cleanly.
Checking patch gnu/packages/dotgnu.scm...
Applied patch gnu/packages/dotgnu.scm cleanly.
Checking patch gnu/packages/dotgnu.scm...
Applied patch gnu/packages/dotgnu.scm cleanly.

index at:
100644 e4a42035e3ae59e0eedfe7234253606322a56f9f	gnu/packages/dotgnu.scm

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).