wok view p2c/receipt @ rev 25229

updated python-pyst2 (0.5.0 -> 0.5.1)
author Hans-G?nter Theisgen
date Wed Jul 13 16:59:13 2022 +0100 (2022-07-13)
parents 787a1807d2bb
children e9e2e1c1770c
line source
1 # SliTaz package receipt.
3 PACKAGE="p2c"
4 VERSION="1.21alpha2"
5 CATEGORY="development"
6 SHORT_DESC="A Pascal to C translator."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://users.fred.net/tds/lab/p2c/"
11 WGET_URL="http://users.fred.net/tds/lab/p2c/$TARBALL"
12 TAGS="pascal"
14 DEPENDS="perl"
16 current_version()
17 {
18 wget -O - $WEB_SITE 2>/dev/null | \
19 sed "/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src/src
26 sed -i -e 's|^HOMEDIR.*|HOMEDIR=/usr/lib/p2c|' \
27 -e 's|^INCDIR.*|INCDIR=/usr/include/p2c|' \
28 -e 's|^BINDIR.*|BINDIR=/usr/bin|' \
29 -e 's|^LIBDIR.*|LIBDIR=/usr/lib|' \
30 -e 's|^ABSHOMEDIR.*|ABSHOMEDIR=/usr/lib/p2c|' \
31 -e 's|^ABSINCDIR.*|ABSINCDIR=/usr/include/p2c|' \
32 -e 's|^ABSLIBDIR.*|ABSLIBDIR=/usr/lib|' \
33 Makefile
34 grep -q getlinep2c lex.c || sed -i 's/getline/getlinep2c/' *
35 make all p2cc
36 mkdir -p $DESTDIR/usr/lib/p2c $DESTDIR/usr/include/p2c $DESTDIR/usr/bin
37 cp p2c p2cc $DESTDIR/usr/bin
38 cp libp2c.a $DESTDIR/usr/lib
39 ranlib $DESTDIR/usr/lib/libp2c.a
40 cp p2c.h $DESTDIR/usr/include/p2c
41 cp sys.p2crc loc.p2crc system.imp system.m2 turbo.imp string.pas \
42 $DESTDIR/usr/lib/p2c
43 mv $DESTDIR/usr/lib/p2c/sys.p2crc $DESTDIR/usr/lib/p2c/p2crc
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 cp -a $install/* $fs
50 }