Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=1ee1d626547b1df2bae0a032ea87b11a4bf2c6b7

commit 1ee1d626547b1df2bae0a032ea87b11a4bf2c6b7
Author: James Buren <[email protected]>
Date:   Mon Dec 22 04:39:29 2008 -0600

adesklets-0.6.1-3-i686
* taking over from former developer dnaku
* apply some patches from gentoo to fix segfaults with newer fontconfig
* revise build and depends

diff --git a/source/xapps-extra/adesklets/FrugalBuild 
b/source/xapps-extra/adesklets/FrugalBuild
index d146246..ab57c8a 100644
--- a/source/xapps-extra/adesklets/FrugalBuild
+++ b/source/xapps-extra/adesklets/FrugalBuild
@@ -1,24 +1,33 @@
# Compiling Time: 0.07 SBU
-# Maintainer: DNAku <[email protected]>
+# Maintainer: James Buren <[email protected]>
+# Contributor: DNAku <[email protected]>
# Contributor: Tuxbubling <[email protected]>

pkgname=adesklets
pkgver=0.6.1
-pkgrel=2
+pkgrel=3
pkgdesc="Adesklets is an interactive Imlib2 console for the X Window system."
-depends=('imlib2' 'readline' 'python' 'fontconfig')
-makedepends=('doxygen')
+depends=('python' 'libx11' 'imlib2' 'ncurses' 'readline' 'fontconfig' 'zlib' 
'libxcb' 'perl')
groups=('xapps-extra')
archs=('i686' 'x86_64')
_F_sourceforge_ext=".tar.bz2"
Finclude sourceforge
-sha1sums=('bb81b4cedd5b0389b96d47c4ba57b3298fc05146')
+source=(${sour...@]} \
+       $pkgname-$pkgver-fontconfig.patch \
+       $pkgname-$pkgver-fix-as-needed.patch)
+sha1sums=('bb81b4cedd5b0389b96d47c4ba57b3298fc05146' \
+          '1cdb78e9bfeb1baed1c3690213f9001fc46470c3' \
+          'e1c83686e3e262864519249aac73e29eea0b2b44')

build()
{
-       Fmkdir usr/share/doc/$pkgname-$pkgver
-       Fbuild
-       Fmv usr/info usr/share/doc/$pkgname-$pkgver
+       Fcd
+       Fpatchall
+       Fautoreconf
+       Fmake
+       # workaround for an issue caused by Fautoreconf
+       Fsed "/bin/sh" "" doc/Makefile
+       Fmakeinstall
}

# optimization OK
diff --git a/source/xapps-extra/adesklets/adesklets-0.6.1-fix-as-needed.patch 
b/source/xapps-extra/adesklets/adesklets-0.6.1-fix-as-needed.patch
new file mode 100644
index 0000000..4731433
--- /dev/null
+++ b/source/xapps-extra/adesklets/adesklets-0.6.1-fix-as-needed.patch
@@ -0,0 +1,22 @@
+--- src/Makefile.am.orig       2006-03-13 20:54:13.000000000 +0100
++++ src/Makefile.am    2006-04-30 18:10:32.000000000 +0200
+@@ -13,7 +13,7 @@
+                   error.h types.h
+
+ adesklets_CFLAGS = @X_CFLAGS@ @IMLIB2_CFLAGS@ @FONTCONFIG_CFLAGS@
+-adesklets_LDFLAGS = @X_LIBS@ @IMLIB2_LIBS@ \
++adesklets_LDADD = @X_LIBS@ @IMLIB2_LIBS@ \
+                     @READLINE_LIBS@ @FONTCONFIG_LIBS@
+
+ dist_pkgdata_SCRIPTS = adesklets_debug.sh
+--- src/Makefile.in.orig       2006-03-31 03:19:11.000000000 +0200
++++ src/Makefile.in    2006-04-30 18:11:16.000000000 +0200
+@@ -211,7 +211,7 @@
+                   error.h types.h
+
+ adesklets_CFLAGS = @X_CFLAGS@ @IMLIB2_CFLAGS@ @FONTCONFIG_CFLAGS@
+-adesklets_LDFLAGS = @X_LIBS@ @IMLIB2_LIBS@ \
++adesklets_LDADD = @X_LIBS@ @IMLIB2_LIBS@ \
+                     @READLINE_LIBS@ @FONTCONFIG_LIBS@
+
+ dist_pkgdata_SCRIPTS = adesklets_debug.sh
diff --git a/source/xapps-extra/adesklets/adesklets-0.6.1-fontconfig.patch 
b/source/xapps-extra/adesklets/adesklets-0.6.1-fontconfig.patch
new file mode 100644
index 0000000..e7a1ad5
--- /dev/null
+++ b/source/xapps-extra/adesklets/adesklets-0.6.1-fontconfig.patch
@@ -0,0 +1,50 @@
+--- configure.ac
++++ configure.ac
+@@ -1,4 +1,4 @@
+-dnl Initialize autoconf and automake
++nl Initialize autoconf and automake
+ AC_INIT
+ AC_CONFIG_SRCDIR(src/main.c)
+ AC_PREREQ(2.52)
+@@ -428,7 +428,18 @@ AC_TRY_LINK(
+ #include <fontconfig/fontconfig.h>
+ , FcInit(),
+ AC_MSG_RESULT([yes])
+-AC_DEFINE(HAVE_FONTCONFIG_FONTCONFIG_H,1,[Define to 1 if you have the 
<fontconfig/fontconfig.h> header file.]),
++AC_DEFINE(HAVE_FONTCONFIG_FONTCONFIG_H,1,[Define to 1 if you have the 
<fontconfig/fontconfig.h> header file.])
++
++AC_MSG_CHECKING([For fontconfig FcFini()])
++AC_TRY_LINK(
++#include <fontconfig/fontconfig.h>
++, FcFini(),
++AC_MSG_RESULT([yes])
++AC_DEFINE(HAVE_FONTCONFIG_FCFINI,1,[Define to 1 if FcFini() call exists])
++,
++AC_MSG_RESULT([no]))
++
++,
+ AC_MSG_RESULT([no])
+ FONTCONFIG_LIBS=
+ FONTCONFIG_CFLAGS=
+--- src/xwindow.c
++++ src/xwindow.c
+@@ -123,9 +123,17 @@
+         if ((strlen((char*)file)>4) &&
+             (strstr((char*)file+strlen((char*)file)-4,".ttf")))
+           imlib_add_path_to_font_path(dirname((char*)file));
+-      FcFontSetDestroy(fs);
+-      FcObjectSetDestroy(os);
+     }
++#ifdef HAVE_FONTCONFIG_FCFINI
++    FcFini();
++#else
++    /* On FontConfig >= 2.4, this causes a segfault, probably due to the new
++       caching mechanism: we don't have to care, since FcFini() always exists,
++       and does the dirty dessalocation job just fine.
++    */
++    if (fs) FcFontSetDestroy(fs);
++    FcObjectSetDestroy(os);
++#endif
+   }
+ #endif
+   imlib_add_path_to_font_path(".");
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to