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

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

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

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

Legend:
Removed from v.440  
changed lines
  Added in v.441

  ViewVC Help
Powered by ViewVC 1.1.20