diff --git a/packages/dev-libs/zziplib/files/zziplib-0.13.49-automagic-deps.patch b/packages/dev-libs/zziplib/files/zziplib-0.13.49-automagic-deps.patch new file mode 100644 index 0000000..ac4146f --- /dev/null +++ b/packages/dev-libs/zziplib/files/zziplib-0.13.49-automagic-deps.patch @@ -0,0 +1,22 @@ +Reason: Lots of automagic! +Upstream: Unknown +Source: Daniel Mierswa + +--- ./configure.ac.orig 2008-12-03 17:51:41.945131986 +0100 ++++ ./configure.ac 2008-12-03 17:54:49.667132519 +0100 +@@ -85,9 +85,12 @@ + # ----------------------------------------------------------------------- + + AC_PATH_PROGS(PERL, perl5 perl, echo no perl found for) +-AC_PATH_PROGS(PYTHON, python2.2 python2.3 python, echo no python found for) +-AC_PATH_PROGS(MKZIP, zip pkzip, :) +-AC_PATH_PROGS(XMLTO, xmlto, :) ++AC_ARG_WITH([python], [AS_HELP_STRING([--with-python], [use python (default yes)])]) ++test "$with_python" != no && AC_PATH_PROGS(PYTHON, python2.2 python2.3 python, echo no python found for) ++AC_ARG_WITH([zip], [AS_HELP_STRING([--with-zip], [use zip (default yes)])]) ++test "$with_zip" != no && AC_PATH_PROGS(MKZIP, zip pkzip, :) ++AC_ARG_WITH([xmlto], [AS_HELP_STRING([--with-xmlto], [use xmlto (default yes)])]) ++test "$with_xmlto" != no && AC_PATH_PROGS(XMLTO, xmlto, :) + + AC_C_INLINE + AC_C_CONST diff --git a/packages/dev-libs/zziplib/zziplib-0.13.49.exheres-0 b/packages/dev-libs/zziplib/zziplib-0.13.49.exheres-0 new file mode 100644 index 0000000..55d6516 --- /dev/null +++ b/packages/dev-libs/zziplib/zziplib-0.13.49.exheres-0 @@ -0,0 +1,33 @@ +# Copyright 2008 Daniel Mierswa +# Distributed under the terms of the GNU General Public License v2 + +SUPPORTED_AUTOCONF=( 2.5 ) +SUPPORTED_AUTOMAKE=( 1.10 ) +require autotools + +SUMMARY="A library to read zip files." +DESCRIPTION="The implementation is based only on the (free) subset of + compression with the zlib algorithm." +HOMEPAGE="http://${PN}.sourceforge.net" +DOWNLOADS="mirror://sourceforge/${PN}/${PNV}.tar.bz2" + +LICENCES="|| ( LGPL-2 MPL-1.1 )" +SLOT="0" +PLATFORMS="~amd64" +MYOPTIONS="python sdl xmlto zlib" + +DEPENDENCIES=" + build: + python? ( dev-lang/python ) + xmlto? ( app-text/xmlto ) + build+run: + sdl? ( media-libs/libSDL ) + zlib? ( sys-libs/zlib ) +" + +AT_M4DIR="m4" + +DEFAULT_SRC_PREPARE_PATCHES+=( "${FILES}/${PNV}-automagic-deps.patch" ) +DEFAULT_SRC_CONFIGURE_OPTION_WITHS+=( zlib python xmlto ) +DEFAULT_SRC_CONFIGURE_OPTION_ENABLES+=( sdl ) +