GNU bug report logs - #33534
[PATCH] gnu: Add arcanist.

Previous Next

Package: guix-patches;

Reported by: Robin Templeton <robin <at> igalia.com>

Date: Wed, 28 Nov 2018 01:34:01 UTC

Severity: normal

Tags: patch

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 33534 in the body.
You can then email your comments to 33534 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#33534; Package guix-patches. (Wed, 28 Nov 2018 01:34:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Robin Templeton <robin <at> igalia.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 28 Nov 2018 01:34:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Robin Templeton <robin <at> igalia.com>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add arcanist.
Date: Tue, 27 Nov 2018 20:32:21 -0500
* gnu/packages/phabricator.scm: New file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
---
 gnu/local.mk                 |   1 +
 gnu/packages/phabricator.scm | 123 +++++++++++++++++++++++++++++++++++
 2 files changed, 124 insertions(+)
 create mode 100644 gnu/packages/phabricator.scm

diff --git a/gnu/local.mk b/gnu/local.mk
index 772002c9c..23268b73b 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -348,6 +348,7 @@ GNU_SYSTEM_MODULES =				\
   %D%/packages/perl-check.scm			\
   %D%/packages/perl-web.scm			\
   %D%/packages/photo.scm			\
+  %D%/packages/phabricator.scm 			\
   %D%/packages/php.scm				\
   %D%/packages/pkg-config.scm			\
   %D%/packages/plotutils.scm			\
diff --git a/gnu/packages/phabricator.scm b/gnu/packages/phabricator.scm
new file mode 100644
index 000000000..6834373fb
--- /dev/null
+++ b/gnu/packages/phabricator.scm
@@ -0,0 +1,123 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2018 Robin Templeton <robin <at> igalia.com>
+;;;
+;;; 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 phabricator)
+  #:use-module (gnu packages php)
+  #:use-module (gnu packages version-control)
+  #:use-module (guix build-system gnu)
+  #:use-module (guix git-download)
+  #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (guix packages))
+
+(define-public libphutil
+  (let ((commit "b29d76e1709ef018cc5edc7c03033fd9fdebc578")
+        (revision "1"))
+    (package
+      (name "libphutil")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/phacility/libphutil.git")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "06j84721r9r8624fmil62b5crs2qs0v6rr3cvv2zvkvwhxwrwv1l"))))
+      (build-system gnu-build-system)
+      ;; TODO: Unbundle jsonlint and porter-stemmer.
+      (arguments
+       '(#:tests? #f
+         #:phases
+         (modify-phases %standard-phases
+           (delete 'configure)
+           (delete 'build)
+           (replace 'install
+             (lambda _
+               (let ((lib (string-append %output "/lib/libphutil")))
+                 (mkdir-p lib)
+                 (copy-recursively "." lib))
+               #t)))))
+      (inputs
+       `(("php" ,php)))
+      (home-page "https://github.com/phacility/libphutil")
+      (synopsis "PHP utility library")
+      (description
+       "@code{libphutil} is a collection of utility classes and functions for
+PHP.")
+      ;; Bundled libraries are expat-licensed.
+      (license (list license:asl2.0 license:expat)))))
+
+(define-public arcanist
+  (let ((commit "45a8d22c74a62624e69f5cd6ce901c9ab2658904")
+        (revision "1"))
+    (package
+      (name "arcanist")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/phacility/arcanist.git")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "13vswhqy9sap6841y93j4mj71dl27vhcivcn3rzyi0cchkhg2ac9"))))
+      (build-system gnu-build-system)
+      (arguments
+       '(#:tests? #f
+         #:phases
+         (modify-phases %standard-phases
+           (delete 'configure)
+           (delete 'build)
+           (replace 'install
+             (lambda _
+               (let ((bin (string-append %output "/bin"))
+                     (lib (string-append %output "/lib/arcanist")))
+                 (mkdir-p lib)
+                 (copy-recursively "." lib)
+                 (mkdir-p bin)
+                 (symlink (string-append lib "/bin/arc")
+                          (string-append bin "/arc"))
+                 (wrap-program (string-append bin "/arc")
+                   `("ARC_PHUTIL_PATH" =
+                     (,(string-append (assoc-ref %build-inputs "libphutil")
+                                      "/lib/libphutil")))
+                   `("PATH" ":" prefix
+                     (,@(map (lambda (i)
+                               (string-append (assoc-ref %build-inputs i) "/bin"))
+                             '("git" "mercurial" "subversion"))))))
+               #t))
+           (add-before 'reset-gzip-timestamps 'make-compressed-files-writable
+             (lambda _
+               (for-each make-file-writable
+                         (find-files %output ".*\\.t?gz$"))
+               #t)))))
+      (inputs
+       `(("php" ,php)
+         ("libphutil" ,libphutil)
+         ("git" ,git)
+         ("mercurial" ,mercurial)
+         ("subversion" ,subversion)))
+      (home-page "https://github.com/phacility/arcanist")
+      (synopsis "Command-line interface for Phabricator")
+      (description
+       "Arcanist is the command-line tool for Phabricator.  It allows you to
+interact with Phabricator installs to send code for review, download patches,
+transfer files, view status, make API calls, and various other things.")
+      (license license:asl2.0))))
-- 
2.19.2





Reply sent to ludo <at> gnu.org (Ludovic Courtès):
You have taken responsibility. (Thu, 29 Nov 2018 09:01:02 GMT) Full text and rfc822 format available.

Notification sent to Robin Templeton <robin <at> igalia.com>:
bug acknowledged by developer. (Thu, 29 Nov 2018 09:01:02 GMT) Full text and rfc822 format available.

Message #10 received at 33534-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Robin Templeton <robin <at> igalia.com>
Cc: 33534-done <at> debbugs.gnu.org
Subject: Re: [bug#33534] [PATCH] gnu: Add arcanist.
Date: Thu, 29 Nov 2018 10:00:35 +0100
[Message part 1 (text/plain, inline)]
Hello Robin,

Robin Templeton <robin <at> igalia.com> skribis:

> * gnu/packages/phabricator.scm: New file.
> * gnu/local.mk (GNU_SYSTEM_MODULES): Add it.

Applied with minor changes to the description (attached), mostly to give
some context to those who do not know what Phabricator is.

BTW we traditionally write one patch for each new package, but I think
it’s okay here.

> +      (home-page "https://github.com/phacility/libphutil")
> +      (synopsis "PHP utility library")
> +      (description
> +       "@code{libphutil} is a collection of utility classes and functions for
> +PHP.")
> +      ;; Bundled libraries are expat-licensed.
> +      (license (list license:asl2.0 license:expat)))))

Do you think those libraries could be unbundled?  Would it make sense?

Thank you!

Ludo’.

[Message part 2 (text/x-patch, inline)]
diff --git a/gnu/packages/phabricator.scm b/gnu/packages/phabricator.scm
index 6834373fbc..6c94a13114 100644
--- a/gnu/packages/phabricator.scm
+++ b/gnu/packages/phabricator.scm
@@ -117,7 +117,8 @@ PHP.")
       (home-page "https://github.com/phacility/arcanist")
       (synopsis "Command-line interface for Phabricator")
       (description
-       "Arcanist is the command-line tool for Phabricator.  It allows you to
-interact with Phabricator installs to send code for review, download patches,
-transfer files, view status, make API calls, and various other things.")
+       "Arcanist is the command-line tool for the Phabricator software
+development service.  It allows you to interact with Phabricator installs to
+send code for review, download patches, transfer files, view status, make API
+calls, and various other things.")
       (license license:asl2.0))))

Information forwarded to guix-patches <at> gnu.org:
bug#33534; Package guix-patches. (Fri, 30 Nov 2018 03:59:01 GMT) Full text and rfc822 format available.

Message #13 received at 33534-done <at> debbugs.gnu.org (full text, mbox):

From: Robin Templeton <rtempleton <at> igalia.com>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: Robin Templeton <robin <at> igalia.com>, 33534-done <at> debbugs.gnu.org
Subject: Re: [bug#33534] [PATCH] gnu: Add arcanist.
Date: Thu, 29 Nov 2018 21:42:49 -0500
ludo <at> gnu.org (Ludovic Courtès) writes:

> Hello Robin,
>
> Robin Templeton <robin <at> igalia.com> skribis:
>
>> * gnu/packages/phabricator.scm: New file.
>> * gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
>
> Applied with minor changes to the description (attached), mostly to give
> some context to those who do not know what Phabricator is.

Thanks!

> BTW we traditionally write one patch for each new package, but I think
> it’s okay here.
>
>> +      (home-page "https://github.com/phacility/libphutil")
>> +      (synopsis "PHP utility library")
>> +      (description
>> +       "@code{libphutil} is a collection of utility classes and functions for
>> +PHP.")
>> +      ;; Bundled libraries are expat-licensed.
>> +      (license (list license:asl2.0 license:expat)))))
>
> Do you think those libraries could be unbundled?  Would it make sense?

Possibly, but they seem to be maintaining their own fork of at least
jsonlint, so the upstream versions may not be 100% compatible.




Information forwarded to guix-patches <at> gnu.org:
bug#33534; Package guix-patches. (Fri, 30 Nov 2018 09:00:02 GMT) Full text and rfc822 format available.

Message #16 received at 33534-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Robin Templeton <rtempleton <at> igalia.com>
Cc: Robin Templeton <robin <at> igalia.com>, 33534-done <at> debbugs.gnu.org
Subject: Re: [bug#33534] [PATCH] gnu: Add arcanist.
Date: Fri, 30 Nov 2018 09:59:31 +0100
Hello,

Robin Templeton <rtempleton <at> igalia.com> skribis:

> ludo <at> gnu.org (Ludovic Courtès) writes:

[...]

>>> +      (home-page "https://github.com/phacility/libphutil")
>>> +      (synopsis "PHP utility library")
>>> +      (description
>>> +       "@code{libphutil} is a collection of utility classes and functions for
>>> +PHP.")
>>> +      ;; Bundled libraries are expat-licensed.
>>> +      (license (list license:asl2.0 license:expat)))))
>>
>> Do you think those libraries could be unbundled?  Would it make sense?
>
> Possibly, but they seem to be maintaining their own fork of at least
> jsonlint, so the upstream versions may not be 100% compatible.

OK, maybe something to keep in mind when we add more PHP packages in the
future.

Thank you,
Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 28 Dec 2018 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 111 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.