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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

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
6
7 DESCRIPTION="FreeBSD shared tools/files"
8 SRC_URI="mirror://gentoo/${SHARE}.tar.bz2
9 mirror://gentoo/${CONTRIB}.tar.bz2
10 mirror://gentoo/${GNU}.tar.bz2
11 mirror://gentoo/${UBIN}.tar.bz2
12 mirror://gentoo/${USBIN}.tar.bz2
13 mirror://gentoo/${SBIN}.tar.bz2
14 mirror://gentoo/${BIN}.tar.bz2
15 mirror://gentoo/${LIB}.tar.bz2
16 mirror://gentoo/${ETC}.tar.bz2"
17
18
19 DEPEND="=sys-devel/freebsd-mk-defs-5.3*"
20
21 S=${WORKDIR}/share
22
23 src_unpack() {
24 unpack ${P}.tar.bz2
25 unpack ${CONTRIB}.tar.bz2
26 unpack ${GNU}.tar.bz2
27 unpack ${UBIN}.tar.bz2
28 unpack ${USBIN}.tar.bz2
29 unpack ${SBIN}.tar.bz2
30 unpack ${BIN}.tar.bz2
31 unpack ${LIB}.tar.bz2
32 unpack ${ETC}.tar.bz2
33
34 # Disables mk
35 cd ${S}
36 epatch ${FILESDIR}/${P}-no_mk.patch
37
38 # Adjust colldef makefile
39 cd ${S}/colldef
40 epatch ${FILESDIR}/${P}-colldef-makefile.patch
41 epatch ${FILESDIR}/${P}-colldef-makefile_links.patch
42 }
43
44 src_compile() {
45 # This is a groff problem and not a -shared problem.
46 GROFF_TMAC_PATH="/usr/share/tmac/:/usr/share/groff/1.19.1/tmac/" emake || die "emake failed"
47 }
48
49 src_install() {
50 bsdmake DESTDIR=${D} install || die "Install failed"
51 correct_wrong_path
52 }
53
54 # SmbFS' Makefile tries to install files in this ebuild's ${FILESDIR}
55 # this function is a workaround to this problem
56 correct_wrong_path() {
57 local WRONG="local/sys-apps/freebsd-share/files"
58 local CORRECT="/usr/share/examples/smbfs"
59
60 einfo "Correcting the path of files installed in an incorrect dir"
61 mv ${D}/${PORTDIR}/${WRONG}/dot.nsmbrc ${D}/${CORRECT}
62 mv ${D}/${PORTDIR}/${WRONG}/* ${D}/${CORRECT}/print
63 rm -rf ${D}/usr/portage
64 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20