summaryrefslogtreecommitdiff
blob: 556d453e787321d058751aa6673d8a15c23074dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-baselibs/emul-linux-x86-baselibs-10.1.ebuild,v 1.3 2007/02/19 21:57:28 blubb Exp $

DESCRIPTION="Provides precompiled 32bit libraries"
HOMEPAGE="http://amd64.gentoo.org/emul/content.xml"
SRC_URI="mirror://gentoo/binutils-2.16.1-r3.tbz2
		mirror://gentoo/bzip2-1.0.3-r6.tbz2
		mirror://gentoo/com_err-1.39.tbz2
		mirror://gentoo/cracklib-2.8.9-r1.tbz2
		mirror://gentoo/cups-1.2.6-nossl.tbz2
		mirror://gentoo/db-4.2.52_p4-r2.tbz2
		mirror://gentoo/dbus-1.0.2.tbz2
		mirror://gentoo/dbus-glib-0.72.tbz2
		mirror://gentoo/dbus-qt3-old-0.70.tbz2
		mirror://gentoo/e2fsprogs-1.39.tbz2
		mirror://gentoo/expat-1.95.8.tbz2
		mirror://gentoo/file-4.18.tbz2
		mirror://gentoo/gamin-0.1.8.tbz2
		mirror://gentoo/gdbm-1.8.3-r3.tbz2
		mirror://gentoo/glib-1.2.10-r5.tbz2
		mirror://gentoo/glib-2.12.7.tbz2
		mirror://gentoo/gpm-1.20.1-r5.tbz2
		mirror://gentoo/jpeg-6b-r7.tbz2
		mirror://gentoo/lcms-1.14-r1.tbz2
		mirror://gentoo/libart_lgpl-2.3.17.tbz2
		mirror://gentoo/libidn-0.5.15.tbz2
		mirror://gentoo/libmng-1.0.9-r1.tbz2
		mirror://gentoo/libperl-5.8.8-r1.tbz2
		mirror://gentoo/libpng-1.2.15.tbz2
		mirror://gentoo/libtool-1.5.22.tbz2
		mirror://gentoo/libxml2-2.6.27.tbz2
		mirror://gentoo/ncurses-5.5-r3.tbz2
		mirror://gentoo/nss_ldap-253.tbz2
		mirror://gentoo/openldap-2.3.30-r2.tbz2
		mirror://gentoo/openssl-0.9.8d.tbz2
		mirror://gentoo/pam-0.78-r5.tbz2
		mirror://gentoo/pwdb-0.62.tbz2
		mirror://gentoo/readline-5.1_p4.tbz2
		mirror://gentoo/slang-1.4.9-r2.tbz2
		mirror://gentoo/ss-1.39.tbz2
		mirror://gentoo/tiff-3.8.2-r2.tbz2
		mirror://gentoo/zlib-1.2.3-r1.tbz2"

LICENSE="|| ( Artistic GPL-2 ) || ( BSD GPL-2 ) BZIP2 CRACKLIB DB
		GPL-2 || ( GPL-2 AFL-2.1 ) LGPL-2 LGPL-2.1 MIT OPENLDAP openssl
		PAM ZLIB as-is"
SLOT="0"
KEYWORDS="-* amd64"
IUSE=""

RESTRICT="strip"
S=${WORKDIR}

DEPEND=""
RDEPEND=""

pkg_setup() {
	einfo "Note: You can safely ignore the 'trailing garbage after EOF'"
	einfo "      warnings below"
}

src_unpack() {
	unpack ${A}
	cd ${S}

	WHITELIST="(${S}/lib32/security/pam_filter/upperLOWER|${S}/etc/env.d)"
	# the following line is broken up because we have files with spaces in the filename
	find ${S} ! -type d ! -name '*.so*' | egrep -v "${WHITELIST}" | xargs -d '
' rm -f
	rm -rf ${S}/etc/env.d/binutils/ ${S}/usr/lib32/binutils/
	rm -rf ${S}/usr/lib32/engines/ ${S}/usr/lib32/openldap/
	rm -rf ${S}/usr/lib32/python2.4/

	ln -s ../share/terminfo ${S}/usr/lib32/terminfo
}

src_install() {
	for dir in etc/env.d etc/revdep-rebuild ; do
		if [[ -d ${S}/${dir} ]] ; then
			for f in ${S}/${dir}/* ; do
				mv -f $f{,-emul}
			done
		fi
	done

	# remove void directories or portage will show weird output
	find ${S} -depth -type d | xargs rmdir 2&>/dev/null

	cp -a "${WORKDIR}"/* "${D}"/ || die "copying files failed!"
}