diff --git a/packages/dev-lua/oopango/files/oopango-1.0-lua_fix.patch b/packages/dev-lua/oopango/files/oopango-1.0-lua_fix.patch new file mode 100644 index 0000000..c5a851b --- /dev/null +++ b/packages/dev-lua/oopango/files/oopango-1.0-lua_fix.patch @@ -0,0 +1,24 @@ +Upstream: Yes +Reason: only debian uses lua5.1.pc +Source: Daniel Mierswa + +--- oopango-1.0/configure.ac.orig 2010-10-04 18:42:35.000000000 +0200 ++++ oopango-1.0/configure.ac 2010-10-04 18:42:46.000000000 +0200 +@@ -6,7 +6,7 @@ + AM_INIT_AUTOMAKE([-Wall -Werror foreign dist-bzip2]) + + AC_PROG_LN_S +-PKG_CHECK_MODULES(DEPS, lua5.1 cairo oocairo >= 1.3 pangocairo) ++PKG_CHECK_MODULES(DEPS, lua cairo oocairo >= 1.3 pangocairo) + + AC_MSG_CHECKING([lua library dir]) + # First, we need to figure out the prefix +@@ -14,7 +14,7 @@ + if test "x${MY_PREFIX}" = "xNONE" ; then + MY_PREFIX=${ac_default_prefix} + fi +-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/oopango/oopango-1.0.exheres-0 b/packages/dev-lua/oopango/oopango-1.0.exheres-0 new file mode 100644 index 0000000..e0656e2 --- /dev/null +++ b/packages/dev-lua/oopango/oopango-1.0.exheres-0 @@ -0,0 +1,12 @@ +# Copyright 2010 Daniel Mierswa +# Distributed under the terms of the GNU General Public License v2 + +require oopango +require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.11 ] ] + +DEFAULT_SRC_PREPARE_PATCHES+=( + "${FILES}/oopango-1.0-lua_fix.patch" +) + +PLATFORMS="~amd64" + diff --git a/packages/dev-lua/oopango/oopango.exlib b/packages/dev-lua/oopango/oopango.exlib new file mode 100644 index 0000000..8aaca26 --- /dev/null +++ b/packages/dev-lua/oopango/oopango.exlib @@ -0,0 +1,23 @@ +# Copyright 2010 Daniel Mierswa +# Distributed under the terms of the GNU General Public License v2 + +myexparam oocairo_version='[=1.3]' + +SUMMARY="Lua bindings for pango" +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 + dev-lua/oocairo$(exparam oocairo_version) + x11-libs/cairo + x11-libs/pango +" +