Hi folks,
here's an ebuild for zlib, which takes a fixed source from the oss-qm project. it contains several fixes and cleans up ugly hacks in the current ebuild (eg. directly sed'ing sources ;-o). please refer my recent postings on details what the oss-qm project is all about. just a few words: the main idea is to solve problems at the source, provide generic downstream branches (which get rebased onto upstream) instead of single (often unncessarily distro-bound) patches. cu -- --------------------------------------------------------------------- Enrico Weigelt == metux IT service - http://www.metux.de/ --------------------------------------------------------------------- Please visit the OpenSource QM Taskforce: http://wiki.metux.de/public/OpenSource_QM_Taskforce Patches / Fixes for a lot dozens of packages in dozens of versions: http://patches.metux.de/ ---------------------------------------------------------------------
# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-libs/zlib/zlib-1.2.5.ebuild,v 1.2 2010/04/20 20:34:54 vapier Exp $ inherit eutils toolchain-funcs DESCRIPTION="Standard (de)compression library" HOMEPAGE="http://www.zlib.net/"; SRC_URI="http://pubgit.metux.de/download/oss-qm/zlib/METUX.zlib-${PV}.tar.bz2"; LICENSE="ZLIB" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" IUSE="" RDEPEND="!<dev-libs/libxml2-2.7.7" #309623 src_compile() { cd `find -maxdepth 1 -type d -not -name "."` || die case ${CHOST} in *-mingw*|mingw*) cp zconf.h.in zconf.h emake -f win32/Makefile.gcc prefix=/usr STRIP=true PREFIX=${CHOST}- || die ;; *) # not an autoconf script, so cant use econf ./configure --shared --prefix=/usr --libdir=/usr/$(get_libdir) || die emake || die ;; esac } src_install() { cd `find -maxdepth 1 -type d -not -name "."` || die case ${CHOST} in *-mingw*|mingw*) emake -f win32/Makefile.gcc prefix=/usr install DESTDIR="${D}" || die dodoc FAQ README ChangeLog doc/*.txt dobin zlib1.dll || die dolib libz.dll.a || die ;; *) emake install DESTDIR="${D}" || die dodoc FAQ README ChangeLog doc/*.txt gen_usr_ldscript -a z ;; esac }