/[gentoo-alt]/trunk/sys-apps/freebsd-ubin/freebsd-ubin-5.3.ebuild
Gentoo

Contents of /trunk/sys-apps/freebsd-ubin/freebsd-ubin-5.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 127 - (show annotations) (download)
Sat Nov 13 04:17:41 2004 UTC (12 years, 10 months ago) by ka0ttic
File size: 1712 byte(s)
Inherit may be called only *once* in an ebuild.

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header$
4
5 inherit freebsd-utils flag-o-matic
6
7 CONTRIB=freebsd-contrib-${PV}
8 LIB=freebsd-lib-${PV}
9 BIN=freebsd-bin-${PV}
10
11 MY_PATCH=${PN}-5.3_rc1
12
13 DESCRIPTION="FreeBSD's base system source for /usr/bin"
14 SRC_URI="${SRC_URI} ${CONTRIB}.tar.bz2 ${LIB}.tar.bz2 ${BIN}.tar.bz2"
15
16 DEPEND=""
17 S=${WORKDIR}/usr.bin
18
19 src_unpack() {
20 unpack ${P}.tar.bz2
21 unpack ${CONTRIB}.tar.bz2
22 unpack ${LIB}.tar.bz2
23 unpack ${BIN}.tar.bz2
24
25
26 # Fixed location to /usr/src
27 cd ${S}/kdump
28 epatch ${FILESDIR}/${MY_PATCH}-kdump-makefile.patch
29
30 # I belive this patch may give problems with sandbox in the future
31 cd ${S}/truss
32 epatch ${FILESDIR}/${MY_PATCH}-truss-makefile.patch
33
34 # Installation related patch (to create necessary dirs)
35 cd ${S}/calendar
36 epatch ${FILESDIR}/${MY_PATCH}-calendar-makefile.patch
37
38 # These patch does not create NLSLINKS
39 cd ${S}/ee
40 epatch ${FILESDIR}/${MY_PATCH}-ee-makefile.patch
41 cd ${S}/vi
42 epatch ${FILESDIR}/${MY_PATCH}-vi-makefile.patch
43 }
44
45 src_compile() {
46 # ATM -fomit-frame pointer is incompatible with
47 # a flag (-pg) used to build libbind.
48 filter-flags "-fomit-frame-pointer"
49
50 einfo "Building library dependencies"
51 cd ${WORKDIR}/lib/bind
52 make || die "emake libbind failed"
53 cd ${WORKDIR}/lib/libtelnet
54 emake || die "emake libtelnet failed"
55 cd ${WORKDIR}/lib/libsm
56 emake || die "emake libsm failed"
57 cd ${WORKDIR}/lib/libsmutil
58 emake || die "emake libsmutil failed"
59 cd ${WORKDIR}/lib/libsmdb
60 emake || die "emake libsmdb failed"
61
62 cd ${S}
63 einfo "Building package"
64 emake || die "emake failed"
65 }
66
67 src_install() {
68 cd ${S}
69 emake DESTDIR=${D} install || die "Install failed"
70 }

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20