/[gentoo-alt]/trunk/eclass/freebsd-utils.eclass
Gentoo

Contents of /trunk/eclass/freebsd-utils.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 479 - (show annotations) (download)
Sun Jun 19 23:24:16 2005 UTC (9 years, 6 months ago) by flameeyes
File size: 1438 byte(s)
Avoid removing complete sources when using dummy_mk, something other can include them directly, just use a fake Makefile.

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header$
4 #
5 # Otavio R. Piske "AngusYoung" <angusyoung@gentoo.org>
6
7 inherit eutils
8
9 ECLASS=freebsd-utils
10 INHERITED="$INHERITED $ECLASS"
11
12 HOMEPAGE="http://www.freebsd.org/"
13 LICENSE="BSD"
14 KEYWORDS="~x86-fbsd"
15 IUSE="profile"
16 SLOT="0"
17
18 # Define global package names
19 LIB="freebsd-lib-${PV}"
20 BIN="freebsd-bin-${PV}"
21 CONTRIB="freebsd-contrib-${PV}"
22 SHARE="freebsd-share-${PV}"
23 UBIN="freebsd-ubin-${PV}"
24 USBIN="freebsd-usbin-${PV}"
25 HEADERS="freebsd-headers-${PV}"
26 CRYPTO="freebsd-crypto-${PV}"
27 LIBEXEC="freebsd-libexec-${PV}"
28 SBIN="freebsd-sbin-${PV}"
29 GNU="freebsd-gnu-${PV}"
30 ETC="freebsd-etc-${PV}"
31 SYS="freebsd-sys-${PV}"
32 INCLUDE="freebsd-include-${PV}"
33
34 #unalias -a
35 alias install-info='/usr/bin/bsdinstall-info'
36
37 #### fmake <options>
38 # calls ${MAKE} command with
39 # the given options, passing
40 # ${mymakeopts} to enable
41 # ports to useflags bridge.
42 #
43 #############################
44
45 fmake() {
46 use profile || mymakeopts="${mymakeopts} NOPROFILE= "
47
48 bsdmake ${MAKEOPTS} ${EXTRA_EMAKE} ${mymakeopts} NO_WERROR= "$@"
49 }
50
51 #### dummy_mk <dirnames>
52 # removes the specified subdirectories and creates a dummy makefile in them
53 # useful to remove the need for "minimal" patches
54 #
55 ############################################################################
56 dummy_mk() {
57 for dir in $@; do
58 echo ".include <bsd.lib.mk>" > ${dir}/Makefile
59 done
60 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20