[arch-commits] Commit in texmacs/repos/extra-x86_64 (PKGBUILD PKGBUILD)

Antonio Rojas arojas at archlinux.org
Fri Dec 22 18:17:00 UTC 2017


    Date: Friday, December 22, 2017 @ 18:16:59
  Author: arojas
Revision: 313545

archrelease: copy trunk to extra-x86_64

Added:
  texmacs/repos/extra-x86_64/PKGBUILD
    (from rev 313544, texmacs/trunk/PKGBUILD)
Deleted:
  texmacs/repos/extra-x86_64/PKGBUILD

----------+
 PKGBUILD |  124 +++++++++++++++++++++++++++----------------------------------
 1 file changed, 56 insertions(+), 68 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-22 18:16:33 UTC (rev 313544)
+++ PKGBUILD	2017-12-22 18:16:59 UTC (rev 313545)
@@ -1,68 +0,0 @@
-# $Id$
-# Maintainer: Ronald van Haren <ronald.archlinux.org>
-# Contributor: Damir Perisa <damir.perisa at bluewin.ch> # Contributor: Christopher Reimer <c.reimer1993 at gmail.com>
-
-pkgname=texmacs
-pkgver=1.99.5
-pkgrel=2
-pkgdesc="Free scientific text editor, inspired by TeX and GNU Emacs. WYSIWYG editor TeX-fonts and CAS-interface (Giac, GTybalt, Macaulay 2, Maxima, Octave, Pari, Qcl, R and Yacas) in one."
-arch=('i686' 'x86_64')
-url="http://www.texmacs.org/"
-license=('GPL')
-depends=('perl' 'guile1.8' 'texlive-core' 'python2' 'libxext' 'freetype2' 'qt4')
-# do not remove texlive-core dependency, as it is needed!
-optdepends=('transfig: convert images using fig2ps'
-            'gawk: conversion of some files'
-	    'ghostscript: rendering ps files'
-            'imagemagick: convert images'
-            'aspell: spell checking')
-makedepends=('ghostscript')
-source=(http://www.texmacs.org/Download/ftp/tmftp/source/TeXmacs-${pkgver}-src.tar.gz)
-options=('!emptydirs')
-sha1sums=('be6fdc39a094db6dc547490fa89a95876dbde002')
-	
-prepare() {
-  cd "${srcdir}/TeXmacs-${pkgver}-src"
-  sed -i 's/env python/env python2/' \
-    plugins/{mathematica/bin/realpath.py,python/bin/tm_python,sage/bin/tm_sage} \
-    TeXmacs/misc/inkscape_extension/texmacs_reedit.py
-  sed -i 's/"python"/"python2"/' plugins/python/progs/init-python.scm
-  sed -i '/^LDPATH/d' src/makefile.in
-
-  autoreconf -vi
-  sed -i -e 's/guile18 /guile1.8 /g' \
-         -e 's/guile18-config/guile-config1.8/g' \
-         configure
-  sed -i -e 's|#include <libguile18.h>|#include <guile/gh.h>|g' src/Scheme/Guile/guile_tm.hpp
-
- # Don't generate icon-cache and mime-database (namcap tells that they should not be in a package)
-  sed -i '/update-mime-database/d' Makefile.in
-  sed -i '/gtk-update-icon-cache/d' Makefile.in
-  sed -i '\/icons\/gnome 2>\/dev\/null/d' Makefile.in
-
-# Remove stray backup files that break build
-  find -name '.*.d' -o -name '.*.cpp' -exec rm {} \;
-}
-
-build() {
-  cd "${srcdir}/TeXmacs-${pkgver}-src"
-  export QMAKE=qmake-qt4
-  export MOC=moc-qt4
-  export UIC=uic-qt4
-  export LDFLAGS="$LDFLAGS -lz"
-
-  ./configure --prefix=/usr \
-              --mandir=/usr/share/man \
-              --libexecdir=/usr/lib
-  make
-}
-
-package() {
-  cd "${srcdir}/TeXmacs-${pkgver}-src"
-  make DESTDIR=${pkgdir} install
-
- # fix fig2ps script
- sed -i 's|${prefix}|/usr|' "${pkgdir}/usr/bin/fig2ps"
- # fix launch script
- sed -e 's|\@CONFIG_LIB_PATH\@|LD_LIBRARY_PATH|g' -i "$pkgdir"/usr/bin/texmacs
-}

Copied: texmacs/repos/extra-x86_64/PKGBUILD (from rev 313544, texmacs/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-12-22 18:16:59 UTC (rev 313545)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Damir Perisa <damir.perisa at bluewin.ch> # Contributor: Christopher Reimer <c.reimer1993 at gmail.com>
+
+pkgname=texmacs
+pkgver=1.99.6
+pkgrel=1
+pkgdesc="Free scientific text editor, inspired by TeX and GNU Emacs. WYSIWYG editor TeX-fonts and CAS-interface (Giac, GTybalt, Macaulay 2, Maxima, Octave, Pari, Qcl, R and Yacas) in one."
+arch=('x86_64')
+url="http://www.texmacs.org/"
+license=('GPL')
+depends=('perl' 'guile1.8' 'texlive-core' 'python2' 'libxext' 'freetype2' 'qt5-base')
+# do not remove texlive-core dependency, as it is needed!
+optdepends=('transfig: convert images using fig2ps'
+            'gawk: conversion of some files'
+	    'ghostscript: rendering ps files'
+            'imagemagick: convert images'
+            'aspell: spell checking')
+makedepends=('ghostscript' 'cmake')
+source=(http://www.texmacs.org/Download/ftp/tmftp/source/TeXmacs-${pkgver}-src.tar.gz)
+options=('!emptydirs')
+sha1sums=('bef4d2637ad3cff0138236f07ee0031943b8de61')
+	
+prepare() {
+  cd TeXmacs-${pkgver}-src
+
+  sed -i 's/env python/env python2/' \
+    plugins/{mathematica/bin/realpath.py,python/bin/tm_python,sage/bin/tm_sage} \
+    TeXmacs/misc/inkscape_extension/texmacs_reedit.py
+  sed -i 's/"python"/"python2"/' plugins/python/progs/init-python.scm
+
+  sed -e 's/-Wno-deprecated-register//' -i src/CMakeLists.txt # Remove wrong flag on Linux
+}
+
+build() {
+  cd TeXmacs-${pkgver}-src
+  
+  mkdir -p build
+  cd build
+
+  cmake .. \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DGUILECONFIG_EXECUTABLE=/usr/bin/guile-config1.8
+  make
+}
+
+package() {
+  cd TeXmacs-${pkgver}-src/build
+  make DESTDIR=${pkgdir} install
+
+ # fix fig2ps script
+ sed -i 's|${prefix}|/usr|' "${pkgdir}/usr/bin/fig2ps"
+ # fix launch script
+ sed -e 's|\@CONFIG_LIB_PATH\@|LD_LIBRARY_PATH|g' -i "$pkgdir"/usr/bin/texmacs
+}



More information about the arch-commits mailing list