From 4824ecef0d8ad99b8b2ef69ae4fc132cf5be962e Mon Sep 17 00:00:00 2001 From: Donnie Berkholz Date: Fri, 16 Jun 2006 22:14:43 +0000 Subject: [PATCH] Add port of GnomeCanvas widget to GTK+, needed for sci-chemistry/coot. Package-Manager: portage-2.1.1_pre1 --- x11-libs/gtk-canvas/ChangeLog | 11 + x11-libs/gtk-canvas/Manifest | 20 + .../gtk-canvas/files/digest-gtk-canvas-0.1.1 | 3 + .../files/dont-build-libart_lgpl.patch | 345 ++++++++++++++++++ x11-libs/gtk-canvas/gtk-canvas-0.1.1.ebuild | 26 ++ x11-libs/gtk-canvas/metadata.xml | 9 + 6 files changed, 414 insertions(+) create mode 100644 x11-libs/gtk-canvas/ChangeLog create mode 100644 x11-libs/gtk-canvas/Manifest create mode 100644 x11-libs/gtk-canvas/files/digest-gtk-canvas-0.1.1 create mode 100644 x11-libs/gtk-canvas/files/dont-build-libart_lgpl.patch create mode 100644 x11-libs/gtk-canvas/gtk-canvas-0.1.1.ebuild create mode 100644 x11-libs/gtk-canvas/metadata.xml diff --git a/x11-libs/gtk-canvas/ChangeLog b/x11-libs/gtk-canvas/ChangeLog new file mode 100644 index 000000000000..bcde9de549ff --- /dev/null +++ b/x11-libs/gtk-canvas/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for x11-libs/gtk-canvas +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk-canvas/ChangeLog,v 1.1 2006/06/16 22:14:43 spyderous Exp $ + +*gtk-canvas-0.1.1 (16 Jun 2006) + + 16 Jun 2006; Donnie Berkholz ; + +files/dont-build-libart_lgpl.patch, +metadata.xml, + +gtk-canvas-0.1.1.ebuild: + Add port of GnomeCanvas widget to GTK+, needed for sci-chemistry/coot. + diff --git a/x11-libs/gtk-canvas/Manifest b/x11-libs/gtk-canvas/Manifest new file mode 100644 index 000000000000..b869b42377e4 --- /dev/null +++ b/x11-libs/gtk-canvas/Manifest @@ -0,0 +1,20 @@ +AUX dont-build-libart_lgpl.patch 12070 RMD160 2dc8b50e1d89d38b2d33eeb7bbadbd367e0799cc SHA1 0d3ad54ed420db7dc31ae9aaa80aaa34735a0f9a SHA256 43382d10fae0279546c5a51d4566ebd640507f7968e706f40594299ee21e1820 +MD5 4fa8808eaaf42955672dbf24277654ad files/dont-build-libart_lgpl.patch 12070 +RMD160 2dc8b50e1d89d38b2d33eeb7bbadbd367e0799cc files/dont-build-libart_lgpl.patch 12070 +SHA256 43382d10fae0279546c5a51d4566ebd640507f7968e706f40594299ee21e1820 files/dont-build-libart_lgpl.patch 12070 +DIST gtk-canvas-0.1.1.tar.gz 657955 RMD160 31051d69b4bbc43bb2f515179fae09327e7864a1 SHA1 5089f481dbd795e164078cf3f48f2d6bd4a0ab69 SHA256 67d33da4129b5ca75fd1b59a62458dacfaad4e0251528294b8ebcfb148afd331 +EBUILD gtk-canvas-0.1.1.ebuild 686 RMD160 076fd2b5d83c32ec19bd36e2b5bb9305dc5b8fc1 SHA1 d815b54723b27c374674e89a5cb41c13b68891fc SHA256 e31d5197618b807898be3d868a88528988db3c3d1470e58f4a975fb81cb72e3f +MD5 1934b70b675c5ef1ec306c3ff7c6e406 gtk-canvas-0.1.1.ebuild 686 +RMD160 076fd2b5d83c32ec19bd36e2b5bb9305dc5b8fc1 gtk-canvas-0.1.1.ebuild 686 +SHA256 e31d5197618b807898be3d868a88528988db3c3d1470e58f4a975fb81cb72e3f gtk-canvas-0.1.1.ebuild 686 +MISC ChangeLog 458 RMD160 563eaa9f5509b88080fcea5a6e31018f993e9a82 SHA1 be3acadeefa5f1f42d360b52a9f9758ede0c3892 SHA256 8e2ca92a361fce94e129ab46ad8bf706faa92055de057dd154fa42852052be8e +MD5 070604ecbd09bf84719a7e82603e754e ChangeLog 458 +RMD160 563eaa9f5509b88080fcea5a6e31018f993e9a82 ChangeLog 458 +SHA256 8e2ca92a361fce94e129ab46ad8bf706faa92055de057dd154fa42852052be8e ChangeLog 458 +MISC metadata.xml 248 RMD160 6488d9f1ef3e05e6ac5a29ddcc818e5ead0a5230 SHA1 75a648fddef9922cdfe21fb0298a1c746190fd82 SHA256 de0ad7dc383b462c407cae015684d27c090455eac87c6f0f9ff581ef6e0b5b27 +MD5 af1bfbb0777267a03e889b08173f2757 metadata.xml 248 +RMD160 6488d9f1ef3e05e6ac5a29ddcc818e5ead0a5230 metadata.xml 248 +SHA256 de0ad7dc383b462c407cae015684d27c090455eac87c6f0f9ff581ef6e0b5b27 metadata.xml 248 +MD5 f4057eed3116d51fdcd2190604b77f24 files/digest-gtk-canvas-0.1.1 250 +RMD160 4a12de76e45c042e231e5fdded982c7b3c769bd3 files/digest-gtk-canvas-0.1.1 250 +SHA256 9ae531755ee7b864e9192d373b2524745911a9cf4ee01b898a5a4ac18d49e1ea files/digest-gtk-canvas-0.1.1 250 diff --git a/x11-libs/gtk-canvas/files/digest-gtk-canvas-0.1.1 b/x11-libs/gtk-canvas/files/digest-gtk-canvas-0.1.1 new file mode 100644 index 000000000000..78a51f0b6cae --- /dev/null +++ b/x11-libs/gtk-canvas/files/digest-gtk-canvas-0.1.1 @@ -0,0 +1,3 @@ +MD5 6872220119a4a3c284fe54a186e2ed57 gtk-canvas-0.1.1.tar.gz 657955 +RMD160 31051d69b4bbc43bb2f515179fae09327e7864a1 gtk-canvas-0.1.1.tar.gz 657955 +SHA256 67d33da4129b5ca75fd1b59a62458dacfaad4e0251528294b8ebcfb148afd331 gtk-canvas-0.1.1.tar.gz 657955 diff --git a/x11-libs/gtk-canvas/files/dont-build-libart_lgpl.patch b/x11-libs/gtk-canvas/files/dont-build-libart_lgpl.patch new file mode 100644 index 000000000000..5fd60c296ecc --- /dev/null +++ b/x11-libs/gtk-canvas/files/dont-build-libart_lgpl.patch @@ -0,0 +1,345 @@ +diff -urN -x config.cache -x config.h -x config.log -x config.status -x '*.la' -x '*.lai' -x Makefile -x libtool gtk-canvas-0.1.1.orig/configure gtk-canvas-0.1.1/configure +--- gtk-canvas-0.1.1.orig/configure 2002-11-18 02:14:51.000000000 -0800 ++++ gtk-canvas-0.1.1/configure 2006-01-07 21:52:23.000000000 -0800 +@@ -2177,7 +2177,7 @@ + # define a MAINT-like variable REBUILD which is set if Perl + # and awk are found, so autogenerated sources can be rebuilt + +-for ac_prog in gawk mawk nawk awk ++for ac_prog in mawk gawk nawk awk + do + # Extract the first word of "$ac_prog", so it can be a program name with args. + set dummy $ac_prog; ac_word=$2 +@@ -3915,7 +3915,7 @@ + fi + done + +-for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h ++for ac_hdr in unistd.h + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +@@ -4047,24 +4047,11 @@ + #include + #include + +-#if HAVE_SYS_TYPES_H +-# include +-#endif +- +-#if HAVE_STDLIB_H +-# include +-#endif +- +-#if HAVE_SYS_STAT_H +-# include +-#endif +- +-#if HAVE_UNISTD_H +-# include +-#endif +- + /* This mess was copied from the GNU getpagesize.h. */ + #ifndef HAVE_GETPAGESIZE ++# ifdef HAVE_UNISTD_H ++# include ++# endif + + /* Assume that all systems that can run configure have sys/param.h. */ + # ifndef HAVE_SYS_PARAM_H +@@ -4172,7 +4159,7 @@ + } + + EOF +-if { (eval echo configure:4176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:4163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + ac_cv_func_mmap_fixed_mapped=yes + else +@@ -4195,12 +4182,12 @@ + fi + + echo $ac_n "checking for umode_t""... $ac_c" 1>&6 +-echo "configure:4199: checking for umode_t" >&5 ++echo "configure:4186: checking for umode_t" >&5 + if eval "test \"`echo '$''{'ac_cv_type_umode_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + #if STDC_HEADERS +@@ -4269,7 +4256,7 @@ + # Extract the first word of "imlib-config", so it can be a program name with args. + set dummy imlib-config; ac_word=$2 + echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +-echo "configure:4273: checking for $ac_word" >&5 ++echo "configure:4260: checking for $ac_word" >&5 + if eval "test \"`echo '$''{'ac_cv_path_IMLIB_CONFIG'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -4304,7 +4291,7 @@ + + min_imlib_version=1.9 + echo $ac_n "checking for IMLIB - version >= $min_imlib_version""... $ac_c" 1>&6 +-echo "configure:4308: checking for IMLIB - version >= $min_imlib_version" >&5 ++echo "configure:4295: checking for IMLIB - version >= $min_imlib_version" >&5 + no_imlib="" + if test "$IMLIB_CONFIG" = "no" ; then + no_imlib=yes +@@ -4326,7 +4313,7 @@ + echo $ac_n "cross compiling; assumed OK... $ac_c" + else + cat > conftest.$ac_ext < +@@ -4366,7 +4353,7 @@ + + + EOF +-if { (eval echo configure:4370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:4357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + : + else +@@ -4400,7 +4387,7 @@ + CFLAGS="$CFLAGS $GDK_IMLIB_CFLAGS" + LIBS="$LIBS $GDK_IMLIB_LIBS" + cat > conftest.$ac_ext < +@@ -4410,7 +4397,7 @@ + return 0; + ; return 0; } + EOF +-if { (eval echo configure:4414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:4401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + echo "*** The test program compiled, but did not run. This usually means" + echo "*** that the run-time linker is not finding IMLIB or finding the wrong" +@@ -4479,7 +4466,7 @@ + # Extract the first word of "imlib-config", so it can be a program name with args. + set dummy imlib-config; ac_word=$2 + echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +-echo "configure:4483: checking for $ac_word" >&5 ++echo "configure:4470: checking for $ac_word" >&5 + if eval "test \"`echo '$''{'ac_cv_path_IMLIB_CONFIG'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -4514,7 +4501,7 @@ + + min_imlib_version=1.8 + echo $ac_n "checking for IMLIB - version >= $min_imlib_version""... $ac_c" 1>&6 +-echo "configure:4518: checking for IMLIB - version >= $min_imlib_version" >&5 ++echo "configure:4505: checking for IMLIB - version >= $min_imlib_version" >&5 + no_imlib="" + if test "$IMLIB_CONFIG" = "no" ; then + no_imlib=yes +@@ -4536,7 +4523,7 @@ + echo $ac_n "cross compiling; assumed OK... $ac_c" + else + cat > conftest.$ac_ext < +@@ -4576,7 +4563,7 @@ + + + EOF +-if { (eval echo configure:4580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:4567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + : + else +@@ -4612,7 +4599,7 @@ + CFLAGS="$CFLAGS $GDK_IMLIB_CFLAGS" + LIBS="$LIBS $GDK_IMLIB_LIBS" + cat > conftest.$ac_ext < +@@ -4622,7 +4609,7 @@ + return 0; + ; return 0; } + EOF +-if { (eval echo configure:4626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:4613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + echo "*** The test program compiled, but did not run. This usually means" + echo "*** that the run-time linker is not finding IMLIB or finding the wrong" +@@ -4693,8 +4680,6 @@ + COMPILE_TEST_GTK_CANVAS_FALSE= + fi + +-subdirs="libart_lgpl" +- + + + +@@ -4902,7 +4887,6 @@ + s%@GDK_IMLIB_LIBS@%$GDK_IMLIB_LIBS%g + s%@COMPILE_TEST_GTK_CANVAS_TRUE@%$COMPILE_TEST_GTK_CANVAS_TRUE%g + s%@COMPILE_TEST_GTK_CANVAS_FALSE@%$COMPILE_TEST_GTK_CANVAS_FALSE%g +-s%@subdirs@%$subdirs%g + s%@GTK_CANVAS_LIBS@%$GTK_CANVAS_LIBS%g + s%@GTK_CANVAS_LIBDIR@%$GTK_CANVAS_LIBDIR%g + s%@GTK_CANVAS_INCLUDEDIR@%$GTK_CANVAS_INCLUDEDIR%g +@@ -5132,100 +5116,3 @@ + rm -fr confdefs* $ac_clean_files + test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 + +-if test "$no_recursion" != yes; then +- +- # Remove --cache-file and --srcdir arguments so they do not pile up. +- ac_sub_configure_args= +- ac_prev= +- for ac_arg in $ac_configure_args; do +- if test -n "$ac_prev"; then +- ac_prev= +- continue +- fi +- case "$ac_arg" in +- -cache-file | --cache-file | --cache-fil | --cache-fi \ +- | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) +- ac_prev=cache_file ;; +- -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ +- | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) +- ;; +- -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) +- ac_prev=srcdir ;; +- -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) +- ;; +- *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; +- esac +- done +- +- for ac_config_dir in libart_lgpl; do +- +- # Do not complain, so a configure script can configure whichever +- # parts of a large source tree are present. +- if test ! -d $srcdir/$ac_config_dir; then +- continue +- fi +- +- echo configuring in $ac_config_dir +- +- case "$srcdir" in +- .) ;; +- *) +- if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; +- else +- { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } +- fi +- ;; +- esac +- +- ac_popdir=`pwd` +- cd $ac_config_dir +- +- # A "../" for each directory in /$ac_config_dir. +- ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` +- +- case "$srcdir" in +- .) # No --srcdir option. We are building in place. +- ac_sub_srcdir=$srcdir ;; +- /*) # Absolute path. +- ac_sub_srcdir=$srcdir/$ac_config_dir ;; +- *) # Relative path. +- ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; +- esac +- +- # Check for guested configure; otherwise get Cygnus style configure. +- if test -f $ac_sub_srcdir/configure; then +- ac_sub_configure=$ac_sub_srcdir/configure +- elif test -f $ac_sub_srcdir/configure.in; then +- ac_sub_configure=$ac_configure +- else +- echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 +- ac_sub_configure= +- fi +- +- # The recursion is here. +- if test -n "$ac_sub_configure"; then +- +- # Make the cache file name correct relative to the subdirectory. +- case "$cache_file" in +- /*) ac_sub_cache_file=$cache_file ;; +- *) # Relative path. +- ac_sub_cache_file="$ac_dots$cache_file" ;; +- esac +- case "$ac_given_INSTALL" in +- [/$]*) INSTALL="$ac_given_INSTALL" ;; +- *) INSTALL="$ac_dots$ac_given_INSTALL" ;; +- esac +- +- echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" +- # The eval makes quoting arguments work. +- if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir +- then : +- else +- { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } +- fi +- fi +- +- cd $ac_popdir +- done +-fi +- +diff -urN -x config.cache -x config.h -x config.log -x config.status -x '*.la' -x '*.lai' -x Makefile -x libtool gtk-canvas-0.1.1.orig/configure.in gtk-canvas-0.1.1/configure.in +--- gtk-canvas-0.1.1.orig/configure.in 2002-11-18 02:09:42.000000000 -0800 ++++ gtk-canvas-0.1.1/configure.in 2006-01-07 21:52:17.000000000 -0800 +@@ -229,7 +229,6 @@ + dnl + dnl LibART_LGPL + dnl +-AC_CONFIG_SUBDIRS(libart_lgpl) + + + dnl +diff -urN -x config.cache -x config.h -x config.log -x config.status -x '*.la' -x '*.lai' -x Makefile -x libtool gtk-canvas-0.1.1.orig/Makefile.in gtk-canvas-0.1.1/Makefile.in +--- gtk-canvas-0.1.1.orig/Makefile.in 2002-11-18 02:29:44.000000000 -0800 ++++ gtk-canvas-0.1.1/Makefile.in 2006-01-07 21:51:18.000000000 -0800 +@@ -141,8 +141,7 @@ + @COMPILE_TEST_GTK_CANVAS_TRUE@test_gtk_canvas = @COMPILE_TEST_GTK_CANVAS_TRUE@test + @COMPILE_TEST_GTK_CANVAS_FALSE@test_gtk_canvas = + +-SUBDIRS = libart_lgpl \ +- gtk-canvas\ ++SUBDIRS = gtk-canvas\ + test + + +diff -urN -x config.cache -x config.h -x config.log -x config.status -x '*.la' -x '*.lai' -x Makefile -x libtool gtk-canvas-0.1.1.orig/test/Makefile.in gtk-canvas-0.1.1/test/Makefile.in +--- gtk-canvas-0.1.1.orig/test/Makefile.in 2002-11-18 02:29:47.000000000 -0800 ++++ gtk-canvas-0.1.1/test/Makefile.in 2006-01-07 21:56:11.000000000 -0800 +@@ -158,7 +158,7 @@ + + test_gtkcanvas_LDADD = \ + $(top_builddir)/gtk-canvas/libgtk-canvas.la \ +- $(top_builddir)/libart_lgpl/libart_lgpl.la $(LIBGTK_CANVAS_LIBS) ++ -lart_lgpl $(LIBGTK_CANVAS_LIBS) + + mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs + CONFIG_HEADER = ../config.h +@@ -173,8 +173,7 @@ + test_gtkcanvas_OBJECTS = canvas.o canvas-primitives.o \ + canvas-arrowhead.o canvas-features.o canvas-fifteen.o test-gtkcanvas.o + test_gtkcanvas_DEPENDENCIES = \ +-$(top_builddir)/gtk-canvas/libgtk-canvas.la \ +-$(top_builddir)/libart_lgpl/libart_lgpl.la ++$(top_builddir)/gtk-canvas/libgtk-canvas.la + test_gtkcanvas_LDFLAGS = + CFLAGS = @CFLAGS@ + COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) diff --git a/x11-libs/gtk-canvas/gtk-canvas-0.1.1.ebuild b/x11-libs/gtk-canvas/gtk-canvas-0.1.1.ebuild new file mode 100644 index 000000000000..91a9c6a7b050 --- /dev/null +++ b/x11-libs/gtk-canvas/gtk-canvas-0.1.1.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk-canvas/gtk-canvas-0.1.1.ebuild,v 1.1 2006/06/16 22:14:43 spyderous Exp $ + +inherit eutils autotools + +DESCRIPTION="Backport of the GnomeCanvas widget to GTK+" +HOMEPAGE="http://www.atai.org/gtk-canvas/" +SRC_URI="http://www.atai.org/gtk-canvas/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~ppc ~x86" +IUSE="" +RDEPEND="gnome-base/gnome-libs" +DEPEND="${RDEPEND}" + +src_unpack() { + unpack ${A} + epatch ${FILESDIR}/dont-build-libart_lgpl.patch + cd ${S} + eautoconf +} + +src_install() { + make DESTDIR="${D}" install || die "install failed" +} diff --git a/x11-libs/gtk-canvas/metadata.xml b/x11-libs/gtk-canvas/metadata.xml new file mode 100644 index 000000000000..211b8bd0f0a4 --- /dev/null +++ b/x11-libs/gtk-canvas/metadata.xml @@ -0,0 +1,9 @@ + + + +sci + +spyderous@gentoo.org +Donnie Berkholz + + -- 2.26.2