/[gentoo-alt]/trunk/sys-apps/freebsd-bin/freebsd-bin-5.4.ebuild
Gentoo

Contents of /trunk/sys-apps/freebsd-bin/freebsd-bin-5.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 441 - (show annotations) (download)
Wed Jun 8 16:59:52 2005 UTC (9 years, 5 months ago) by flameeyes
File size: 1270 byte(s)
Updated to use gentoo's mirrors and freebsd-utils eclass.

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header$
4
5 inherit freebsd-utils
6
7 DESCRIPTION="FreeBSD /bin tools"
8 SRC_URI="mirror://gentoo/${BIN}.tar.bz2
9 mirror://gentoo/${CONTRIB}.tar.bz2
10 mirror://gentoo/${SBIN}.tar.bz2
11 mirror://gentoo/${LIB}.tar.bz2"
12
13 DEPEND="=sys-devel/freebsd-mk-defs-5.4*
14 =sys-libs/freebsd-lib-5.4*
15 sys-devel/flex
16 ssl? ( dev-libs/openssl )"
17
18 S=${WORKDIR}/bin
19
20 IUSE="rcp sendmail nls ssl"
21
22 pkg_setup() {
23 use rcp || mymakeopts="${mymakeopts} NO_RCMNDS= "
24 use sendmail || mymakeopts="${mymakeopts} NO_SENDMAIL= "
25 use nls || mymakeopts="${mymakeopts} NO_NLS= "
26
27 # Sounds ridicoulus but ssl is used to enable des support in ed.
28 use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NOCRYPT= "
29 mymakeopts="${mymakeopts} NO_TCSH= "
30 }
31
32 src_unpack() {
33 unpack ${A}
34 cd ${S}
35 epatch ${FILESDIR}/${PN}-flex.patch
36 }
37
38 src_compile() {
39 if use sendmail; then
40 # bin/rmail needs to link against libsm.a which is built here:
41 einfo "Building library dependency for this package"
42 cd ${WORKDIR}/lib/libsm
43 fmake || die "fmake libsm failed"
44 fi
45
46 einfo "Now building the package"
47 cd ${S}
48 fmake || die "fmake failed"
49 }
50
51 src_install() {
52 fmake DESTDIR=${D} install || die "Install failed"
53 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20