aboutsummaryrefslogtreecommitdiff
path: root/contrib/packages/guix/gnunet-doc.scm
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/packages/guix/gnunet-doc.scm')
-rw-r--r--contrib/packages/guix/gnunet-doc.scm183
1 files changed, 0 insertions, 183 deletions
diff --git a/contrib/packages/guix/gnunet-doc.scm b/contrib/packages/guix/gnunet-doc.scm
deleted file mode 100644
index 69dd90e14..000000000
--- a/contrib/packages/guix/gnunet-doc.scm
+++ /dev/null
@@ -1,183 +0,0 @@
1;;; This file is part of GNUnet.
2;;; Copyright (C) 2016, 2017 GNUnet e.V.
3;;;
4;;; GNUnet is free software; you can redistribute it and/or modify
5;;; it under the terms of the GNU General Public License as published
6;;; by the Free Software Foundation; either version 3, or (at your
7;;; option) any later version.
8;;;
9;;; GNUnet is distributed in the hope that it will be useful, but
10;;; WITHOUT ANY WARRANTY; without even the implied warranty of
11;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12;;; General Public License for more details.
13;;;
14;;; You should have received a copy of the GNU General Public License
15;;; along with GNUnet; see the file COPYING. If not, write to the
16;;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17;;; Boston, MA 02110-1301, USA.
18;;;
19
20(use-modules
21 (ice-9 popen)
22 (ice-9 match)
23 (ice-9 rdelim)
24 (guix packages)
25 (guix build-system gnu)
26 (guix gexp)
27 ((guix build utils) #:select (with-directory-excursion))
28 (guix git-download)
29 (guix utils) ; current-source-directory
30 (gnu packages)
31 (gnu packages aidc)
32 (gnu packages autotools)
33 (gnu packages backup)
34 (gnu packages base)
35 (gnu packages compression)
36 (gnu packages curl)
37 (gnu packages databases)
38 (gnu packages file)
39 (gnu packages gettext)
40 (gnu packages glib)
41 (gnu packages gnome)
42 (gnu packages gnunet)
43 (gnu packages gnupg)
44 (gnu packages gnuzilla)
45 (gnu packages groff)
46 (gnu packages gstreamer)
47 (gnu packages gtk)
48 (gnu packages guile)
49 (gnu packages graphviz)
50 (gnu packages image)
51 (gnu packages image-viewers)
52 (gnu packages libidn)
53 (gnu packages libunistring)
54 (gnu packages linux)
55 (gnu packages maths)
56 (gnu packages multiprecision)
57 (gnu packages perl)
58 (gnu packages pkg-config)
59 (gnu packages pulseaudio)
60 (gnu packages python)
61 (gnu packages tex)
62 (gnu packages texinfo)
63 (gnu packages tex)
64 (gnu packages tls)
65 (gnu packages video)
66 (gnu packages web)
67 (gnu packages xiph)
68 ;;(gnunet packages texlive) ;GNUnet module including texlive-2012 WIP
69 ((guix licenses) #:prefix license:))
70
71(define %source-dir (string-append (current-source-directory)
72 "/../../../"))
73
74(define gnunet-doc
75 (let* ((revision "2")
76 (select? (delay (or (git-predicate
77 (string-append (current-source-directory)
78 "/../../../"))
79 source-file?))))
80 (package
81 (name "gnunet-doc")
82 (version (string-append "0.10.1-" revision "." "dev"))
83 (source
84 (local-file ;;"../../.."
85 ;;%source-dir
86 ;;(string-append (getcwd) "/../../../")
87 (string-append (getcwd)) ;drrty hack and this assumes one static position FIXME!
88 #:recursive? #t))
89 ;;#:select? (git-predicate %source-dir)))
90 ;;#:select? (force select?)))
91 (build-system gnu-build-system)
92 (inputs
93 `(("glpk" ,glpk)
94 ("gnurl" ,gnurl)
95 ("gstreamer" ,gstreamer)
96 ("gst-plugins-base" ,gst-plugins-base)
97 ("gnutls/dane" ,gnutls/dane)
98 ("libextractor" ,libextractor)
99 ("libgcrypt" ,libgcrypt)
100 ("libidn" ,libidn)
101 ("libmicrohttpd" ,libmicrohttpd)
102 ("libltdl" ,libltdl)
103 ("libunistring" ,libunistring)
104 ("openssl" ,openssl)
105 ("opus" ,opus)
106 ("pulseaudio" ,pulseaudio)
107 ("sqlite" ,sqlite)
108 ("postgresql" ,postgresql)
109 ("mysql" ,mysql)
110 ("zlib" ,zlib)
111 ("perl" ,perl)
112 ("python-2" ,python-2) ; tests and gnunet-qr
113 ("jansson" ,jansson)
114 ("nss" ,nss)
115 ("glib" ,glib "bin")
116 ("gmp" ,gmp)
117 ("bluez" ,bluez) ; for optional bluetooth feature
118 ("glib" ,glib)
119 ;;("texlive-minimal" ,texlive-minimal) ; optional.
120 ("texlive" ,texlive) ;TODO: Stabilize Texlive-2012 package
121 ("libogg" ,libogg)))
122 (native-inputs
123 `(("pkg-config" ,pkg-config)
124 ("autoconf" ,autoconf)
125 ("automake" ,automake)
126 ("gnu-gettext" ,gnu-gettext)
127 ("graphviz" ,graphviz) ; dot
128 ("texinfo-5" ,texinfo-5) ; Debian stable
129 ("which" ,which)
130 ("libtool" ,libtool)))
131 (arguments
132 `(#:configure-flags
133 (list "--enable-documentation")
134 #:tests? #f ;Don't run tests
135 #:phases
136 (modify-phases %standard-phases
137 (add-after 'unpack 'autoconf
138 (lambda _
139 (substitute* "bootstrap"
140 (("contrib/pogen.sh") "sh contrib/pogen.sh"))
141 (for-each (lambda (f) (chmod f #o755))
142 (find-files "po" ""))
143 (zero? (system* "sh" "bootstrap"))))
144 (add-after 'build 'run-gendocs
145 (lambda _
146 (chdir "doc/documentation")
147 ;;(zero? (system* "make" "dev-build"))))
148 (zero? (system* "sh" "run-gendocs.sh"))))
149 ;; (zero? (system* "make" "pdf"))
150 ;; (zero? (system* "make" "html"))
151 ;; (zero? (system* "make" "info"))))
152 ;;(zero? (system* "make" "doc-all-give-me-the-noise"))))
153 (replace 'install
154 (lambda _
155 (zero? (system* "make" "doc-gendoc-install")))))))
156 ;;(lambda* (#:key outputs #:allow-other-keys)
157 ;; (let* ((out (assoc-ref outputs "out"))
158 ;; (doc (string-append out "/share/doc/gnunet")))
159 ;; (mkdir-p doc)
160 ;; (copy-recursively "images"
161 ;; (string-append doc
162 ;; "/images"))
163 ;; (mkdir-p (string-append doc "/gnunet"))
164 ;; (install-file "gnunet.pdf" doc)
165 ;; (install-file "gnunet.info" doc)
166 ;; (install-file "gnunet.log" doc) ;TODO: Move to 'dev' output?
167 ;; (copy-recursively "gnunet"
168 ;; (string-append doc
169 ;; "/gnunet"))
170 ;; (install-file "gnunet-c-tutorial.pdf" doc)
171 ;; (install-file "gnunet-c-tutorial.info" doc)
172 ;; (install-file "gnunet-c-tutorial.log" doc) ;TODO: Move to 'dev' output?
173 ;; (copy-recursively "gnunet-c-tutorial"
174 ;; (string-append doc
175 ;; "/gnunet-c-tutorial")))
176 ;; #t)))))
177 (synopsis "Documentation of GNUnet")
178 (description
179 "GNUnet documentation build")
180 (license (list license:fdl1.3+ license:gpl3+))
181 (home-page "https://gnunet.org/"))))
182
183gnunet-doc