mirror of
git://git.savannah.gnu.org/guix.git
synced 2023-12-14 03:33:07 +01:00
4bd428a7ce
* gnu/packages/abiword.scm (abiword)[inputs]: Change from LIBJPEG to LIBJPEG-TURBO. * gnu/packages/admin.scm (testdisk)[inputs]: Likewise. * gnu/packages/algebra.scm (giac)[inputs]: Likewise. * gnu/packages/animation.scm (synfig)[inputs]: Likewise. * gnu/packages/astronomy.scm (gnuastro, celestia)[inputs]: Likewise. * gnu/packages/cdrom.scm (dvdstyler)[inputs]: Likewise. * gnu/packages/cran.scm (r-jpeg, r-tiff, r-readbitmap)[inputs]: Likewise. * gnu/packages/cups.scm (cups-filters, hplip)[inputs]: Likewise. * gnu/packages/display-managers.scm (slim)[inputs]: Likewise. * gnu/packages/ebook.scm (fbreader)[inputs]: Likewise. * gnu/packages/emacs.scm (emacs)[inputs]: Likewise. * gnu/packages/enlightenment.scm (efl)[propagated-inputs]: Likewise. * gnu/packages/fltk.scm (fltk, ntk)[inputs]: Likewise. * gnu/packages/fontutils.scm (fontforge)[inputs]: Likewise. * gnu/packages/freedesktop.scm (weston)[inputs]: Likewise. * gnu/packages/game-development.scm (sfml, allegro, aseprite, python-pygame, eureka, ioquake3)[inputs]: Likewise. * gnu/packages/games.scm (adanaxisgpl, freedroidrpg, irrlicht, minetest, fizmo, supertuxkart, gzdoom, xmoto, xonotic)[inputs]: Likewise. * gnu/packages/gd.scm (gd, perl-gd)[inputs]: Likewise. * gnu/packages/ghostscript.scm (lcms)[inputs]: Likewise. (ghostscript)[inputs, native-inputs]: Likewise. * gnu/packages/gimp.scm (gegl, gimp)[inputs]: Likewise. * gnu/packages/gnome.scm (libgnomeui, eog, tracker-miners, gthumb)[inputs]: Likewise. * gnu/packages/gnunet.scm (libextractor)[inputs]: Likewise. * gnu/packages/gnustep.scm (windowmaker)[inputs]: Likewise. * gnu/packages/graphics.scm (blender, blender-2.79, openimageio, openscenegraph, openscenegraph-3.4, povray, fgallery)[inputs]: Likewise. * gnu/packages/graphviz.scm (graphviz)[inputs]: Likewise. * gnu/packages/gstreamer.scm (gst-plugins-good)[inputs]: Likewise. * gnu/packages/gtk.scm (gdk-pixbuf)[inputs]: Likewise. * gnu/packages/image-processing.scm (dcmtk, mia, vtk, opencv, vips, nip2, vxl, insight-toolkit)[inputs]: Likewise. * gnu/packages/image-viewers.scm (gpicview, luminance-hdr)[inputs]: Likewise. * gnu/packages/image.scm (jpegoptim, libtiff, leptonica, imlib2, freeimage, vigra, libwebp, libmng, jasper, steghide, jp2a)[inputs]: Likewise. * gnu/packages/imagemagick.scm (imagemagick, graphicsmagick)[inputs]: Likewise. * gnu/packages/java.scm (icedtea-6, icedtea-7, openjdk9, openjdk11, openjdk12)[inputs]: Likewise. * gnu/packages/kde-frameworks.scm (khtml)[inputs]: Likewise. * gnu/packages/kodi.scm (kodi)[inputs]: Likewise. * gnu/packages/machine-learning.scm (dlib, tensorflow)[inputs]: Likewise. * gnu/packages/mate.scm (atril, eom)[inputs]: Likewise. * gnu/packages/maths.scm (hdf4, hdf-java, hdf-eos2, netcdf)[inputs]: Likewise. * gnu/packages/netpbm.scm (netpbm)[inputs]: Likewise. * gnu/packages/pdf.scm (zathura-pdf-mupdf, podofo, mupdf, fbida)[inputs]: Likewise. * gnu/packages/photo.scm (libraw, libpano13, enblend-enfuse, darktable, hugin, rawtherapee)[inputs]: Likewise. * gnu/packages/prolog.scm (swi-prolog)[native-inputs]: Likewise. * gnu/packages/python-xyz.scm (python-hdf4, python-pillow)[inputs]: Likewise. * gnu/packages/qt.scm (qtbase, qtwebkit)[inputs]: Likewise. * gnu/packages/rdesktop.scm (freerdp)[inputs]: Likewise. * gnu/packages/scanner.scm (sane-backends, xsane)[inputs]: Likewise. * gnu/packages/scheme.scm (racket)[inputs]: Likewise. * gnu/packages/scribus.scm (scribus)[inputs]: Likewise. * gnu/packages/sdl.scm (sdl-image)[propagated-inputs]: Likewise. (guile-sdl)[native-inputs]: Likewise. * gnu/packages/spice.scm (spice-gtk)[inputs]: Likewise. * gnu/packages/statistics.scm (r-with-tests)[inputs]: Likewise. * gnu/packages/tcl.scm (perl-tk)[inputs]: Likewise. * gnu/packages/upnp.scm (readymedia)[inputs]: Likewise. * gnu/packages/video.scm (mplayer, mpv, v4l-utils, motion)[inputs]: Likewise. * gnu/packages/web-browsers.scm (dillo, links)[inputs]: Likewise. * gnu/packages/web.scm (netsurf)[inputs]: Likewise. * gnu/packages/webkit.scm (webkitgtk)[inputs]: Likewise. * gnu/packages/wine.scm (wine)[inputs]: Likewise. * gnu/packages/wv.scm (wv)[inputs]: Likewise. * gnu/packages/wxwidgets.scm (wxwidgets, wxwidgets-2)[inputs]: Likewise. * gnu/packages/xdisorg.scm (xscreensaver)[inputs]: Likewise. * gnu/packages/xfce.scm (tumbler)[inputs]: Likewise. * gnu/packages/xfig.scm (xfig, transfig)[inputs]: Likewise. * gnu/packages/xorg.scm (xpra)[inputs]: Likewise.
146 lines
5.9 KiB
Scheme
146 lines
5.9 KiB
Scheme
;;; GNU Guix --- Functional package management for GNU
|
|
;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
|
|
;;; Copyright © 2014 Federico Beffa <beffa@fbengineering.ch>
|
|
;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
|
;;;
|
|
;;; 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 xfig)
|
|
#:use-module (guix packages)
|
|
#:use-module ((guix licenses) #:select (bsd-2))
|
|
#:use-module (guix download)
|
|
#:use-module (guix build-system gnu)
|
|
#:use-module (gnu packages)
|
|
#:use-module (gnu packages freedesktop)
|
|
#:use-module (gnu packages xorg)
|
|
#:use-module (gnu packages image)
|
|
#:use-module (gnu packages compression))
|
|
|
|
(define-public xfig
|
|
(package
|
|
(name "xfig")
|
|
(version "3.2.7a")
|
|
(source
|
|
(origin
|
|
(method url-fetch)
|
|
(uri (string-append "mirror://sourceforge/mcj/"
|
|
name "-" version ".tar.xz"))
|
|
(sha256
|
|
(base32
|
|
"096zgp0bqnxhgxbrv2jjylrjz3pr4da0xxznlk2z7ffxr5pri2fa"))))
|
|
(build-system gnu-build-system)
|
|
(native-inputs
|
|
;; For tests.
|
|
`(("desktop-file-utils" ,desktop-file-utils)))
|
|
(inputs
|
|
`(("libxaw3d" ,libxaw3d)
|
|
("libjpeg" ,libjpeg-turbo)
|
|
("libpng" ,libpng)
|
|
("libxpm" ,libxpm)
|
|
("libx11" ,libx11)
|
|
("libxt" ,libxt)))
|
|
(arguments
|
|
`(#:phases
|
|
(modify-phases %standard-phases
|
|
(add-before 'install 'strip-bogus-exec-prefix
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
(substitute* "xfig.desktop"
|
|
;; The patch-dot-desktop-files phase requires a relative name.
|
|
(("Exec=/usr/bin/xfig") "Exec=xfig"))
|
|
#t)))))
|
|
(home-page "http://mcj.sourceforge.net/")
|
|
(synopsis "Interactive drawing tool")
|
|
(description
|
|
"Xfig is an interactive drawing tool which runs under X Window System.
|
|
In xfig, figures may be drawn using objects such as circles, boxes, lines,
|
|
spline curves, text, etc. It is also possible to import images in formats
|
|
such as GIF, JPEG, EPSF (PostScript), etc. Those objects can be created,
|
|
deleted, moved or modified. Attributes such as colors or line styles can be
|
|
selected in various ways. For text, 35 fonts are available.")
|
|
(license bsd-2)))
|
|
|
|
(define-public transfig
|
|
(package
|
|
(name "transfig")
|
|
(version "3.2.5e")
|
|
(source
|
|
(origin
|
|
(method url-fetch)
|
|
(uri (string-append "mirror://sourceforge/mcj/mcj-source/transfig."
|
|
version ".tar.gz"))
|
|
(sha256
|
|
(base32
|
|
"0i3p7qmg2w8qrad3pn42b0miwarql7yy0gpd49b1bpal6bqsiicf"))))
|
|
(build-system gnu-build-system)
|
|
(native-inputs
|
|
`(("imake" ,imake)
|
|
("makedepend" ,makedepend)))
|
|
(inputs
|
|
`(("xfig" ,xfig)
|
|
("libjpeg" ,libjpeg-turbo)
|
|
("libpng" ,libpng)
|
|
("libxpm" ,libxpm)
|
|
("libx11" ,libx11)
|
|
("zlib" ,zlib)))
|
|
(arguments
|
|
`(#:tests? #f
|
|
#:phases
|
|
(modify-phases %standard-phases
|
|
(replace 'configure
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
(let ((imake (assoc-ref inputs "imake"))
|
|
(out (assoc-ref outputs "out")))
|
|
(substitute* '("fig2dev/Imakefile"
|
|
"transfig/Imakefile")
|
|
(("XCOMM (BINDIR = )[[:graph:]]*" _ front)
|
|
(string-append front out "/bin"))
|
|
(("XCOMM USEINLINE") "USEINLINE")
|
|
;; The variable name is deceptive. The directory is used as an
|
|
;; installation path for bitmaps.
|
|
(("(XFIGLIBDIR =[[:blank:]]*)[[:graph:]]*" _ front)
|
|
(string-append front out "/lib"))
|
|
(("(XPMLIBDIR = )[[:graph:]]*" _ front)
|
|
(string-append front (assoc-ref inputs "libxpm") "/lib"))
|
|
(("(XPMINC = -I)[[:graph:]]*" _ front)
|
|
(string-append front (assoc-ref inputs "libxpm") "/include/X11"))
|
|
(("/usr/local/lib/fig2dev") (string-append out "/lib")))
|
|
;; The -a argument is required in order to pick up the correct paths
|
|
;; to several X header files.
|
|
(invoke "xmkmf" "-a")
|
|
(substitute* '("Makefile"
|
|
"fig2dev/Makefile"
|
|
"transfig/Makefile")
|
|
;; These imake variables somehow remain undefined
|
|
(("DefaultGcc2[[:graph:]]*Opt") "-O2")
|
|
;; Reset a few variable defaults that are set in imake templates
|
|
((imake) out)
|
|
(("(MANPATH = )[[:graph:]]*" _ front)
|
|
(string-append front out "/share/man"))
|
|
(("(CONFDIR = )([[:graph:]]*)" _ front default)
|
|
(string-append front out default)))
|
|
#t)))
|
|
(add-after 'install 'install/doc
|
|
(lambda _
|
|
(invoke "make" "install.man"))))))
|
|
(home-page "http://mcj.sourceforge.net/")
|
|
(synopsis "Create portable LaTeX figures")
|
|
(description
|
|
"Transfig creates a makefile to translate figures described in Fig code
|
|
or PIC into a specified LaTeX graphics language. PIC files are identified by
|
|
the suffix \".pic\"; Fig files can be specified either with or without the
|
|
suffix \".fig\". Transfig also creates a TeX macro file appropriate to the
|
|
target language.")
|
|
(license bsd-2)))
|