Stage irssi's bits, and add xirssi from cvs.
[openembedded.git] / irssi / irssi_cvs.oe
1 DESCRIPTION = "Irssi is a modular IRC client with Perl scripting."
2 HOMEPAGE = "http://irssi.org/"
3 SECTION = "console/network"
4 LICENSE = "GPL"
5 MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
6 DEPENDS = "ncurses glib-2.0"
7 PV = "0.8.9+cvs${CVSDATE}"
8 PR = "r1"
9
10 inherit autotools
11
12 SRC_URI = "cvs://anonymous:@cvs.irssi.org/home/cvs;module=irssi \
13            file://autofoo.patch;patch=1"
14 S = "${WORKDIR}/irssi"
15
16 EXTRA_OECONF = "--enable-ipv6 \
17                 --disable-ssl \
18                 --disable-glibtest \
19                 --without-socks \
20                 --with-textui \
21                 --without-bot \
22                 --without-proxy \
23                 --without-glib1 \
24                 --with-glib2 \
25                 --with-perl=no \
26                 --with-glib-prefix=${STAGING_LIBDIR}/.. \
27                 --with-glib-exec-prefix=${STAGING_LIBDIR}/.. \
28                 --with-ncurses=${STAGING_LIBDIR}/.."
29
30 do_configure () {
31         # create help files
32         echo "Creating help files..."
33         perl syntax.pl
34         
35         files=`echo docs/help/in/*.in|sed -e 's,docs/help/in/Makefile.in ,,' -e 's,docs/help/in/,!,g' -e 's/\.in /.in ?/g'`
36         cat docs/help/in/Makefile.am.gen|sed "s/@HELPFILES@/$files/g"|sed 's/?/\\?/g'|tr '!?' '\t\n' > docs/help/in/Makefile.am
37         
38         files=`echo $files|sed 's/\.in//g'`
39         cat docs/help/Makefile.am.gen|sed "s/@HELPFILES@/$files/g"|sed 's/?/\\?/g'|tr '!?' '\t\n' > docs/help/Makefile.am
40         
41         # .html -> .txt with lynx
42         # echo "Documentation: html -> txt..."
43         # lynx -dump -nolist docs/faq.html|perl -pe 's/^ *//; if ($_ eq "\n" && $state eq "Q") { $_ = ""; } elsif (/^([QA]):/) { $state = $1 } elsif ($_ ne "\n") { $_ = "   $_"; };' > docs/faq.txt
44         
45         autotools_do_configure
46 }
47
48 do_stage () {
49         find . -name \*.h | for h in `cat`; do
50                 install -d ${STAGING_LIBDIR}/../irssi/`dirname $h`
51                 install -m 0644 $h ${STAGING_LIBDIR}/../irssi/$h
52         done
53         find . -name lib\*.a | for l in `cat`; do
54                 install -d ${STAGING_LIBDIR}/../irssi/`dirname $l`
55                 install -m 0644 $l ${STAGING_LIBDIR}/../irssi/$l
56         done
57         install -m 0644 irssi-config ${STAGING_LIBDIR}/../irssi/
58 }