1 DESCRIPTION = "Irssi is a modular IRC client with Perl scripting."
2 HOMEPAGE = "http://irssi.org/"
3 SECTION = "console/network"
5 MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
6 DEPENDS += "ncurses glib-2.0"
7 PV = "0.8.9+cvs${CVSDATE}"
10 PACKAGES += "${PN}-common"
11 FILES_${PN} = "${bindir}/irssi"
12 FILES_${PN}-common = "${datadir}/irssi ${sysconfdir}"
13 RDEPENDS_${PN} += "${PN}-common"
17 SRC_URI = "cvs://anonymous:@cvs.irssi.org/home/cvs;module=irssi \
18 file://autofoo.patch;patch=1"
19 S = "${WORKDIR}/irssi"
21 EXTRA_OECONF = "--enable-ipv6 \
31 --with-glib-prefix=${STAGING_LIBDIR}/.. \
32 --with-glib-exec-prefix=${STAGING_LIBDIR}/.. \
33 --with-ncurses=${STAGING_LIBDIR}/.."
37 echo "Creating help files..."
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
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
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
51 autotools_do_configure
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
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
63 install -m 0644 irssi-config ${STAGING_LIBDIR}/../irssi/
68 rm -f ${D}/${docdir}/irssi/faq.txt