summaryrefslogtreecommitdiff
path: root/packages/irssi/irssi_svn.bb
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-12-11 13:48:27 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-12-11 13:48:27 +0000
commita50f18c086e877d999fb6c8f40044d4e1a4916ba (patch)
treec64483b7a73f0a1153cf0ff0632147860977b7cf /packages/irssi/irssi_svn.bb
parent713e824ad8f2b0eab250cff8c679fc3d81ac522e (diff)
irssi: adapt .bb to build from svn instead of cvs
Diffstat (limited to 'packages/irssi/irssi_svn.bb')
-rw-r--r--packages/irssi/irssi_svn.bb69
1 files changed, 69 insertions, 0 deletions
diff --git a/packages/irssi/irssi_svn.bb b/packages/irssi/irssi_svn.bb
new file mode 100644
index 0000000000..03a8125d72
--- /dev/null
+++ b/packages/irssi/irssi_svn.bb
@@ -0,0 +1,69 @@
+DESCRIPTION = "Irssi is a modular IRC client with Perl scripting."
+HOMEPAGE = "http://irssi.org/"
+SECTION = "console/network"
+LICENSE = "GPL"
+MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
+DEPENDS += "ncurses glib-1.2"
+PV = "0.8.10+svn${CVSDATE}"
+PR = "r2"
+
+PACKAGES += "${PN}-common"
+FILES_${PN} = "${bindir}/irssi"
+FILES_${PN}-common = "${datadir}/irssi ${sysconfdir}"
+RDEPENDS_${PN} += "${PN}-common"
+
+inherit autotools
+
+SRC_URI = "svn://svn.irssi.org/repos/irssi/;module=trunk;proto=http \
+ file://autofoo.patch;patch=1"
+S = "${WORKDIR}/trunk"
+
+EXTRA_OECONF = "--enable-ipv6 \
+ --disable-ssl \
+ --disable-glibtest \
+ --without-socks \
+ --with-textui \
+ --without-bot \
+ --without-proxy \
+ --without-glib1 \
+ --with-glib2 \
+ --with-perl=no \
+ --with-glib-prefix=${STAGING_LIBDIR}/.. \
+ --with-glib-exec-prefix=${STAGING_LIBDIR}/.. \
+ --with-ncurses=${STAGING_LIBDIR}/.."
+
+do_configure () {
+ # create help files
+ echo "Creating help files..."
+ perl syntax.pl
+
+ 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'`
+ cat docs/help/in/Makefile.am.gen|sed "s/@HELPFILES@/$files/g"|sed 's/?/\\?/g'|tr '!?' '\t\n' > docs/help/in/Makefile.am
+
+ files=`echo $files|sed 's/\.in//g'`
+ cat docs/help/Makefile.am.gen|sed "s/@HELPFILES@/$files/g"|sed 's/?/\\?/g'|tr '!?' '\t\n' > docs/help/Makefile.am
+
+ # .HTML -> .txt with lynx
+ # echo "Documentation: html -> txt..."
+ # 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
+ > docs/faq.txt
+
+ autotools_do_configure
+}
+
+do_stage () {
+ find . -name \*.h | for h in `cat`; do
+ install -d ${STAGING_LIBDIR}/../irssi/`dirname $h`
+ install -m 0644 $h ${STAGING_LIBDIR}/../irssi/$h
+ done
+ find . -name lib\*.a | for l in `cat`; do
+ install -d ${STAGING_LIBDIR}/../irssi/`dirname $l`
+ install -m 0644 $l ${STAGING_LIBDIR}/../irssi/$l
+ done
+ install -m 0644 irssi-config ${STAGING_LIBDIR}/../irssi/
+}
+
+do_install () {
+ autotools_do_install
+ rm -f ${D}${docdir}/irssi/faq.txt
+}