diff options
author | Sven Wegener <swegener@gentoo.org> | 2006-08-02 22:32:34 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2006-08-02 22:32:34 +0000 |
commit | 69aef81dac0c6940221db898c6de27daf1b6ea1c (patch) | |
tree | 463a34fcd91610daddf218cb4f0478a09a8b8c0a /www-client/urlgfe | |
parent | Version bump, closes bug #136103. (diff) | |
download | gentoo-2-69aef81dac0c6940221db898c6de27daf1b6ea1c.tar.gz gentoo-2-69aef81dac0c6940221db898c6de27daf1b6ea1c.tar.bz2 gentoo-2-69aef81dac0c6940221db898c6de27daf1b6ea1c.zip |
Add better configure handling, with --as-needed fix.
(Portage version: 2.1.1_pre4-r1)
Diffstat (limited to 'www-client/urlgfe')
-rw-r--r-- | www-client/urlgfe/ChangeLog | 6 | ||||
-rw-r--r-- | www-client/urlgfe/files/1.0-as-needed.patch | 75 | ||||
-rw-r--r-- | www-client/urlgfe/urlgfe-1.0.ebuild | 14 |
3 files changed, 93 insertions, 2 deletions
diff --git a/www-client/urlgfe/ChangeLog b/www-client/urlgfe/ChangeLog index e6d8a3f6325a..f502bbd4cd26 100644 --- a/www-client/urlgfe/ChangeLog +++ b/www-client/urlgfe/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for www-client/urlgfe # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/urlgfe/ChangeLog,v 1.9 2006/07/10 17:48:00 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/urlgfe/ChangeLog,v 1.10 2006/08/02 22:32:34 swegener Exp $ + + 02 Aug 2006; Sven Wegener <swegener@gentoo.org> + +files/1.0-as-needed.patch, urlgfe-1.0.ebuild: + Add better configure handling, with --as-needed fix. *urlgfe-1.0 (10 Jul 2006) diff --git a/www-client/urlgfe/files/1.0-as-needed.patch b/www-client/urlgfe/files/1.0-as-needed.patch new file mode 100644 index 000000000000..068c22540cd5 --- /dev/null +++ b/www-client/urlgfe/files/1.0-as-needed.patch @@ -0,0 +1,75 @@ +diff -Nur urlgfe-1.0.orig/configure.in urlgfe-1.0/configure.in +--- urlgfe-1.0.orig/configure.in 2006-07-07 03:39:42.000000000 +0000 ++++ urlgfe-1.0/configure.in 2006-08-02 22:13:27.557523459 +0000 +@@ -32,6 +32,33 @@ + dnl MKINSTALLDIRS="\$(top_srcdir)/install-sh -d" + MKINSTALLDIRS="install-sh -d" + ++PKG_CHECK_MODULES(GTK, gtk+-2.0) ++PKG_CHECK_MODULES(GLIB, glib-2.0) ++PKG_CHECK_MODULES(GTHREAD, gthread-2.0) ++ ++AC_PATH_PROG(GETCONF, getconf) ++if test "x$GETCONF" != "x" ; then ++ LFS_CFLAGS=`$GETCONF LFS_CFLAGS` ++ LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS` ++fi ++AC_SUBST(LFS_CFLAGS LFS_LDFLAGS) ++ ++AC_PATH_PROG(CURL_CONFIG, curl-config) ++if test "x$CURL_CONFIG" = "x" ; then ++ AC_MSG_ERROR(Unable to find curl-config, please install libcurl) ++fi ++CURL_CFLAGS=`$CURL_CONFIG --cflags` ++CURL_LIBS=`$CURL_CONFIG --libs` ++AC_SUBST(CURL_CFLAGS CURL_LIBS) ++ ++AC_PATH_PROG(PCRE_CONFIG, pcre-config) ++if test "x$PCRE_CONFIG" = "x" ; then ++ AC_MSG_ERROR(Unable to find pcre-config, please install libpcre) ++fi ++PCRE_CFLAGS=`$PCRE_CONFIG --cflags` ++PCRE_LIBS=`$PCRE_CONFIG --libs` ++AC_SUBST(PCRE_CFLAGS PCRE_LIBS) ++ + dnl Setup output files ----- + AC_OUTPUT(Makefile src/Makefile urlglib/Makefile pixmaps/Makefile po/Makefile.in intl/Makefile) + +diff -Nur urlgfe-1.0.orig/src/Makefile.am urlgfe-1.0/src/Makefile.am +--- urlgfe-1.0.orig/src/Makefile.am 2006-07-07 03:29:45.000000000 +0000 ++++ urlgfe-1.0/src/Makefile.am 2006-08-02 22:06:16.942709543 +0000 +@@ -34,9 +34,8 @@ + bin_PROGRAMS = urlgfe + + urlgfe_CPPFLAGS = -I$(top_srcdir) -DDATADIR=\"$(datadir)\" +-urlgfe_LDADD = ../urlglib/liburlglib.a +-urlgfe_CFLAGS = `pkg-config --cflags gtk+-2.0 gthread-2.0` `curl-config --cflags` `pcre-config --cflags` +-urlgfe_LDFLAGS = `pkg-config --libs gtk+-2.0 gthread-2.0` `curl-config --libs` `pcre-config --libs` ++urlgfe_LDADD = ../urlglib/liburlglib.a @GTK_LIBS@ @GTHREAD_LIBS@ @CURL_LIBS@ @PCRE_LIBS@ ++urlgfe_CFLAGS = @GTK_CFLAGS@ @GTHREAD_CFLAGS@ @CURL_CFLAGS@ @PCRE_CFLAGS@ + + urlgfe_SOURCES = urlgfe.c item_list_model.c node_list_model.c \ + category_tree_model.c category_tree_view.c download_list_view.c proxy_list_view.c \ +diff -Nur urlgfe-1.0.orig/urlglib/Makefile.am urlgfe-1.0/urlglib/Makefile.am +--- urlgfe-1.0.orig/urlglib/Makefile.am 2006-07-07 03:29:45.000000000 +0000 ++++ urlgfe-1.0/urlglib/Makefile.am 2006-08-02 22:06:16.946709828 +0000 +@@ -25,7 +25,7 @@ + + liburlglib_a_CPPFLAGS = -I$(top_srcdir) + +-liburlglib_a_CFLAGS = `getconf LFS_CFLAGS` `pkg-config --cflags glib-2.0 gthread-2.0` `curl-config --cflags` `pcre-config --cflags` ++liburlglib_a_CFLAGS = @LFS_CFLAGS@ @GLIB_CFLAGS@ @GTHREAD_CFLAGS@ @CURL_CFLAGS@ @PCRE_CFLAGS@ + + + liburlglib_a_SOURCES = base_node.c urlglib_util.c \ +@@ -49,8 +49,8 @@ + noinst_PROGRAMS = test_urlglib + + test_urlglib_CPPFLAGS = -I$(top_srcdir) -D_FILE_OFFSET_BITS=64 +-test_urlglib_LDADD = liburlglib.a ++test_urlglib_LDADD = liburlglib.a @GLIB_LIBS@ @GTHREAD_LIBS@ @CURL_LIBS@ @PCRE_LIBS@ + test_urlglib_CFLAGS = $(liburlglib_a_CFLAGS) `getconf LFS_CFLAGS` +-test_urlglib_LDFLAGS = `getconf LFS_LDFLAGS` `pkg-config --libs glib-2.0 gthread-2.0` `curl-config --libs` `pcre-config --libs` ++test_urlglib_LDFLAGS = @LFS_LDFLAGS@ + + test_urlglib_SOURCES = test_urlglib.c diff --git a/www-client/urlgfe/urlgfe-1.0.ebuild b/www-client/urlgfe/urlgfe-1.0.ebuild index c49d5848d561..6a139ff72e93 100644 --- a/www-client/urlgfe/urlgfe-1.0.ebuild +++ b/www-client/urlgfe/urlgfe-1.0.ebuild @@ -1,6 +1,8 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/urlgfe/urlgfe-1.0.ebuild,v 1.1 2006/07/10 17:48:00 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/urlgfe/urlgfe-1.0.ebuild,v 1.2 2006/08/02 22:32:34 swegener Exp $ + +inherit eutils autotools DESCRIPTION="Download manager using gtk+ and libcurl" HOMEPAGE="http://urlget.sourceforge.net/" @@ -16,8 +18,18 @@ RDEPEND=">=net-misc/curl-7.10 >=dev-libs/glib-2 dev-libs/libpcre" DEPEND="${RDEPEND} + dev-util/pkgconfig sys-devel/gettext" +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/1.0-as-needed.patch + + eautoreconf +} + src_compile() { econf $(use_enable nls) || die "econf failed" emake || die "emake failed" |