Merge oe-devel@oe-devel.bkbits.net:packages
[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 = "r2"
9
10 PACKAGES += "${PN}-common"
11 FILES_${PN} = "${bindir}/irssi"
12 FILES_${PN}-common = "${datadir}/irssi ${sysconfdir}"
13 RDEPENDS_${PN} += "${PN}-common"
14
15 inherit autotools
16
17 SRC_URI = "cvs://anonymous:@cvs.irssi.org/home/cvs;module=irssi \
18            file://autofoo.patch;patch=1"
19 S = "${WORKDIR}/irssi"
20
21 EXTRA_OECONF = "--enable-ipv6 \
22                 --disable-ssl \
23                 --disable-glibtest \
24                 --without-socks \
25                 --with-textui \
26                 --without-bot \
27                 --without-proxy \
28                 --without-glib1 \
29                 --with-glib2 \
30                 --with-perl=no \
31                 --with-glib-prefix=${STAGING_LIBDIR}/.. \
32                 --with-glib-exec-prefix=${STAGING_LIBDIR}/.. \
33                 --with-ncurses=${STAGING_LIBDIR}/.."
34
35 do_configure () {
36         # create help files
37         echo "Creating help files..."
38         perl syntax.pl
39         
40         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'`
41         cat docs/help/in/Makefile.am.gen|sed "s/@HELPFILES@/$files/g"|sed 's/?/\\?/g'|tr '!?' '\t\n' > docs/help/in/Makefile.am
42         
43         files=`echo $files|sed 's/\.in//g'`
44         cat docs/help/Makefile.am.gen|sed "s/@HELPFILES@/$files/g"|sed 's/?/\\?/g'|tr '!?' '\t\n' > docs/help/Makefile.am
45         
46         # .HTML -> .txt with lynx
47         # echo "Documentation: html -> txt..."
48         # 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
49         > docs/faq.txt
50         
51         autotools_do_configure
52 }
53
54 do_stage () {
55         find . -name \*.h | for h in `cat`; do
56                 install -d ${STAGING_LIBDIR}/../irssi/`dirname $h`
57                 install -m 0644 $h ${STAGING_LIBDIR}/../irssi/$h
58         done
59         find . -name lib\*.a | for l in `cat`; do
60                 install -d ${STAGING_LIBDIR}/../irssi/`dirname $l`
61                 install -m 0644 $l ${STAGING_LIBDIR}/../irssi/$l
62         done
63         install -m 0644 irssi-config ${STAGING_LIBDIR}/../irssi/
64 }
65
66 do_install () {
67         autotools_do_install
68         rm -f ${D}/${docdir}/irssi/faq.txt
69 }