summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2007-09-02 02:20:42 +0000
committerAlexandre Rostovtsev <tetromino@gentoo.org>2007-09-02 02:20:42 +0000
commit3403f59a2946ab8e622bd6fab5e49ebb671def78 (patch)
tree8035127f20793f84c268392a954700af75beef17 /x11-libs/hippo-canvas
parentRemoving pacakge: Currently maintained in portage. (diff)
downloadsunrise-3403f59a2946ab8e622bd6fab5e49ebb671def78.tar.gz
sunrise-3403f59a2946ab8e622bd6fab5e49ebb671def78.tar.bz2
sunrise-3403f59a2946ab8e622bd6fab5e49ebb671def78.zip
x11-libs/hippo-canvas: New ebuild for bug 190836
svn path=/sunrise/; revision=4524
Diffstat (limited to 'x11-libs/hippo-canvas')
-rw-r--r--x11-libs/hippo-canvas/ChangeLog9
-rw-r--r--x11-libs/hippo-canvas/Manifest5
-rw-r--r--x11-libs/hippo-canvas/files/digest-hippo-canvas-0.2.233
-rw-r--r--x11-libs/hippo-canvas/files/hippo-canvas-0.2.23-use-python.patch60
-rw-r--r--x11-libs/hippo-canvas/hippo-canvas-0.2.23.ebuild43
-rw-r--r--x11-libs/hippo-canvas/metadata.xml5
6 files changed, 125 insertions, 0 deletions
diff --git a/x11-libs/hippo-canvas/ChangeLog b/x11-libs/hippo-canvas/ChangeLog
new file mode 100644
index 000000000..5334652fd
--- /dev/null
+++ b/x11-libs/hippo-canvas/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for x11-libs/hippo-canvas
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 02 Sep 2007; Alexandre Rostovtsev (tetromino) <tetromino@gmail.com>
+ +files/hippo-canvas-0.2.23-use-python.patch, +metadata.xml,
+ +hippo-canvas-0.2.23.ebuild:
+ New ebuild for bug 190836
+
diff --git a/x11-libs/hippo-canvas/Manifest b/x11-libs/hippo-canvas/Manifest
new file mode 100644
index 000000000..8f844c954
--- /dev/null
+++ b/x11-libs/hippo-canvas/Manifest
@@ -0,0 +1,5 @@
+AUX hippo-canvas-0.2.23-use-python.patch 2123 RMD160 48563c557ff3725bc78195048a392b36a32ae413 SHA1 c819b1df158dee82b4571befde2a967e07a918be SHA256 a031a82e0faf45d2453316b18f2fa755b229f5ed9af59a46ad02789d8ff223b6
+DIST hippo-canvas-0.2.23.tar.bz2 332846 RMD160 179728e4c639769330db6804f6ff56b510d3e3b6 SHA1 a538dc5a71df94e86d998a106f1415799528177b SHA256 fd4ddd8d02fc925da332c193f1d31965d53798aac87d568daa97cc48c6cfe2fe
+EBUILD hippo-canvas-0.2.23.ebuild 952 RMD160 6842c86f646b3c0045bd5f137f4138b06e5cb9d3 SHA1 0e6cd13d16f6b9663e80848e3be587ed6b7d3610 SHA256 a9d72bbb63fbca39e8bb86218830491468056bb9fe53ab7571968fc0807903a3
+MISC ChangeLog 314 RMD160 2b65caa5da50681485c3c86d1d657f8f865b36ae SHA1 5a7f6c5ad42103c2490ac204128b3a7aaa697be7 SHA256 395a13d5dcd6e17dc58ce27fbeb258e94c3988143b3ca3cf9f94ff639ce260df
+MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/x11-libs/hippo-canvas/files/digest-hippo-canvas-0.2.23 b/x11-libs/hippo-canvas/files/digest-hippo-canvas-0.2.23
new file mode 100644
index 000000000..542d6ed50
--- /dev/null
+++ b/x11-libs/hippo-canvas/files/digest-hippo-canvas-0.2.23
@@ -0,0 +1,3 @@
+MD5 cc6e58bde6cd4b5ea46f3684dd076c81 hippo-canvas-0.2.23.tar.bz2 332846
+RMD160 179728e4c639769330db6804f6ff56b510d3e3b6 hippo-canvas-0.2.23.tar.bz2 332846
+SHA256 fd4ddd8d02fc925da332c193f1d31965d53798aac87d568daa97cc48c6cfe2fe hippo-canvas-0.2.23.tar.bz2 332846
diff --git a/x11-libs/hippo-canvas/files/hippo-canvas-0.2.23-use-python.patch b/x11-libs/hippo-canvas/files/hippo-canvas-0.2.23-use-python.patch
new file mode 100644
index 000000000..1eaacfa2e
--- /dev/null
+++ b/x11-libs/hippo-canvas/files/hippo-canvas-0.2.23-use-python.patch
@@ -0,0 +1,60 @@
+diff -ru hippo-canvas-0.2.23-orig/configure.ac hippo-canvas-0.2.23/configure.ac
+--- hippo-canvas-0.2.23-orig/configure.ac 2007-07-11 16:47:11.000000000 -0400
++++ hippo-canvas-0.2.23/configure.ac 2007-08-30 20:33:58.924749555 -0400
+@@ -154,15 +154,28 @@
+ GTK_DOC_CHECK([1.6])
+
+ ## Python bindings
+-AM_PATH_PYTHON
+-AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
++AC_ARG_ENABLE(python,
++ [AC_HELP_STRING([--enable-python], [build python bindings [default=auto]])])
++if test "x$enable_python" = "xno" ; then
++ have_python=no
++else
++ have_python=no
++ AM_PATH_PYTHON
++ if test "x$PYTHON" = "x" ; then
++ AC_MSG_WARN([Python not found])
++ else
++ AM_CHECK_PYTHON_HEADERS([
++ AC_PATH_PROG(PYGTK_CODEGEN, pygtk-codegen-2.0, no)
++ PKG_CHECK_MODULES(PYTHON_BINDINGS, pygtk-2.0 pycairo, [
++ PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
++ AC_SUBST(PYGTK_DEFSDIR)
++ have_python=yes
++ ], [AC_MSG_WARN(could not find pygtk-2.0 or pycairo)])
++ ],[AC_MSG_WARN(could not find Python headers)])
++ fi
++fi
+
+-AC_PATH_PROG(PYGTK_CODEGEN, pygtk-codegen-2.0, no)
+-
+-PKG_CHECK_MODULES(PYTHON_BINDINGS, pygtk-2.0 pycairo)
+-
+-PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
+-AC_SUBST(PYGTK_DEFSDIR)
++AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "xyes")
+
+ AC_OUTPUT([
+ Makefile
+@@ -179,6 +192,7 @@
+ prefix: ${prefix}
+ compiler: ${CC}
+ LIBHIPPOCANVAS_CFLAGS: ${LIBHIPPOCANVAS_CFLAGS}
++ build python bindings: ${have_python}
+
+ Now type 'make' to build $PACKAGE
+ "
+diff -ru hippo-canvas-0.2.23-orig/Makefile.am hippo-canvas-0.2.23/Makefile.am
+--- hippo-canvas-0.2.23-orig/Makefile.am 2007-07-08 06:28:19.000000000 -0400
++++ hippo-canvas-0.2.23/Makefile.am 2007-08-30 20:34:06.286626454 -0400
+@@ -54,6 +54,8 @@
+ libhippocanvas_1_la_SOURCES=$(COMMON_CANVAS_SOURCEFILES) $(LINUX_CANVAS_SOURCEFILES)
+ nodist_libhippocanvas_1_la_SOURCES=$(CANVAS_BUILT_SOURCEFILES)
+
++if HAVE_PYTHON
+ include Makefile-python.am
++endif
+
+ DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
diff --git a/x11-libs/hippo-canvas/hippo-canvas-0.2.23.ebuild b/x11-libs/hippo-canvas/hippo-canvas-0.2.23.ebuild
new file mode 100644
index 000000000..c31ce0a7c
--- /dev/null
+++ b/x11-libs/hippo-canvas/hippo-canvas-0.2.23.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+WANT_AUTOCONF="latest"
+WANT_AUTOMAKE="latest"
+
+inherit autotools gnome.org eutils
+
+DESCRIPTION="A canvas library based on GTK+-2, Cairo, and Pango"
+HOMEPAGE="http://developer.mugshot.org/wiki/Hippo_Canvas"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc python"
+
+RDEPEND=">=dev-libs/glib-2.6
+ >=x11-libs/gtk+-2.6
+ python? ( dev-lang/python
+ dev-python/pycairo
+ dev-python/pygtk )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ doc? ( >=dev-util/gtk-doc-1.6 )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-use-python.patch"
+ eautoreconf
+}
+
+src_compile() {
+ econf $(use_enable doc gtk-doc) $(use_enable python) ||
+ die "configure failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS README TODO || die "dodoc failed"
+}
diff --git a/x11-libs/hippo-canvas/metadata.xml b/x11-libs/hippo-canvas/metadata.xml
new file mode 100644
index 000000000..7e3286984
--- /dev/null
+++ b/x11-libs/hippo-canvas/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>maintainer-wanted</herd>
+</pkgmetadata>