diff mbox

gnu: Add texmaker.

Message ID 874m9owh78.fsf@gnu.org
State New
Headers show

Commit Message

Roel Janssen May 23, 2016, 10:19 p.m. UTC
Ludovic Courtès writes:

> Hi!
>
> Roel Janssen <roel@gnu.org> skribis:
>
>> For the lack of a better place, I created a new file for texmaker.
>> Maybe we should consider moving all LaTeX-related stuff into latex.scm.
>>
>> Here's a patch for Texmaker -- a decent LaTeX editor for the non-Emacs
>> users ;-).
>
> Maybe we could rename texlive.scm to tex.scm and stuff everything in
> there (that would be TeXLive + Rubber + TeXmaker.)  Thoughts?

Great idea.  I attached two patches to make this change.
I'm not sure if my commit message is OK this way.  Could you change it
when it is not entirely perfect?

Thanks!

Kind regards,
Roel Janssen

Comments

Ludovic Courtès May 24, 2016, 9:51 a.m. UTC | #1
Roel Janssen <roel@gnu.org> skribis:

> From fc657a31b4a52628c09a0b634c49b71cce2230bc Mon Sep 17 00:00:00 2001
> From: Roel Janssen <roel@gnu.org>
> Date: Tue, 24 May 2016 00:14:59 +0200
> Subject: [PATCH 1/2] gnu: Rename texlive to tex.
>
> * gnu/local.mk (GNU_SYSTEM_MODULES): Rename texlive.scm to tex.scm.
> * gnu/packages/texlive.scm: Rename file to tex.scm.
> * gnu/packages/tex.scm: Renamed from texlive.scm.
> * gnu/packages/algebra.scm: Rename texlive to tex.

Here I’d just put “Adjust accordingly.”

> * gnu/packages/docbook.scm: Rename texlive to tex.
> * gnu/packages/engineering.scm: Rename texlive to tex.

… and here “Likewise.” is enough.

Apart from that LGTM!

> From f54915ab4ab70133adced8fd71649918e38ba659 Mon Sep 17 00:00:00 2001
> From: Roel Janssen <roel@gnu.org>
> Date: Tue, 24 May 2016 00:16:05 +0200
> Subject: [PATCH 2/2] gnu: Add texmaker.
>
> * gnu/packages/tex.scm (texmaker): New variable.

OK.

I think it would help now if you could access the repo directly.  :-)

What’s your Savannah account?  Please make sure to upload your current
OpenPGP public key there.

Thanks!

Ludo’.
Efraim Flashner May 24, 2016, 10:08 a.m. UTC | #2
On Tue, May 24, 2016 at 11:51:19AM +0200, Ludovic Courtès wrote:
> Roel Janssen <roel@gnu.org> skribis:
> 
> > From fc657a31b4a52628c09a0b634c49b71cce2230bc Mon Sep 17 00:00:00 2001
> > From: Roel Janssen <roel@gnu.org>
> > Date: Tue, 24 May 2016 00:14:59 +0200
> > Subject: [PATCH 1/2] gnu: Rename texlive to tex.
> >
> > * gnu/local.mk (GNU_SYSTEM_MODULES): Rename texlive.scm to tex.scm.
> > * gnu/packages/texlive.scm: Rename file to tex.scm.
> > * gnu/packages/tex.scm: Renamed from texlive.scm.
> > * gnu/packages/algebra.scm: Rename texlive to tex.
> 
> Here I’d just put “Adjust accordingly.”
> 
> > * gnu/packages/docbook.scm: Rename texlive to tex.
> > * gnu/packages/engineering.scm: Rename texlive to tex.
> 
> … and here “Likewise.” is enough.
> 
> Apart from that LGTM!
> 

Add in photo.scm, I just added texlive there.
Ben Woodcroft May 24, 2016, 10:11 a.m. UTC | #3
On 24/05/16 19:51, Ludovic Courtès wrote:
> What’s your Savannah account?  Please make sure to upload your current
> OpenPGP public key there.
Congrats, well deserved.
ben
Leo Famulari May 24, 2016, 4:10 p.m. UTC | #4
On Tue, May 24, 2016 at 11:51:19AM +0200, Ludovic Courtès wrote:
> Roel Janssen <roel@gnu.org> skribis:
> 
> > From fc657a31b4a52628c09a0b634c49b71cce2230bc Mon Sep 17 00:00:00 2001
> > From: Roel Janssen <roel@gnu.org>
> > Date: Tue, 24 May 2016 00:14:59 +0200
> > Subject: [PATCH 1/2] gnu: Rename texlive to tex.
> >
> > * gnu/local.mk (GNU_SYSTEM_MODULES): Rename texlive.scm to tex.scm.
> > * gnu/packages/texlive.scm: Rename file to tex.scm.
> > * gnu/packages/tex.scm: Renamed from texlive.scm.
> > * gnu/packages/algebra.scm: Rename texlive to tex.
> 
> Here I’d just put “Adjust accordingly.”
> 
> > * gnu/packages/docbook.scm: Rename texlive to tex.
> > * gnu/packages/engineering.scm: Rename texlive to tex.
> 
> … and here “Likewise.” is enough.
> 
> Apart from that LGTM!
> 
> > From f54915ab4ab70133adced8fd71649918e38ba659 Mon Sep 17 00:00:00 2001
> > From: Roel Janssen <roel@gnu.org>
> > Date: Tue, 24 May 2016 00:16:05 +0200
> > Subject: [PATCH 2/2] gnu: Add texmaker.
> >
> > * gnu/packages/tex.scm (texmaker): New variable.
> 
> OK.
> 
> I think it would help now if you could access the repo directly.  :-)
> 
> What’s your Savannah account?  Please make sure to upload your current
> OpenPGP public key there.

Can Savannah use our PGP keys somehow? Or did you mean Roel's SSH public
key?
Ludovic Courtès May 25, 2016, 9:58 p.m. UTC | #5
Leo Famulari <leo@famulari.name> skribis:

> On Tue, May 24, 2016 at 11:51:19AM +0200, Ludovic Courtès wrote:

[...]

>> What’s your Savannah account?  Please make sure to upload your current
>> OpenPGP public key there.
>
> Can Savannah use our PGP keys somehow?

It cannot “use” them, but it can store them, in the /users/XYZ page.

Ludo’.
diff mbox

Patch

From f54915ab4ab70133adced8fd71649918e38ba659 Mon Sep 17 00:00:00 2001
From: Roel Janssen <roel@gnu.org>
Date: Tue, 24 May 2016 00:16:05 +0200
Subject: [PATCH 2/2] gnu: Add texmaker.

* gnu/packages/tex.scm (texmaker): New variable.
---
 gnu/packages/tex.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index e11e5d4..c1ab8b3 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -389,3 +389,40 @@  to manage bibliographic references.  Automatic execution of dvips to produce
 PostScript documents is also included, as well as usage of pdfLaTeX to produce
 PDF documents.")
     (license license:gpl2+)))
+
+(define-public texmaker
+  (package
+    (name "texmaker")
+    (version "4.5")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "http://www.xm1math.net/texmaker/texmaker-"
+                                  version ".tar.bz2"))
+              (sha256
+               (base32
+                "056njk6j8wma23mlp7xa3rgfaxx0q8ynwx8wkmj7iy0b85p9ds9c"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         ;; Qt has its own configuration utility.
+         (replace 'configure
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out")))
+               (zero? (system* "qmake"
+                               (string-append "PREFIX=" out)
+                               (string-append "DESKTOPDIR=" out
+                                              "/share/applications")
+                               (string-append "ICONDIR=" out "/share/pixmaps")
+                               "texmaker.pro"))))))))
+    (inputs
+     `(("poppler-qt5" ,poppler-qt5)
+       ("qt" ,qt)
+       ("zlib" ,zlib)))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (home-page "http://www.xm1math.net/texmaker/")
+    (synopsis "LaTeX editor")
+    (description "Texmaker is a program that integrates many tools needed to
+develop documents with LaTeX, in a single application.")
+    (license license:gpl2+)))
-- 
2.7.4