From f3d274f6141f28a39e381d04f75b8192d6f30eda Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 3 Sep 2003 01:13:36 +0000 Subject: * Update to 0.68 [1] * Nasty hack to allow Perl to work where its supported, and install in the default Perl prefix Submitted by: Matthew Luckie [1] (based on) --- net/gaim/Makefile | 17 ++++++++++++++--- net/gaim/distinfo | 2 +- net/gaim/files/patch-configure | 11 +++++++++++ net/gaim/pkg-plist | 10 ++++++++-- 4 files changed, 34 insertions(+), 6 deletions(-) create mode 100644 net/gaim/files/patch-configure (limited to 'net/gaim') diff --git a/net/gaim/Makefile b/net/gaim/Makefile index bebbfe8..cd6e4c3 100644 --- a/net/gaim/Makefile +++ b/net/gaim/Makefile @@ -5,8 +5,7 @@ # PORTNAME= gaim -PORTVERSION= 0.67 -PORTREVISION= 1 +PORTVERSION= 0.68 CATEGORIES?= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -19,6 +18,7 @@ USE_GMAKE= yes USE_REINPLACE= yes USE_GNOME= gnomeprefix gnomehack gtk20 USE_PERL5= yes +USE_BZIP2= yes INSTALLS_SHLIB= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-static=yes @@ -27,6 +27,15 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ MAN1= gaim.1 gaim-remote.1 +.include + +.if ${PERL_LEVEL} < 500800 +CONFIGURE_ARGS+= --disable-perl +PLIST_SUB+= PERL:="@comment " +.else +PLIST_SUB+= PERL:="" +.endif + .ifndef(WITHOUT_GTKSPELL) LIB_DEPENDS+= gtkspell.0:${PORTSDIR}/textproc/gtkspell2 .else @@ -50,5 +59,7 @@ pre-everything:: post-patch: @${REINPLACE_CMD} -e 's|-lpthreads|${PTHREAD_LIBS:S/"//g}|g; \ s|-lpthread|${PTHREAD_LIBS:S/"//g}|g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ + ${WRKSRC}/configure -.include +.include diff --git a/net/gaim/distinfo b/net/gaim/distinfo index 13b689d..217a977 100644 --- a/net/gaim/distinfo +++ b/net/gaim/distinfo @@ -1 +1 @@ -MD5 (gaim-0.67.tar.gz) = c3e1092f552881a5eb451afdb9c249af +MD5 (gaim-0.68.tar.bz2) = 604c749f236e3813a1d2341e2e9208bc diff --git a/net/gaim/files/patch-configure b/net/gaim/files/patch-configure new file mode 100644 index 0000000..24c798a --- /dev/null +++ b/net/gaim/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.orig Tue Sep 2 20:51:30 2003 ++++ configure Tue Sep 2 20:51:41 2003 +@@ -15914,7 +15914,7 @@ + fi + + prefix=`eval echo $prefix` +- PERL_MM_PARAMS="INSTALLDIRS=perl PREFIX=$prefix" ++ PERL_MM_PARAMS="INSTALLDIRS=perl PREFIX=%%LOCALBASE%%" + + + # Check whether --with-perl-lib or --without-perl-lib was given. diff --git a/net/gaim/pkg-plist b/net/gaim/pkg-plist index c466e27f..cf87cc5 100644 --- a/net/gaim/pkg-plist +++ b/net/gaim/pkg-plist @@ -19,7 +19,7 @@ lib/gaim/libtoc.so lib/gaim/libyahoo.so lib/gaim/libzephyr.so lib/gaim/notify.so -lib/gaim/perl.so +%%PERL:%%lib/gaim/perl.so lib/gaim/spellchk.so lib/gaim/statenotify.so lib/gaim/ticker.so @@ -233,7 +233,6 @@ share/locale/ca/LC_MESSAGES/gaim.mo share/locale/cs/LC_MESSAGES/gaim.mo share/locale/da/LC_MESSAGES/gaim.mo share/locale/de/LC_MESSAGES/gaim.mo -share/locale/en_GB/LC_MESSAGES/gaim.mo share/locale/es/LC_MESSAGES/gaim.mo share/locale/fi/LC_MESSAGES/gaim.mo share/locale/fr/LC_MESSAGES/gaim.mo @@ -266,3 +265,10 @@ share/locale/zh_TW/LC_MESSAGES/gaim.mo @dirrm share/gnome/pixmaps/gaim/buttons @dirrm share/gnome/pixmaps/gaim @dirrm lib/gaim +@cwd %%LOCALBASE%% +%%PERL:%%lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/Gaim.pm +%%PERL:%%lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/auto/Gaim/.packlist +%%PERL:%%lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/auto/Gaim/Gaim.bs +%%PERL:%%lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/auto/Gaim/Gaim.so +%%PERL:%%lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/auto/Gaim/autosplit.ix +%%PERL:%%lib/perl5/%%PERL_VER%%/man/man3/Gaim.3 -- cgit v1.1