public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in eclass: bsdmk.eclass
@ 2008-08-08 21:16 Alexis Ballier (aballier)
  0 siblings, 0 replies; 3+ messages in thread
From: Alexis Ballier (aballier) @ 2008-08-08 21:16 UTC (permalink / raw
  To: gentoo-commits

aballier    08/08/08 21:16:25

  Modified:             bsdmk.eclass
  Log:
  make bsdmk eclass ready for eclass manpages, by mren <bugs@rennings.net>, bug #210774

Revision  Changes    Path
1.9                  eclass/bsdmk.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/bsdmk.eclass?rev=1.9&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/bsdmk.eclass?rev=1.9&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/bsdmk.eclass?r1=1.8&r2=1.9

Index: bsdmk.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/bsdmk.eclass,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- bsdmk.eclass	23 Jul 2007 05:19:00 -0000	1.8
+++ bsdmk.eclass	8 Aug 2008 21:16:24 -0000	1.9
@@ -1,10 +1,13 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/bsdmk.eclass,v 1.8 2007/07/23 05:19:00 vapier Exp $
-#
+# $Header: /var/cvsroot/gentoo-x86/eclass/bsdmk.eclass,v 1.9 2008/08/08 21:16:24 aballier Exp $
+
+# @ECLASS: bsdmk.eclass
+# @MAINTAINER:
 # Otavio R. Piske "AngusYoung" <angusyoung@gentoo.org>
 # Diego Pettenò <flameeyes@gentoo.org>
 # Benigno B. Junior <bbj@gentoo.org>
+# @BLURB: Some functions for BSDmake
 
 inherit toolchain-funcs portability flag-o-matic
 
@@ -16,19 +19,23 @@
 
 ESED="/usr/bin/sed"
 
-#### append-opt <options>
+# @ECLASS-VARIABLE: mymakeopts
+# @DESCRIPTION:
+# Options for bsd-make
+
+# @FUNCTION: append-opt
+# @USAGE: < options >
+# @DESCRIPTION:
 # append options to enable or disable features
-#
-###########################################################################
 append-opt() {
 	mymakeopts="${mymakeopts} $@"
 }
 
-#### mkmake <options>
+# @FUNCTION: mkmake
+# @USAGE: [ options ]
+# @DESCRIPTION:
 # calls bsd-make command with the given options, passing ${mymakeopts} to
 # enable ports to useflags bridge.
-#
-###########################################################################
 mkmake() {
 	[[ -z ${BMAKE} ]] && BMAKE="$(get_bmake)"
 
@@ -37,6 +44,11 @@
 	${BMAKE} ${MAKEOPTS} ${EXTRA_EMAKE} ${mymakeopts} NO_WERROR= STRIP= "$@"
 }
 
+# @FUNCTION: mkinstall
+# @USAGE: [ options ]
+# @DESCRIPTION:
+# Calls "bsd-make install" with the given options, passing ${mamakeopts} to
+# enable ports to useflags bridge
 mkinstall() {
 	[[ -z ${BMAKE} ]] && BMAKE="$(get_bmake)"
 
@@ -45,21 +57,27 @@
 	${BMAKE} ${mymakeopts} NO_WERROR= STRIP= MANSUBDIR= DESTDIR="${D}" "$@" install
 }
 
-#### dummy_mk <dirnames>
+# @FUNCTION: dummy_mk
+# @USAGE: < dirnames >
+# @DESCRIPTION:
 # removes the specified subdirectories and creates a dummy makefile in them
 # useful to remove the need for "minimal" patches
-#
-############################################################################
 dummy_mk() {
 	for dir in $@; do
 		echo ".include <bsd.lib.mk>" > ${dir}/Makefile
 	done
 }
 
+# @FUNCTION: bsdmk_src_compile
+# @DESCRIPTION:
+# The bsdmk src_compile function, which is exported
 bsdmk_src_compile() {
 	mkmake || die "make failed"
 }
 
+# @FUNCTION: bsdmk_src_install
+# @DESCRIPTION:
+# The bsdmk src_install function, which is exported
 bsdmk_src_install() {
 	mkinstall || die "install failed"
 }






^ permalink raw reply	[flat|nested] 3+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: bsdmk.eclass
@ 2011-11-02 22:55 Alexis Ballier (aballier)
  0 siblings, 0 replies; 3+ messages in thread
From: Alexis Ballier (aballier) @ 2011-11-02 22:55 UTC (permalink / raw
  To: gentoo-commits

aballier    11/11/02 22:55:56

  Modified:             bsdmk.eclass
  Log:
  add some checks for the existence of directories/makefiles to dummy_mk

Revision  Changes    Path
1.10                 eclass/bsdmk.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/bsdmk.eclass?rev=1.10&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/bsdmk.eclass?rev=1.10&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/bsdmk.eclass?r1=1.9&r2=1.10

Index: bsdmk.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/bsdmk.eclass,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- bsdmk.eclass	8 Aug 2008 21:16:24 -0000	1.9
+++ bsdmk.eclass	2 Nov 2011 22:55:56 -0000	1.10
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/bsdmk.eclass,v 1.9 2008/08/08 21:16:24 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/bsdmk.eclass,v 1.10 2011/11/02 22:55:56 aballier Exp $
 
 # @ECLASS: bsdmk.eclass
 # @MAINTAINER:
@@ -64,6 +64,8 @@
 # useful to remove the need for "minimal" patches
 dummy_mk() {
 	for dir in $@; do
+		[ -d ${dir} ] || ewarn "dummy_mk called on a non-existing directory: $dir"
+		[ -f ${dir}/Makefile ] || ewarn "dummy_mk called on a directory without Makefile: $dir"
 		echo ".include <bsd.lib.mk>" > ${dir}/Makefile
 	done
 }






^ permalink raw reply	[flat|nested] 3+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: bsdmk.eclass
@ 2013-08-09 16:26 Alexis Ballier (aballier)
  0 siblings, 0 replies; 3+ messages in thread
From: Alexis Ballier (aballier) @ 2013-08-09 16:26 UTC (permalink / raw
  To: gentoo-commits

aballier    13/08/09 16:26:59

  Modified:             bsdmk.eclass
  Log:
  bsdmk_src_compile: forward arguments to mkmake

Revision  Changes    Path
1.12                 eclass/bsdmk.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/bsdmk.eclass?rev=1.12&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/bsdmk.eclass?rev=1.12&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/bsdmk.eclass?r1=1.11&r2=1.12

Index: bsdmk.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/bsdmk.eclass,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- bsdmk.eclass	27 Dec 2011 17:55:12 -0000	1.11
+++ bsdmk.eclass	9 Aug 2013 16:26:59 -0000	1.12
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/bsdmk.eclass,v 1.11 2011/12/27 17:55:12 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/bsdmk.eclass,v 1.12 2013/08/09 16:26:59 aballier Exp $
 
 # @ECLASS: bsdmk.eclass
 # @MAINTAINER:
@@ -74,7 +74,7 @@
 # @DESCRIPTION:
 # The bsdmk src_compile function, which is exported
 bsdmk_src_compile() {
-	mkmake || die "make failed"
+	mkmake "$@" || die "make failed"
 }
 
 # @FUNCTION: bsdmk_src_install





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-08-09 16:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-08 21:16 [gentoo-commits] gentoo-x86 commit in eclass: bsdmk.eclass Alexis Ballier (aballier)
  -- strict thread matches above, loose matches on Subject: below --
2011-11-02 22:55 Alexis Ballier (aballier)
2013-08-09 16:26 Alexis Ballier (aballier)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox