diff mbox series

[bug#64091,guix-past] gnu: Add bakefile.

Message ID 20230616030326.13653-1-maxim.cournoyer@gmail.com
State New
Headers show
Series [bug#64091,guix-past] gnu: Add bakefile. | expand

Commit Message

Maxim Cournoyer June 16, 2023, 3:03 a.m. UTC
* modules/past/packages/build-tools.scm: New file.
---
 modules/past/packages/build-tools.scm | 67 +++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)
 create mode 100644 modules/past/packages/build-tools.scm


base-commit: 3b663890f53510fa268ae606dd62ca8a2afc5a1a

Comments

Ludovic Courtès June 17, 2023, 8:57 p.m. UTC | #1
Hi Maxim,

Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:

> * modules/past/packages/build-tools.scm: New file.

Pushed, thanks!  :-)

Ludo’.
Maxim Cournoyer June 19, 2023, 1:23 a.m. UTC | #2
Hello,

Ludovic Courtès <ludo@gnu.org> writes:

> Hi Maxim,
>
> Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
>
>> * modules/past/packages/build-tools.scm: New file.
>
> Pushed, thanks!  :-)

Thank you!
diff mbox series

Patch

diff --git a/modules/past/packages/build-tools.scm b/modules/past/packages/build-tools.scm
new file mode 100644
index 0000000..01cd42a
--- /dev/null
+++ b/modules/past/packages/build-tools.scm
@@ -0,0 +1,67 @@ 
+;;; Guix Past --- Functional package management for GNU Guix.
+;;; Copyright © 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;;
+;;; This file is part of Guix Past.
+;;;
+;;; Guix Past 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.
+;;;
+;;; Guix Past 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 Guix Past.  If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (past packages build-tools)
+  #:use-module (guix build-system gnu)
+  #:use-module (guix gexp)
+  #:use-module (guix git-download)
+  #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (guix packages)
+  #:use-module (gnu packages autotools)
+  #:use-module (gnu packages docbook)
+  #:use-module (gnu packages python)
+  #:use-module (gnu packages swig)
+  #:use-module (gnu packages xml))
+
+(define-public bakefile
+  (package
+    (name "bakefile")
+    ;; XXX: Use the "legacy" branch, which is still used and supported by
+    ;; wxWidgets, *and* has a proper build system (Autotools) and no bundled
+    ;; jar.
+    (version "0.2.13")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/vslavik/bakefile")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32 "1mx3i4lywri9vg7p89r9768gjzqi752zjcrg9nzipgdj0r28yq8l"))
+              ;; Clean up the source from random binaries.
+              (snippet '(delete-file "build/mac-python2.3.tar.gz"))))
+    (build-system gnu-build-system)
+    (arguments (list #:configure-flags #~(list "--enable-maintainer-mode")))
+    ;; No Python 3 support on the horizon (see:
+    ;; https://github.com/vslavik/bakefile/issues/109).
+    (native-inputs
+     (list autoconf
+           automake
+           docbook-xml-4.1.2
+           docbook-xsl
+           libtool
+           libxml2                      ;for XML_CATALOG_FILES
+           libxslt
+           python-2
+           swig))
+    (home-page "https://bakefile.org/")
+    (synopsis "Native makefiles generator")
+    (description "Bakefile takes compiler-independent description of build
+tasks as its input and outputs native makefile(s) such as that of GNU Make,
+Visual C++ project, etc.")
+    (license license:expat)))