public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrice Clement (monsieurp)" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog java-utils-2.eclass
Date: Fri, 31 Jul 2015 07:56:17 +0000 (UTC)	[thread overview]
Message-ID: <20150731075617.18DCC113@oystercatcher.gentoo.org> (raw)

monsieurp    15/07/31 07:56:17

  Modified:             ChangeLog java-utils-2.eclass
  Log:
  Document JAVA_RM_FILES variable. Also, fix documentation and correct typos in java-pkg_rm_files.

Revision  Changes    Path
1.1741               eclass/ChangeLog

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

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
retrieving revision 1.1740
retrieving revision 1.1741
diff -u -r1.1740 -r1.1741
--- ChangeLog	30 Jul 2015 22:17:08 -0000	1.1740
+++ ChangeLog	31 Jul 2015 07:56:17 -0000	1.1741
@@ -1,6 +1,10 @@
 # ChangeLog for eclass directory
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1740 2015/07/30 22:17:08 chewi Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1741 2015/07/31 07:56:17 monsieurp Exp $
+
+  31 Jul 2015; Patrice Clement <monsieurp@gentoo.org> java-utils-2.eclass:
+  Document JAVA_RM_FILES variable. Also, fix documentation and correct typos in
+  java-pkg_rm_files.
 
   30 Jul 2015; James Le Cuirot <chewi@gentoo.org> java-utils-2.eclass:
   Fix JAVA_RM_FILES by simplifying java-utils-2_src_prepare on the basis that



1.168                eclass/java-utils-2.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/java-utils-2.eclass?rev=1.168&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/java-utils-2.eclass?rev=1.168&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/java-utils-2.eclass?r1=1.167&r2=1.168

Index: java-utils-2.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v
retrieving revision 1.167
retrieving revision 1.168
diff -u -r1.167 -r1.168
--- java-utils-2.eclass	30 Jul 2015 22:17:08 -0000	1.167
+++ java-utils-2.eclass	31 Jul 2015 07:56:17 -0000	1.168
@@ -6,7 +6,7 @@
 #
 # Licensed under the GNU General Public License, v2
 #
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.167 2015/07/30 22:17:08 chewi Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.168 2015/07/31 07:56:17 monsieurp Exp $
 
 # @ECLASS: java-utils-2.eclass
 # @MAINTAINER:
@@ -126,6 +126,20 @@
 #	JAVA_PKG_WANT_TARGET=1.3 emerge bar
 # @CODE
 
+# @ECLASS-VARIABLE: JAVA_RM_FILES
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# An array containing a list of files to remove. If defined, this array will be
+# automatically handed over to java-pkg_rm_files for processing during the
+# src_prepare phase.
+#
+# @CODE
+#	JAVA_RM_FILES=(
+#		path/to/File1.java
+#		DELETEME.txt
+#	)
+# @CODE
+
 # @VARIABLE: JAVA_PKG_COMPILER_DIR
 # @INTERNAL
 # @DESCRIPTION:
@@ -263,29 +277,25 @@
 # you wish to remove.
 #
 # Both way work and it is left to the developer's preferences. If the
-# JAVA_RM_FILES array is defined, it is will be automatically handed over to
-# java-pkg_rm_files.
+# JAVA_RM_FILES array is defined, it will be automatically handed over to
+# java-pkg_rm_files during the src_prepare phase.
 #
 # See java-utils-2_src_prepare.
 #
 # @CODE
+#	java-pkg_rm_files File1.java File2.java
+# @CODE
 #
 # @param $* - list of files to remove.
-# JAVA_RM_FILES - array containing files to remove. 
-# if defined, automatically handed over to java-pkg_rm_files in java-utils-2_src_prepare.
-#
-# @CODE
 java-pkg_rm_files() {
 	debug-print-function ${FUNCNAME} $*
-	OIFS="$IFS"
-	IFS="\n"
+	local IFS="\n"
 	for filename in "$@"; do
 		[[ ! -f "${filename}" ]] && die "${filename} is not a regular file. Aborting."
 		einfo "Removing unneeded file ${filename}"
 		rm -f "${S}/${filename}" || die "cannot remove ${filename}"
 		eend $?
 	done
-	IFS="$OIFS"
 }
 
 # @FUNCTION: java-pkg_dojar





             reply	other threads:[~2015-07-31  7:56 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-31  7:56 Patrice Clement (monsieurp) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-08-02 23:12 [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog java-utils-2.eclass James Le Cuirot (chewi)
2015-07-30 22:17 James Le Cuirot (chewi)
2015-07-22  9:20 Patrice Clement (monsieurp)
2015-06-28 13:33 James Le Cuirot (chewi)
2015-06-19 14:11 James Le Cuirot (chewi)
2015-06-15 21:09 James Le Cuirot (chewi)
2015-05-24 22:44 James Le Cuirot (chewi)
2015-05-02 20:23 James Le Cuirot (chewi)
2015-04-14 14:08 James Le Cuirot (chewi)
2014-04-09 21:55 Tim Harder (radhermit)
2013-10-06 14:37 Vlastimil Babka (caster)
2013-08-27  5:32 Tim Harder (radhermit)
2013-04-17 18:01 Ralph Sennhauser (sera)
2013-01-16 19:06 Ralph Sennhauser (sera)
2012-07-05 20:07 Ralph Sennhauser (sera)
2012-03-13 10:05 Ralph Sennhauser (sera)
2011-12-13 14:42 Ralph Sennhauser (sera)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150731075617.18DCC113@oystercatcher.gentoo.org \
    --to=monsieurp@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox