From 2433e8662c7cf5e0b966979f665b6e176787e65b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 20 Feb 2010 02:58:37 +0100 Subject: [PATCH] irssi: uses ncursesw, make perl support into a subpkg. --HG-- extra : convert_revision : cf23357b16a204f51eaa33143fbef69ad15cfd1a --- srcpkgs/irssi-perl | 1 + srcpkgs/irssi/irssi-devel.template | 7 +++++++ srcpkgs/irssi/irssi-perl.template | 23 +++++++++++++++++++++++ srcpkgs/irssi/template | 17 ++++++++++++----- 4 files changed, 43 insertions(+), 5 deletions(-) create mode 120000 srcpkgs/irssi-perl create mode 100644 srcpkgs/irssi/irssi-perl.template diff --git a/srcpkgs/irssi-perl b/srcpkgs/irssi-perl new file mode 120000 index 0000000000..12532cbc9b --- /dev/null +++ b/srcpkgs/irssi-perl @@ -0,0 +1 @@ +irssi \ No newline at end of file diff --git a/srcpkgs/irssi/irssi-devel.template b/srcpkgs/irssi/irssi-devel.template index 493f87ad8c..65e28325f7 100644 --- a/srcpkgs/irssi/irssi-devel.template +++ b/srcpkgs/irssi/irssi-devel.template @@ -5,6 +5,13 @@ long_desc="${long_desc} This package contains files for development, headers, static libs, etc." +revision=1 + +Add_dependency run perl +Add_dependency run pkg-config +Add_dependency run glib-devel +Add_dependency run openssl-devel +Add_dependency run ncursesw-devel Add_dependency run irssi do_install() diff --git a/srcpkgs/irssi/irssi-perl.template b/srcpkgs/irssi/irssi-perl.template new file mode 100644 index 0000000000..023670f23b --- /dev/null +++ b/srcpkgs/irssi/irssi-perl.template @@ -0,0 +1,23 @@ +# Template file for 'irssi-perl'. +# +short_desc="${sourcepkg} perl support" +long_desc="${long_desc} + + This package contains the modules to enable perl support with the + irssi package, and related perl scripts included." + +Add_dependency run perl +Add_dependency run irssi +Add_dependency run glibc + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib/irssi/modules + mkdir -p ${DESTDIR}/usr/share/irssi + + mv ${SRCPKGDESTDIR}/usr/lib/perl5 ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/irssi/modules/*perl* \ + ${DESTDIR}/usr/lib/irssi/modules + mv ${SRCPKGDESTDIR}/usr/share/irssi/scripts \ + ${DESTDIR}/usr/share/irssi +} diff --git a/srcpkgs/irssi/template b/srcpkgs/irssi/template index d1c57029cb..7b749fd361 100644 --- a/srcpkgs/irssi/template +++ b/srcpkgs/irssi/template @@ -1,8 +1,9 @@ # Template build file for 'irssi' pkgname=irssi version=0.8.14 +revision=1 distfiles="http://www.irssi.org/files/$pkgname-$version.tar.bz2" -configure_args="--with-proxy" +configure_args="--with-proxy --with-perl=module" build_style=gnu_configure short_desc="Secure and modular IRC client with text mode user interface" maintainer="Juan RP " @@ -15,14 +16,20 @@ long_desc=" protocols like ICQ could be created some day too." conf_files="/etc/irssi.conf" -subpackages="$pkgname-devel" +subpackages="irssi-devel irssi-perl" Add_dependency run glibc Add_dependency run glib Add_dependency run openssl -Add_dependency run ncurses-libs -Add_dependency full perl +Add_dependency run ncursesw +Add_dependency build perl Add_dependency build pkg-config Add_dependency build glib-devel Add_dependency build openssl-devel -Add_dependency build ncurses-devel +Add_dependency build ncursesw-devel + +pre_configure() +{ + sed -i -e "s|/usr/include/ncurses|/usr/include/ncursesw|g" \ + -e "s|-lncurses|-lncursesw|g" ${wrksrc}/configure +}