public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] zlib ebuild from OSS-QM
@ 2010-07-05 16:48 Enrico Weigelt
  2010-07-06 17:07 ` Sebastian Pipping
  2010-07-06 17:18 ` Jeremy Olexa
  0 siblings, 2 replies; 9+ messages in thread
From: Enrico Weigelt @ 2010-07-05 16:48 UTC (permalink / raw
  To: gentoo developers, gentoo-user

[-- Attachment #1: Type: text/plain, Size: 958 bytes --]

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/
---------------------------------------------------------------------

[-- Attachment #2: zlib-1.2.5.3.ebuild --]
[-- Type: text/plain, Size: 1342 bytes --]

# 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
}

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-07-06 21:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-05 16:48 [gentoo-dev] zlib ebuild from OSS-QM Enrico Weigelt
2010-07-06 17:07 ` Sebastian Pipping
2010-07-06 17:09   ` Sebastian Pipping
2010-07-06 20:03     ` Enrico Weigelt
2010-07-06 17:18 ` Jeremy Olexa
2010-07-06 20:04   ` Enrico Weigelt
2010-07-06 20:35     ` Krzysztof Pawlik
2010-07-06 20:35     ` Sebastian Pipping
2010-07-06 21:26       ` Enrico Weigelt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox