/[gentoo-alt]/trunk/overlay/sys-openbsd/openbsd-lib/openbsd-lib-3.8.ebuild
Gentoo

Contents of /trunk/overlay/sys-openbsd/openbsd-lib/openbsd-lib-3.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 988 - (show annotations) (download)
Tue Feb 7 16:17:09 2006 UTC (8 years, 9 months ago) by reb
File size: 1211 byte(s)
+sys-openbsd/openbsd-lib

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header$
4
5 inherit bsdmk openbsd flag-o-matic
6
7 DESCRIPTION="OpenBSD's base system libraries"
8 SLOT="0"
9 KEYWORDS="~x86-obsd"
10
11 IUSE="afs ssl kerberos nis skey"
12
13 SRC_URI="http://reb.tux.bz/distfiles/${LIB}.tar.bz2"
14
15 RDEPEND="ssl? ( dev-libs/openssl )
16 kerberos? ( virtual/krb5 )"
17 DEPEND="${RDEPEND}
18 =sys-openbsd/openbsd-mk-defs-${RV}*
19 =sys-openbsd/openbsd-sources-${RV}*
20 =sys-openbsd/openbsd-headers-${RV}*"
21
22 PROVIDE="virtual/libc"
23
24 S="${WORKDIR}/lib"
25
26 pkg_setup() {
27 if ! use ssl && use kerberos; then
28 eerror "If you want kerberos support you need to enable ssl support, too."
29 fi
30
31 use afs || mymakeopts="${mymakeopts} AFS=yes "
32 use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= "
33 use kerberos || mymakeopts="${mymakeopts} KERBEROS5=no NO_KRB5= "
34 use nis || mymakeopts="${mymakeopts} YP=no "
35 use skey || mymakeopts="${mymakeopts} SKEY=no "
36
37 replace-flags "-O?" -"O1"
38 }
39
40 REMOVE_SUBDIRS="libcurses libform libmenu libpanel \
41 libz libpcap libwrap libssl"
42
43 src_install() {
44 mkinstall || die "Install failed"
45
46 # make crt1.o schg so that gcc doesn't remove it
47 chflags schg ${D}/usr/lib/crt1.o
48 }

  ViewVC Help
Powered by ViewVC 1.1.20