rev |
line source |
pascal@13255
|
1 # SliTaz package receipt.
|
pascal@13255
|
2
|
pascal@13255
|
3 PACKAGE="qemacs-tiny"
|
pascal@13256
|
4 SOURCE="qemacs"
|
pascal@13255
|
5 VERSION="0.3.2"
|
pascal@13255
|
6 CATEGORY="development"
|
pascal@13255
|
7 SHORT_DESC="Tiny emacs clone."
|
pascal@13255
|
8 MAINTAINER="pascal.bellard@slitaz.org"
|
pascal@13256
|
9 TARBALL="$SOURCE-$VERSION.tar.gz"
|
pascal@13256
|
10 WEB_SITE="http://bellard.org/$SOURCE/"
|
pascal@13255
|
11 WGET_URL="${WEB_SITE}$TARBALL"
|
pascal@13255
|
12 TAGS="editor"
|
pascal@13255
|
13
|
pascal@13255
|
14 DEPENDS=""
|
pascal@13255
|
15 BUILD_DEPENDS=""
|
pascal@13255
|
16
|
pascal@13255
|
17 # Rules to configure and make the package.
|
pascal@13255
|
18 compile_rules()
|
pascal@13255
|
19 {
|
pascal@13255
|
20 cd $src
|
pascal@13256
|
21
|
pascal@13256
|
22 # quick fix for variable 'XXX' set but not used [-Werror=unused-but-set-variable]
|
pascal@13256
|
23 sed -i -e 's/int count,/int count=count,/' \
|
pascal@13256
|
24 -e 's/ line_count,/ line_count=line_count,/' \
|
pascal@13256
|
25 -e 's/int len;/int len=len;/' \
|
pascal@13256
|
26 -e 's/EditState \*e;/EditState *e=e;/' \
|
pascal@13256
|
27 -e 's/int err,/int err=err,/' qe.c
|
pascal@13256
|
28 sed -i 's/size_start,/size_start=size_start,/' buffer.c
|
pascal@13256
|
29 sed -i 's/stack_ptr = 0;/&; stack[0] = stack[0];/' clang.c
|
pascal@13256
|
30 sed -i 's/len, offset1/len=len, offset1/' latex-mode.c
|
pascal@13256
|
31 sed -i 's/len1, len2/len1=len1, len2=len2/' dired.c
|
pascal@13256
|
32
|
pascal@13255
|
33 sed -i 's/\(define SAVED_DATA_SIZE \).*/\1 __builtin_offsetof(EditState,end_of_saved_data)/' qe.h
|
pascal@13255
|
34 ./configure --prefix=/usr --enable-tiny && make qe
|
pascal@13255
|
35 }
|
pascal@13255
|
36
|
pascal@13255
|
37 # Rules to gen a SliTaz package suitable for Tazpkg.
|
pascal@13255
|
38 genpkg_rules()
|
pascal@13255
|
39 {
|
pascal@13255
|
40 mkdir -p $fs/usr/bin
|
pascal@13255
|
41 cp -a $src/qe $fs/usr/bin/qemacs
|
pascal@13255
|
42 ln -s qemacs $fs/usr/bin/qe
|
pascal@13255
|
43 }
|
pascal@13255
|
44
|