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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 468 Revision 469
4 4
5inherit freebsd-utils 5inherit freebsd-utils
6 6
7DESCRIPTION="FreeBSD /bin tools" 7DESCRIPTION="FreeBSD /bin tools"
8SRC_URI="mirror://gentoo/${BIN}.tar.bz2 8SRC_URI="mirror://gentoo/${BIN}.tar.bz2
9 mirror://gentoo/${CONTRIB}.tar.bz2
10 mirror://gentoo/${SBIN}.tar.bz2 9 mirror://gentoo/${SBIN}.tar.bz2
11 mirror://gentoo/${LIB}.tar.bz2" 10 mirror://gentoo/${LIB}.tar.bz2"
12 11
13DEPEND="=sys-devel/freebsd-mk-defs-5.4* 12DEPEND="=sys-devel/freebsd-mk-defs-5.4*
14 =sys-libs/freebsd-lib-5.4* 13 =sys-libs/freebsd-lib-5.4*
15 sys-devel/flex 14 sys-devel/flex
16 ssl? ( dev-libs/openssl )" 15 ssl? ( dev-libs/openssl )"
17 16
18S=${WORKDIR}/bin 17S=${WORKDIR}/bin
19 18
20IUSE="rcp sendmail nls ssl" 19IUSE="rcp nls ssl"
21 20
22pkg_setup() { 21pkg_setup() {
23 use rcp || mymakeopts="${mymakeopts} NO_RCMNDS= " 22 use rcp || mymakeopts="${mymakeopts} NO_RCMNDS= "
24 use sendmail || mymakeopts="${mymakeopts} NO_SENDMAIL= "
25 use nls || mymakeopts="${mymakeopts} NO_NLS= " 23 use nls || mymakeopts="${mymakeopts} NO_NLS= "
26 24
27 # Sounds ridicoulus but ssl is used to enable des support in ed. 25 # Sounds ridicoulus but ssl is used to enable des support in ed.
28 use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NOCRYPT= " 26 use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NOCRYPT= "
29 mymakeopts="${mymakeopts} NO_TCSH= " 27 mymakeopts="${mymakeopts} NO_TCSH= NO_SENDMAIL= "
30} 28}
31 29
32src_unpack() { 30src_unpack() {
33 unpack ${A} 31 unpack ${A}
34 cd ${S} 32 cd ${S}
35 epatch ${FILESDIR}/${PN}-flex.patch 33 epatch ${FILESDIR}/${PN}-flex.patch
34
35 # csh and tcsh are provided by tcsh package, rmail is sendmail stuff.
36 dummy_mk csh tcsh rmail
36} 37}
37 38
38src_compile() { 39src_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" 40 einfo "Now building the package"
47 cd ${S} 41 cd ${S}
48 fmake || die "fmake failed" 42 fmake || die "fmake failed"
49} 43}
50 44

Legend:
Removed from v.468  
changed lines
  Added in v.469

  ViewVC Help
Powered by ViewVC 1.1.20