Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo developers <gentoo-dev@g.o>, gentoo-user <gentoo-user@g.o>
From: Enrico Weigelt <weigelt@...>
Subject: zlib ebuild from OSS-QM
Date: Mon, 5 Jul 2010 18:48:43 +0200
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
}
Replies:
Re: zlib ebuild from OSS-QM
-- Sebastian Pipping
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Minor changes in python.eclass and distutils.eclass
Next by thread:
Re: zlib ebuild from OSS-QM
Previous by date:
Re: Over using preserve_old_lib, don't do that
Next by date:
Re: Minor changes in python.eclass and distutils.eclass


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.