add zziplib

This commit is contained in:
Daniel Mierswa 2008-12-03 19:35:08 +01:00
parent 7bef3884c6
commit 1b85d679a6
2 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,22 @@
Reason: Lots of automagic!
Upstream: Unknown
Source: Daniel Mierswa <impulze@impulze.org>
--- ./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

View file

@ -0,0 +1,33 @@
# Copyright 2008 Daniel Mierswa <impulze@impulze.org>
# 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 )