wok annotate TeXmacs/receipt @ rev 24093

Up squashfs (4.5)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 27 16:57:54 2021 +0000 (2021-07-27)
parents d59705695f3d
children 65b71231eeb9
rev   line source
pascal@7681 1 # SliTaz package receipt.
pascal@7681 2
pascal@7681 3 PACKAGE="TeXmacs"
pascal@7681 4 VERSION="1.0.7.8"
pascal@7681 5 CATEGORY="office"
pascal@7681 6 SHORT_DESC="The high quality of TeX with a wisiwyg editor"
pascal@7681 7 MAINTAINER="slitaz@leledy.fr"
pascal@15294 8 LICENSE="GPL"
pascal@15294 9 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
pascal@15294 10 WEB_SITE="http://www.texmacs.org/"
pascal@15294 11 WGET_URL="ftp://ftp.texmacs.org/pub/$PACKAGE/targz/$TARBALL"
pascal@15294 12
pascal@7681 13 DEPENDS="ghostscript gmp guile freetype TeXmacs-windows-fonts"
pascal@7681 14 # freetype and TeXmacs-windows-fonts avoid depending on TeX which is a *huge* system
pascal@7681 15 BUILD_DEPENDS="xorg-libX11-dev gmp-dev guile-dev freetype-dev imlib2-dev"
pascal@7681 16
pascal@24093 17 current_version()
pascal@24093 18 {
pascal@24093 19 wget -O - http://ftp.texmacs.org/pub/$PACKAGE/targz/ 2>/dev/null | \
pascal@24093 20 sed "/src.tar/!d;s|.*$PACKAGE-\\(.*\\).src.*\".*|\\1|" | sort -Vr | sed q
pascal@24093 21 }
pascal@24093 22
pascal@7681 23 # Rules to configure and make the package.
pascal@7681 24 compile_rules()
pascal@7681 25 {
pascal@7681 26 mv $src-src $src 2> /dev/null
pascal@7681 27 cd $src
pascal@15294 28 sed -i 's|.*include <util.h>|//&|' plugins/shell/src/tm_shell.cpp plugins/r/src/tm_r.c
pascal@7681 29 ./configure \
pascal@7681 30 --with-imlib2 \
pascal@7681 31 --prefix=/usr \
pascal@7681 32 --infodir=/usr/share/info \
pascal@7681 33 --mandir=/usr/share/man \
pascal@7681 34 --libexecdir=/usr/lib \
pascal@7681 35 $CONFIGURE_ARGS &&
pascal@15294 36 make && make DESTDIR=$DESTDIR install
pascal@7681 37 }
pascal@7681 38
pascal@7681 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@7681 40 genpkg_rules()
pascal@7681 41 {
pascal@7681 42 mkdir -p $fs/usr
pascal@15294 43 cp -a $install/usr/bin $fs/usr
pascal@15294 44 cp -a $install/usr/lib $fs/usr
pascal@15294 45 cp -a $install/usr/share $fs/usr
pascal@7683 46 }