From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Isaac Subject: Packaging mathjax and other javascript libraries Date: Thu, 25 May 2017 22:30:25 +0530 Message-ID: <18f42204.AEUAKedMGncAAAAAAAAAAAOtZhgAAAACwQwAAAAAAAW9WABZJw2v@mailjet.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <18f42204.AEUAKedMGncAAAAAAAAAAAOtZhgAAAACwQwAAAAAAAW9WABZJw2v@bnc3.mailjet.com>) id 1dDw7q-0000mc-Oy for guix-devel@gnu.org; Thu, 25 May 2017 13:00:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <18f42204.AEUAKedMGncAAAAAAAAAAAOtZhgAAAACwQwAAAAAAAW9WABZJw2v@bnc3.mailjet.com>) id 1dDw7n-0005ee-J4 for guix-devel@gnu.org; Thu, 25 May 2017 13:00:38 -0400 Received: from o128.p8.mailjet.com ([87.253.233.128]:42196) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <18f42204.AEUAKedMGncAAAAAAAAAAAOtZhgAAAACwQwAAAAAAAW9WABZJw2v@bnc3.mailjet.com>) id 1dDw7n-0005eT-BW for guix-devel@gnu.org; Thu, 25 May 2017 13:00:35 -0400 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel A couple of days back, I submitted a patch packaging mathjax. My conversations with Brendan there raised some more general questions. So, I'm posting here for wider visibility. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D27049 The patch I submitted simply extracts the mathjax tarball into /share/webapps/mathjax. Arch/Parabola use this kind of "webapps" path. But, Debian puts it in /share/javascript/mathjax. So far, we have not adopted any convention for Guix. What path convention should we adopt? Is it necessary to distinguish between webapps and non-webapps, like Arch/Parabola do, or is it better to just put it in a javascript folder like Debian does? Are there other alternative approaches? Should we have any prefix in the package name for javascript libraries such as mathjax? Apparently, Debian uses the "libjs-" prefix. Also, it might be a good idea to have a separate file (gnu/packages/javascript.scm) for these javascript libraries. Brendan also pointed out that mathjax is not just code served to web browsers, but also used in programs like Calibre. There are so many javascript libraries out there -- mathjax, d3.js, jquery, etc, etc. Packaging them would be extremely useful for self-hosting. But, we need to agree on good practices, so that we don't run into trouble later. Do share your thoughts. =