New package: xchat-2.8.8

This commit is contained in:
Enno Boland 2014-04-03 23:53:52 +02:00
parent 1a46ddbb68
commit 594b967e03
2 changed files with 74 additions and 0 deletions

View File

@ -0,0 +1,47 @@
--- src/common/servlist.c
+++ src/common/servlist.c
@@ -24,7 +24,7 @@
#include <unistd.h>
#include "xchat.h"
-#include <glib/ghash.h>
+#include <glib.h>
#include "cfgfiles.h"
#include "fe.h"
--- src/common/text.c
+++ src/common/text.c
@@ -28,7 +28,7 @@
#include <sys/mman.h>
#include "xchat.h"
-#include <glib/ghash.h>
+#include <glib.h>
#include "cfgfiles.h"
#include "chanopt.h"
#include "plugin.h"
--- src/common/util.c
+++ src/common/util.c
@@ -39,7 +39,7 @@
#include <errno.h>
#include "xchat.h"
#include "xchatc.h"
-#include <glib/gmarkup.h>
+#include <glib.h>
#include <ctype.h>
#include "util.h"
#include "../../config.h"
--- src/common/xchat.h
+++ src/common/xchat.h
@@ -1,10 +1,6 @@
#include "../../config.h"
-#include <glib/gslist.h>
-#include <glib/glist.h>
-#include <glib/gutils.h>
-#include <glib/giochannel.h>
-#include <glib/gstrfuncs.h>
+#include <glib.h>
#include <time.h> /* need time_t */
#ifndef XCHAT_H

27
srcpkgs/xchat/template Normal file
View File

@ -0,0 +1,27 @@
# Template file for 'xchat'
pkgname=xchat
version=2.8.8
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config gdk-pixbuf-devel"
makedepends="gtk+-devel openssl-devel dbus-glib-devel perl"
configure_args=" --sysconfdir=/etc --enable-openssl --enable-dbus
--disable-textfe --enable-ipv6 --enable-shm --enable-spell=static"
short_desc="A GTK+ based IRC client"
maintainer="Enno Boland <eb@s01.de>"
homepage="http://www.xchat.org/"
license="GPL"
distfiles="http://www.xchat.org/files/source/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=37b7afd87b5576e17f5dbdd0ed8c14004ac71b8c5430baff9a785bad8df0310b
make_build_args="LDFLAGS=-lgmodule-2.0"
pre_configure() {
local perlflags=
# Fix perl library path
if [ "$CROSS_BUILD" ];then
perlflags=`perl -MExtUtils::Embed -e ldopts | sed \
-e 's/-lgdbm //' \
-e "s#/usr/lib#${XBPS_CROSS_BASE}\0#"`
sed -i "s#PERL_LDFLAGS=#\0$perlflags#" configure
fi
}