wok annotate TeXmacs/receipt @ rev 25638
Up tinyssh (20240101 CVE-2023-48795)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 05 10:31:44 2024 +0000 (10 months ago) |
parents | a3b6dd3aac6f |
children | 54dc5622a785 |
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@25634 | 28 if ! which imlib2-config ; then |
pascal@25634 | 29 sed -i -e 's|imlib2-config --cflags|pkg-config --cflags imlib2|' \ |
pascal@25634 | 30 -e 's|imlib2-config --libs|pkg-config --libs imlib2|' configure* |
pascal@25634 | 31 fi |
pascal@15294 | 32 sed -i 's|.*include <util.h>|//&|' plugins/shell/src/tm_shell.cpp plugins/r/src/tm_r.c |
pascal@7681 | 33 ./configure \ |
pascal@7681 | 34 --with-imlib2 \ |
pascal@7681 | 35 --prefix=/usr \ |
pascal@7681 | 36 --infodir=/usr/share/info \ |
pascal@7681 | 37 --mandir=/usr/share/man \ |
pascal@7681 | 38 --libexecdir=/usr/lib \ |
pascal@7681 | 39 $CONFIGURE_ARGS && |
pascal@15294 | 40 make && make DESTDIR=$DESTDIR install |
pascal@7681 | 41 } |
pascal@7681 | 42 |
pascal@7681 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@7681 | 44 genpkg_rules() |
pascal@7681 | 45 { |
pascal@7681 | 46 mkdir -p $fs/usr |
pascal@15294 | 47 cp -a $install/usr/bin $fs/usr |
pascal@15294 | 48 cp -a $install/usr/lib $fs/usr |
pascal@15294 | 49 cp -a $install/usr/share $fs/usr |
pascal@7683 | 50 } |