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

Contents of /trunk/sys-apps/freebsd-bin/freebsd-bin-5.3.20050301-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 441 - (show annotations) (download)
Wed Jun 8 16:59:52 2005 UTC (9 years, 3 months ago) by flameeyes
File size: 1426 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 BASE_PV=5.3
8
9 DESCRIPTION="FreeBSD /bin tools"
10 SRC_URI="mirror://gentoo/${BIN}.tar.bz2
11 mirror://gentoo/${CONTRIB}.tar.bz2
12 mirror://gentoo/${SBIN}.tar.bz2
13 mirror://gentoo/${LIB}.tar.bz2"
14
15 DEPEND="=sys-devel/freebsd-mk-defs-5.3*
16 =sys-libs/freebsd-lib-5.3*"
17
18 S=${WORKDIR}/bin
19 IUSE="rcp sendmail tcsh nls ssl"
20
21 pkg_setup() {
22 use rcp || mymakeopts="${mymakeopts} NO_RCMNDS= "
23 use sendmail || mymakeopts="${mymakeopts} NO_SENDMAIL= "
24 use tcsh || mymakeopts="${mymakeopts} NO_TCSH= "
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= "
29 }
30
31 src_unpack() {
32 unpack ${P}.tar.bz2
33 unpack ${CONTRIB}.tar.bz2
34 unpack ${SBIN}.tar.bz2
35 unpack ${LIB}.tar.bz2
36
37 if use tcsh ; then
38 # Disables NLS Symlinking. Currently broken.
39 cd ${S}/csh
40 epatch ${FILESDIR}/${PN}-${BASE_PV}-csh-makefile.patch
41 fi
42 }
43
44 src_compile() {
45 if use sendmail ; then
46 # bin/rmail needs to link against libsm.a which is built here:
47 einfo "Building library dependency for this package"
48 cd ${WORKDIR}/lib/libsm
49 fmake || die "emake libsm failed"
50 fi
51
52 einfo "Now building the package"
53 cd ${S}
54 fmake || die "emake failed"
55 }
56
57 src_install() {
58 fmake DESTDIR=${D} install || die "Install failed"
59 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20