From: "Patrice Clement (monsieurp)" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog perl-module.eclass
Date: Wed, 12 Nov 2014 23:26:36 +0000 (UTC) [thread overview]
Message-ID: <20141112232636.1F2DCA042@oystercatcher.gentoo.org> (raw)
monsieurp 14/11/12 23:26:36
Modified: ChangeLog perl-module.eclass
Log:
perl-module.eclass: Documented nearly all functions.
Revision Changes Path
1.1415 eclass/ChangeLog
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1415&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1415&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.1414&r2=1.1415
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
retrieving revision 1.1414
retrieving revision 1.1415
diff -u -r1.1414 -r1.1415
--- ChangeLog 11 Nov 2014 11:00:24 -0000 1.1414
+++ ChangeLog 12 Nov 2014 23:26:36 -0000 1.1415
@@ -1,6 +1,9 @@
# ChangeLog for eclass directory
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1414 2014/11/11 11:00:24 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1415 2014/11/12 23:26:36 monsieurp Exp $
+
+ 12 Nov 2014; Patrice Clement <monsieurp@gentoo.org> perl-module.eclass:
+ Documented nearly all functions.
11 Nov 2014; Pacho Ramos <pacho@gentoo.org> vala.eclass:
0.20 is our new lower version
1.150 eclass/perl-module.eclass
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/perl-module.eclass?rev=1.150&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/perl-module.eclass?rev=1.150&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/perl-module.eclass?r1=1.149&r2=1.150
Index: perl-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v
retrieving revision 1.149
retrieving revision 1.150
diff -u -r1.149 -r1.150
--- perl-module.eclass 11 Nov 2014 00:49:30 -0000 1.149
+++ perl-module.eclass 12 Nov 2014 23:26:36 -0000 1.150
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.149 2014/11/11 00:49:30 monsieurp Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.150 2014/11/12 23:26:36 monsieurp Exp $
# @ECLASS: perl-module.eclass
# @MAINTAINER:
@@ -96,6 +96,11 @@
pm_echovar=""
perlinfo_done=false
+# @FUNCTION: perl-module_src_unpack
+# @USAGE: perl-module_src_unpack
+# @DESCRIPTION:
+# Unpack the ebuild tarball(s).
+# This function is to be called during the ebuild src_unpack() phase.
perl-module_src_unpack() {
debug-print-function $FUNCNAME "$@"
@@ -103,6 +108,11 @@
has src_prepare ${PERL_EXPF} || perl-module_src_prepare
}
+# @FUNCTION: perl-module_src_prepare
+# @USAGE: perl-module_src_prepare
+# @DESCRIPTION:
+# Get the ebuild sources ready.
+# This function is to be called during the ebuild src_prepare() phase.
perl-module_src_prepare() {
debug-print-function $FUNCNAME "$@"
has src_prepare ${PERL_EXPF} && \
@@ -117,11 +127,27 @@
esvn_clean
}
+# @FUNCTION: perl-module_src_configure
+# @USAGE: perl-module_src_configure
+# @DESCRIPTION:
+# Configure the ebuild sources.
+# This function is to be called during the ebuild src_configure() phase.
perl-module_src_configure() {
debug-print-function $FUNCNAME "$@"
perl-module_src_prep
}
+# @FUNCTION: perl-module_src_prep
+# @USAGE: perl-module_src_prep
+# @DESCRIPTION:
+# Configure the ebuild sources (bis).
+#
+# This function is still around for historical reasons
+# and will be soon deprecated.
+#
+# Please use the function above instead, perl-module_src_configure().
+#
+# TODO: Move code to perl-module_src_configure().
perl-module_src_prep() {
debug-print-function $FUNCNAME "$@"
[[ ${SRC_PREP} = yes ]] && return 0
@@ -176,6 +202,11 @@
fi
}
+# @FUNCTION: perl-module_src_compile
+# @USAGE: perl-module_src_compile
+# @DESCRIPTION:
+# Compile the ebuild sources.
+# This function is to be called during the ebuild src_compile() phase.
perl-module_src_compile() {
debug-print-function $FUNCNAME "$@"
perl_set_version
@@ -202,27 +233,28 @@
fi
}
-# For testers:
-# This code attempts to work out your threadingness from MAKEOPTS
-# and apply them to Test::Harness.
+# @FUNCTION: perl-module_src-test
+# @USAGE: perl-module_src_test()
+# @DESCRIPTION:
+# This code attempts to work out your threadingness from MAKEOPTS
+# and apply them to Test::Harness.
#
-# If you want more verbose testing, set TEST_VERBOSE=1
-# in your bashrc | /etc/portage/make.conf | ENV
+# If you want more verbose testing, set TEST_VERBOSE=1
+# in your bashrc | /etc/portage/make.conf | ENV
#
-# For ebuild writers:
-# If you wish to enable default tests w/ 'make test' ,
+# or ebuild writers:
+# If you wish to enable default tests w/ 'make test' ,
#
-# SRC_TEST="do"
+# SRC_TEST="do"
#
-# If you wish to have threads run in parallel ( using the users makeopts )
-# all of the following have been tested to work.
+# If you wish to have threads run in parallel ( using the users makeopts )
+# all of the following have been tested to work.
#
-# SRC_TEST="do parallel"
-# SRC_TEST="parallel"
-# SRC_TEST="parallel do"
-# SRC_TEST=parallel
+# SRC_TEST="do parallel"
+# SRC_TEST="parallel"
+# SRC_TEST="parallel do"
+# SRC_TEST=parallel
#
-
perl-module_src_test() {
debug-print-function $FUNCNAME "$@"
if has 'do' ${SRC_TEST} || has 'parallel' ${SRC_TEST} ; then
@@ -239,6 +271,11 @@
fi
}
+# @FUNCTION: perl-module_src_install
+# @USAGE: perl-module_src_install
+# @DESCRIPTION:
+# Install a Perl ebuild.
+# This function is to be called during the ebuild src_install() phase.
perl-module_src_install() {
debug-print-function $FUNCNAME "$@"
@@ -279,25 +316,45 @@
perl_link_duallife_scripts
}
+# @FUNCTION: perl-module_pkg_setup
+# @USAGE: perl-module_pkg_setup
+# @DESCRIPTION:
+# This function is to be called during the pkg_setup() phase.
perl-module_pkg_setup() {
debug-print-function $FUNCNAME "$@"
perl_set_version
}
+# @FUNCTION: perl-module_pkg_preinst
+# @USAGE: perl-module_pkg_preinst
+# @DESCRIPTION:
+# This function is to be called during the pkg_preinst() phase.
perl-module_pkg_preinst() {
debug-print-function $FUNCNAME "$@"
perl_set_version
}
+# @FUNCTION: perl-module_pkg_postinst
+# @USAGE: perl-module_pkg_postinst
+# @DESCRIPTION:
+# This function is to be called during the pkg_postinst() phase.
perl-module_pkg_postinst() {
debug-print-function $FUNCNAME "$@"
perl_link_duallife_scripts
}
+# @FUNCTION: perl-module_pkg_prerm
+# @USAGE: perl-module_pkg_prerm
+# @DESCRIPTION:
+# This function is to be called during the pkg_prerm() phase.
perl-module_pkg_prerm() {
debug-print-function $FUNCNAME "$@"
}
+# @FUNCTION: perl-module_pkg_postrm
+# @USAGE: perl-module_pkg_postrm
+# @DESCRIPTION:
+# This function is to be called during the pkg_postrm() phase.
perl-module_pkg_postrm() {
debug-print-function $FUNCNAME "$@"
perl_link_duallife_scripts
@@ -332,9 +389,9 @@
# @FUNCTION: perlinfo
# @USAGE: perlinfo
# @DESCRIPTION:
-# This function deprecated.
+# This function is deprecated.
#
-# Please use the function above instead, perl_set_version.
+# Please use the function above instead, perl_set_version().
perlinfo() {
debug-print-function $FUNCNAME "$@"
eqawarn "perl-modules.eclass: perlinfo is deprecated and will be removed. Please use perl_set_version instead."
@@ -359,7 +416,7 @@
# @DESCRIPTION:
# This function is deprecated.
#
-# Please use the function above instead, perl_delete_localpod.
+# Please use the function above instead, perl_delete_localpod().
fixlocalpod() {
debug-print-function $FUNCNAME "$@"
eqawarn "perl-modules.eclass: fixlocalpod is deprecated and will be removed. Please use perl_delete_localpod instead."
@@ -369,8 +426,7 @@
# @FUNCTION: perl_fix_osx_extra
# @USAGE: perl_fix_osx_extra
# @DESCRIPTION:
-# Look through ${S} (temporary build directory) for AppleDouble encoded files
-# and get rid of them.
+# Look through ${S} for AppleDouble encoded files and get rid of them.
perl_fix_osx_extra() {
debug-print-function $FUNCNAME "$@"
@@ -386,6 +442,7 @@
# @FUNCTION: perl_delete_module_manpages
# @USAGE: perl_delete_module_manpages
+# @DESCRIPTION:
# Bump off manpages installed by the current module such as *.3pm files as well
# as empty directories.
perl_delete_module_manpages() {
@@ -397,6 +454,11 @@
fi
}
+# @FUNCTION: perl_delete_packlist
+# @USAGE: perl_delete_packlist
+# @DESCRIPTION:
+# Look through ${D} for .packlist files, empty .bs files and empty directories,
+# and get rid of items found.
perl_delete_packlist() {
debug-print-function $FUNCNAME "$@"
perl_set_version
@@ -407,6 +469,11 @@
fi
}
+# @FUNCTION: perl_remove_temppath
+# @USAGE: perl_remove_temppath
+# @DESCRIPTION:
+# Look through ${D} for text files containing the temporary installation
+# folder (i.e. ${D}). If the pattern is found (i.e. " text"), replace it with `/'.
perl_remove_temppath() {
debug-print-function $FUNCNAME "$@"
@@ -454,6 +521,15 @@
IFS="$oldifs"
}
+# @FUNCTION: perl_link_duallife_scripts
+# @USAGE: perl_link_duallife_scripts
+# @DESCRIPTION:
+# This function contains the bulk of perl-module_pkg_postinst()'s logic
+# and will be soon deprecated.
+#
+# Please use perl-module_pkg_postinst() instead.
+#
+# TODO: Move code to perl-module_pkg_postinst().
perl_link_duallife_scripts() {
debug-print-function $FUNCNAME "$@"
if [[ ${CATEGORY} != perl-core ]] || ! has_version ">=dev-lang/perl-5.8.8-r8" ; then
next reply other threads:[~2014-11-12 23:26 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-12 23:26 Patrice Clement (monsieurp) [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-06-13 19:01 [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog perl-module.eclass Andreas Huettel (dilfridge)
2015-05-25 18:18 Andreas Huettel (dilfridge)
2015-03-15 17:23 Andreas HAttel (dilfridge)
2015-03-14 14:32 Andreas HAttel (dilfridge)
2015-02-01 12:01 Andreas HAttel (dilfridge)
2014-12-17 16:40 Andreas HAttel (dilfridge)
2014-12-13 21:06 Andreas HAttel (dilfridge)
2014-12-13 20:51 Andreas HAttel (dilfridge)
2014-12-01 20:41 Andreas HAttel (dilfridge)
2014-11-22 18:24 Andreas HAttel (dilfridge)
2014-11-21 1:21 Andreas HAttel (dilfridge)
2014-11-19 19:52 Andreas HAttel (dilfridge)
2014-11-19 19:39 Andreas HAttel (dilfridge)
2014-11-18 23:31 Andreas HAttel (dilfridge)
2014-11-17 23:34 Andreas HAttel (dilfridge)
2014-11-16 20:22 Andreas HAttel (dilfridge)
2014-11-11 0:49 Patrice Clement (monsieurp)
2014-11-09 21:34 Andreas HAttel (dilfridge)
2014-11-09 18:10 Andreas HAttel (dilfridge)
2014-11-05 0:24 Andreas HAttel (dilfridge)
2014-11-01 17:34 Andreas HAttel (dilfridge)
2014-10-20 12:47 Andreas HAttel (dilfridge)
2014-10-19 20:59 Andreas HAttel (dilfridge)
2014-09-27 20:54 Andreas HAttel (dilfridge)
2014-09-19 18:17 Andreas HAttel (dilfridge)
2013-12-29 21:37 Andreas HAttel (dilfridge)
2013-07-31 5:15 Matt Turner (mattst88)
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=20141112232636.1F2DCA042@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