From 58bd66cb4bdcb7846eed9b6d54ee4db91b06e5ff Mon Sep 17 00:00:00 2001 From: Daniel Mierswa Date: Mon, 4 Oct 2010 18:46:44 +0200 Subject: [PATCH] initial oocairo exheres needed by recent awesome::desktop[=scm] --- metadata/categories.conf | 1 + .../oocairo/files/oocairo-1.3-lua_fix.patch | 24 +++++++++++++++++ .../dev-lua/oocairo/oocairo-1.3.exheres-0 | 12 +++++++++ packages/dev-lua/oocairo/oocairo.exlib | 27 +++++++++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 packages/dev-lua/oocairo/files/oocairo-1.3-lua_fix.patch create mode 100644 packages/dev-lua/oocairo/oocairo-1.3.exheres-0 create mode 100644 packages/dev-lua/oocairo/oocairo.exlib diff --git a/metadata/categories.conf b/metadata/categories.conf index 0a153ee..9ffdebe 100644 --- a/metadata/categories.conf +++ b/metadata/categories.conf @@ -1,4 +1,5 @@ app-cdr app-emulation +dev-lua games-strategy x11-apps diff --git a/packages/dev-lua/oocairo/files/oocairo-1.3-lua_fix.patch b/packages/dev-lua/oocairo/files/oocairo-1.3-lua_fix.patch new file mode 100644 index 0000000..3457aee --- /dev/null +++ b/packages/dev-lua/oocairo/files/oocairo-1.3-lua_fix.patch @@ -0,0 +1,24 @@ +Upstream: Yes +Reason: only debian uses lua5.1.pc +Source: Daniel Mierswa + +--- oocairo-1.3/configure.ac.orig 2010-10-04 18:40:03.000000000 +0200 ++++ oocairo-1.3/configure.ac 2010-10-04 18:40:12.000000000 +0200 +@@ -7,7 +7,7 @@ + + AC_PROG_LN_S + AC_PATH_PROG([POD2MAN], [pod2man]) +-PKG_CHECK_MODULES(DEPS, lua5.1 cairo) ++PKG_CHECK_MODULES(DEPS, lua cairo) + + AC_MSG_CHECKING([lua library dir]) + # First, we need to figure out our own prefix +@@ -16,7 +16,7 @@ + MY_PREFIX=${ac_default_prefix} + fi + # Then we ask lua where to install modules under that prefix +-lualibdir=`$PKG_CONFIG lua5.1 --define-variable=prefix=${MY_PREFIX} --variable=INSTALL_CMOD` ++lualibdir=`$PKG_CONFIG lua --define-variable=prefix=${MY_PREFIX} --variable=INSTALL_CMOD` + AC_SUBST([lualibdir]) + AC_MSG_RESULT([$lualibdir]) + diff --git a/packages/dev-lua/oocairo/oocairo-1.3.exheres-0 b/packages/dev-lua/oocairo/oocairo-1.3.exheres-0 new file mode 100644 index 0000000..accbef4 --- /dev/null +++ b/packages/dev-lua/oocairo/oocairo-1.3.exheres-0 @@ -0,0 +1,12 @@ +# Copyright 2010 Daniel Mierswa +# Distributed under the terms of the GNU General Public License v2 + +require oocairo +require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.11 ] ] + +DEFAULT_SRC_PREPARE_PATCHES+=( + "${FILES}/oocairo-1.3-lua_fix.patch" +) + +PLATFORMS="~amd64" + diff --git a/packages/dev-lua/oocairo/oocairo.exlib b/packages/dev-lua/oocairo/oocairo.exlib new file mode 100644 index 0000000..cecf150 --- /dev/null +++ b/packages/dev-lua/oocairo/oocairo.exlib @@ -0,0 +1,27 @@ +# Copyright 2010 Daniel Mierswa +# Distributed under the terms of the GNU General Public License v2 + +SUMMARY="Lua bindings for cairo" +DESCRIPTION=" +Lua-OOCairo provides Lua with full access to the Cairo vector graphics API. +It can be used for drawing onto bitmap images and saving the resulting files +in PNG format, or for generating files in vector formats like SVG and PDF. +It can also be used for drawing in a Gtk+ GUI application. +" +HOMEPAGE="http://oocairo.naquadah.org/" +DOWNLOADS="${HOMEPAGE}/dist/${PNV}.tar.bz2" + +LICENCES="MIT GPL-2 as-is" +SLOT="0" +MYOPTIONS="" + +DEPENDENCIES=" + build: + dev-util/pkg-config + build+run: + dev-lang/lua + x11-libs/cairo +" + +UPSTREAM_DOCUMENTATION="http://www.daizucms.org/lua/library/oocairo/doc/" +